From 66f3f2b28b93b0377627397adf63ee38df311903 Mon Sep 17 00:00:00 2001 From: Tomo Suzuki Date: Sat, 24 Jun 2023 00:10:38 -0400 Subject: [PATCH] chore: removing outdated files in favor of https://github.com/googleapis/google-cloud-java/tree/main/java-analytics-admin --- .github/CODEOWNERS | 15 - .github/ISSUE_TEMPLATE/bug_report.md | 56 - .github/ISSUE_TEMPLATE/feature_request.md | 26 - .github/ISSUE_TEMPLATE/support_request.md | 7 - .github/PULL_REQUEST_TEMPLATE.md | 10 - .github/auto-label.yaml | 15 - .github/blunderbuss.yml | 7 - .github/generated-files-bot.yml | 12 - .github/snippet-bot.yml | 0 .github/sync-repo-settings.yaml | 44 - .github/trusted-contribution.yml | 3 - .github/workflows/approve-readme.yaml | 69 - .github/workflows/auto-release.yaml | 103 - .github/workflows/ci.yaml | 89 - .github/workflows/samples.yaml | 30 - .gitignore | 17 - .kokoro/build.bat | 18 - .kokoro/build.sh | 134 - .kokoro/coerce_logs.sh | 37 - .kokoro/common.cfg | 13 - .kokoro/common.sh | 60 - .kokoro/continuous/common.cfg | 25 - .kokoro/continuous/java8.cfg | 12 - .kokoro/dependencies.sh | 59 - .kokoro/nightly/common.cfg | 25 - .kokoro/nightly/integration.cfg | 37 - .kokoro/nightly/java11-integration.cfg | 37 - .kokoro/nightly/java11.cfg | 7 - .kokoro/nightly/java7.cfg | 7 - .kokoro/nightly/java8-osx.cfg | 3 - .kokoro/nightly/java8-win.cfg | 3 - .kokoro/nightly/java8.cfg | 12 - .kokoro/nightly/samples.cfg | 38 - .kokoro/populate-secrets.sh | 43 - .kokoro/presubmit/clirr.cfg | 13 - .kokoro/presubmit/common.cfg | 34 - .kokoro/presubmit/dependencies.cfg | 12 - .kokoro/presubmit/graalvm-native-17.cfg | 33 - .kokoro/presubmit/graalvm-native.cfg | 33 - .kokoro/presubmit/integration.cfg | 33 - .kokoro/presubmit/java11.cfg | 7 - .kokoro/presubmit/java7.cfg | 7 - .kokoro/presubmit/java8-osx.cfg | 3 - .kokoro/presubmit/java8-win.cfg | 3 - .kokoro/presubmit/java8.cfg | 12 - .kokoro/presubmit/linkage-monitor.cfg | 12 - .kokoro/presubmit/lint.cfg | 13 - .kokoro/presubmit/samples.cfg | 33 - .kokoro/readme.sh | 45 - .kokoro/release/bump_snapshot.cfg | 53 - .kokoro/release/common.cfg | 49 - .kokoro/release/common.sh | 50 - .kokoro/release/drop.cfg | 6 - .kokoro/release/drop.sh | 32 - .kokoro/release/promote.cfg | 6 - .kokoro/release/promote.sh | 34 - .kokoro/release/publish_javadoc.cfg | 23 - .kokoro/release/publish_javadoc.sh | 53 - .kokoro/release/publish_javadoc11.cfg | 30 - .kokoro/release/publish_javadoc11.sh | 63 - .kokoro/release/snapshot.cfg | 6 - .kokoro/release/snapshot.sh | 33 - .kokoro/release/stage.cfg | 19 - .kokoro/release/stage.sh | 47 - .kokoro/requirements.in | 33 - .kokoro/requirements.txt | 456 - .kokoro/trampoline.sh | 26 - .repo-metadata.json | 17 - CHANGELOG.md | 456 - codecov.yaml | 4 - google-analytics-admin-bom/pom.xml | 95 - .../clirr-ignored-differences.xml | 54 - google-analytics-admin/pom.xml | 135 - .../v1alpha/AnalyticsAdminServiceClient.java | 11122 ---------------- .../AnalyticsAdminServiceSettings.java | 1261 -- .../admin/v1alpha/gapic_metadata.json | 255 - .../analytics/admin/v1alpha/package-info.java | 44 - .../stub/AnalyticsAdminServiceStub.java | 644 - .../AnalyticsAdminServiceStubSettings.java | 3716 ------ ...cAnalyticsAdminServiceCallableFactory.java | 115 - .../stub/GrpcAnalyticsAdminServiceStub.java | 3218 ----- ...nAnalyticsAdminServiceCallableFactory.java | 105 - .../HttpJsonAnalyticsAdminServiceStub.java | 4970 ------- .../v1beta/AnalyticsAdminServiceClient.java | 6942 ---------- .../v1beta/AnalyticsAdminServiceSettings.java | 799 -- .../admin/v1beta/gapic_metadata.json | 159 - .../analytics/admin/v1beta/package-info.java | 44 - .../stub/AnalyticsAdminServiceStub.java | 393 - .../AnalyticsAdminServiceStubSettings.java | 2393 ---- ...cAnalyticsAdminServiceCallableFactory.java | 115 - .../stub/GrpcAnalyticsAdminServiceStub.java | 1920 --- ...nAnalyticsAdminServiceCallableFactory.java | 105 - .../HttpJsonAnalyticsAdminServiceStub.java | 2964 ---- ...alyticsAdminServiceClientHttpJsonTest.java | 6808 ---------- .../AnalyticsAdminServiceClientTest.java | 5958 --------- .../v1alpha/MockAnalyticsAdminService.java | 59 - .../MockAnalyticsAdminServiceImpl.java | 1746 --- ...alyticsAdminServiceClientHttpJsonTest.java | 4094 ------ .../AnalyticsAdminServiceClientTest.java | 3563 ----- .../v1beta/MockAnalyticsAdminService.java | 59 - .../v1beta/MockAnalyticsAdminServiceImpl.java | 1060 -- .../clirr-ignored-differences.xml | 24 - grpc-google-analytics-admin-v1alpha/pom.xml | 65 - .../v1alpha/AnalyticsAdminServiceGrpc.java | 10422 --------------- grpc-google-analytics-admin-v1beta/pom.xml | 65 - .../v1beta/AnalyticsAdminServiceGrpc.java | 6139 --------- java.header | 15 - license-checks.xml | 10 - pom.xml | 199 - .../clirr-ignored-differences.xml | 131 - proto-google-analytics-admin-v1alpha/pom.xml | 42 - .../admin/v1alpha/AccessBetweenFilter.java | 973 -- .../v1alpha/AccessBetweenFilterOrBuilder.java | 95 - .../admin/v1alpha/AccessDateRange.java | 835 -- .../v1alpha/AccessDateRangeOrBuilder.java | 87 - .../admin/v1alpha/AccessDimension.java | 640 - .../admin/v1alpha/AccessDimensionHeader.java | 622 - .../AccessDimensionHeaderOrBuilder.java | 50 - .../v1alpha/AccessDimensionOrBuilder.java | 56 - .../admin/v1alpha/AccessDimensionValue.java | 623 - .../AccessDimensionValueOrBuilder.java | 52 - .../analytics/admin/v1alpha/AccessFilter.java | 1902 --- .../admin/v1alpha/AccessFilterExpression.java | 1752 --- .../v1alpha/AccessFilterExpressionList.java | 951 -- .../AccessFilterExpressionListOrBuilder.java | 78 - .../AccessFilterExpressionOrBuilder.java | 171 - .../admin/v1alpha/AccessFilterOrBuilder.java | 192 - .../admin/v1alpha/AccessInListFilter.java | 802 -- .../v1alpha/AccessInListFilterOrBuilder.java | 89 - .../analytics/admin/v1alpha/AccessMetric.java | 638 - .../admin/v1alpha/AccessMetricHeader.java | 622 - .../v1alpha/AccessMetricHeaderOrBuilder.java | 50 - .../admin/v1alpha/AccessMetricOrBuilder.java | 56 - .../admin/v1alpha/AccessMetricValue.java | 615 - .../v1alpha/AccessMetricValueOrBuilder.java | 50 - .../admin/v1alpha/AccessNumericFilter.java | 1089 -- .../v1alpha/AccessNumericFilterOrBuilder.java | 85 - .../admin/v1alpha/AccessOrderBy.java | 2911 ---- .../admin/v1alpha/AccessOrderByOrBuilder.java | 112 - .../analytics/admin/v1alpha/AccessQuota.java | 1600 --- .../admin/v1alpha/AccessQuotaOrBuilder.java | 181 - .../admin/v1alpha/AccessQuotaStatus.java | 618 - .../v1alpha/AccessQuotaStatusOrBuilder.java | 51 - .../admin/v1alpha/AccessReportProto.java | 393 - .../analytics/admin/v1alpha/AccessRow.java | 1515 --- .../admin/v1alpha/AccessRowOrBuilder.java | 145 - .../admin/v1alpha/AccessStringFilter.java | 1112 -- .../v1alpha/AccessStringFilterOrBuilder.java | 88 - .../analytics/admin/v1alpha/Account.java | 1647 --- .../analytics/admin/v1alpha/AccountName.java | 168 - .../admin/v1alpha/AccountOrBuilder.java | 194 - .../admin/v1alpha/AccountSummary.java | 1508 --- .../v1alpha/AccountSummaryOrBuilder.java | 161 - .../AcknowledgeUserDataCollectionRequest.java | 866 -- ...dgeUserDataCollectionRequestOrBuilder.java | 91 - ...AcknowledgeUserDataCollectionResponse.java | 454 - ...geUserDataCollectionResponseOrBuilder.java | 24 - .../analytics/admin/v1alpha/ActionType.java | 198 - .../analytics/admin/v1alpha/ActorType.java | 199 - .../admin/v1alpha/AnalyticsAdminProto.java | 2150 --- ...Video360AdvertiserLinkProposalRequest.java | 696 - ...dvertiserLinkProposalRequestOrBuilder.java | 56 - ...ideo360AdvertiserLinkProposalResponse.java | 817 -- ...vertiserLinkProposalResponseOrBuilder.java | 71 - .../admin/v1alpha/ArchiveAudienceRequest.java | 630 - .../ArchiveAudienceRequestOrBuilder.java | 54 - .../ArchiveCustomDimensionRequest.java | 643 - ...rchiveCustomDimensionRequestOrBuilder.java | 56 - .../v1alpha/ArchiveCustomMetricRequest.java | 640 - .../ArchiveCustomMetricRequestOrBuilder.java | 56 - .../admin/v1alpha/AttributionSettings.java | 1889 --- .../v1alpha/AttributionSettingsName.java | 168 - .../v1alpha/AttributionSettingsOrBuilder.java | 156 - .../analytics/admin/v1alpha/Audience.java | 2420 ---- .../AudienceDimensionOrMetricFilter.java | 7827 ----------- ...ienceDimensionOrMetricFilterOrBuilder.java | 271 - .../admin/v1alpha/AudienceEventFilter.java | 1015 -- .../v1alpha/AudienceEventFilterOrBuilder.java | 114 - .../admin/v1alpha/AudienceEventTrigger.java | 952 -- .../AudienceEventTriggerOrBuilder.java | 79 - .../admin/v1alpha/AudienceFilterClause.java | 1480 -- .../AudienceFilterClauseOrBuilder.java | 129 - .../v1alpha/AudienceFilterExpression.java | 2162 --- .../v1alpha/AudienceFilterExpressionList.java | 1003 -- ...AudienceFilterExpressionListOrBuilder.java | 84 - .../AudienceFilterExpressionOrBuilder.java | 230 - .../admin/v1alpha/AudienceFilterScope.java | 207 - .../analytics/admin/v1alpha/AudienceName.java | 192 - .../admin/v1alpha/AudienceOrBuilder.java | 278 - .../admin/v1alpha/AudienceProto.java | 394 - .../admin/v1alpha/AudienceSequenceFilter.java | 3037 ----- .../AudienceSequenceFilterOrBuilder.java | 168 - .../admin/v1alpha/AudienceSimpleFilter.java | 910 -- .../AudienceSimpleFilterOrBuilder.java | 96 - .../admin/v1alpha/AuditUserLink.java | 1401 -- .../admin/v1alpha/AuditUserLinkOrBuilder.java | 197 - .../admin/v1alpha/AuditUserLinksRequest.java | 932 -- .../AuditUserLinksRequestOrBuilder.java | 101 - .../admin/v1alpha/AuditUserLinksResponse.java | 1140 -- .../AuditUserLinksResponseOrBuilder.java | 109 - .../v1alpha/BatchCreateUserLinksRequest.java | 1331 -- .../BatchCreateUserLinksRequestOrBuilder.java | 142 - .../v1alpha/BatchCreateUserLinksResponse.java | 935 -- ...BatchCreateUserLinksResponseOrBuilder.java | 77 - .../v1alpha/BatchDeleteUserLinksRequest.java | 1232 -- .../BatchDeleteUserLinksRequestOrBuilder.java | 127 - .../v1alpha/BatchGetUserLinksRequest.java | 976 -- .../BatchGetUserLinksRequestOrBuilder.java | 127 - .../v1alpha/BatchGetUserLinksResponse.java | 932 -- .../BatchGetUserLinksResponseOrBuilder.java | 77 - .../v1alpha/BatchUpdateUserLinksRequest.java | 1232 -- .../BatchUpdateUserLinksRequestOrBuilder.java | 127 - .../v1alpha/BatchUpdateUserLinksResponse.java | 935 -- ...BatchUpdateUserLinksResponseOrBuilder.java | 77 - ...Video360AdvertiserLinkProposalRequest.java | 693 - ...dvertiserLinkProposalRequestOrBuilder.java | 56 - .../admin/v1alpha/ChangeHistoryChange.java | 6896 ---------- .../v1alpha/ChangeHistoryChangeOrBuilder.java | 167 - .../admin/v1alpha/ChangeHistoryEvent.java | 1847 --- .../v1alpha/ChangeHistoryEventOrBuilder.java | 210 - .../v1alpha/ChangeHistoryResourceType.java | 465 - .../admin/v1alpha/ConversionEvent.java | 1293 -- .../admin/v1alpha/ConversionEventName.java | 198 - .../v1alpha/ConversionEventOrBuilder.java | 148 - .../admin/v1alpha/CreateAudienceRequest.java | 922 -- .../CreateAudienceRequestOrBuilder.java | 95 - .../v1alpha/CreateConversionEventRequest.java | 936 -- ...CreateConversionEventRequestOrBuilder.java | 97 - .../v1alpha/CreateCustomDimensionRequest.java | 929 -- ...CreateCustomDimensionRequestOrBuilder.java | 95 - .../v1alpha/CreateCustomMetricRequest.java | 925 -- .../CreateCustomMetricRequestOrBuilder.java | 95 - .../v1alpha/CreateDataStreamRequest.java | 922 -- .../CreateDataStreamRequestOrBuilder.java | 95 - ...Video360AdvertiserLinkProposalRequest.java | 1001 -- ...dvertiserLinkProposalRequestOrBuilder.java | 97 - ...eDisplayVideo360AdvertiserLinkRequest.java | 965 -- ...ideo360AdvertiserLinkRequestOrBuilder.java | 97 - .../v1alpha/CreateFirebaseLinkRequest.java | 932 -- .../CreateFirebaseLinkRequestOrBuilder.java | 97 - .../v1alpha/CreateGoogleAdsLinkRequest.java | 925 -- .../CreateGoogleAdsLinkRequestOrBuilder.java | 95 - ...reateMeasurementProtocolSecretRequest.java | 960 -- ...urementProtocolSecretRequestOrBuilder.java | 98 - .../admin/v1alpha/CreatePropertyRequest.java | 741 - .../CreatePropertyRequestOrBuilder.java | 69 - .../admin/v1alpha/CreateUserLinkRequest.java | 1029 -- .../CreateUserLinkRequestOrBuilder.java | 109 - .../admin/v1alpha/CustomDimension.java | 1672 --- .../admin/v1alpha/CustomDimensionName.java | 198 - .../v1alpha/CustomDimensionOrBuilder.java | 195 - .../analytics/admin/v1alpha/CustomMetric.java | 2678 ---- .../admin/v1alpha/CustomMetricName.java | 192 - .../admin/v1alpha/CustomMetricOrBuilder.java | 292 - .../admin/v1alpha/DataRetentionSettings.java | 1130 -- .../v1alpha/DataRetentionSettingsName.java | 169 - .../DataRetentionSettingsOrBuilder.java | 96 - .../admin/v1alpha/DataSharingSettings.java | 1123 -- .../v1alpha/DataSharingSettingsName.java | 168 - .../v1alpha/DataSharingSettingsOrBuilder.java | 123 - .../analytics/admin/v1alpha/DataStream.java | 5631 -------- .../admin/v1alpha/DataStreamName.java | 192 - .../admin/v1alpha/DataStreamOrBuilder.java | 315 - .../admin/v1alpha/DeleteAccountRequest.java | 644 - .../DeleteAccountRequestOrBuilder.java | 58 - .../v1alpha/DeleteConversionEventRequest.java | 650 - ...DeleteConversionEventRequestOrBuilder.java | 58 - .../v1alpha/DeleteDataStreamRequest.java | 637 - .../DeleteDataStreamRequestOrBuilder.java | 56 - ...Video360AdvertiserLinkProposalRequest.java | 693 - ...dvertiserLinkProposalRequestOrBuilder.java | 56 - ...eDisplayVideo360AdvertiserLinkRequest.java | 664 - ...ideo360AdvertiserLinkRequestOrBuilder.java | 56 - .../v1alpha/DeleteFirebaseLinkRequest.java | 640 - .../DeleteFirebaseLinkRequestOrBuilder.java | 56 - .../v1alpha/DeleteGoogleAdsLinkRequest.java | 633 - .../DeleteGoogleAdsLinkRequestOrBuilder.java | 54 - ...eleteMeasurementProtocolSecretRequest.java | 663 - ...urementProtocolSecretRequestOrBuilder.java | 58 - .../admin/v1alpha/DeletePropertyRequest.java | 644 - .../DeletePropertyRequestOrBuilder.java | 58 - .../admin/v1alpha/DeleteUserLinkRequest.java | 630 - .../DeleteUserLinkRequestOrBuilder.java | 54 - .../DisplayVideo360AdvertiserLink.java | 1950 --- .../DisplayVideo360AdvertiserLinkName.java | 208 - ...isplayVideo360AdvertiserLinkOrBuilder.java | 245 - ...DisplayVideo360AdvertiserLinkProposal.java | 2476 ---- ...layVideo360AdvertiserLinkProposalName.java | 219 - ...deo360AdvertiserLinkProposalOrBuilder.java | 320 - .../analytics/admin/v1alpha/FirebaseLink.java | 1112 -- .../admin/v1alpha/FirebaseLinkName.java | 192 - .../admin/v1alpha/FirebaseLinkOrBuilder.java | 123 - .../admin/v1alpha/GetAccountRequest.java | 643 - .../v1alpha/GetAccountRequestOrBuilder.java | 58 - .../GetAttributionSettingsRequest.java | 643 - ...etAttributionSettingsRequestOrBuilder.java | 56 - .../admin/v1alpha/GetAudienceRequest.java | 637 - .../v1alpha/GetAudienceRequestOrBuilder.java | 56 - .../v1alpha/GetConversionEventRequest.java | 647 - .../GetConversionEventRequestOrBuilder.java | 58 - .../v1alpha/GetCustomDimensionRequest.java | 640 - .../GetCustomDimensionRequestOrBuilder.java | 56 - .../admin/v1alpha/GetCustomMetricRequest.java | 637 - .../GetCustomMetricRequestOrBuilder.java | 56 - .../GetDataRetentionSettingsRequest.java | 662 - ...DataRetentionSettingsRequestOrBuilder.java | 60 - .../GetDataSharingSettingsRequest.java | 650 - ...etDataSharingSettingsRequestOrBuilder.java | 58 - .../admin/v1alpha/GetDataStreamRequest.java | 637 - .../GetDataStreamRequestOrBuilder.java | 56 - ...Video360AdvertiserLinkProposalRequest.java | 677 - ...dvertiserLinkProposalRequestOrBuilder.java | 56 - ...tDisplayVideo360AdvertiserLinkRequest.java | 661 - ...ideo360AdvertiserLinkRequestOrBuilder.java | 56 - .../v1alpha/GetGlobalSiteTagRequest.java | 651 - .../GetGlobalSiteTagRequestOrBuilder.java | 60 - .../GetGoogleSignalsSettingsRequest.java | 648 - ...GoogleSignalsSettingsRequestOrBuilder.java | 56 - .../GetMeasurementProtocolSecretRequest.java | 657 - ...urementProtocolSecretRequestOrBuilder.java | 58 - .../admin/v1alpha/GetPropertyRequest.java | 644 - .../v1alpha/GetPropertyRequestOrBuilder.java | 58 - .../admin/v1alpha/GetUserLinkRequest.java | 630 - .../v1alpha/GetUserLinkRequestOrBuilder.java | 54 - .../admin/v1alpha/GlobalSiteTag.java | 816 -- .../admin/v1alpha/GlobalSiteTagName.java | 193 - .../admin/v1alpha/GlobalSiteTagOrBuilder.java | 81 - .../admin/v1alpha/GoogleAdsLink.java | 1952 --- .../admin/v1alpha/GoogleAdsLinkName.java | 194 - .../admin/v1alpha/GoogleAdsLinkOrBuilder.java | 237 - .../admin/v1alpha/GoogleSignalsConsent.java | 184 - .../admin/v1alpha/GoogleSignalsSettings.java | 960 -- .../v1alpha/GoogleSignalsSettingsName.java | 169 - .../GoogleSignalsSettingsOrBuilder.java | 108 - .../admin/v1alpha/GoogleSignalsState.java | 181 - .../admin/v1alpha/IndustryCategory.java | 704 - .../LinkProposalInitiatingProduct.java | 181 - .../admin/v1alpha/LinkProposalState.java | 282 - .../v1alpha/LinkProposalStatusDetails.java | 970 -- .../LinkProposalStatusDetailsOrBuilder.java | 109 - .../v1alpha/ListAccountSummariesRequest.java | 745 -- .../ListAccountSummariesRequestOrBuilder.java | 72 - .../v1alpha/ListAccountSummariesResponse.java | 1134 -- ...ListAccountSummariesResponseOrBuilder.java | 105 - .../admin/v1alpha/ListAccountsRequest.java | 839 -- .../v1alpha/ListAccountsRequestOrBuilder.java | 87 - .../admin/v1alpha/ListAccountsResponse.java | 1112 -- .../ListAccountsResponseOrBuilder.java | 104 - .../admin/v1alpha/ListAudiencesRequest.java | 928 -- .../ListAudiencesRequestOrBuilder.java | 100 - .../admin/v1alpha/ListAudiencesResponse.java | 1114 -- .../ListAudiencesResponseOrBuilder.java | 104 - .../v1alpha/ListConversionEventsRequest.java | 940 -- .../ListConversionEventsRequestOrBuilder.java | 102 - .../v1alpha/ListConversionEventsResponse.java | 1134 -- ...ListConversionEventsResponseOrBuilder.java | 105 - .../v1alpha/ListCustomDimensionsRequest.java | 933 -- .../ListCustomDimensionsRequestOrBuilder.java | 100 - .../v1alpha/ListCustomDimensionsResponse.java | 1134 -- ...ListCustomDimensionsResponseOrBuilder.java | 105 - .../v1alpha/ListCustomMetricsRequest.java | 928 -- .../ListCustomMetricsRequestOrBuilder.java | 100 - .../v1alpha/ListCustomMetricsResponse.java | 1128 -- .../ListCustomMetricsResponseOrBuilder.java | 104 - .../admin/v1alpha/ListDataStreamsRequest.java | 928 -- .../ListDataStreamsRequestOrBuilder.java | 100 - .../v1alpha/ListDataStreamsResponse.java | 1115 -- .../ListDataStreamsResponseOrBuilder.java | 104 - ...ideo360AdvertiserLinkProposalsRequest.java | 984 -- ...vertiserLinkProposalsRequestOrBuilder.java | 104 - ...deo360AdvertiserLinkProposalsResponse.java | 1261 -- ...ertiserLinkProposalsResponseOrBuilder.java | 119 - ...DisplayVideo360AdvertiserLinksRequest.java | 961 -- ...deo360AdvertiserLinksRequestOrBuilder.java | 102 - ...isplayVideo360AdvertiserLinksResponse.java | 1223 -- ...eo360AdvertiserLinksResponseOrBuilder.java | 118 - .../v1alpha/ListFirebaseLinksRequest.java | 939 -- .../ListFirebaseLinksRequestOrBuilder.java | 103 - .../v1alpha/ListFirebaseLinksResponse.java | 1142 -- .../ListFirebaseLinksResponseOrBuilder.java | 108 - .../v1alpha/ListGoogleAdsLinksRequest.java | 931 -- .../ListGoogleAdsLinksRequestOrBuilder.java | 100 - .../v1alpha/ListGoogleAdsLinksResponse.java | 1129 -- .../ListGoogleAdsLinksResponseOrBuilder.java | 104 - ...ListMeasurementProtocolSecretsRequest.java | 959 -- ...rementProtocolSecretsRequestOrBuilder.java | 104 - ...istMeasurementProtocolSecretsResponse.java | 1209 -- ...ementProtocolSecretsResponseOrBuilder.java | 117 - .../admin/v1alpha/ListPropertiesRequest.java | 1115 -- .../ListPropertiesRequestOrBuilder.java | 140 - .../admin/v1alpha/ListPropertiesResponse.java | 1114 -- .../ListPropertiesResponseOrBuilder.java | 104 - .../admin/v1alpha/ListUserLinksRequest.java | 932 -- .../ListUserLinksRequestOrBuilder.java | 101 - .../admin/v1alpha/ListUserLinksResponse.java | 1114 -- .../ListUserLinksResponseOrBuilder.java | 104 - .../v1alpha/MeasurementProtocolSecret.java | 1010 -- .../MeasurementProtocolSecretName.java | 241 - .../MeasurementProtocolSecretOrBuilder.java | 110 - .../analytics/admin/v1alpha/NumericValue.java | 785 -- .../admin/v1alpha/NumericValueOrBuilder.java | 77 - .../analytics/admin/v1alpha/Property.java | 3317 ----- .../analytics/admin/v1alpha/PropertyName.java | 168 - .../admin/v1alpha/PropertyOrBuilder.java | 463 - .../admin/v1alpha/PropertySummary.java | 1157 -- .../v1alpha/PropertySummaryOrBuilder.java | 135 - .../analytics/admin/v1alpha/PropertyType.java | 198 - .../ProvisionAccountTicketRequest.java | 896 -- ...rovisionAccountTicketRequestOrBuilder.java | 87 - .../ProvisionAccountTicketResponse.java | 625 - ...ovisionAccountTicketResponseOrBuilder.java | 50 - .../admin/v1alpha/ResourcesProto.java | 800 -- .../admin/v1alpha/RunAccessReportRequest.java | 3916 ------ .../RunAccessReportRequestOrBuilder.java | 471 - .../v1alpha/RunAccessReportResponse.java | 2438 ---- .../RunAccessReportResponseOrBuilder.java | 263 - .../SearchChangeHistoryEventsRequest.java | 2869 ---- ...chChangeHistoryEventsRequestOrBuilder.java | 422 - .../SearchChangeHistoryEventsResponse.java | 1167 -- ...hChangeHistoryEventsResponseOrBuilder.java | 111 - .../analytics/admin/v1alpha/ServiceLevel.java | 176 - .../admin/v1alpha/UpdateAccountRequest.java | 1039 -- .../UpdateAccountRequestOrBuilder.java | 113 - .../UpdateAttributionSettingsRequest.java | 1058 -- ...teAttributionSettingsRequestOrBuilder.java | 113 - .../admin/v1alpha/UpdateAudienceRequest.java | 1040 -- .../UpdateAudienceRequestOrBuilder.java | 113 - .../v1alpha/UpdateCustomDimensionRequest.java | 1011 -- ...UpdateCustomDimensionRequestOrBuilder.java | 104 - .../v1alpha/UpdateCustomMetricRequest.java | 1007 -- .../UpdateCustomMetricRequestOrBuilder.java | 104 - .../UpdateDataRetentionSettingsRequest.java | 1059 -- ...DataRetentionSettingsRequestOrBuilder.java | 114 - .../v1alpha/UpdateDataStreamRequest.java | 1004 -- .../UpdateDataStreamRequestOrBuilder.java | 104 - ...eDisplayVideo360AdvertiserLinkRequest.java | 1071 -- ...ideo360AdvertiserLinkRequestOrBuilder.java | 112 - .../v1alpha/UpdateGoogleAdsLinkRequest.java | 1007 -- .../UpdateGoogleAdsLinkRequestOrBuilder.java | 104 - .../UpdateGoogleSignalsSettingsRequest.java | 1059 -- ...GoogleSignalsSettingsRequestOrBuilder.java | 114 - ...pdateMeasurementProtocolSecretRequest.java | 1023 -- ...urementProtocolSecretRequestOrBuilder.java | 102 - .../admin/v1alpha/UpdatePropertyRequest.java | 1052 -- .../UpdatePropertyRequestOrBuilder.java | 116 - .../admin/v1alpha/UpdateUserLinkRequest.java | 729 - .../UpdateUserLinkRequestOrBuilder.java | 66 - .../analytics/admin/v1alpha/UserLink.java | 1210 -- .../analytics/admin/v1alpha/UserLinkName.java | 294 - .../admin/v1alpha/UserLinkOrBuilder.java | 170 - .../admin/v1alpha/access_report.proto | 328 - .../admin/v1alpha/analytics_admin.proto | 2333 ---- .../analytics/admin/v1alpha/audience.proto | 419 - .../analytics/admin/v1alpha/resources.proto | 1300 -- .../clirr-ignored-differences.xml | 19 - proto-google-analytics-admin-v1beta/pom.xml | 42 - .../analytics/admin/v1beta/Account.java | 1647 --- .../analytics/admin/v1beta/AccountName.java | 168 - .../admin/v1beta/AccountOrBuilder.java | 194 - .../admin/v1beta/AccountSummary.java | 1507 --- .../admin/v1beta/AccountSummaryOrBuilder.java | 161 - .../AcknowledgeUserDataCollectionRequest.java | 863 -- ...dgeUserDataCollectionRequestOrBuilder.java | 91 - ...AcknowledgeUserDataCollectionResponse.java | 453 - ...geUserDataCollectionResponseOrBuilder.java | 24 - .../analytics/admin/v1beta/ActionType.java | 198 - .../analytics/admin/v1beta/ActorType.java | 199 - .../admin/v1beta/AnalyticsAdminProto.java | 1256 -- .../v1beta/ArchiveCustomDimensionRequest.java | 643 - ...rchiveCustomDimensionRequestOrBuilder.java | 56 - .../v1beta/ArchiveCustomMetricRequest.java | 640 - .../ArchiveCustomMetricRequestOrBuilder.java | 56 - .../admin/v1beta/ChangeHistoryChange.java | 4691 ------- .../v1beta/ChangeHistoryChangeOrBuilder.java | 167 - .../admin/v1beta/ChangeHistoryEvent.java | 1846 --- .../v1beta/ChangeHistoryEventOrBuilder.java | 210 - .../v1beta/ChangeHistoryResourceType.java | 399 - .../admin/v1beta/ConversionEvent.java | 1293 -- .../admin/v1beta/ConversionEventName.java | 198 - .../v1beta/ConversionEventOrBuilder.java | 148 - .../v1beta/CreateConversionEventRequest.java | 935 -- ...CreateConversionEventRequestOrBuilder.java | 97 - .../v1beta/CreateCustomDimensionRequest.java | 928 -- ...CreateCustomDimensionRequestOrBuilder.java | 95 - .../v1beta/CreateCustomMetricRequest.java | 922 -- .../CreateCustomMetricRequestOrBuilder.java | 95 - .../admin/v1beta/CreateDataStreamRequest.java | 922 -- .../CreateDataStreamRequestOrBuilder.java | 95 - .../v1beta/CreateFirebaseLinkRequest.java | 929 -- .../CreateFirebaseLinkRequestOrBuilder.java | 97 - .../v1beta/CreateGoogleAdsLinkRequest.java | 925 -- .../CreateGoogleAdsLinkRequestOrBuilder.java | 95 - ...reateMeasurementProtocolSecretRequest.java | 958 -- ...urementProtocolSecretRequestOrBuilder.java | 98 - .../admin/v1beta/CreatePropertyRequest.java | 740 - .../CreatePropertyRequestOrBuilder.java | 69 - .../admin/v1beta/CustomDimension.java | 1672 --- .../admin/v1beta/CustomDimensionName.java | 198 - .../v1beta/CustomDimensionOrBuilder.java | 195 - .../analytics/admin/v1beta/CustomMetric.java | 2675 ---- .../admin/v1beta/CustomMetricName.java | 192 - .../admin/v1beta/CustomMetricOrBuilder.java | 292 - .../admin/v1beta/DataRetentionSettings.java | 1130 -- .../v1beta/DataRetentionSettingsName.java | 169 - .../DataRetentionSettingsOrBuilder.java | 95 - .../admin/v1beta/DataSharingSettings.java | 1123 -- .../admin/v1beta/DataSharingSettingsName.java | 168 - .../v1beta/DataSharingSettingsOrBuilder.java | 123 - .../analytics/admin/v1beta/DataStream.java | 5630 -------- .../admin/v1beta/DataStreamName.java | 192 - .../admin/v1beta/DataStreamOrBuilder.java | 315 - .../admin/v1beta/DeleteAccountRequest.java | 644 - .../v1beta/DeleteAccountRequestOrBuilder.java | 58 - .../v1beta/DeleteConversionEventRequest.java | 649 - ...DeleteConversionEventRequestOrBuilder.java | 58 - .../admin/v1beta/DeleteDataStreamRequest.java | 637 - .../DeleteDataStreamRequestOrBuilder.java | 56 - .../v1beta/DeleteFirebaseLinkRequest.java | 637 - .../DeleteFirebaseLinkRequestOrBuilder.java | 56 - .../v1beta/DeleteGoogleAdsLinkRequest.java | 633 - .../DeleteGoogleAdsLinkRequestOrBuilder.java | 54 - ...eleteMeasurementProtocolSecretRequest.java | 661 - ...urementProtocolSecretRequestOrBuilder.java | 58 - .../admin/v1beta/DeletePropertyRequest.java | 644 - .../DeletePropertyRequestOrBuilder.java | 58 - .../analytics/admin/v1beta/FirebaseLink.java | 1111 -- .../admin/v1beta/FirebaseLinkName.java | 192 - .../admin/v1beta/FirebaseLinkOrBuilder.java | 123 - .../admin/v1beta/GetAccountRequest.java | 643 - .../v1beta/GetAccountRequestOrBuilder.java | 58 - .../v1beta/GetConversionEventRequest.java | 644 - .../GetConversionEventRequestOrBuilder.java | 58 - .../v1beta/GetCustomDimensionRequest.java | 637 - .../GetCustomDimensionRequestOrBuilder.java | 56 - .../admin/v1beta/GetCustomMetricRequest.java | 637 - .../GetCustomMetricRequestOrBuilder.java | 56 - .../GetDataRetentionSettingsRequest.java | 660 - ...DataRetentionSettingsRequestOrBuilder.java | 60 - .../v1beta/GetDataSharingSettingsRequest.java | 650 - ...etDataSharingSettingsRequestOrBuilder.java | 58 - .../admin/v1beta/GetDataStreamRequest.java | 637 - .../v1beta/GetDataStreamRequestOrBuilder.java | 56 - .../GetMeasurementProtocolSecretRequest.java | 656 - ...urementProtocolSecretRequestOrBuilder.java | 58 - .../admin/v1beta/GetPropertyRequest.java | 643 - .../v1beta/GetPropertyRequestOrBuilder.java | 58 - .../analytics/admin/v1beta/GoogleAdsLink.java | 1952 --- .../admin/v1beta/GoogleAdsLinkName.java | 194 - .../admin/v1beta/GoogleAdsLinkOrBuilder.java | 237 - .../admin/v1beta/IndustryCategory.java | 704 - .../v1beta/ListAccountSummariesRequest.java | 743 -- .../ListAccountSummariesRequestOrBuilder.java | 72 - .../v1beta/ListAccountSummariesResponse.java | 1132 -- ...ListAccountSummariesResponseOrBuilder.java | 104 - .../admin/v1beta/ListAccountsRequest.java | 839 -- .../v1beta/ListAccountsRequestOrBuilder.java | 87 - .../admin/v1beta/ListAccountsResponse.java | 1112 -- .../v1beta/ListAccountsResponseOrBuilder.java | 104 - .../v1beta/ListConversionEventsRequest.java | 938 -- .../ListConversionEventsRequestOrBuilder.java | 102 - .../v1beta/ListConversionEventsResponse.java | 1133 -- ...ListConversionEventsResponseOrBuilder.java | 105 - .../v1beta/ListCustomDimensionsRequest.java | 931 -- .../ListCustomDimensionsRequestOrBuilder.java | 100 - .../v1beta/ListCustomDimensionsResponse.java | 1133 -- ...ListCustomDimensionsResponseOrBuilder.java | 105 - .../v1beta/ListCustomMetricsRequest.java | 928 -- .../ListCustomMetricsRequestOrBuilder.java | 100 - .../v1beta/ListCustomMetricsResponse.java | 1123 -- .../ListCustomMetricsResponseOrBuilder.java | 104 - .../admin/v1beta/ListDataStreamsRequest.java | 928 -- .../ListDataStreamsRequestOrBuilder.java | 100 - .../admin/v1beta/ListDataStreamsResponse.java | 1115 -- .../ListDataStreamsResponseOrBuilder.java | 104 - .../v1beta/ListFirebaseLinksRequest.java | 939 -- .../ListFirebaseLinksRequestOrBuilder.java | 103 - .../v1beta/ListFirebaseLinksResponse.java | 1137 -- .../ListFirebaseLinksResponseOrBuilder.java | 108 - .../v1beta/ListGoogleAdsLinksRequest.java | 928 -- .../ListGoogleAdsLinksRequestOrBuilder.java | 100 - .../v1beta/ListGoogleAdsLinksResponse.java | 1128 -- .../ListGoogleAdsLinksResponseOrBuilder.java | 104 - ...ListMeasurementProtocolSecretsRequest.java | 958 -- ...rementProtocolSecretsRequestOrBuilder.java | 104 - ...istMeasurementProtocolSecretsResponse.java | 1207 -- ...ementProtocolSecretsResponseOrBuilder.java | 117 - .../admin/v1beta/ListPropertiesRequest.java | 1115 -- .../ListPropertiesRequestOrBuilder.java | 140 - .../admin/v1beta/ListPropertiesResponse.java | 1114 -- .../ListPropertiesResponseOrBuilder.java | 104 - .../v1beta/MeasurementProtocolSecret.java | 1007 -- .../v1beta/MeasurementProtocolSecretName.java | 241 - .../MeasurementProtocolSecretOrBuilder.java | 110 - .../analytics/admin/v1beta/Property.java | 3317 ----- .../analytics/admin/v1beta/PropertyName.java | 168 - .../admin/v1beta/PropertyOrBuilder.java | 463 - .../admin/v1beta/PropertySummary.java | 1157 -- .../v1beta/PropertySummaryOrBuilder.java | 135 - .../analytics/admin/v1beta/PropertyType.java | 198 - .../v1beta/ProvisionAccountTicketRequest.java | 896 -- ...rovisionAccountTicketRequestOrBuilder.java | 87 - .../ProvisionAccountTicketResponse.java | 623 - ...ovisionAccountTicketResponseOrBuilder.java | 50 - .../admin/v1beta/ResourcesProto.java | 558 - .../SearchChangeHistoryEventsRequest.java | 2869 ---- ...chChangeHistoryEventsRequestOrBuilder.java | 421 - .../SearchChangeHistoryEventsResponse.java | 1165 -- ...hChangeHistoryEventsResponseOrBuilder.java | 110 - .../analytics/admin/v1beta/ServiceLevel.java | 176 - .../admin/v1beta/UpdateAccountRequest.java | 1039 -- .../v1beta/UpdateAccountRequestOrBuilder.java | 113 - .../v1beta/UpdateCustomDimensionRequest.java | 1010 -- ...UpdateCustomDimensionRequestOrBuilder.java | 104 - .../v1beta/UpdateCustomMetricRequest.java | 1004 -- .../UpdateCustomMetricRequestOrBuilder.java | 104 - .../UpdateDataRetentionSettingsRequest.java | 1059 -- ...DataRetentionSettingsRequestOrBuilder.java | 114 - .../admin/v1beta/UpdateDataStreamRequest.java | 1004 -- .../UpdateDataStreamRequestOrBuilder.java | 104 - .../v1beta/UpdateGoogleAdsLinkRequest.java | 1007 -- .../UpdateGoogleAdsLinkRequestOrBuilder.java | 104 - ...pdateMeasurementProtocolSecretRequest.java | 1021 -- ...urementProtocolSecretRequestOrBuilder.java | 102 - .../admin/v1beta/UpdatePropertyRequest.java | 1051 -- .../UpdatePropertyRequestOrBuilder.java | 116 - .../admin/v1beta/analytics_admin.proto | 1333 -- .../analytics/admin/v1beta/resources.proto | 905 -- renovate.json | 76 - samples/install-without-bom/pom.xml | 84 - samples/pom.xml | 55 - samples/snapshot/pom.xml | 83 - samples/snippets/pom.xml | 46 - .../analyticsadmin/QuickstartSample.java | 90 - .../analyticsadmin/QuickstartSampleTest.java | 58 - synth.metadata | 291 - versions.txt | 8 - 636 files changed, 404766 deletions(-) delete mode 100644 .github/CODEOWNERS delete mode 100644 .github/ISSUE_TEMPLATE/bug_report.md delete mode 100644 .github/ISSUE_TEMPLATE/feature_request.md delete mode 100644 .github/ISSUE_TEMPLATE/support_request.md delete mode 100644 .github/PULL_REQUEST_TEMPLATE.md delete mode 100644 .github/auto-label.yaml delete mode 100644 .github/blunderbuss.yml delete mode 100644 .github/generated-files-bot.yml delete mode 100644 .github/snippet-bot.yml delete mode 100644 .github/sync-repo-settings.yaml delete mode 100644 .github/trusted-contribution.yml delete mode 100644 .github/workflows/approve-readme.yaml delete mode 100644 .github/workflows/auto-release.yaml delete mode 100644 .github/workflows/ci.yaml delete mode 100644 .github/workflows/samples.yaml delete mode 100644 .gitignore delete mode 100644 .kokoro/build.bat delete mode 100755 .kokoro/build.sh delete mode 100755 .kokoro/coerce_logs.sh delete mode 100644 .kokoro/common.cfg delete mode 100644 .kokoro/common.sh delete mode 100644 .kokoro/continuous/common.cfg delete mode 100644 .kokoro/continuous/java8.cfg delete mode 100755 .kokoro/dependencies.sh delete mode 100644 .kokoro/nightly/common.cfg delete mode 100644 .kokoro/nightly/integration.cfg delete mode 100644 .kokoro/nightly/java11-integration.cfg delete mode 100644 .kokoro/nightly/java11.cfg delete mode 100644 .kokoro/nightly/java7.cfg delete mode 100644 .kokoro/nightly/java8-osx.cfg delete mode 100644 .kokoro/nightly/java8-win.cfg delete mode 100644 .kokoro/nightly/java8.cfg delete mode 100644 .kokoro/nightly/samples.cfg delete mode 100755 .kokoro/populate-secrets.sh delete mode 100644 .kokoro/presubmit/clirr.cfg delete mode 100644 .kokoro/presubmit/common.cfg delete mode 100644 .kokoro/presubmit/dependencies.cfg delete mode 100644 .kokoro/presubmit/graalvm-native-17.cfg delete mode 100644 .kokoro/presubmit/graalvm-native.cfg delete mode 100644 .kokoro/presubmit/integration.cfg delete mode 100644 .kokoro/presubmit/java11.cfg delete mode 100644 .kokoro/presubmit/java7.cfg delete mode 100644 .kokoro/presubmit/java8-osx.cfg delete mode 100644 .kokoro/presubmit/java8-win.cfg delete mode 100644 .kokoro/presubmit/java8.cfg delete mode 100644 .kokoro/presubmit/linkage-monitor.cfg delete mode 100644 .kokoro/presubmit/lint.cfg delete mode 100644 .kokoro/presubmit/samples.cfg delete mode 100755 .kokoro/readme.sh delete mode 100644 .kokoro/release/bump_snapshot.cfg delete mode 100644 .kokoro/release/common.cfg delete mode 100755 .kokoro/release/common.sh delete mode 100644 .kokoro/release/drop.cfg delete mode 100755 .kokoro/release/drop.sh delete mode 100644 .kokoro/release/promote.cfg delete mode 100755 .kokoro/release/promote.sh delete mode 100644 .kokoro/release/publish_javadoc.cfg delete mode 100755 .kokoro/release/publish_javadoc.sh delete mode 100644 .kokoro/release/publish_javadoc11.cfg delete mode 100755 .kokoro/release/publish_javadoc11.sh delete mode 100644 .kokoro/release/snapshot.cfg delete mode 100755 .kokoro/release/snapshot.sh delete mode 100644 .kokoro/release/stage.cfg delete mode 100755 .kokoro/release/stage.sh delete mode 100644 .kokoro/requirements.in delete mode 100644 .kokoro/requirements.txt delete mode 100644 .kokoro/trampoline.sh delete mode 100644 .repo-metadata.json delete mode 100644 CHANGELOG.md delete mode 100644 codecov.yaml delete mode 100644 google-analytics-admin-bom/pom.xml delete mode 100644 google-analytics-admin/clirr-ignored-differences.xml delete mode 100644 google-analytics-admin/pom.xml delete mode 100644 google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClient.java delete mode 100644 google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceSettings.java delete mode 100644 google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/gapic_metadata.json delete mode 100644 google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/package-info.java delete mode 100644 google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStub.java delete mode 100644 google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStubSettings.java delete mode 100644 google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/GrpcAnalyticsAdminServiceCallableFactory.java delete mode 100644 google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/GrpcAnalyticsAdminServiceStub.java delete mode 100644 google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/HttpJsonAnalyticsAdminServiceCallableFactory.java delete mode 100644 google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/HttpJsonAnalyticsAdminServiceStub.java delete mode 100644 google-analytics-admin/src/main/java/com/google/analytics/admin/v1beta/AnalyticsAdminServiceClient.java delete mode 100644 google-analytics-admin/src/main/java/com/google/analytics/admin/v1beta/AnalyticsAdminServiceSettings.java delete mode 100644 google-analytics-admin/src/main/java/com/google/analytics/admin/v1beta/gapic_metadata.json delete mode 100644 google-analytics-admin/src/main/java/com/google/analytics/admin/v1beta/package-info.java delete mode 100644 google-analytics-admin/src/main/java/com/google/analytics/admin/v1beta/stub/AnalyticsAdminServiceStub.java delete mode 100644 google-analytics-admin/src/main/java/com/google/analytics/admin/v1beta/stub/AnalyticsAdminServiceStubSettings.java delete mode 100644 google-analytics-admin/src/main/java/com/google/analytics/admin/v1beta/stub/GrpcAnalyticsAdminServiceCallableFactory.java delete mode 100644 google-analytics-admin/src/main/java/com/google/analytics/admin/v1beta/stub/GrpcAnalyticsAdminServiceStub.java delete mode 100644 google-analytics-admin/src/main/java/com/google/analytics/admin/v1beta/stub/HttpJsonAnalyticsAdminServiceCallableFactory.java delete mode 100644 google-analytics-admin/src/main/java/com/google/analytics/admin/v1beta/stub/HttpJsonAnalyticsAdminServiceStub.java delete mode 100644 google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClientHttpJsonTest.java delete mode 100644 google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClientTest.java delete mode 100644 google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/MockAnalyticsAdminService.java delete mode 100644 google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/MockAnalyticsAdminServiceImpl.java delete mode 100644 google-analytics-admin/src/test/java/com/google/analytics/admin/v1beta/AnalyticsAdminServiceClientHttpJsonTest.java delete mode 100644 google-analytics-admin/src/test/java/com/google/analytics/admin/v1beta/AnalyticsAdminServiceClientTest.java delete mode 100644 google-analytics-admin/src/test/java/com/google/analytics/admin/v1beta/MockAnalyticsAdminService.java delete mode 100644 google-analytics-admin/src/test/java/com/google/analytics/admin/v1beta/MockAnalyticsAdminServiceImpl.java delete mode 100644 grpc-google-analytics-admin-v1alpha/clirr-ignored-differences.xml delete mode 100644 grpc-google-analytics-admin-v1alpha/pom.xml delete mode 100644 grpc-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceGrpc.java delete mode 100644 grpc-google-analytics-admin-v1beta/pom.xml delete mode 100644 grpc-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AnalyticsAdminServiceGrpc.java delete mode 100644 java.header delete mode 100644 license-checks.xml delete mode 100644 pom.xml delete mode 100644 proto-google-analytics-admin-v1alpha/clirr-ignored-differences.xml delete mode 100644 proto-google-analytics-admin-v1alpha/pom.xml delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessBetweenFilter.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessBetweenFilterOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessDateRange.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessDateRangeOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessDimension.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessDimensionHeader.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessDimensionHeaderOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessDimensionOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessDimensionValue.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessDimensionValueOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessFilter.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessFilterExpression.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessFilterExpressionList.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessFilterExpressionListOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessFilterExpressionOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessFilterOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessInListFilter.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessInListFilterOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessMetric.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessMetricHeader.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessMetricHeaderOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessMetricOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessMetricValue.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessMetricValueOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessNumericFilter.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessNumericFilterOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessOrderBy.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessOrderByOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessQuota.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessQuotaOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessQuotaStatus.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessQuotaStatusOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessReportProto.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessRow.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessRowOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessStringFilter.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessStringFilterOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/Account.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccountName.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccountOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccountSummary.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccountSummaryOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AcknowledgeUserDataCollectionRequest.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AcknowledgeUserDataCollectionRequestOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AcknowledgeUserDataCollectionResponse.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AcknowledgeUserDataCollectionResponseOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ActionType.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ActorType.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminProto.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ApproveDisplayVideo360AdvertiserLinkProposalRequest.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ApproveDisplayVideo360AdvertiserLinkProposalRequestOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ApproveDisplayVideo360AdvertiserLinkProposalResponse.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ApproveDisplayVideo360AdvertiserLinkProposalResponseOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ArchiveAudienceRequest.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ArchiveAudienceRequestOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ArchiveCustomDimensionRequest.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ArchiveCustomDimensionRequestOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ArchiveCustomMetricRequest.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ArchiveCustomMetricRequestOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AttributionSettings.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AttributionSettingsName.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AttributionSettingsOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/Audience.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceDimensionOrMetricFilter.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceDimensionOrMetricFilterOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceEventFilter.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceEventFilterOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceEventTrigger.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceEventTriggerOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceFilterClause.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceFilterClauseOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceFilterExpression.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceFilterExpressionList.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceFilterExpressionListOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceFilterExpressionOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceFilterScope.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceName.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceProto.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceSequenceFilter.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceSequenceFilterOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceSimpleFilter.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceSimpleFilterOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AuditUserLink.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AuditUserLinkOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AuditUserLinksRequest.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AuditUserLinksRequestOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AuditUserLinksResponse.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AuditUserLinksResponseOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchCreateUserLinksRequest.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchCreateUserLinksRequestOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchCreateUserLinksResponse.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchCreateUserLinksResponseOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchDeleteUserLinksRequest.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchDeleteUserLinksRequestOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchGetUserLinksRequest.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchGetUserLinksRequestOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchGetUserLinksResponse.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchGetUserLinksResponseOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchUpdateUserLinksRequest.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchUpdateUserLinksRequestOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchUpdateUserLinksResponse.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchUpdateUserLinksResponseOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CancelDisplayVideo360AdvertiserLinkProposalRequest.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CancelDisplayVideo360AdvertiserLinkProposalRequestOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryChange.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryChangeOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryEvent.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryEventOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryResourceType.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ConversionEvent.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ConversionEventName.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ConversionEventOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateAudienceRequest.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateAudienceRequestOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateConversionEventRequest.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateConversionEventRequestOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateCustomDimensionRequest.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateCustomDimensionRequestOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateCustomMetricRequest.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateCustomMetricRequestOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateDataStreamRequest.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateDataStreamRequestOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateDisplayVideo360AdvertiserLinkProposalRequest.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateDisplayVideo360AdvertiserLinkProposalRequestOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateDisplayVideo360AdvertiserLinkRequest.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateDisplayVideo360AdvertiserLinkRequestOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateFirebaseLinkRequest.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateFirebaseLinkRequestOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateGoogleAdsLinkRequest.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateGoogleAdsLinkRequestOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateMeasurementProtocolSecretRequest.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateMeasurementProtocolSecretRequestOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreatePropertyRequest.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreatePropertyRequestOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateUserLinkRequest.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateUserLinkRequestOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomDimension.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomDimensionName.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomDimensionOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomMetric.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomMetricName.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomMetricOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataRetentionSettings.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataRetentionSettingsName.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataRetentionSettingsOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataSharingSettings.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataSharingSettingsName.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataSharingSettingsOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataStream.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataStreamName.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataStreamOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteAccountRequest.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteAccountRequestOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteConversionEventRequest.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteConversionEventRequestOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteDataStreamRequest.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteDataStreamRequestOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteDisplayVideo360AdvertiserLinkProposalRequest.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteDisplayVideo360AdvertiserLinkProposalRequestOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteDisplayVideo360AdvertiserLinkRequest.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteDisplayVideo360AdvertiserLinkRequestOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteFirebaseLinkRequest.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteFirebaseLinkRequestOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteGoogleAdsLinkRequest.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteGoogleAdsLinkRequestOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteMeasurementProtocolSecretRequest.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteMeasurementProtocolSecretRequestOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeletePropertyRequest.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeletePropertyRequestOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteUserLinkRequest.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteUserLinkRequestOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLink.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLinkName.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLinkOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLinkProposal.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLinkProposalName.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLinkProposalOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/FirebaseLink.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/FirebaseLinkName.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/FirebaseLinkOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetAccountRequest.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetAccountRequestOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetAttributionSettingsRequest.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetAttributionSettingsRequestOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetAudienceRequest.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetAudienceRequestOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetConversionEventRequest.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetConversionEventRequestOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetCustomDimensionRequest.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetCustomDimensionRequestOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetCustomMetricRequest.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetCustomMetricRequestOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDataRetentionSettingsRequest.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDataRetentionSettingsRequestOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDataSharingSettingsRequest.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDataSharingSettingsRequestOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDataStreamRequest.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDataStreamRequestOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDisplayVideo360AdvertiserLinkProposalRequest.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDisplayVideo360AdvertiserLinkProposalRequestOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDisplayVideo360AdvertiserLinkRequest.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDisplayVideo360AdvertiserLinkRequestOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetGlobalSiteTagRequest.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetGlobalSiteTagRequestOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetGoogleSignalsSettingsRequest.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetGoogleSignalsSettingsRequestOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetMeasurementProtocolSecretRequest.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetMeasurementProtocolSecretRequestOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetPropertyRequest.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetPropertyRequestOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetUserLinkRequest.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetUserLinkRequestOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GlobalSiteTag.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GlobalSiteTagName.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GlobalSiteTagOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleAdsLink.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleAdsLinkName.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleAdsLinkOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleSignalsConsent.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleSignalsSettings.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleSignalsSettingsName.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleSignalsSettingsOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleSignalsState.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/IndustryCategory.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/LinkProposalInitiatingProduct.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/LinkProposalState.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/LinkProposalStatusDetails.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/LinkProposalStatusDetailsOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountSummariesRequest.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountSummariesRequestOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountSummariesResponse.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountSummariesResponseOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountsRequest.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountsRequestOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountsResponse.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountsResponseOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAudiencesRequest.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAudiencesRequestOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAudiencesResponse.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAudiencesResponseOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListConversionEventsRequest.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListConversionEventsRequestOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListConversionEventsResponse.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListConversionEventsResponseOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomDimensionsRequest.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomDimensionsRequestOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomDimensionsResponse.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomDimensionsResponseOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomMetricsRequest.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomMetricsRequestOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomMetricsResponse.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomMetricsResponseOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDataStreamsRequest.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDataStreamsRequestOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDataStreamsResponse.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDataStreamsResponseOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDisplayVideo360AdvertiserLinkProposalsRequest.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDisplayVideo360AdvertiserLinkProposalsRequestOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDisplayVideo360AdvertiserLinkProposalsResponse.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDisplayVideo360AdvertiserLinkProposalsResponseOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDisplayVideo360AdvertiserLinksRequest.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDisplayVideo360AdvertiserLinksRequestOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDisplayVideo360AdvertiserLinksResponse.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDisplayVideo360AdvertiserLinksResponseOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListFirebaseLinksRequest.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListFirebaseLinksRequestOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListFirebaseLinksResponse.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListFirebaseLinksResponseOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListGoogleAdsLinksRequest.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListGoogleAdsLinksRequestOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListGoogleAdsLinksResponse.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListGoogleAdsLinksResponseOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListMeasurementProtocolSecretsRequest.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListMeasurementProtocolSecretsRequestOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListMeasurementProtocolSecretsResponse.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListMeasurementProtocolSecretsResponseOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListPropertiesRequest.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListPropertiesRequestOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListPropertiesResponse.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListPropertiesResponseOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListUserLinksRequest.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListUserLinksRequestOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListUserLinksResponse.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListUserLinksResponseOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/MeasurementProtocolSecret.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/MeasurementProtocolSecretName.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/MeasurementProtocolSecretOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/NumericValue.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/NumericValueOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/Property.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PropertyName.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PropertyOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PropertySummary.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PropertySummaryOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PropertyType.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ProvisionAccountTicketRequest.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ProvisionAccountTicketRequestOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ProvisionAccountTicketResponse.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ProvisionAccountTicketResponseOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ResourcesProto.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/RunAccessReportRequest.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/RunAccessReportRequestOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/RunAccessReportResponse.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/RunAccessReportResponseOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SearchChangeHistoryEventsRequest.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SearchChangeHistoryEventsRequestOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SearchChangeHistoryEventsResponse.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SearchChangeHistoryEventsResponseOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ServiceLevel.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateAccountRequest.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateAccountRequestOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateAttributionSettingsRequest.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateAttributionSettingsRequestOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateAudienceRequest.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateAudienceRequestOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateCustomDimensionRequest.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateCustomDimensionRequestOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateCustomMetricRequest.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateCustomMetricRequestOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateDataRetentionSettingsRequest.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateDataRetentionSettingsRequestOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateDataStreamRequest.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateDataStreamRequestOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateDisplayVideo360AdvertiserLinkRequest.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateDisplayVideo360AdvertiserLinkRequestOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateGoogleAdsLinkRequest.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateGoogleAdsLinkRequestOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateGoogleSignalsSettingsRequest.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateGoogleSignalsSettingsRequestOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateMeasurementProtocolSecretRequest.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateMeasurementProtocolSecretRequestOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdatePropertyRequest.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdatePropertyRequestOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateUserLinkRequest.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateUserLinkRequestOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UserLink.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UserLinkName.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UserLinkOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/access_report.proto delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/analytics_admin.proto delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/audience.proto delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/resources.proto delete mode 100644 proto-google-analytics-admin-v1beta/clirr-ignored-differences.xml delete mode 100644 proto-google-analytics-admin-v1beta/pom.xml delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/Account.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccountName.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccountOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccountSummary.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccountSummaryOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AcknowledgeUserDataCollectionRequest.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AcknowledgeUserDataCollectionRequestOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AcknowledgeUserDataCollectionResponse.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AcknowledgeUserDataCollectionResponseOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ActionType.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ActorType.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AnalyticsAdminProto.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ArchiveCustomDimensionRequest.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ArchiveCustomDimensionRequestOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ArchiveCustomMetricRequest.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ArchiveCustomMetricRequestOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ChangeHistoryChange.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ChangeHistoryChangeOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ChangeHistoryEvent.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ChangeHistoryEventOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ChangeHistoryResourceType.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ConversionEvent.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ConversionEventName.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ConversionEventOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateConversionEventRequest.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateConversionEventRequestOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateCustomDimensionRequest.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateCustomDimensionRequestOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateCustomMetricRequest.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateCustomMetricRequestOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateDataStreamRequest.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateDataStreamRequestOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateFirebaseLinkRequest.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateFirebaseLinkRequestOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateGoogleAdsLinkRequest.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateGoogleAdsLinkRequestOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateMeasurementProtocolSecretRequest.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateMeasurementProtocolSecretRequestOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreatePropertyRequest.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreatePropertyRequestOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CustomDimension.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CustomDimensionName.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CustomDimensionOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CustomMetric.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CustomMetricName.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CustomMetricOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataRetentionSettings.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataRetentionSettingsName.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataRetentionSettingsOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataSharingSettings.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataSharingSettingsName.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataSharingSettingsOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataStream.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataStreamName.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataStreamOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeleteAccountRequest.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeleteAccountRequestOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeleteConversionEventRequest.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeleteConversionEventRequestOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeleteDataStreamRequest.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeleteDataStreamRequestOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeleteFirebaseLinkRequest.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeleteFirebaseLinkRequestOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeleteGoogleAdsLinkRequest.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeleteGoogleAdsLinkRequestOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeleteMeasurementProtocolSecretRequest.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeleteMeasurementProtocolSecretRequestOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeletePropertyRequest.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeletePropertyRequestOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/FirebaseLink.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/FirebaseLinkName.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/FirebaseLinkOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetAccountRequest.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetAccountRequestOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetConversionEventRequest.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetConversionEventRequestOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetCustomDimensionRequest.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetCustomDimensionRequestOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetCustomMetricRequest.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetCustomMetricRequestOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetDataRetentionSettingsRequest.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetDataRetentionSettingsRequestOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetDataSharingSettingsRequest.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetDataSharingSettingsRequestOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetDataStreamRequest.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetDataStreamRequestOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetMeasurementProtocolSecretRequest.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetMeasurementProtocolSecretRequestOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetPropertyRequest.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetPropertyRequestOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GoogleAdsLink.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GoogleAdsLinkName.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GoogleAdsLinkOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/IndustryCategory.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListAccountSummariesRequest.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListAccountSummariesRequestOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListAccountSummariesResponse.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListAccountSummariesResponseOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListAccountsRequest.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListAccountsRequestOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListAccountsResponse.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListAccountsResponseOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListConversionEventsRequest.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListConversionEventsRequestOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListConversionEventsResponse.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListConversionEventsResponseOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListCustomDimensionsRequest.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListCustomDimensionsRequestOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListCustomDimensionsResponse.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListCustomDimensionsResponseOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListCustomMetricsRequest.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListCustomMetricsRequestOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListCustomMetricsResponse.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListCustomMetricsResponseOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListDataStreamsRequest.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListDataStreamsRequestOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListDataStreamsResponse.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListDataStreamsResponseOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListFirebaseLinksRequest.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListFirebaseLinksRequestOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListFirebaseLinksResponse.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListFirebaseLinksResponseOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListGoogleAdsLinksRequest.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListGoogleAdsLinksRequestOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListGoogleAdsLinksResponse.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListGoogleAdsLinksResponseOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListMeasurementProtocolSecretsRequest.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListMeasurementProtocolSecretsRequestOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListMeasurementProtocolSecretsResponse.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListMeasurementProtocolSecretsResponseOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListPropertiesRequest.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListPropertiesRequestOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListPropertiesResponse.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListPropertiesResponseOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/MeasurementProtocolSecret.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/MeasurementProtocolSecretName.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/MeasurementProtocolSecretOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/Property.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/PropertyName.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/PropertyOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/PropertySummary.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/PropertySummaryOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/PropertyType.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ProvisionAccountTicketRequest.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ProvisionAccountTicketRequestOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ProvisionAccountTicketResponse.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ProvisionAccountTicketResponseOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ResourcesProto.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/SearchChangeHistoryEventsRequest.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/SearchChangeHistoryEventsRequestOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/SearchChangeHistoryEventsResponse.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/SearchChangeHistoryEventsResponseOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ServiceLevel.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateAccountRequest.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateAccountRequestOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateCustomDimensionRequest.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateCustomDimensionRequestOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateCustomMetricRequest.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateCustomMetricRequestOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateDataRetentionSettingsRequest.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateDataRetentionSettingsRequestOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateDataStreamRequest.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateDataStreamRequestOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateGoogleAdsLinkRequest.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateGoogleAdsLinkRequestOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateMeasurementProtocolSecretRequest.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateMeasurementProtocolSecretRequestOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdatePropertyRequest.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdatePropertyRequestOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1beta/src/main/proto/google/analytics/admin/v1beta/analytics_admin.proto delete mode 100644 proto-google-analytics-admin-v1beta/src/main/proto/google/analytics/admin/v1beta/resources.proto delete mode 100644 renovate.json delete mode 100644 samples/install-without-bom/pom.xml delete mode 100644 samples/pom.xml delete mode 100644 samples/snapshot/pom.xml delete mode 100644 samples/snippets/pom.xml delete mode 100644 samples/snippets/src/main/java/com/example/analyticsadmin/QuickstartSample.java delete mode 100644 samples/snippets/src/test/java/com/example/analyticsadmin/QuickstartSampleTest.java delete mode 100644 synth.metadata delete mode 100644 versions.txt diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS deleted file mode 100644 index 96ee1fd7..00000000 --- a/.github/CODEOWNERS +++ /dev/null @@ -1,15 +0,0 @@ -# Code owners file. -# This file controls who is tagged for review for any given pull request. - -# For syntax help see: -# https://help.github.com/en/github/creating-cloning-and-archiving-repositories/about-code-owners#codeowners-syntax - -# The @googleapis/analytics-dpe is the default owner for changes in this repo -* @googleapis/yoshi-java @googleapis/analytics-dpe - - -# The java-samples-reviewers team is the default owner for samples changes -samples/**/*.java @googleapis/java-samples-reviewers - -# Generated snippets should not be owned by samples reviewers -samples/snippets/generated/ @googleapis/yoshi-java diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md deleted file mode 100644 index 9e34cb1c..00000000 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ /dev/null @@ -1,56 +0,0 @@ ---- -name: Bug report -about: Create a report to help us improve - ---- - -:bus: This library has moved to -[google-cloud-java/java-analytics-admin]( -https://github.com/googleapis/google-cloud-java/tree/main/java-analytics-admin). -This repository will be archived in the future. - -Thanks for stopping by to let us know something could be better! - -**PLEASE READ**: If you have a support contract with Google, please create an issue in the [support console](https://cloud.google.com/support/) instead of filing on GitHub. This will ensure a timely response. - -Please run down the following list and make sure you've tried the usual "quick fixes": - - - Search the issues already opened: https://github.com/googleapis/java-analytics-admin/issues - - Check for answers on StackOverflow: http://stackoverflow.com/questions/tagged/google-cloud-platform - -If you are still having issues, please include as much information as possible: - -#### Environment details - -1. Specify the API at the beginning of the title. For example, "BigQuery: ..."). - General, Core, and Other are also allowed as types -2. OS type and version: -3. Java version: -4. version(s): - -#### Steps to reproduce - - 1. ? - 2. ? - -#### Code example - -```java -// example -``` - -#### Stack trace -``` -Any relevant stacktrace here. -``` - -#### External references such as API reference guides - -- ? - -#### Any additional information below - - -Following these steps guarantees the quickest resolution possible. - -Thanks! diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md deleted file mode 100644 index 421ec7fa..00000000 --- a/.github/ISSUE_TEMPLATE/feature_request.md +++ /dev/null @@ -1,26 +0,0 @@ ---- -name: Feature request -about: Suggest an idea for this library - ---- - -:bus: This library has moved to -[google-cloud-java/java-analytics-admin]( -https://github.com/googleapis/google-cloud-java/tree/main/java-analytics-admin). -This repository will be archived in the future. - -Thanks for stopping by to let us know something could be better! - -**PLEASE READ**: If you have a support contract with Google, please create an issue in the [support console](https://cloud.google.com/support/) instead of filing on GitHub. This will ensure a timely response. - -**Is your feature request related to a problem? Please describe.** -What the problem is. Example: I'm always frustrated when [...] - -**Describe the solution you'd like** -What you want to happen. - -**Describe alternatives you've considered** -Any alternative solutions or features you've considered. - -**Additional context** -Any other context or screenshots about the feature request. diff --git a/.github/ISSUE_TEMPLATE/support_request.md b/.github/ISSUE_TEMPLATE/support_request.md deleted file mode 100644 index 99586903..00000000 --- a/.github/ISSUE_TEMPLATE/support_request.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -name: Support request -about: If you have a support contract with Google, please create an issue in the Google Cloud Support console. - ---- - -**PLEASE READ**: If you have a support contract with Google, please create an issue in the [support console](https://cloud.google.com/support/) instead of filing on GitHub. This will ensure a timely response. diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md deleted file mode 100644 index 3c2651d5..00000000 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ /dev/null @@ -1,10 +0,0 @@ -Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly: -- [ ] Make sure to open an issue as a [bug/issue](https://github.com/googleapis/java-analytics-admin/issues/new/choose) before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea -- [ ] Ensure the tests and linter pass -- [ ] Code coverage does not decrease (if any source code was changed) -- [ ] Appropriate docs were updated (if necessary) - -Fixes # ☕️ - -If you write sample code, please follow the [samples format]( -https://github.com/GoogleCloudPlatform/java-docs-samples/blob/main/SAMPLE_FORMAT.md). diff --git a/.github/auto-label.yaml b/.github/auto-label.yaml deleted file mode 100644 index 4caef688..00000000 --- a/.github/auto-label.yaml +++ /dev/null @@ -1,15 +0,0 @@ -# Copyright 2021 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -requestsize: - enabled: true diff --git a/.github/blunderbuss.yml b/.github/blunderbuss.yml deleted file mode 100644 index 2176b054..00000000 --- a/.github/blunderbuss.yml +++ /dev/null @@ -1,7 +0,0 @@ -# Configuration for the Blunderbuss GitHub app. For more info see -# https://github.com/googleapis/repo-automation-bots/tree/main/packages/blunderbuss -assign_prs_by: -- labels: - - samples - to: - - googleapis/java-samples-reviewers \ No newline at end of file diff --git a/.github/generated-files-bot.yml b/.github/generated-files-bot.yml deleted file mode 100644 index c644a24e..00000000 --- a/.github/generated-files-bot.yml +++ /dev/null @@ -1,12 +0,0 @@ -externalManifests: -- type: json - file: 'synth.metadata' - jsonpath: '$.generatedFiles[*]' -- type: json - file: '.github/readme/synth.metadata/synth.metadata' - jsonpath: '$.generatedFiles[*]' -ignoreAuthors: -- 'renovate-bot' -- 'yoshi-automation' -- 'release-please[bot]' -- 'gcf-owl-bot[bot]' diff --git a/.github/snippet-bot.yml b/.github/snippet-bot.yml deleted file mode 100644 index e69de29b..00000000 diff --git a/.github/sync-repo-settings.yaml b/.github/sync-repo-settings.yaml deleted file mode 100644 index 01f6272e..00000000 --- a/.github/sync-repo-settings.yaml +++ /dev/null @@ -1,44 +0,0 @@ -rebaseMergeAllowed: false -squashMergeAllowed: true -mergeCommitAllowed: false -branchProtectionRules: - - pattern: main - isAdminEnforced: true - requiredApprovingReviewCount: 1 - requiresCodeOwnerReviews: true - requiresStrictStatusChecks: false - requiredStatusCheckContexts: - - dependencies (8) - - dependencies (11) - - lint - - units (8) - - units (11) - - 'Kokoro - Test: Integration' - - cla/google - - OwlBot Post Processor - - 'Kokoro - Test: Java GraalVM Native Image' - - 'Kokoro - Test: Java 17 GraalVM Native Image' - - pattern: java7 - isAdminEnforced: true - requiredApprovingReviewCount: 1 - requiresCodeOwnerReviews: true - requiresStrictStatusChecks: false - requiredStatusCheckContexts: - - dependencies (8) - - dependencies (11) - - lint - - units (7) - - units (8) - - units (11) - - 'Kokoro - Test: Integration' - - cla/google - - OwlBot Post Processor -permissionRules: - - team: yoshi-admins - permission: admin - - team: yoshi-java-admins - permission: admin - - team: yoshi-java - permission: push - - team: analytics-dpe - permission: push diff --git a/.github/trusted-contribution.yml b/.github/trusted-contribution.yml deleted file mode 100644 index a0ba1f7d..00000000 --- a/.github/trusted-contribution.yml +++ /dev/null @@ -1,3 +0,0 @@ -trustedContributors: -- renovate-bot -- gcf-owl-bot[bot] diff --git a/.github/workflows/approve-readme.yaml b/.github/workflows/approve-readme.yaml deleted file mode 100644 index f5fc7d51..00000000 --- a/.github/workflows/approve-readme.yaml +++ /dev/null @@ -1,69 +0,0 @@ -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Github action job to test core java library features on -# downstream client libraries before they are released. -on: - pull_request: -name: auto-merge-readme -jobs: - approve: - runs-on: ubuntu-latest - if: github.repository_owner == 'googleapis' && github.head_ref == 'autosynth-readme' - steps: - - uses: actions/github-script@v6 - with: - github-token: ${{secrets.YOSHI_APPROVER_TOKEN}} - script: | - // only approve PRs from yoshi-automation - if (context.payload.pull_request.user.login !== "yoshi-automation") { - return; - } - - // only approve PRs like "chore: release " - if (!context.payload.pull_request.title === "chore: regenerate README") { - return; - } - - // only approve PRs with README.md and synth.metadata changes - const files = new Set( - ( - await github.paginate( - github.pulls.listFiles.endpoint({ - owner: context.repo.owner, - repo: context.repo.repo, - pull_number: context.payload.pull_request.number, - }) - ) - ).map(file => file.filename) - ); - if (files.size != 2 || !files.has("README.md") || !files.has(".github/readme/synth.metadata/synth.metadata")) { - return; - } - - // approve README regeneration PR - await github.pulls.createReview({ - owner: context.repo.owner, - repo: context.repo.repo, - body: 'Rubber stamped PR!', - pull_number: context.payload.pull_request.number, - event: 'APPROVE' - }); - - // attach automerge label - await github.issues.addLabels({ - owner: context.repo.owner, - repo: context.repo.repo, - issue_number: context.payload.pull_request.number, - labels: ['automerge'] - }); diff --git a/.github/workflows/auto-release.yaml b/.github/workflows/auto-release.yaml deleted file mode 100644 index 7a106d00..00000000 --- a/.github/workflows/auto-release.yaml +++ /dev/null @@ -1,103 +0,0 @@ -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Github action job to test core java library features on -# downstream client libraries before they are released. -on: - pull_request: -name: auto-release -jobs: - approve: - runs-on: ubuntu-latest - if: contains(github.head_ref, 'release-please') - steps: - - uses: actions/github-script@v6 - with: - github-token: ${{secrets.YOSHI_APPROVER_TOKEN}} - debug: true - script: | - // only approve PRs from release-please[bot] - if (context.payload.pull_request.user.login !== "release-please[bot]") { - return; - } - - // only approve PRs like "chore(main): release " - if ( !context.payload.pull_request.title.startsWith("chore(main): release") ) { - return; - } - - // only approve PRs with pom.xml and versions.txt changes - const filesPromise = github.rest.pulls.listFiles.endpoint({ - owner: context.repo.owner, - repo: context.repo.repo, - pull_number: context.payload.pull_request.number, - }); - const changed_files = await github.paginate(filesPromise) - - if ( changed_files.length < 1 ) { - console.log( "Not proceeding since PR is empty!" ) - return; - } - - if ( !changed_files.some(v => v.filename.includes("pom")) || !changed_files.some(v => v.filename.includes("versions.txt")) ) { - console.log( "PR file changes do not have pom.xml or versions.txt -- something is wrong. PTAL!" ) - return; - } - - // trigger auto-release when - // 1) it is a SNAPSHOT release (auto-generated post regular release) - // 2) there are dependency updates only - // 3) there are no open dependency update PRs in this repo (to avoid multiple releases) - if ( - context.payload.pull_request.body.includes("Fix") || - context.payload.pull_request.body.includes("Build") || - context.payload.pull_request.body.includes("Documentation") || - context.payload.pull_request.body.includes("BREAKING CHANGES") || - context.payload.pull_request.body.includes("Features") - ) { - console.log( "Not auto-releasing since it is not a dependency-update-only release." ); - return; - } - - const promise = github.rest.pulls.list.endpoint({ - owner: context.repo.owner, - repo: context.repo.repo, - state: 'open' - }); - const open_pulls = await github.paginate(promise) - - if ( open_pulls.length > 1 && !context.payload.pull_request.title.includes("SNAPSHOT") ) { - for ( const pull of open_pulls ) { - if ( pull.title.startsWith("deps: update dependency") ) { - console.log( "Not auto-releasing yet since there are dependency update PRs open in this repo." ); - return; - } - } - } - - // approve release PR - await github.rest.pulls.createReview({ - owner: context.repo.owner, - repo: context.repo.repo, - body: 'Rubber stamped release!', - pull_number: context.payload.pull_request.number, - event: 'APPROVE' - }); - - // attach kokoro:force-run and automerge labels - await github.rest.issues.addLabels({ - owner: context.repo.owner, - repo: context.repo.repo, - issue_number: context.payload.pull_request.number, - labels: ['kokoro:force-run', 'automerge'] - }); diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml deleted file mode 100644 index e3bb26e3..00000000 --- a/.github/workflows/ci.yaml +++ /dev/null @@ -1,89 +0,0 @@ -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Github action job to test core java library features on -# downstream client libraries before they are released. -on: - push: - branches: - - main - pull_request: -name: ci -jobs: - units: - runs-on: ubuntu-latest - strategy: - fail-fast: false - matrix: - java: [8, 11, 17] - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-java@v3 - with: - distribution: zulu - java-version: ${{matrix.java}} - - run: java -version - - run: .kokoro/build.sh - env: - JOB_TYPE: test - windows: - runs-on: windows-latest - steps: - - name: Support longpaths - run: git config --system core.longpaths true - - uses: actions/checkout@v3 - - uses: actions/setup-java@v3 - with: - distribution: zulu - java-version: 8 - - run: java -version - - run: .kokoro/build.bat - env: - JOB_TYPE: test - dependencies: - runs-on: ubuntu-latest - strategy: - matrix: - java: [8, 11, 17] - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-java@v3 - with: - distribution: zulu - java-version: ${{matrix.java}} - - run: java -version - - run: .kokoro/dependencies.sh - lint: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-java@v3 - with: - distribution: zulu - java-version: 11 - - run: java -version - - run: .kokoro/build.sh - env: - JOB_TYPE: lint - clirr: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-java@v3 - with: - distribution: zulu - java-version: 8 - - run: java -version - - run: .kokoro/build.sh - env: - JOB_TYPE: clirr diff --git a/.github/workflows/samples.yaml b/.github/workflows/samples.yaml deleted file mode 100644 index 912ed8b2..00000000 --- a/.github/workflows/samples.yaml +++ /dev/null @@ -1,30 +0,0 @@ -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Github action job to test core java library features on -# downstream client libraries before they are released. -on: - pull_request: -name: samples -jobs: - checkstyle: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-java@v3 - with: - distribution: zulu - java-version: 8 - - name: Run checkstyle - run: mvn -P lint --quiet --batch-mode checkstyle:check - working-directory: samples/snippets diff --git a/.gitignore b/.gitignore deleted file mode 100644 index 069d08fc..00000000 --- a/.gitignore +++ /dev/null @@ -1,17 +0,0 @@ -# Maven -target/ - -# Eclipse -.classpath -.project -.settings - -# Intellij -*.iml -.idea/ - -# python utilities -*.pyc -__pycache__ - -.flattened-pom.xml diff --git a/.kokoro/build.bat b/.kokoro/build.bat deleted file mode 100644 index 067cf4a4..00000000 --- a/.kokoro/build.bat +++ /dev/null @@ -1,18 +0,0 @@ -:: Copyright 2022 Google LLC -:: -:: Licensed under the Apache License, Version 2.0 (the "License"); -:: you may not use this file except in compliance with the License. -:: You may obtain a copy of the License at -:: -:: http://www.apache.org/licenses/LICENSE-2.0 -:: -:: Unless required by applicable law or agreed to in writing, software -:: distributed under the License is distributed on an "AS IS" BASIS, -:: WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -:: See the License for the specific language governing permissions and -:: limitations under the License. -:: Github action job to test core java library features on -:: downstream client libraries before they are released. -:: See documentation in type-shell-output.bat - -"C:\Program Files\Git\bin\bash.exe" %~dp0build.sh diff --git a/.kokoro/build.sh b/.kokoro/build.sh deleted file mode 100755 index 2d8d30b5..00000000 --- a/.kokoro/build.sh +++ /dev/null @@ -1,134 +0,0 @@ -#!/bin/bash -# Copyright 2019 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -set -eo pipefail - -## Get the directory of the build script -scriptDir=$(realpath $(dirname "${BASH_SOURCE[0]}")) -## cd to the parent directory, i.e. the root of the git repo -cd ${scriptDir}/.. - -# include common functions -source ${scriptDir}/common.sh - -# Print out Maven & Java version -mvn -version -echo ${JOB_TYPE} - -# attempt to install 3 times with exponential backoff (starting with 10 seconds) -retry_with_backoff 3 10 \ - mvn install -B -V -ntp \ - -DskipTests=true \ - -Dclirr.skip=true \ - -Denforcer.skip=true \ - -Dmaven.javadoc.skip=true \ - -Dgcloud.download.skip=true \ - -T 1C - -# if GOOGLE_APPLICATION_CREDENTIALS is specified as a relative path, prepend Kokoro root directory onto it -if [[ ! -z "${GOOGLE_APPLICATION_CREDENTIALS}" && "${GOOGLE_APPLICATION_CREDENTIALS}" != /* ]]; then - export GOOGLE_APPLICATION_CREDENTIALS=$(realpath ${KOKORO_GFILE_DIR}/${GOOGLE_APPLICATION_CREDENTIALS}) -fi - -RETURN_CODE=0 -set +e - -case ${JOB_TYPE} in -test) - mvn test -B -ntp -Dclirr.skip=true -Denforcer.skip=true - RETURN_CODE=$? - ;; -lint) - mvn com.coveo:fmt-maven-plugin:check -B -ntp - RETURN_CODE=$? - ;; -javadoc) - mvn javadoc:javadoc javadoc:test-javadoc -B -ntp - RETURN_CODE=$? - ;; -integration) - mvn -B ${INTEGRATION_TEST_ARGS} \ - -ntp \ - -Penable-integration-tests \ - -DtrimStackTrace=false \ - -Dclirr.skip=true \ - -Denforcer.skip=true \ - -fae \ - verify - RETURN_CODE=$? - ;; -graalvm) - # Run Unit and Integration Tests with Native Image - mvn -B ${INTEGRATION_TEST_ARGS} -ntp -Pnative -Penable-integration-tests test - RETURN_CODE=$? - ;; -graalvm17) - # Run Unit and Integration Tests with Native Image - mvn -B ${INTEGRATION_TEST_ARGS} -ntp -Pnative -Penable-integration-tests test - RETURN_CODE=$? - ;; -samples) - SAMPLES_DIR=samples - # only run ITs in snapshot/ on presubmit PRs. run ITs in all 3 samples/ subdirectories otherwise. - if [[ ! -z ${KOKORO_GITHUB_PULL_REQUEST_NUMBER} ]] - then - SAMPLES_DIR=samples/snapshot - fi - - if [[ -f ${SAMPLES_DIR}/pom.xml ]] - then - for FILE in ${KOKORO_GFILE_DIR}/secret_manager/*-samples-secrets; do - [[ -f "$FILE" ]] || continue - source "$FILE" - done - - pushd ${SAMPLES_DIR} - mvn -B \ - -ntp \ - -DtrimStackTrace=false \ - -Dclirr.skip=true \ - -Denforcer.skip=true \ - -fae \ - verify - RETURN_CODE=$? - popd - else - echo "no sample pom.xml found - skipping sample tests" - fi - ;; -clirr) - mvn -B -ntp -Denforcer.skip=true clirr:check - RETURN_CODE=$? - ;; -*) - ;; -esac - -if [ "${REPORT_COVERAGE}" == "true" ] -then - bash ${KOKORO_GFILE_DIR}/codecov.sh -fi - -# fix output location of logs -bash .kokoro/coerce_logs.sh - -if [[ "${ENABLE_FLAKYBOT}" == "true" ]] -then - chmod +x ${KOKORO_GFILE_DIR}/linux_amd64/flakybot - ${KOKORO_GFILE_DIR}/linux_amd64/flakybot -repo=googleapis/java-analytics-admin -fi - -echo "exiting with ${RETURN_CODE}" -exit ${RETURN_CODE} diff --git a/.kokoro/coerce_logs.sh b/.kokoro/coerce_logs.sh deleted file mode 100755 index 46edbf7f..00000000 --- a/.kokoro/coerce_logs.sh +++ /dev/null @@ -1,37 +0,0 @@ -#!/bin/bash -# Copyright 2019 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# This script finds and moves sponge logs so that they can be found by placer -# and are not flagged as flaky by sponge. - -set -eo pipefail - -## Get the directory of the build script -scriptDir=$(realpath $(dirname "${BASH_SOURCE[0]}")) -## cd to the parent directory, i.e. the root of the git repo -cd ${scriptDir}/.. - -job=$(basename ${KOKORO_JOB_NAME}) - -echo "coercing sponge logs..." -for xml in `find . -name *-sponge_log.xml` -do - class=$(basename ${xml} | cut -d- -f2) - dir=$(dirname ${xml})/${job}/${class} - text=$(dirname ${xml})/${class}-sponge_log.txt - mkdir -p ${dir} - mv ${xml} ${dir}/sponge_log.xml - mv ${text} ${dir}/sponge_log.txt -done diff --git a/.kokoro/common.cfg b/.kokoro/common.cfg deleted file mode 100644 index e4222865..00000000 --- a/.kokoro/common.cfg +++ /dev/null @@ -1,13 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -# Download trampoline resources. These will be in ${KOKORO_GFILE_DIR} -gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline" - -# All builds use the trampoline script to run in docker. -build_file: "java-analytics-admin/.kokoro/trampoline.sh" - -# Tell the trampoline which build file to use. -env_vars: { - key: "TRAMPOLINE_BUILD_FILE" - value: "github/java-analytics-admin/.kokoro/build.sh" -} diff --git a/.kokoro/common.sh b/.kokoro/common.sh deleted file mode 100644 index f8f957af..00000000 --- a/.kokoro/common.sh +++ /dev/null @@ -1,60 +0,0 @@ -#!/bin/bash -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -function retry_with_backoff { - attempts_left=$1 - sleep_seconds=$2 - shift 2 - command=$@ - - - # store current flag state - flags=$- - - # allow a failures to continue - set +e - ${command} - exit_code=$? - - # restore "e" flag - if [[ ${flags} =~ e ]] - then set -e - else set +e - fi - - if [[ $exit_code == 0 ]] - then - return 0 - fi - - # failure - if [[ ${attempts_left} > 0 ]] - then - echo "failure (${exit_code}), sleeping ${sleep_seconds}..." - sleep ${sleep_seconds} - new_attempts=$((${attempts_left} - 1)) - new_sleep=$((${sleep_seconds} * 2)) - retry_with_backoff ${new_attempts} ${new_sleep} ${command} - fi - - return $exit_code -} - -## Helper functionss -function now() { date +"%Y-%m-%d %H:%M:%S" | tr -d '\n'; } -function msg() { println "$*" >&2; } -function println() { printf '%s\n' "$(now) $*"; } - -## Helper comment to trigger updated repo dependency release \ No newline at end of file diff --git a/.kokoro/continuous/common.cfg b/.kokoro/continuous/common.cfg deleted file mode 100644 index 08654fec..00000000 --- a/.kokoro/continuous/common.cfg +++ /dev/null @@ -1,25 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -# Build logs will be here -action { - define_artifacts { - regex: "**/*sponge_log.xml" - regex: "**/*sponge_log.txt" - } -} - -# Download trampoline resources. -gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline" - -# Use the trampoline script to run in docker. -build_file: "java-analytics-admin/.kokoro/trampoline.sh" - -env_vars: { - key: "TRAMPOLINE_BUILD_FILE" - value: "github/java-analytics-admin/.kokoro/build.sh" -} - -env_vars: { - key: "JOB_TYPE" - value: "test" -} diff --git a/.kokoro/continuous/java8.cfg b/.kokoro/continuous/java8.cfg deleted file mode 100644 index 495cc7ba..00000000 --- a/.kokoro/continuous/java8.cfg +++ /dev/null @@ -1,12 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -# Configure the docker image for kokoro-trampoline. -env_vars: { - key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-kokoro-resources/java8" -} - -env_vars: { - key: "REPORT_COVERAGE" - value: "true" -} diff --git a/.kokoro/dependencies.sh b/.kokoro/dependencies.sh deleted file mode 100755 index bd896024..00000000 --- a/.kokoro/dependencies.sh +++ /dev/null @@ -1,59 +0,0 @@ -#!/bin/bash -# Copyright 2019 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -set -eo pipefail -shopt -s nullglob - -## Get the directory of the build script -scriptDir=$(realpath $(dirname "${BASH_SOURCE[0]}")) -## cd to the parent directory, i.e. the root of the git repo -cd ${scriptDir}/.. - -# include common functions -source ${scriptDir}/common.sh - -# Print out Java -java -version -echo $JOB_TYPE - -function determineMavenOpts() { - local javaVersion=$( - # filter down to the version line, then pull out the version between quotes, - # then trim the version number down to its minimal number (removing any - # update or suffix number). - java -version 2>&1 | grep "version" \ - | sed -E 's/^.*"(.*?)".*$/\1/g' \ - | sed -E 's/^(1\.[0-9]\.0).*$/\1/g' - ) - - if [[ $javaVersion == 17* ]] - then - # MaxPermSize is no longer supported as of jdk 17 - echo -n "-Xmx1024m" - else - echo -n "-Xmx1024m -XX:MaxPermSize=128m" - fi -} - -export MAVEN_OPTS=$(determineMavenOpts) - -# this should run maven enforcer -retry_with_backoff 3 10 \ - mvn install -B -V -ntp \ - -DskipTests=true \ - -Dmaven.javadoc.skip=true \ - -Dclirr.skip=true - -mvn -B dependency:analyze -DfailOnWarning=true diff --git a/.kokoro/nightly/common.cfg b/.kokoro/nightly/common.cfg deleted file mode 100644 index 08654fec..00000000 --- a/.kokoro/nightly/common.cfg +++ /dev/null @@ -1,25 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -# Build logs will be here -action { - define_artifacts { - regex: "**/*sponge_log.xml" - regex: "**/*sponge_log.txt" - } -} - -# Download trampoline resources. -gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline" - -# Use the trampoline script to run in docker. -build_file: "java-analytics-admin/.kokoro/trampoline.sh" - -env_vars: { - key: "TRAMPOLINE_BUILD_FILE" - value: "github/java-analytics-admin/.kokoro/build.sh" -} - -env_vars: { - key: "JOB_TYPE" - value: "test" -} diff --git a/.kokoro/nightly/integration.cfg b/.kokoro/nightly/integration.cfg deleted file mode 100644 index bd0297a3..00000000 --- a/.kokoro/nightly/integration.cfg +++ /dev/null @@ -1,37 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -# Configure the docker image for kokoro-trampoline. -env_vars: { - key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-kokoro-resources/java8" -} - -env_vars: { - key: "JOB_TYPE" - value: "integration" -} -# TODO: remove this after we've migrated all tests and scripts -env_vars: { - key: "GCLOUD_PROJECT" - value: "java-docs-samples-testing" -} - -env_vars: { - key: "GOOGLE_CLOUD_PROJECT" - value: "java-docs-samples-testing" -} - -env_vars: { - key: "ENABLE_FLAKYBOT" - value: "false" -} - -env_vars: { - key: "GOOGLE_APPLICATION_CREDENTIALS" - value: "secret_manager/java-it-service-account" -} - -env_vars: { - key: "SECRET_MANAGER_KEYS" - value: "java-it-service-account" -} diff --git a/.kokoro/nightly/java11-integration.cfg b/.kokoro/nightly/java11-integration.cfg deleted file mode 100644 index dc51b65e..00000000 --- a/.kokoro/nightly/java11-integration.cfg +++ /dev/null @@ -1,37 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -# Configure the docker image for kokoro-trampoline. -env_vars: { - key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/java11014" -} - -env_vars: { - key: "JOB_TYPE" - value: "integration" -} -# TODO: remove this after we've migrated all tests and scripts -env_vars: { - key: "GCLOUD_PROJECT" - value: "gcloud-devel" -} - -env_vars: { - key: "GOOGLE_CLOUD_PROJECT" - value: "gcloud-devel" -} - -env_vars: { - key: "ENABLE_FLAKYBOT" - value: "false" -} - -env_vars: { - key: "GOOGLE_APPLICATION_CREDENTIALS" - value: "secret_manager/java-it-service-account" -} - -env_vars: { - key: "SECRET_MANAGER_KEYS" - value: "java-it-service-account" -} diff --git a/.kokoro/nightly/java11.cfg b/.kokoro/nightly/java11.cfg deleted file mode 100644 index 709f2b4c..00000000 --- a/.kokoro/nightly/java11.cfg +++ /dev/null @@ -1,7 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -# Configure the docker image for kokoro-trampoline. -env_vars: { - key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-kokoro-resources/java11" -} diff --git a/.kokoro/nightly/java7.cfg b/.kokoro/nightly/java7.cfg deleted file mode 100644 index cb24f44e..00000000 --- a/.kokoro/nightly/java7.cfg +++ /dev/null @@ -1,7 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -# Configure the docker image for kokoro-trampoline. -env_vars: { - key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-kokoro-resources/java7" -} diff --git a/.kokoro/nightly/java8-osx.cfg b/.kokoro/nightly/java8-osx.cfg deleted file mode 100644 index 8adc9e78..00000000 --- a/.kokoro/nightly/java8-osx.cfg +++ /dev/null @@ -1,3 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -build_file: "java-analytics-admin/.kokoro/build.sh" diff --git a/.kokoro/nightly/java8-win.cfg b/.kokoro/nightly/java8-win.cfg deleted file mode 100644 index 35288db3..00000000 --- a/.kokoro/nightly/java8-win.cfg +++ /dev/null @@ -1,3 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -build_file: "java-analytics-admin/.kokoro/build.bat" diff --git a/.kokoro/nightly/java8.cfg b/.kokoro/nightly/java8.cfg deleted file mode 100644 index 495cc7ba..00000000 --- a/.kokoro/nightly/java8.cfg +++ /dev/null @@ -1,12 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -# Configure the docker image for kokoro-trampoline. -env_vars: { - key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-kokoro-resources/java8" -} - -env_vars: { - key: "REPORT_COVERAGE" - value: "true" -} diff --git a/.kokoro/nightly/samples.cfg b/.kokoro/nightly/samples.cfg deleted file mode 100644 index fee6a838..00000000 --- a/.kokoro/nightly/samples.cfg +++ /dev/null @@ -1,38 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -# Configure the docker image for kokoro-trampoline. -env_vars: { - key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-kokoro-resources/java8" -} - -env_vars: { - key: "JOB_TYPE" - value: "samples" -} - -# TODO: remove this after we've migrated all tests and scripts -env_vars: { - key: "GCLOUD_PROJECT" - value: "java-docs-samples-testing" -} - -env_vars: { - key: "GOOGLE_CLOUD_PROJECT" - value: "java-docs-samples-testing" -} - -env_vars: { - key: "GOOGLE_APPLICATION_CREDENTIALS" - value: "secret_manager/java-docs-samples-service-account" -} - -env_vars: { - key: "SECRET_MANAGER_KEYS" - value: "java-docs-samples-service-account" -} - -env_vars: { - key: "ENABLE_FLAKYBOT" - value: "false" -} diff --git a/.kokoro/populate-secrets.sh b/.kokoro/populate-secrets.sh deleted file mode 100755 index f5251425..00000000 --- a/.kokoro/populate-secrets.sh +++ /dev/null @@ -1,43 +0,0 @@ -#!/bin/bash -# Copyright 2020 Google LLC. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -set -eo pipefail - -function now { date +"%Y-%m-%d %H:%M:%S" | tr -d '\n' ;} -function msg { println "$*" >&2 ;} -function println { printf '%s\n' "$(now) $*" ;} - - -# Populates requested secrets set in SECRET_MANAGER_KEYS from service account: -# kokoro-trampoline@cloud-devrel-kokoro-resources.iam.gserviceaccount.com -SECRET_LOCATION="${KOKORO_GFILE_DIR}/secret_manager" -msg "Creating folder on disk for secrets: ${SECRET_LOCATION}" -mkdir -p ${SECRET_LOCATION} -for key in $(echo ${SECRET_MANAGER_KEYS} | sed "s/,/ /g") -do - msg "Retrieving secret ${key}" - docker run --entrypoint=gcloud \ - --volume=${KOKORO_GFILE_DIR}:${KOKORO_GFILE_DIR} \ - gcr.io/google.com/cloudsdktool/cloud-sdk \ - secrets versions access latest \ - --project cloud-devrel-kokoro-resources \ - --secret ${key} > \ - "${SECRET_LOCATION}/${key}" - if [[ $? == 0 ]]; then - msg "Secret written to ${SECRET_LOCATION}/${key}" - else - msg "Error retrieving secret ${key}" - fi -done diff --git a/.kokoro/presubmit/clirr.cfg b/.kokoro/presubmit/clirr.cfg deleted file mode 100644 index ec572442..00000000 --- a/.kokoro/presubmit/clirr.cfg +++ /dev/null @@ -1,13 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -# Configure the docker image for kokoro-trampoline. - -env_vars: { - key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-kokoro-resources/java8" -} - -env_vars: { - key: "JOB_TYPE" - value: "clirr" -} \ No newline at end of file diff --git a/.kokoro/presubmit/common.cfg b/.kokoro/presubmit/common.cfg deleted file mode 100644 index ce8f24ea..00000000 --- a/.kokoro/presubmit/common.cfg +++ /dev/null @@ -1,34 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -# Build logs will be here -action { - define_artifacts { - regex: "**/*sponge_log.xml" - regex: "**/*sponge_log.txt" - } -} - -# Download trampoline resources. -gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline" - -# Use the trampoline script to run in docker. -build_file: "java-analytics-admin/.kokoro/trampoline.sh" - -env_vars: { - key: "TRAMPOLINE_BUILD_FILE" - value: "github/java-analytics-admin/.kokoro/build.sh" -} - -env_vars: { - key: "JOB_TYPE" - value: "test" -} - -before_action { - fetch_keystore { - keystore_resource { - keystore_config_id: 73713 - keyname: "dpebot_codecov_token" - } - } -} diff --git a/.kokoro/presubmit/dependencies.cfg b/.kokoro/presubmit/dependencies.cfg deleted file mode 100644 index e203a4cf..00000000 --- a/.kokoro/presubmit/dependencies.cfg +++ /dev/null @@ -1,12 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -# Configure the docker image for kokoro-trampoline. -env_vars: { - key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-kokoro-resources/java8" -} - -env_vars: { - key: "TRAMPOLINE_BUILD_FILE" - value: "github/java-analytics-admin/.kokoro/dependencies.sh" -} diff --git a/.kokoro/presubmit/graalvm-native-17.cfg b/.kokoro/presubmit/graalvm-native-17.cfg deleted file mode 100644 index a3f7fb9d..00000000 --- a/.kokoro/presubmit/graalvm-native-17.cfg +++ /dev/null @@ -1,33 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -# Configure the docker image for kokoro-trampoline. -env_vars: { - key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-kokoro-resources/graalvm17" -} - -env_vars: { - key: "JOB_TYPE" - value: "graalvm17" -} - -# TODO: remove this after we've migrated all tests and scripts -env_vars: { - key: "GCLOUD_PROJECT" - value: "gcloud-devel" -} - -env_vars: { - key: "GOOGLE_CLOUD_PROJECT" - value: "gcloud-devel" -} - -env_vars: { - key: "GOOGLE_APPLICATION_CREDENTIALS" - value: "secret_manager/java-it-service-account" -} - -env_vars: { - key: "SECRET_MANAGER_KEYS" - value: "java-it-service-account" -} \ No newline at end of file diff --git a/.kokoro/presubmit/graalvm-native.cfg b/.kokoro/presubmit/graalvm-native.cfg deleted file mode 100644 index 4c7225ec..00000000 --- a/.kokoro/presubmit/graalvm-native.cfg +++ /dev/null @@ -1,33 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -# Configure the docker image for kokoro-trampoline. -env_vars: { - key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-kokoro-resources/graalvm" -} - -env_vars: { - key: "JOB_TYPE" - value: "graalvm" -} - -# TODO: remove this after we've migrated all tests and scripts -env_vars: { - key: "GCLOUD_PROJECT" - value: "gcloud-devel" -} - -env_vars: { - key: "GOOGLE_CLOUD_PROJECT" - value: "gcloud-devel" -} - -env_vars: { - key: "GOOGLE_APPLICATION_CREDENTIALS" - value: "secret_manager/java-it-service-account" -} - -env_vars: { - key: "SECRET_MANAGER_KEYS" - value: "java-it-service-account" -} diff --git a/.kokoro/presubmit/integration.cfg b/.kokoro/presubmit/integration.cfg deleted file mode 100644 index dded67a9..00000000 --- a/.kokoro/presubmit/integration.cfg +++ /dev/null @@ -1,33 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -# Configure the docker image for kokoro-trampoline. -env_vars: { - key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-kokoro-resources/java8" -} - -env_vars: { - key: "JOB_TYPE" - value: "integration" -} - -# TODO: remove this after we've migrated all tests and scripts -env_vars: { - key: "GCLOUD_PROJECT" - value: "gcloud-devel" -} - -env_vars: { - key: "GOOGLE_CLOUD_PROJECT" - value: "gcloud-devel" -} - -env_vars: { - key: "GOOGLE_APPLICATION_CREDENTIALS" - value: "secret_manager/java-it-service-account" -} - -env_vars: { - key: "SECRET_MANAGER_KEYS" - value: "java-it-service-account" -} diff --git a/.kokoro/presubmit/java11.cfg b/.kokoro/presubmit/java11.cfg deleted file mode 100644 index 709f2b4c..00000000 --- a/.kokoro/presubmit/java11.cfg +++ /dev/null @@ -1,7 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -# Configure the docker image for kokoro-trampoline. -env_vars: { - key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-kokoro-resources/java11" -} diff --git a/.kokoro/presubmit/java7.cfg b/.kokoro/presubmit/java7.cfg deleted file mode 100644 index cb24f44e..00000000 --- a/.kokoro/presubmit/java7.cfg +++ /dev/null @@ -1,7 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -# Configure the docker image for kokoro-trampoline. -env_vars: { - key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-kokoro-resources/java7" -} diff --git a/.kokoro/presubmit/java8-osx.cfg b/.kokoro/presubmit/java8-osx.cfg deleted file mode 100644 index 8adc9e78..00000000 --- a/.kokoro/presubmit/java8-osx.cfg +++ /dev/null @@ -1,3 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -build_file: "java-analytics-admin/.kokoro/build.sh" diff --git a/.kokoro/presubmit/java8-win.cfg b/.kokoro/presubmit/java8-win.cfg deleted file mode 100644 index 35288db3..00000000 --- a/.kokoro/presubmit/java8-win.cfg +++ /dev/null @@ -1,3 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -build_file: "java-analytics-admin/.kokoro/build.bat" diff --git a/.kokoro/presubmit/java8.cfg b/.kokoro/presubmit/java8.cfg deleted file mode 100644 index 495cc7ba..00000000 --- a/.kokoro/presubmit/java8.cfg +++ /dev/null @@ -1,12 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -# Configure the docker image for kokoro-trampoline. -env_vars: { - key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-kokoro-resources/java8" -} - -env_vars: { - key: "REPORT_COVERAGE" - value: "true" -} diff --git a/.kokoro/presubmit/linkage-monitor.cfg b/.kokoro/presubmit/linkage-monitor.cfg deleted file mode 100644 index 7b7b6459..00000000 --- a/.kokoro/presubmit/linkage-monitor.cfg +++ /dev/null @@ -1,12 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -# Configure the docker image for kokoro-trampoline. -env_vars: { - key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-kokoro-resources/java8" -} - -env_vars: { - key: "TRAMPOLINE_BUILD_FILE" - value: "github/java-analytics-admin/.kokoro/linkage-monitor.sh" -} \ No newline at end of file diff --git a/.kokoro/presubmit/lint.cfg b/.kokoro/presubmit/lint.cfg deleted file mode 100644 index 6d323c8a..00000000 --- a/.kokoro/presubmit/lint.cfg +++ /dev/null @@ -1,13 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -# Configure the docker image for kokoro-trampoline. - -env_vars: { - key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-kokoro-resources/java8" -} - -env_vars: { - key: "JOB_TYPE" - value: "lint" -} \ No newline at end of file diff --git a/.kokoro/presubmit/samples.cfg b/.kokoro/presubmit/samples.cfg deleted file mode 100644 index 01e09600..00000000 --- a/.kokoro/presubmit/samples.cfg +++ /dev/null @@ -1,33 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -# Configure the docker image for kokoro-trampoline. -env_vars: { - key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-kokoro-resources/java8" -} - -env_vars: { - key: "JOB_TYPE" - value: "samples" -} - -# TODO: remove this after we've migrated all tests and scripts -env_vars: { - key: "GCLOUD_PROJECT" - value: "java-docs-samples-testing" -} - -env_vars: { - key: "GOOGLE_CLOUD_PROJECT" - value: "java-docs-samples-testing" -} - -env_vars: { - key: "GOOGLE_APPLICATION_CREDENTIALS" - value: "secret_manager/java-docs-samples-service-account" -} - -env_vars: { - key: "SECRET_MANAGER_KEYS" - value: "java-docs-samples-service-account" -} \ No newline at end of file diff --git a/.kokoro/readme.sh b/.kokoro/readme.sh deleted file mode 100755 index 8c13d279..00000000 --- a/.kokoro/readme.sh +++ /dev/null @@ -1,45 +0,0 @@ -#!/bin/bash -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -set -eo pipefail - -cd ${KOKORO_ARTIFACTS_DIR}/github/java-analytics-admin - -# Disable buffering, so that the logs stream through. -export PYTHONUNBUFFERED=1 - -# Kokoro exposes this as a file, but the scripts expect just a plain variable. -export GITHUB_TOKEN=$(cat ${KOKORO_KEYSTORE_DIR}/73713_yoshi-automation-github-key) - -# Setup git credentials -echo "https://${GITHUB_TOKEN}:@github.com" >> ~/.git-credentials -git config --global credential.helper 'store --file ~/.git-credentials' - -python3.6 -m pip install git+https://github.com/googleapis/synthtool.git#egg=gcp-synthtool - -set +e -python3.6 -m autosynth.synth \ - --repository=googleapis/java-analytics-admin \ - --synth-file-name=.github/readme/synth.py \ - --metadata-path=.github/readme/synth.metadata \ - --pr-title="chore: regenerate README" \ - --branch-suffix="readme" - -# autosynth returns 28 to signal there are no changes -RETURN_CODE=$? -if [[ ${RETURN_CODE} -ne 0 && ${RETURN_CODE} -ne 28 ]] -then - exit ${RETURN_CODE} -fi diff --git a/.kokoro/release/bump_snapshot.cfg b/.kokoro/release/bump_snapshot.cfg deleted file mode 100644 index a65b73b0..00000000 --- a/.kokoro/release/bump_snapshot.cfg +++ /dev/null @@ -1,53 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -# Build logs will be here -action { - define_artifacts { - regex: "**/*sponge_log.xml" - } -} - -# Download trampoline resources. -gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline" - -# Use the trampoline script to run in docker. -build_file: "java-analytics-admin/.kokoro/trampoline.sh" - -# Configure the docker image for kokoro-trampoline. -env_vars: { - key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-kokoro-resources/node:10-user" -} - -env_vars: { - key: "TRAMPOLINE_BUILD_FILE" - value: "github/java-analytics-admin/.kokoro/release/bump_snapshot.sh" -} - -# tokens used by release-please to keep an up-to-date release PR. -before_action { - fetch_keystore { - keystore_resource { - keystore_config_id: 73713 - keyname: "github-magic-proxy-key-release-please" - } - } -} - -before_action { - fetch_keystore { - keystore_resource { - keystore_config_id: 73713 - keyname: "github-magic-proxy-token-release-please" - } - } -} - -before_action { - fetch_keystore { - keystore_resource { - keystore_config_id: 73713 - keyname: "github-magic-proxy-url-release-please" - } - } -} diff --git a/.kokoro/release/common.cfg b/.kokoro/release/common.cfg deleted file mode 100644 index 70ff7163..00000000 --- a/.kokoro/release/common.cfg +++ /dev/null @@ -1,49 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -# Download trampoline resources. -gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline" - -# Use the trampoline script to run in docker. -build_file: "java-analytics-admin/.kokoro/trampoline.sh" - -# Configure the docker image for kokoro-trampoline. -env_vars: { - key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-kokoro-resources/java8" -} - -before_action { - fetch_keystore { - keystore_resource { - keystore_config_id: 70247 - keyname: "maven-gpg-keyring" - } - } -} - -before_action { - fetch_keystore { - keystore_resource { - keystore_config_id: 70247 - keyname: "maven-gpg-passphrase" - } - } -} - -before_action { - fetch_keystore { - keystore_resource { - keystore_config_id: 70247 - keyname: "maven-gpg-pubkeyring" - } - } -} - -before_action { - fetch_keystore { - keystore_resource { - keystore_config_id: 70247 - keyname: "sonatype-credentials" - } - } -} diff --git a/.kokoro/release/common.sh b/.kokoro/release/common.sh deleted file mode 100755 index 7f78ee41..00000000 --- a/.kokoro/release/common.sh +++ /dev/null @@ -1,50 +0,0 @@ -#!/bin/bash -# Copyright 2018 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -set -eo pipefail - -# Get secrets from keystore and set and environment variables -setup_environment_secrets() { - export GPG_PASSPHRASE=$(cat ${KOKORO_KEYSTORE_DIR}/70247_maven-gpg-passphrase) - export GPG_TTY=$(tty) - export GPG_HOMEDIR=/gpg - mkdir $GPG_HOMEDIR - mv ${KOKORO_KEYSTORE_DIR}/70247_maven-gpg-pubkeyring $GPG_HOMEDIR/pubring.gpg - mv ${KOKORO_KEYSTORE_DIR}/70247_maven-gpg-keyring $GPG_HOMEDIR/secring.gpg - export SONATYPE_USERNAME=$(cat ${KOKORO_KEYSTORE_DIR}/70247_sonatype-credentials | cut -f1 -d'|') - export SONATYPE_PASSWORD=$(cat ${KOKORO_KEYSTORE_DIR}/70247_sonatype-credentials | cut -f2 -d'|') -} - -create_settings_xml_file() { - echo " - - - ossrh - ${SONATYPE_USERNAME} - ${SONATYPE_PASSWORD} - - - sonatype-nexus-staging - ${SONATYPE_USERNAME} - ${SONATYPE_PASSWORD} - - - sonatype-nexus-snapshots - ${SONATYPE_USERNAME} - ${SONATYPE_PASSWORD} - - -" > $1 -} \ No newline at end of file diff --git a/.kokoro/release/drop.cfg b/.kokoro/release/drop.cfg deleted file mode 100644 index 5e92c341..00000000 --- a/.kokoro/release/drop.cfg +++ /dev/null @@ -1,6 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -env_vars: { - key: "TRAMPOLINE_BUILD_FILE" - value: "github/java-analytics-admin/.kokoro/release/drop.sh" -} diff --git a/.kokoro/release/drop.sh b/.kokoro/release/drop.sh deleted file mode 100755 index 742ec1a8..00000000 --- a/.kokoro/release/drop.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/bin/bash -# Copyright 2018 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -set -eo pipefail - -# STAGING_REPOSITORY_ID must be set -if [ -z "${STAGING_REPOSITORY_ID}" ]; then - echo "Missing STAGING_REPOSITORY_ID environment variable" - exit 1 -fi - -source $(dirname "$0")/common.sh -pushd $(dirname "$0")/../../ - -setup_environment_secrets -create_settings_xml_file "settings.xml" - -mvn nexus-staging:drop -B \ - --settings=settings.xml \ - -DstagingRepositoryId=${STAGING_REPOSITORY_ID} diff --git a/.kokoro/release/promote.cfg b/.kokoro/release/promote.cfg deleted file mode 100644 index 44d8048b..00000000 --- a/.kokoro/release/promote.cfg +++ /dev/null @@ -1,6 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -env_vars: { - key: "TRAMPOLINE_BUILD_FILE" - value: "github/java-analytics-admin/.kokoro/release/promote.sh" -} diff --git a/.kokoro/release/promote.sh b/.kokoro/release/promote.sh deleted file mode 100755 index 3cac3d8a..00000000 --- a/.kokoro/release/promote.sh +++ /dev/null @@ -1,34 +0,0 @@ -#!/bin/bash -# Copyright 2018 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -set -eo pipefail - -# STAGING_REPOSITORY_ID must be set -if [ -z "${STAGING_REPOSITORY_ID}" ]; then - echo "Missing STAGING_REPOSITORY_ID environment variable" - exit 1 -fi - -source $(dirname "$0")/common.sh - -pushd $(dirname "$0")/../../ - -setup_environment_secrets -create_settings_xml_file "settings.xml" - -mvn nexus-staging:release -B \ - -DperformRelease=true \ - --settings=settings.xml \ - -DstagingRepositoryId=${STAGING_REPOSITORY_ID} diff --git a/.kokoro/release/publish_javadoc.cfg b/.kokoro/release/publish_javadoc.cfg deleted file mode 100644 index 3a4b2976..00000000 --- a/.kokoro/release/publish_javadoc.cfg +++ /dev/null @@ -1,23 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/doc-templates/" - -env_vars: { - key: "STAGING_BUCKET" - value: "docs-staging" -} - -env_vars: { - key: "TRAMPOLINE_BUILD_FILE" - value: "github/java-analytics-admin/.kokoro/release/publish_javadoc.sh" -} - - -before_action { - fetch_keystore { - keystore_resource { - keystore_config_id: 73713 - keyname: "docuploader_service_account" - } - } -} diff --git a/.kokoro/release/publish_javadoc.sh b/.kokoro/release/publish_javadoc.sh deleted file mode 100755 index 8dabd03d..00000000 --- a/.kokoro/release/publish_javadoc.sh +++ /dev/null @@ -1,53 +0,0 @@ -#!/bin/bash -# Copyright 2019 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -set -eo pipefail - -if [[ -z "${CREDENTIALS}" ]]; then - CREDENTIALS=${KOKORO_KEYSTORE_DIR}/73713_docuploader_service_account -fi - -if [[ -z "${STAGING_BUCKET}" ]]; then - echo "Need to set STAGING_BUCKET environment variable" - exit 1 -fi - -# work from the git root directory -pushd $(dirname "$0")/../../ - -# install docuploader package -python3 -m pip install --require-hashes -r .kokoro/requirements.txt - -# compile all packages -mvn clean install -B -q -DskipTests=true - -export NAME=google-analytics-admin -export VERSION=$(grep ${NAME}: versions.txt | cut -d: -f3) - -# build the docs -mvn site -B -q - -pushd target/site/apidocs - -# create metadata -python3 -m docuploader create-metadata \ - --name ${NAME} \ - --version ${VERSION} \ - --language java - -# upload docs -python3 -m docuploader upload . \ - --credentials ${CREDENTIALS} \ - --staging-bucket ${STAGING_BUCKET} diff --git a/.kokoro/release/publish_javadoc11.cfg b/.kokoro/release/publish_javadoc11.cfg deleted file mode 100644 index 1f0870f2..00000000 --- a/.kokoro/release/publish_javadoc11.cfg +++ /dev/null @@ -1,30 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -# cloud-rad production -env_vars: { - key: "STAGING_BUCKET_V2" - value: "docs-staging-v2" -} - -# Configure the docker image for kokoro-trampoline -env_vars: { - key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-kokoro-resources/java11" -} - -env_vars: { - key: "TRAMPOLINE_BUILD_FILE" - value: "github/java-analytics-admin/.kokoro/release/publish_javadoc11.sh" -} - -before_action { - fetch_keystore { - keystore_resource { - keystore_config_id: 73713 - keyname: "docuploader_service_account" - } - } -} - -# Downloads docfx doclet resource. This will be in ${KOKORO_GFILE_DIR}/ -gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/docfx" diff --git a/.kokoro/release/publish_javadoc11.sh b/.kokoro/release/publish_javadoc11.sh deleted file mode 100755 index 75e6468c..00000000 --- a/.kokoro/release/publish_javadoc11.sh +++ /dev/null @@ -1,63 +0,0 @@ -#!/bin/bash -# Copyright 2021 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -set -eo pipefail - -if [[ -z "${CREDENTIALS}" ]]; then - CREDENTIALS=${KOKORO_KEYSTORE_DIR}/73713_docuploader_service_account -fi - -if [[ -z "${STAGING_BUCKET_V2}" ]]; then - echo "Need to set STAGING_BUCKET_V2 environment variable" - exit 1 -fi - -# work from the git root directory -pushd $(dirname "$0")/../../ - -# install docuploader package -python3 -m pip install --require-hashes -r .kokoro/requirements.txt - -# compile all packages -mvn clean install -B -q -DskipTests=true - -export NAME=google-analytics-admin -export VERSION=$(grep ${NAME}: versions.txt | cut -d: -f3) - -# cloud RAD generation -mvn clean javadoc:aggregate -B -q -P docFX -# include CHANGELOG -cp CHANGELOG.md target/docfx-yml/history.md - -pushd target/docfx-yml - -# create metadata -python3 -m docuploader create-metadata \ - --name ${NAME} \ - --version ${VERSION} \ - --xrefs devsite://java/gax \ - --xrefs devsite://java/google-cloud-core \ - --xrefs devsite://java/api-common \ - --xrefs devsite://java/proto-google-common-protos \ - --xrefs devsite://java/google-api-client \ - --xrefs devsite://java/google-http-client \ - --xrefs devsite://java/protobuf \ - --language java - -# upload yml to production bucket -python3 -m docuploader upload . \ - --credentials ${CREDENTIALS} \ - --staging-bucket ${STAGING_BUCKET_V2} \ - --destination-prefix docfx diff --git a/.kokoro/release/snapshot.cfg b/.kokoro/release/snapshot.cfg deleted file mode 100644 index 275a8355..00000000 --- a/.kokoro/release/snapshot.cfg +++ /dev/null @@ -1,6 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -env_vars: { - key: "TRAMPOLINE_BUILD_FILE" - value: "github/java-analytics-admin/.kokoro/release/snapshot.sh" -} \ No newline at end of file diff --git a/.kokoro/release/snapshot.sh b/.kokoro/release/snapshot.sh deleted file mode 100755 index 1f55b770..00000000 --- a/.kokoro/release/snapshot.sh +++ /dev/null @@ -1,33 +0,0 @@ -#!/bin/bash -# Copyright 2019 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -set -eo pipefail - -source $(dirname "$0")/common.sh -MAVEN_SETTINGS_FILE=$(realpath $(dirname "$0")/../../)/settings.xml -pushd $(dirname "$0")/../../ - -# ensure we're trying to push a snapshot (no-result returns non-zero exit code) -grep SNAPSHOT versions.txt - -setup_environment_secrets -create_settings_xml_file "settings.xml" - -mvn clean deploy -B \ - --settings ${MAVEN_SETTINGS_FILE} \ - -DperformRelease=true \ - -Dgpg.executable=gpg \ - -Dgpg.passphrase=${GPG_PASSPHRASE} \ - -Dgpg.homedir=${GPG_HOMEDIR} diff --git a/.kokoro/release/stage.cfg b/.kokoro/release/stage.cfg deleted file mode 100644 index 868f59ab..00000000 --- a/.kokoro/release/stage.cfg +++ /dev/null @@ -1,19 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -env_vars: { - key: "TRAMPOLINE_BUILD_FILE" - value: "github/java-analytics-admin/.kokoro/release/stage.sh" -} - -# Need to save the properties file -action { - define_artifacts { - regex: "github/java-analytics-admin/target/nexus-staging/staging/*.properties" - strip_prefix: "github/java-analytics-admin" - } -} - -env_vars: { - key: "SECRET_MANAGER_KEYS" - value: "releasetool-publish-reporter-app,releasetool-publish-reporter-googleapis-installation,releasetool-publish-reporter-pem" -} diff --git a/.kokoro/release/stage.sh b/.kokoro/release/stage.sh deleted file mode 100755 index 61e714d6..00000000 --- a/.kokoro/release/stage.sh +++ /dev/null @@ -1,47 +0,0 @@ -#!/bin/bash -# Copyright 2018 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -set -eo pipefail - -# Start the releasetool reporter -requirementsFile=$(realpath $(dirname "${BASH_SOURCE[0]}")/../requirements.txt) -python3 -m pip install --require-hashes -r $requirementsFile -python3 -m releasetool publish-reporter-script > /tmp/publisher-script; source /tmp/publisher-script - -source $(dirname "$0")/common.sh -source $(dirname "$0")/../common.sh -MAVEN_SETTINGS_FILE=$(realpath $(dirname "$0")/../../)/settings.xml -pushd $(dirname "$0")/../../ - -setup_environment_secrets -create_settings_xml_file "settings.xml" - -# attempt to stage 3 times with exponential backoff (starting with 10 seconds) -retry_with_backoff 3 10 \ - mvn clean deploy -B \ - --settings ${MAVEN_SETTINGS_FILE} \ - -DskipTests=true \ - -Dclirr.skip=true \ - -DperformRelease=true \ - -Dgpg.executable=gpg \ - -Dgpg.passphrase=${GPG_PASSPHRASE} \ - -Dgpg.homedir=${GPG_HOMEDIR} - -if [[ -n "${AUTORELEASE_PR}" ]] -then - mvn nexus-staging:release -B \ - -DperformRelease=true \ - --settings=settings.xml -fi diff --git a/.kokoro/requirements.in b/.kokoro/requirements.in deleted file mode 100644 index 6aa7cf2b..00000000 --- a/.kokoro/requirements.in +++ /dev/null @@ -1,33 +0,0 @@ -gcp-docuploader==0.6.3 -google-crc32c==1.3.0 -googleapis-common-protos==1.56.3 -gcp-releasetool==1.8.7 -cachetools==4.2.4 -cffi==1.15.1 -jeepney==0.7.1 -jinja2==3.0.3 -markupsafe==2.0.1 -keyring==23.4.1 -packaging==21.3 -protobuf==3.19.5 -pyjwt==2.4.0 -pyparsing==3.0.9 -pycparser==2.21 -pyperclip==1.8.2 -python-dateutil==2.8.2 -requests==2.27.1 -certifi==2022.9.24 -importlib-metadata==4.8.3 -zipp==3.6.0 -google_api_core==2.8.2 -google-cloud-storage==2.0.0 -google-resumable-media==2.3.3 -google-cloud-core==2.3.1 -typing-extensions==4.1.1 -urllib3==1.26.12 -zipp==3.6.0 -rsa==4.9 -six==1.16.0 -attrs==22.1.0 -google-auth==2.11.0 -idna==3.4 \ No newline at end of file diff --git a/.kokoro/requirements.txt b/.kokoro/requirements.txt deleted file mode 100644 index 02ae42bb..00000000 --- a/.kokoro/requirements.txt +++ /dev/null @@ -1,456 +0,0 @@ -# -# This file is autogenerated by pip-compile with python 3.10 -# To update, run: -# -# pip-compile --allow-unsafe --generate-hashes requirements.in -# -attrs==22.1.0 \ - --hash=sha256:29adc2665447e5191d0e7c568fde78b21f9672d344281d0c6e1ab085429b22b6 \ - --hash=sha256:86efa402f67bf2df34f51a335487cf46b1ec130d02b8d39fd248abfd30da551c - # via - # -r requirements.in - # gcp-releasetool -cachetools==4.2.4 \ - --hash=sha256:89ea6f1b638d5a73a4f9226be57ac5e4f399d22770b92355f92dcb0f7f001693 \ - --hash=sha256:92971d3cb7d2a97efff7c7bb1657f21a8f5fb309a37530537c71b1774189f2d1 - # via - # -r requirements.in - # google-auth -certifi==2022.9.24 \ - --hash=sha256:0d9c601124e5a6ba9712dbc60d9c53c21e34f5f641fe83002317394311bdce14 \ - --hash=sha256:90c1a32f1d68f940488354e36370f6cca89f0f106db09518524c88d6ed83f382 - # via - # -r requirements.in - # requests -cffi==1.15.1 \ - --hash=sha256:00a9ed42e88df81ffae7a8ab6d9356b371399b91dbdf0c3cb1e84c03a13aceb5 \ - --hash=sha256:03425bdae262c76aad70202debd780501fabeaca237cdfddc008987c0e0f59ef \ - --hash=sha256:04ed324bda3cda42b9b695d51bb7d54b680b9719cfab04227cdd1e04e5de3104 \ - --hash=sha256:0e2642fe3142e4cc4af0799748233ad6da94c62a8bec3a6648bf8ee68b1c7426 \ - --hash=sha256:173379135477dc8cac4bc58f45db08ab45d228b3363adb7af79436135d028405 \ - --hash=sha256:198caafb44239b60e252492445da556afafc7d1e3ab7a1fb3f0584ef6d742375 \ - --hash=sha256:1e74c6b51a9ed6589199c787bf5f9875612ca4a8a0785fb2d4a84429badaf22a \ - --hash=sha256:2012c72d854c2d03e45d06ae57f40d78e5770d252f195b93f581acf3ba44496e \ - --hash=sha256:21157295583fe8943475029ed5abdcf71eb3911894724e360acff1d61c1d54bc \ - --hash=sha256:2470043b93ff09bf8fb1d46d1cb756ce6132c54826661a32d4e4d132e1977adf \ - --hash=sha256:285d29981935eb726a4399badae8f0ffdff4f5050eaa6d0cfc3f64b857b77185 \ - --hash=sha256:30d78fbc8ebf9c92c9b7823ee18eb92f2e6ef79b45ac84db507f52fbe3ec4497 \ - --hash=sha256:320dab6e7cb2eacdf0e658569d2575c4dad258c0fcc794f46215e1e39f90f2c3 \ - --hash=sha256:33ab79603146aace82c2427da5ca6e58f2b3f2fb5da893ceac0c42218a40be35 \ - --hash=sha256:3548db281cd7d2561c9ad9984681c95f7b0e38881201e157833a2342c30d5e8c \ - --hash=sha256:3799aecf2e17cf585d977b780ce79ff0dc9b78d799fc694221ce814c2c19db83 \ - --hash=sha256:39d39875251ca8f612b6f33e6b1195af86d1b3e60086068be9cc053aa4376e21 \ - --hash=sha256:3b926aa83d1edb5aa5b427b4053dc420ec295a08e40911296b9eb1b6170f6cca \ - --hash=sha256:3bcde07039e586f91b45c88f8583ea7cf7a0770df3a1649627bf598332cb6984 \ - --hash=sha256:3d08afd128ddaa624a48cf2b859afef385b720bb4b43df214f85616922e6a5ac \ - --hash=sha256:3eb6971dcff08619f8d91607cfc726518b6fa2a9eba42856be181c6d0d9515fd \ - --hash=sha256:40f4774f5a9d4f5e344f31a32b5096977b5d48560c5592e2f3d2c4374bd543ee \ - --hash=sha256:4289fc34b2f5316fbb762d75362931e351941fa95fa18789191b33fc4cf9504a \ - --hash=sha256:470c103ae716238bbe698d67ad020e1db9d9dba34fa5a899b5e21577e6d52ed2 \ - --hash=sha256:4f2c9f67e9821cad2e5f480bc8d83b8742896f1242dba247911072d4fa94c192 \ - --hash=sha256:50a74364d85fd319352182ef59c5c790484a336f6db772c1a9231f1c3ed0cbd7 \ - --hash=sha256:54a2db7b78338edd780e7ef7f9f6c442500fb0d41a5a4ea24fff1c929d5af585 \ - --hash=sha256:5635bd9cb9731e6d4a1132a498dd34f764034a8ce60cef4f5319c0541159392f \ - --hash=sha256:59c0b02d0a6c384d453fece7566d1c7e6b7bae4fc5874ef2ef46d56776d61c9e \ - --hash=sha256:5d598b938678ebf3c67377cdd45e09d431369c3b1a5b331058c338e201f12b27 \ - --hash=sha256:5df2768244d19ab7f60546d0c7c63ce1581f7af8b5de3eb3004b9b6fc8a9f84b \ - --hash=sha256:5ef34d190326c3b1f822a5b7a45f6c4535e2f47ed06fec77d3d799c450b2651e \ - --hash=sha256:6975a3fac6bc83c4a65c9f9fcab9e47019a11d3d2cf7f3c0d03431bf145a941e \ - --hash=sha256:6c9a799e985904922a4d207a94eae35c78ebae90e128f0c4e521ce339396be9d \ - --hash=sha256:70df4e3b545a17496c9b3f41f5115e69a4f2e77e94e1d2a8e1070bc0c38c8a3c \ - --hash=sha256:7473e861101c9e72452f9bf8acb984947aa1661a7704553a9f6e4baa5ba64415 \ - --hash=sha256:8102eaf27e1e448db915d08afa8b41d6c7ca7a04b7d73af6514df10a3e74bd82 \ - --hash=sha256:87c450779d0914f2861b8526e035c5e6da0a3199d8f1add1a665e1cbc6fc6d02 \ - --hash=sha256:8b7ee99e510d7b66cdb6c593f21c043c248537a32e0bedf02e01e9553a172314 \ - --hash=sha256:91fc98adde3d7881af9b59ed0294046f3806221863722ba7d8d120c575314325 \ - --hash=sha256:94411f22c3985acaec6f83c6df553f2dbe17b698cc7f8ae751ff2237d96b9e3c \ - --hash=sha256:98d85c6a2bef81588d9227dde12db8a7f47f639f4a17c9ae08e773aa9c697bf3 \ - --hash=sha256:9ad5db27f9cabae298d151c85cf2bad1d359a1b9c686a275df03385758e2f914 \ - --hash=sha256:a0b71b1b8fbf2b96e41c4d990244165e2c9be83d54962a9a1d118fd8657d2045 \ - --hash=sha256:a0f100c8912c114ff53e1202d0078b425bee3649ae34d7b070e9697f93c5d52d \ - --hash=sha256:a591fe9e525846e4d154205572a029f653ada1a78b93697f3b5a8f1f2bc055b9 \ - --hash=sha256:a5c84c68147988265e60416b57fc83425a78058853509c1b0629c180094904a5 \ - --hash=sha256:a66d3508133af6e8548451b25058d5812812ec3798c886bf38ed24a98216fab2 \ - --hash=sha256:a8c4917bd7ad33e8eb21e9a5bbba979b49d9a97acb3a803092cbc1133e20343c \ - --hash=sha256:b3bbeb01c2b273cca1e1e0c5df57f12dce9a4dd331b4fa1635b8bec26350bde3 \ - --hash=sha256:cba9d6b9a7d64d4bd46167096fc9d2f835e25d7e4c121fb2ddfc6528fb0413b2 \ - --hash=sha256:cc4d65aeeaa04136a12677d3dd0b1c0c94dc43abac5860ab33cceb42b801c1e8 \ - --hash=sha256:ce4bcc037df4fc5e3d184794f27bdaab018943698f4ca31630bc7f84a7b69c6d \ - --hash=sha256:cec7d9412a9102bdc577382c3929b337320c4c4c4849f2c5cdd14d7368c5562d \ - --hash=sha256:d400bfb9a37b1351253cb402671cea7e89bdecc294e8016a707f6d1d8ac934f9 \ - --hash=sha256:d61f4695e6c866a23a21acab0509af1cdfd2c013cf256bbf5b6b5e2695827162 \ - --hash=sha256:db0fbb9c62743ce59a9ff687eb5f4afbe77e5e8403d6697f7446e5f609976f76 \ - --hash=sha256:dd86c085fae2efd48ac91dd7ccffcfc0571387fe1193d33b6394db7ef31fe2a4 \ - --hash=sha256:e00b098126fd45523dd056d2efba6c5a63b71ffe9f2bbe1a4fe1716e1d0c331e \ - --hash=sha256:e229a521186c75c8ad9490854fd8bbdd9a0c9aa3a524326b55be83b54d4e0ad9 \ - --hash=sha256:e263d77ee3dd201c3a142934a086a4450861778baaeeb45db4591ef65550b0a6 \ - --hash=sha256:ed9cb427ba5504c1dc15ede7d516b84757c3e3d7868ccc85121d9310d27eed0b \ - --hash=sha256:fa6693661a4c91757f4412306191b6dc88c1703f780c8234035eac011922bc01 \ - --hash=sha256:fcd131dd944808b5bdb38e6f5b53013c5aa4f334c5cad0c72742f6eba4b73db0 - # via - # -r requirements.in - # cryptography -charset-normalizer==2.0.12 \ - --hash=sha256:2857e29ff0d34db842cd7ca3230549d1a697f96ee6d3fb071cfa6c7393832597 \ - --hash=sha256:6881edbebdb17b39b4eaaa821b438bf6eddffb4468cf344f09f89def34a8b1df - # via requests -click==8.0.4 \ - --hash=sha256:6a7a62563bbfabfda3a38f3023a1db4a35978c0abd76f6c9605ecd6554d6d9b1 \ - --hash=sha256:8458d7b1287c5fb128c90e23381cf99dcde74beaf6c7ff6384ce84d6fe090adb - # via - # gcp-docuploader - # gcp-releasetool -colorlog==6.7.0 \ - --hash=sha256:0d33ca236784a1ba3ff9c532d4964126d8a2c44f1f0cb1d2b0728196f512f662 \ - --hash=sha256:bd94bd21c1e13fac7bd3153f4bc3a7dc0eb0974b8bc2fdf1a989e474f6e582e5 - # via gcp-docuploader -cryptography==38.0.1 \ - --hash=sha256:0297ffc478bdd237f5ca3a7dc96fc0d315670bfa099c04dc3a4a2172008a405a \ - --hash=sha256:10d1f29d6292fc95acb597bacefd5b9e812099d75a6469004fd38ba5471a977f \ - --hash=sha256:16fa61e7481f4b77ef53991075de29fc5bacb582a1244046d2e8b4bb72ef66d0 \ - --hash=sha256:194044c6b89a2f9f169df475cc167f6157eb9151cc69af8a2a163481d45cc407 \ - --hash=sha256:1db3d807a14931fa317f96435695d9ec386be7b84b618cc61cfa5d08b0ae33d7 \ - --hash=sha256:3261725c0ef84e7592597606f6583385fed2a5ec3909f43bc475ade9729a41d6 \ - --hash=sha256:3b72c360427889b40f36dc214630e688c2fe03e16c162ef0aa41da7ab1455153 \ - --hash=sha256:3e3a2599e640927089f932295a9a247fc40a5bdf69b0484532f530471a382750 \ - --hash=sha256:3fc26e22840b77326a764ceb5f02ca2d342305fba08f002a8c1f139540cdfaad \ - --hash=sha256:5067ee7f2bce36b11d0e334abcd1ccf8c541fc0bbdaf57cdd511fdee53e879b6 \ - --hash=sha256:52e7bee800ec869b4031093875279f1ff2ed12c1e2f74923e8f49c916afd1d3b \ - --hash=sha256:64760ba5331e3f1794d0bcaabc0d0c39e8c60bf67d09c93dc0e54189dfd7cfe5 \ - --hash=sha256:765fa194a0f3372d83005ab83ab35d7c5526c4e22951e46059b8ac678b44fa5a \ - --hash=sha256:79473cf8a5cbc471979bd9378c9f425384980fcf2ab6534b18ed7d0d9843987d \ - --hash=sha256:896dd3a66959d3a5ddcfc140a53391f69ff1e8f25d93f0e2e7830c6de90ceb9d \ - --hash=sha256:89ed49784ba88c221756ff4d4755dbc03b3c8d2c5103f6d6b4f83a0fb1e85294 \ - --hash=sha256:ac7e48f7e7261207d750fa7e55eac2d45f720027d5703cd9007e9b37bbb59ac0 \ - --hash=sha256:ad7353f6ddf285aeadfaf79e5a6829110106ff8189391704c1d8801aa0bae45a \ - --hash=sha256:b0163a849b6f315bf52815e238bc2b2346604413fa7c1601eea84bcddb5fb9ac \ - --hash=sha256:b6c9b706316d7b5a137c35e14f4103e2115b088c412140fdbd5f87c73284df61 \ - --hash=sha256:c2e5856248a416767322c8668ef1845ad46ee62629266f84a8f007a317141013 \ - --hash=sha256:ca9f6784ea96b55ff41708b92c3f6aeaebde4c560308e5fbbd3173fbc466e94e \ - --hash=sha256:d1a5bd52d684e49a36582193e0b89ff267704cd4025abefb9e26803adeb3e5fb \ - --hash=sha256:d3971e2749a723e9084dd507584e2a2761f78ad2c638aa31e80bc7a15c9db4f9 \ - --hash=sha256:d4ef6cc305394ed669d4d9eebf10d3a101059bdcf2669c366ec1d14e4fb227bd \ - --hash=sha256:d9e69ae01f99abe6ad646947bba8941e896cb3aa805be2597a0400e0764b5818 - # via - # gcp-releasetool - # secretstorage -gcp-docuploader==0.6.3 \ - --hash=sha256:ba8c9d76b3bbac54b0311c503a373b00edc2dc02d6d54ea9507045adb8e870f7 \ - --hash=sha256:c0f5aaa82ce1854a386197e4e359b120ad6d4e57ae2c812fce42219a3288026b - # via -r requirements.in -gcp-releasetool==1.8.7 \ - --hash=sha256:3d2a67c9db39322194afb3b427e9cb0476ce8f2a04033695f0aeb63979fc2b37 \ - --hash=sha256:5e4d28f66e90780d77f3ecf1e9155852b0c3b13cbccb08ab07e66b2357c8da8d - # via -r requirements.in -google-api-core==2.8.2 \ - --hash=sha256:06f7244c640322b508b125903bb5701bebabce8832f85aba9335ec00b3d02edc \ - --hash=sha256:93c6a91ccac79079ac6bbf8b74ee75db970cc899278b97d53bc012f35908cf50 - # via - # -r requirements.in - # google-cloud-core - # google-cloud-storage -google-auth==2.11.0 \ - --hash=sha256:be62acaae38d0049c21ca90f27a23847245c9f161ff54ede13af2cb6afecbac9 \ - --hash=sha256:ed65ecf9f681832298e29328e1ef0a3676e3732b2e56f41532d45f70a22de0fb - # via - # -r requirements.in - # gcp-releasetool - # google-api-core - # google-cloud-core - # google-cloud-storage -google-cloud-core==2.3.1 \ - --hash=sha256:113ba4f492467d5bd442c8d724c1a25ad7384045c3178369038840ecdd19346c \ - --hash=sha256:34334359cb04187bdc80ddcf613e462dfd7a3aabbc3fe4d118517ab4b9303d53 - # via - # -r requirements.in - # google-cloud-storage -google-cloud-storage==2.0.0 \ - --hash=sha256:a57a15aead0f9dfbd4381f1bfdbe8bf89818a4bd75bab846cafcefb2db846c47 \ - --hash=sha256:ec4be60bb223a3a960f0d01697d849b86d91cad815a84915a32ed3635e93a5e7 - # via - # -r requirements.in - # gcp-docuploader -google-crc32c==1.3.0 \ - --hash=sha256:04e7c220798a72fd0f08242bc8d7a05986b2a08a0573396187fd32c1dcdd58b3 \ - --hash=sha256:05340b60bf05b574159e9bd940152a47d38af3fb43803ffe71f11d704b7696a6 \ - --hash=sha256:12674a4c3b56b706153a358eaa1018c4137a5a04635b92b4652440d3d7386206 \ - --hash=sha256:127f9cc3ac41b6a859bd9dc4321097b1a4f6aa7fdf71b4f9227b9e3ebffb4422 \ - --hash=sha256:13af315c3a0eec8bb8b8d80b8b128cb3fcd17d7e4edafc39647846345a3f003a \ - --hash=sha256:1926fd8de0acb9d15ee757175ce7242e235482a783cd4ec711cc999fc103c24e \ - --hash=sha256:226f2f9b8e128a6ca6a9af9b9e8384f7b53a801907425c9a292553a3a7218ce0 \ - --hash=sha256:276de6273eb074a35bc598f8efbc00c7869c5cf2e29c90748fccc8c898c244df \ - --hash=sha256:318f73f5484b5671f0c7f5f63741ab020a599504ed81d209b5c7129ee4667407 \ - --hash=sha256:3bbce1be3687bbfebe29abdb7631b83e6b25da3f4e1856a1611eb21854b689ea \ - --hash=sha256:42ae4781333e331a1743445931b08ebdad73e188fd554259e772556fc4937c48 \ - --hash=sha256:58be56ae0529c664cc04a9c76e68bb92b091e0194d6e3c50bea7e0f266f73713 \ - --hash=sha256:5da2c81575cc3ccf05d9830f9e8d3c70954819ca9a63828210498c0774fda1a3 \ - --hash=sha256:6311853aa2bba4064d0c28ca54e7b50c4d48e3de04f6770f6c60ebda1e975267 \ - --hash=sha256:650e2917660e696041ab3dcd7abac160b4121cd9a484c08406f24c5964099829 \ - --hash=sha256:6a4db36f9721fdf391646685ecffa404eb986cbe007a3289499020daf72e88a2 \ - --hash=sha256:779cbf1ce375b96111db98fca913c1f5ec11b1d870e529b1dc7354b2681a8c3a \ - --hash=sha256:7f6fe42536d9dcd3e2ffb9d3053f5d05221ae3bbcefbe472bdf2c71c793e3183 \ - --hash=sha256:891f712ce54e0d631370e1f4997b3f182f3368179198efc30d477c75d1f44942 \ - --hash=sha256:95c68a4b9b7828ba0428f8f7e3109c5d476ca44996ed9a5f8aac6269296e2d59 \ - --hash=sha256:96a8918a78d5d64e07c8ea4ed2bc44354e3f93f46a4866a40e8db934e4c0d74b \ - --hash=sha256:9c3cf890c3c0ecfe1510a452a165431b5831e24160c5fcf2071f0f85ca5a47cd \ - --hash=sha256:9f58099ad7affc0754ae42e6d87443299f15d739b0ce03c76f515153a5cda06c \ - --hash=sha256:a0b9e622c3b2b8d0ce32f77eba617ab0d6768b82836391e4f8f9e2074582bf02 \ - --hash=sha256:a7f9cbea4245ee36190f85fe1814e2d7b1e5f2186381b082f5d59f99b7f11328 \ - --hash=sha256:bab4aebd525218bab4ee615786c4581952eadc16b1ff031813a2fd51f0cc7b08 \ - --hash=sha256:c124b8c8779bf2d35d9b721e52d4adb41c9bfbde45e6a3f25f0820caa9aba73f \ - --hash=sha256:c9da0a39b53d2fab3e5467329ed50e951eb91386e9d0d5b12daf593973c3b168 \ - --hash=sha256:ca60076c388728d3b6ac3846842474f4250c91efbfe5afa872d3ffd69dd4b318 \ - --hash=sha256:cb6994fff247987c66a8a4e550ef374671c2b82e3c0d2115e689d21e511a652d \ - --hash=sha256:d1c1d6236feab51200272d79b3d3e0f12cf2cbb12b208c835b175a21efdb0a73 \ - --hash=sha256:dd7760a88a8d3d705ff562aa93f8445ead54f58fd482e4f9e2bafb7e177375d4 \ - --hash=sha256:dda4d8a3bb0b50f540f6ff4b6033f3a74e8bf0bd5320b70fab2c03e512a62812 \ - --hash=sha256:e0f1ff55dde0ebcfbef027edc21f71c205845585fffe30d4ec4979416613e9b3 \ - --hash=sha256:e7a539b9be7b9c00f11ef16b55486141bc2cdb0c54762f84e3c6fc091917436d \ - --hash=sha256:eb0b14523758e37802f27b7f8cd973f5f3d33be7613952c0df904b68c4842f0e \ - --hash=sha256:ed447680ff21c14aaceb6a9f99a5f639f583ccfe4ce1a5e1d48eb41c3d6b3217 \ - --hash=sha256:f52a4ad2568314ee713715b1e2d79ab55fab11e8b304fd1462ff5cccf4264b3e \ - --hash=sha256:fbd60c6aaa07c31d7754edbc2334aef50601b7f1ada67a96eb1eb57c7c72378f \ - --hash=sha256:fc28e0db232c62ca0c3600884933178f0825c99be4474cdd645e378a10588125 \ - --hash=sha256:fe31de3002e7b08eb20823b3735b97c86c5926dd0581c7710a680b418a8709d4 \ - --hash=sha256:fec221a051150eeddfdfcff162e6db92c65ecf46cb0f7bb1bf812a1520ec026b \ - --hash=sha256:ff71073ebf0e42258a42a0b34f2c09ec384977e7f6808999102eedd5b49920e3 - # via - # -r requirements.in - # google-resumable-media -google-resumable-media==2.3.3 \ - --hash=sha256:27c52620bd364d1c8116eaac4ea2afcbfb81ae9139fb3199652fcac1724bfb6c \ - --hash=sha256:5b52774ea7a829a8cdaa8bd2d4c3d4bc660c91b30857ab2668d0eb830f4ea8c5 - # via - # -r requirements.in - # google-cloud-storage -googleapis-common-protos==1.56.3 \ - --hash=sha256:6f1369b58ed6cf3a4b7054a44ebe8d03b29c309257583a2bbdc064cd1e4a1442 \ - --hash=sha256:87955d7b3a73e6e803f2572a33179de23989ebba725e05ea42f24838b792e461 - # via - # -r requirements.in - # google-api-core -idna==3.4 \ - --hash=sha256:814f528e8dead7d329833b91c5faa87d60bf71824cd12a7530b5526063d02cb4 \ - --hash=sha256:90b77e79eaa3eba6de819a0c442c0b4ceefc341a7a2ab77d7562bf49f425c5c2 - # via - # -r requirements.in - # requests -importlib-metadata==4.8.3 \ - --hash=sha256:65a9576a5b2d58ca44d133c42a241905cc45e34d2c06fd5ba2bafa221e5d7b5e \ - --hash=sha256:766abffff765960fcc18003801f7044eb6755ffae4521c8e8ce8e83b9c9b0668 - # via - # -r requirements.in - # keyring -jeepney==0.7.1 \ - --hash=sha256:1b5a0ea5c0e7b166b2f5895b91a08c14de8915afda4407fb5022a195224958ac \ - --hash=sha256:fa9e232dfa0c498bd0b8a3a73b8d8a31978304dcef0515adc859d4e096f96f4f - # via - # -r requirements.in - # keyring - # secretstorage -jinja2==3.0.3 \ - --hash=sha256:077ce6014f7b40d03b47d1f1ca4b0fc8328a692bd284016f806ed0eaca390ad8 \ - --hash=sha256:611bb273cd68f3b993fabdc4064fc858c5b47a973cb5aa7999ec1ba405c87cd7 - # via - # -r requirements.in - # gcp-releasetool -keyring==23.4.1 \ - --hash=sha256:17e49fb0d6883c2b4445359434dba95aad84aabb29bbff044ad0ed7100232eca \ - --hash=sha256:89cbd74d4683ed164c8082fb38619341097741323b3786905c6dac04d6915a55 - # via - # -r requirements.in - # gcp-releasetool -markupsafe==2.0.1 \ - --hash=sha256:01a9b8ea66f1658938f65b93a85ebe8bc016e6769611be228d797c9d998dd298 \ - --hash=sha256:023cb26ec21ece8dc3907c0e8320058b2e0cb3c55cf9564da612bc325bed5e64 \ - --hash=sha256:0446679737af14f45767963a1a9ef7620189912317d095f2d9ffa183a4d25d2b \ - --hash=sha256:04635854b943835a6ea959e948d19dcd311762c5c0c6e1f0e16ee57022669194 \ - --hash=sha256:0717a7390a68be14b8c793ba258e075c6f4ca819f15edfc2a3a027c823718567 \ - --hash=sha256:0955295dd5eec6cb6cc2fe1698f4c6d84af2e92de33fbcac4111913cd100a6ff \ - --hash=sha256:0d4b31cc67ab36e3392bbf3862cfbadac3db12bdd8b02a2731f509ed5b829724 \ - --hash=sha256:10f82115e21dc0dfec9ab5c0223652f7197feb168c940f3ef61563fc2d6beb74 \ - --hash=sha256:168cd0a3642de83558a5153c8bd34f175a9a6e7f6dc6384b9655d2697312a646 \ - --hash=sha256:1d609f577dc6e1aa17d746f8bd3c31aa4d258f4070d61b2aa5c4166c1539de35 \ - --hash=sha256:1f2ade76b9903f39aa442b4aadd2177decb66525062db244b35d71d0ee8599b6 \ - --hash=sha256:20dca64a3ef2d6e4d5d615a3fd418ad3bde77a47ec8a23d984a12b5b4c74491a \ - --hash=sha256:2a7d351cbd8cfeb19ca00de495e224dea7e7d919659c2841bbb7f420ad03e2d6 \ - --hash=sha256:2d7d807855b419fc2ed3e631034685db6079889a1f01d5d9dac950f764da3dad \ - --hash=sha256:2ef54abee730b502252bcdf31b10dacb0a416229b72c18b19e24a4509f273d26 \ - --hash=sha256:36bc903cbb393720fad60fc28c10de6acf10dc6cc883f3e24ee4012371399a38 \ - --hash=sha256:37205cac2a79194e3750b0af2a5720d95f786a55ce7df90c3af697bfa100eaac \ - --hash=sha256:3c112550557578c26af18a1ccc9e090bfe03832ae994343cfdacd287db6a6ae7 \ - --hash=sha256:3dd007d54ee88b46be476e293f48c85048603f5f516008bee124ddd891398ed6 \ - --hash=sha256:4296f2b1ce8c86a6aea78613c34bb1a672ea0e3de9c6ba08a960efe0b0a09047 \ - --hash=sha256:47ab1e7b91c098ab893b828deafa1203de86d0bc6ab587b160f78fe6c4011f75 \ - --hash=sha256:49e3ceeabbfb9d66c3aef5af3a60cc43b85c33df25ce03d0031a608b0a8b2e3f \ - --hash=sha256:4dc8f9fb58f7364b63fd9f85013b780ef83c11857ae79f2feda41e270468dd9b \ - --hash=sha256:4efca8f86c54b22348a5467704e3fec767b2db12fc39c6d963168ab1d3fc9135 \ - --hash=sha256:53edb4da6925ad13c07b6d26c2a852bd81e364f95301c66e930ab2aef5b5ddd8 \ - --hash=sha256:5855f8438a7d1d458206a2466bf82b0f104a3724bf96a1c781ab731e4201731a \ - --hash=sha256:594c67807fb16238b30c44bdf74f36c02cdf22d1c8cda91ef8a0ed8dabf5620a \ - --hash=sha256:5b6d930f030f8ed98e3e6c98ffa0652bdb82601e7a016ec2ab5d7ff23baa78d1 \ - --hash=sha256:5bb28c636d87e840583ee3adeb78172efc47c8b26127267f54a9c0ec251d41a9 \ - --hash=sha256:60bf42e36abfaf9aff1f50f52644b336d4f0a3fd6d8a60ca0d054ac9f713a864 \ - --hash=sha256:611d1ad9a4288cf3e3c16014564df047fe08410e628f89805e475368bd304914 \ - --hash=sha256:6300b8454aa6930a24b9618fbb54b5a68135092bc666f7b06901f897fa5c2fee \ - --hash=sha256:63f3268ba69ace99cab4e3e3b5840b03340efed0948ab8f78d2fd87ee5442a4f \ - --hash=sha256:6557b31b5e2c9ddf0de32a691f2312a32f77cd7681d8af66c2692efdbef84c18 \ - --hash=sha256:693ce3f9e70a6cf7d2fb9e6c9d8b204b6b39897a2c4a1aa65728d5ac97dcc1d8 \ - --hash=sha256:6a7fae0dd14cf60ad5ff42baa2e95727c3d81ded453457771d02b7d2b3f9c0c2 \ - --hash=sha256:6c4ca60fa24e85fe25b912b01e62cb969d69a23a5d5867682dd3e80b5b02581d \ - --hash=sha256:6fcf051089389abe060c9cd7caa212c707e58153afa2c649f00346ce6d260f1b \ - --hash=sha256:7d91275b0245b1da4d4cfa07e0faedd5b0812efc15b702576d103293e252af1b \ - --hash=sha256:89c687013cb1cd489a0f0ac24febe8c7a666e6e221b783e53ac50ebf68e45d86 \ - --hash=sha256:8d206346619592c6200148b01a2142798c989edcb9c896f9ac9722a99d4e77e6 \ - --hash=sha256:905fec760bd2fa1388bb5b489ee8ee5f7291d692638ea5f67982d968366bef9f \ - --hash=sha256:97383d78eb34da7e1fa37dd273c20ad4320929af65d156e35a5e2d89566d9dfb \ - --hash=sha256:984d76483eb32f1bcb536dc27e4ad56bba4baa70be32fa87152832cdd9db0833 \ - --hash=sha256:99df47edb6bda1249d3e80fdabb1dab8c08ef3975f69aed437cb69d0a5de1e28 \ - --hash=sha256:9f02365d4e99430a12647f09b6cc8bab61a6564363f313126f775eb4f6ef798e \ - --hash=sha256:a30e67a65b53ea0a5e62fe23682cfe22712e01f453b95233b25502f7c61cb415 \ - --hash=sha256:ab3ef638ace319fa26553db0624c4699e31a28bb2a835c5faca8f8acf6a5a902 \ - --hash=sha256:aca6377c0cb8a8253e493c6b451565ac77e98c2951c45f913e0b52facdcff83f \ - --hash=sha256:add36cb2dbb8b736611303cd3bfcee00afd96471b09cda130da3581cbdc56a6d \ - --hash=sha256:b2f4bf27480f5e5e8ce285a8c8fd176c0b03e93dcc6646477d4630e83440c6a9 \ - --hash=sha256:b7f2d075102dc8c794cbde1947378051c4e5180d52d276987b8d28a3bd58c17d \ - --hash=sha256:baa1a4e8f868845af802979fcdbf0bb11f94f1cb7ced4c4b8a351bb60d108145 \ - --hash=sha256:be98f628055368795d818ebf93da628541e10b75b41c559fdf36d104c5787066 \ - --hash=sha256:bf5d821ffabf0ef3533c39c518f3357b171a1651c1ff6827325e4489b0e46c3c \ - --hash=sha256:c47adbc92fc1bb2b3274c4b3a43ae0e4573d9fbff4f54cd484555edbf030baf1 \ - --hash=sha256:cdfba22ea2f0029c9261a4bd07e830a8da012291fbe44dc794e488b6c9bb353a \ - --hash=sha256:d6c7ebd4e944c85e2c3421e612a7057a2f48d478d79e61800d81468a8d842207 \ - --hash=sha256:d7f9850398e85aba693bb640262d3611788b1f29a79f0c93c565694658f4071f \ - --hash=sha256:d8446c54dc28c01e5a2dbac5a25f071f6653e6e40f3a8818e8b45d790fe6ef53 \ - --hash=sha256:deb993cacb280823246a026e3b2d81c493c53de6acfd5e6bfe31ab3402bb37dd \ - --hash=sha256:e0f138900af21926a02425cf736db95be9f4af72ba1bb21453432a07f6082134 \ - --hash=sha256:e9936f0b261d4df76ad22f8fee3ae83b60d7c3e871292cd42f40b81b70afae85 \ - --hash=sha256:f0567c4dc99f264f49fe27da5f735f414c4e7e7dd850cfd8e69f0862d7c74ea9 \ - --hash=sha256:f5653a225f31e113b152e56f154ccbe59eeb1c7487b39b9d9f9cdb58e6c79dc5 \ - --hash=sha256:f826e31d18b516f653fe296d967d700fddad5901ae07c622bb3705955e1faa94 \ - --hash=sha256:f8ba0e8349a38d3001fae7eadded3f6606f0da5d748ee53cc1dab1d6527b9509 \ - --hash=sha256:f9081981fe268bd86831e5c75f7de206ef275defcb82bc70740ae6dc507aee51 \ - --hash=sha256:fa130dd50c57d53368c9d59395cb5526eda596d3ffe36666cd81a44d56e48872 - # via - # -r requirements.in - # jinja2 -packaging==21.3 \ - --hash=sha256:dd47c42927d89ab911e606518907cc2d3a1f38bbd026385970643f9c5b8ecfeb \ - --hash=sha256:ef103e05f519cdc783ae24ea4e2e0f508a9c99b2d4969652eed6a2e1ea5bd522 - # via - # -r requirements.in - # gcp-releasetool -protobuf==3.19.5 \ - --hash=sha256:1867f93b06a183f87696871bb8d1e99ee71dbb69d468ce1f0cc8bf3d30f982f3 \ - --hash=sha256:3c4160b601220627f7e91154e572baf5e161a9c3f445a8242d536ee3d0b7b17c \ - --hash=sha256:4ee2af7051d3b10c8a4fe6fd1a2c69f201fea36aeee7086cf202a692e1b99ee1 \ - --hash=sha256:5266c36cc0af3bb3dbf44f199d225b33da66a9a5c3bdc2b14865ad10eddf0e37 \ - --hash=sha256:5470f892961af464ae6eaf0f3099e2c1190ae8c7f36f174b89491281341f79ca \ - --hash=sha256:66d14b5b90090353efe75c9fb1bf65ef7267383034688d255b500822e37d5c2f \ - --hash=sha256:67efb5d20618020aa9596e17bfc37ca068c28ec0c1507d9507f73c93d46c9855 \ - --hash=sha256:696e6cfab94cc15a14946f2bf72719dced087d437adbd994fff34f38986628bc \ - --hash=sha256:6a02172b9650f819d01fb8e224fc69b0706458fc1ab4f1c669281243c71c1a5e \ - --hash=sha256:6eca9ae238ba615d702387a2ddea635d535d769994a9968c09a4ca920c487ab9 \ - --hash=sha256:950abd6c00e7b51f87ae8b18a0ce4d69fea217f62f171426e77de5061f6d9850 \ - --hash=sha256:9e1d74032f56ff25f417cfe84c8147047732e5059137ca42efad20cbbd25f5e0 \ - --hash=sha256:9e42b1cf2ecd8a1bd161239e693f22035ba99905ae6d7efeac8a0546c7ec1a27 \ - --hash=sha256:9f957ef53e872d58a0afd3bf6d80d48535d28c99b40e75e6634cbc33ea42fd54 \ - --hash=sha256:a89aa0c042e61e11ade320b802d6db4ee5391d8d973e46d3a48172c1597789f8 \ - --hash=sha256:c0f80876a8ff0ae7064084ed094eb86497bd5a3812e6fc96a05318b92301674e \ - --hash=sha256:c44e3282cff74ad18c7e8a0375f407f69ee50c2116364b44492a196293e08b21 \ - --hash=sha256:d249519ba5ecf5dd6b18150c9b6bcde510b273714b696f3923ff8308fc11ae49 \ - --hash=sha256:d3973a2d58aefc7d1230725c2447ce7f86a71cbc094b86a77c6ee1505ac7cdb1 \ - --hash=sha256:dca2284378a5f2a86ffed35c6ac147d14c48b525eefcd1083e5a9ce28dfa8657 \ - --hash=sha256:e63b0b3c42e51c94add62b010366cd4979cb6d5f06158bcae8faac4c294f91e1 \ - --hash=sha256:f2b599a21c9a32e171ec29a2ac54e03297736c578698e11b099d031f79da114b \ - --hash=sha256:f2bde37667b18c2b5280df83bc799204394a5d2d774e4deaf9de0eb741df6833 \ - --hash=sha256:f4f909f4dde413dec435a44b0894956d55bb928ded7d6e3c726556ca4c796e84 \ - --hash=sha256:f976234e20ab2785f54224bcdafa027674e23663b132fa3ca0caa291a6cfbde7 \ - --hash=sha256:f9cebda093c2f6bfed88f1c17cdade09d4d96096421b344026feee236532d4de - # via - # -r requirements.in - # gcp-docuploader - # gcp-releasetool - # google-api-core - # google-cloud-storage - # googleapis-common-protos -pyasn1==0.4.8 \ - --hash=sha256:39c7e2ec30515947ff4e87fb6f456dfc6e84857d34be479c9d4a4ba4bf46aa5d \ - --hash=sha256:aef77c9fb94a3ac588e87841208bdec464471d9871bd5050a287cc9a475cd0ba - # via - # pyasn1-modules - # rsa -pyasn1-modules==0.2.8 \ - --hash=sha256:905f84c712230b2c592c19470d3ca8d552de726050d1d1716282a1f6146be65e \ - --hash=sha256:a50b808ffeb97cb3601dd25981f6b016cbb3d31fbf57a8b8a87428e6158d0c74 - # via google-auth -pycparser==2.21 \ - --hash=sha256:8ee45429555515e1f6b185e78100aea234072576aa43ab53aefcae078162fca9 \ - --hash=sha256:e644fdec12f7872f86c58ff790da456218b10f863970249516d60a5eaca77206 - # via - # -r requirements.in - # cffi -pyjwt==2.4.0 \ - --hash=sha256:72d1d253f32dbd4f5c88eaf1fdc62f3a19f676ccbadb9dbc5d07e951b2b26daf \ - --hash=sha256:d42908208c699b3b973cbeb01a969ba6a96c821eefb1c5bfe4c390c01d67abba - # via - # -r requirements.in - # gcp-releasetool -pyparsing==3.0.9 \ - --hash=sha256:2b020ecf7d21b687f219b71ecad3631f644a47f01403fa1d1036b0c6416d70fb \ - --hash=sha256:5026bae9a10eeaefb61dab2f09052b9f4307d44aee4eda64b309723d8d206bbc - # via - # -r requirements.in - # packaging -pyperclip==1.8.2 \ - --hash=sha256:105254a8b04934f0bc84e9c24eb360a591aaf6535c9def5f29d92af107a9bf57 - # via - # -r requirements.in - # gcp-releasetool -python-dateutil==2.8.2 \ - --hash=sha256:0123cacc1627ae19ddf3c27a5de5bd67ee4586fbdd6440d9748f8abb483d3e86 \ - --hash=sha256:961d03dc3453ebbc59dbdea9e4e11c5651520a876d0f4db161e8674aae935da9 - # via - # -r requirements.in - # gcp-releasetool -requests==2.27.1 \ - --hash=sha256:68d7c56fd5a8999887728ef304a6d12edc7be74f1cfa47714fc8b414525c9a61 \ - --hash=sha256:f22fa1e554c9ddfd16e6e41ac79759e17be9e492b3587efa038054674760e72d - # via - # -r requirements.in - # gcp-releasetool - # google-api-core - # google-cloud-storage -rsa==4.9 \ - --hash=sha256:90260d9058e514786967344d0ef75fa8727eed8a7d2e43ce9f4bcf1b536174f7 \ - --hash=sha256:e38464a49c6c85d7f1351b0126661487a7e0a14a50f1675ec50eb34d4f20ef21 - # via - # -r requirements.in - # google-auth -secretstorage==3.3.3 \ - --hash=sha256:2403533ef369eca6d2ba81718576c5e0f564d5cca1b58f73a8b23e7d4eeebd77 \ - --hash=sha256:f356e6628222568e3af06f2eba8df495efa13b3b63081dafd4f7d9a7b7bc9f99 - # via keyring -six==1.16.0 \ - --hash=sha256:1e61c37477a1626458e36f7b1d82aa5c9b094fa4802892072e49de9c60c4c926 \ - --hash=sha256:8abb2f1d86890a2dfb989f9a77cfcfd3e47c2a354b01111771326f8aa26e0254 - # via - # -r requirements.in - # gcp-docuploader - # google-auth - # python-dateutil -typing-extensions==4.1.1 \ - --hash=sha256:1a9462dcc3347a79b1f1c0271fbe79e844580bb598bafa1ed208b94da3cdcd42 \ - --hash=sha256:21c85e0fe4b9a155d0799430b0ad741cdce7e359660ccbd8b530613e8df88ce2 - # via -r requirements.in -urllib3==1.26.12 \ - --hash=sha256:3fa96cf423e6987997fc326ae8df396db2a8b7c667747d47ddd8ecba91f4a74e \ - --hash=sha256:b930dd878d5a8afb066a637fbb35144fe7901e3b209d1cd4f524bd0e9deee997 - # via - # -r requirements.in - # requests -zipp==3.6.0 \ - --hash=sha256:71c644c5369f4a6e07636f0aa966270449561fcea2e3d6747b8d23efaa9d7832 \ - --hash=sha256:9fe5ea21568a0a70e50f273397638d39b03353731e6cbbb3fd8502a33fec40bc - # via - # -r requirements.in - # importlib-metadata diff --git a/.kokoro/trampoline.sh b/.kokoro/trampoline.sh deleted file mode 100644 index 8b69b793..00000000 --- a/.kokoro/trampoline.sh +++ /dev/null @@ -1,26 +0,0 @@ -#!/bin/bash -# Copyright 2018 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -set -eo pipefail -# Always run the cleanup script, regardless of the success of bouncing into -# the container. -function cleanup() { - chmod +x ${KOKORO_GFILE_DIR}/trampoline_cleanup.sh - ${KOKORO_GFILE_DIR}/trampoline_cleanup.sh - echo "cleanup"; -} -trap cleanup EXIT - -$(dirname $0)/populate-secrets.sh # Secret Manager secrets. -python3 "${KOKORO_GFILE_DIR}/trampoline_v1.py" diff --git a/.repo-metadata.json b/.repo-metadata.json deleted file mode 100644 index fc85fa7d..00000000 --- a/.repo-metadata.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "api_shortname": "analyticsadmin", - "name_pretty": "Analytics Admin", - "product_documentation": "https://developers.google.com/analytics", - "api_description": "allows you to manage Google Analytics accounts and properties.", - "client_documentation": "https://googleapis.dev/java/google-analytics-admin/latest/index.html", - "release_level": "preview", - "transport": "grpc", - "language": "java", - "repo": "googleapis/java-analytics-admin", - "repo_short": "java-analytics-admin", - "distribution_name": "com.google.analytics:google-analytics-admin", - "api_id": "analyticsadmin.googleapis.com", - "requires_billing": true, - "codeowner_team": "@googleapis/analytics-dpe", - "library_type": "GAPIC_AUTO" -} diff --git a/CHANGELOG.md b/CHANGELOG.md deleted file mode 100644 index 99b4fe20..00000000 --- a/CHANGELOG.md +++ /dev/null @@ -1,456 +0,0 @@ -# Changelog - -## [0.13.5](https://github.com/googleapis/java-analytics-admin/compare/v0.13.4...v0.13.5) (2022-10-05) - - -### Bug Fixes - -* update protobuf to v3.21.7 ([8926f36](https://github.com/googleapis/java-analytics-admin/commit/8926f36286609c897e6421b356cef973439ad161)) - -## [0.13.4](https://github.com/googleapis/java-analytics-admin/compare/v0.13.3...v0.13.4) (2022-10-03) - - -### Dependencies - -* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.4 ([#488](https://github.com/googleapis/java-analytics-admin/issues/488)) ([b7fec02](https://github.com/googleapis/java-analytics-admin/commit/b7fec02b581de8159b335539f096b3dd90aae7d1)) - -## [0.13.3](https://github.com/googleapis/java-analytics-admin/compare/v0.13.2...v0.13.3) (2022-09-29) - - -### Dependencies - -* Update dependency cachetools to v5 ([#478](https://github.com/googleapis/java-analytics-admin/issues/478)) ([5b0ef05](https://github.com/googleapis/java-analytics-admin/commit/5b0ef05d6c2e22fb0c518094d588650e4eb01715)) -* Update dependency certifi to v2022.9.24 ([#460](https://github.com/googleapis/java-analytics-admin/issues/460)) ([df4f29a](https://github.com/googleapis/java-analytics-admin/commit/df4f29a71e6a5130295f7a3da7353d6b70a0b86f)) -* Update dependency charset-normalizer to v2.1.1 ([#464](https://github.com/googleapis/java-analytics-admin/issues/464)) ([37b6a5b](https://github.com/googleapis/java-analytics-admin/commit/37b6a5bb80badb18b6b746ae01a4d2b4ca1e63c6)) -* Update dependency click to v8.1.3 ([#465](https://github.com/googleapis/java-analytics-admin/issues/465)) ([a3d2b71](https://github.com/googleapis/java-analytics-admin/commit/a3d2b71af36b0582938d762ac8447c2e219aff62)) -* Update dependency gcp-releasetool to v1.8.8 ([#461](https://github.com/googleapis/java-analytics-admin/issues/461)) ([eaa01d1](https://github.com/googleapis/java-analytics-admin/commit/eaa01d12cdd8df32d969d534b52266657f24552d)) -* Update dependency google-api-core to v2.10.1 ([#466](https://github.com/googleapis/java-analytics-admin/issues/466)) ([285d167](https://github.com/googleapis/java-analytics-admin/commit/285d167551d0d769da1d62ea6a0063a894907222)) -* Update dependency google-auth to v2.12.0 ([#467](https://github.com/googleapis/java-analytics-admin/issues/467)) ([0ceb3ea](https://github.com/googleapis/java-analytics-admin/commit/0ceb3ea1b7ad5742cf0edf409d9642e8e50ba48a)) -* Update dependency google-cloud-core to v2.3.2 ([#462](https://github.com/googleapis/java-analytics-admin/issues/462)) ([23e2ac0](https://github.com/googleapis/java-analytics-admin/commit/23e2ac0177e8d5451ef796d27dcc805c5fc5b4bf)) -* Update dependency google-cloud-storage to v2.5.0 ([#468](https://github.com/googleapis/java-analytics-admin/issues/468)) ([203d660](https://github.com/googleapis/java-analytics-admin/commit/203d660401bb5d0c616df58278a5df0e98d78155)) -* Update dependency google-crc32c to v1.5.0 ([#469](https://github.com/googleapis/java-analytics-admin/issues/469)) ([bf0cc05](https://github.com/googleapis/java-analytics-admin/commit/bf0cc05d3c919ee627a1214a2dcb605614255aa3)) -* Update dependency googleapis-common-protos to v1.56.4 ([#463](https://github.com/googleapis/java-analytics-admin/issues/463)) ([cb04968](https://github.com/googleapis/java-analytics-admin/commit/cb04968a6ff66388ea09c3bd0b1ca9d0947bc7b3)) -* Update dependency importlib-metadata to v4.12.0 ([#470](https://github.com/googleapis/java-analytics-admin/issues/470)) ([8b37c25](https://github.com/googleapis/java-analytics-admin/commit/8b37c25509f5400f18f08c6ff6cd914e1d3a8069)) -* Update dependency jeepney to v0.8.0 ([#471](https://github.com/googleapis/java-analytics-admin/issues/471)) ([70a02c7](https://github.com/googleapis/java-analytics-admin/commit/70a02c71227e2ee4874f5c5378c3bde309808051)) -* Update dependency jinja2 to v3.1.2 ([#472](https://github.com/googleapis/java-analytics-admin/issues/472)) ([984a22e](https://github.com/googleapis/java-analytics-admin/commit/984a22eeb0b3d02a7656d4b5c798fc1cb538e730)) -* Update dependency keyring to v23.9.3 ([#473](https://github.com/googleapis/java-analytics-admin/issues/473)) ([9622e18](https://github.com/googleapis/java-analytics-admin/commit/9622e181913c154d0a94e43e0c939a8fe21b33df)) -* Update dependency markupsafe to v2.1.1 ([#480](https://github.com/googleapis/java-analytics-admin/issues/480)) ([6bf1240](https://github.com/googleapis/java-analytics-admin/commit/6bf12409e89be6f8f9d119db12bc4915b616bb00)) -* Update dependency protobuf to v3.20.2 ([#481](https://github.com/googleapis/java-analytics-admin/issues/481)) ([7ef1871](https://github.com/googleapis/java-analytics-admin/commit/7ef187127457a6320a0d2e2613580159a5310fa5)) -* Update dependency protobuf to v4 ([#479](https://github.com/googleapis/java-analytics-admin/issues/479)) ([fc9d0a3](https://github.com/googleapis/java-analytics-admin/commit/fc9d0a3b3e39978f2da19aec0d4e7f815a71df26)) -* Update dependency pyjwt to v2.5.0 ([#474](https://github.com/googleapis/java-analytics-admin/issues/474)) ([4816406](https://github.com/googleapis/java-analytics-admin/commit/4816406545b8cb7584dd890359dc99475738e35c)) -* Update dependency requests to v2.28.1 ([#475](https://github.com/googleapis/java-analytics-admin/issues/475)) ([18d051c](https://github.com/googleapis/java-analytics-admin/commit/18d051ca8e42d67235876a56fb9c8312d6a66eaa)) -* Update dependency typing-extensions to v4.3.0 ([#476](https://github.com/googleapis/java-analytics-admin/issues/476)) ([21d06a6](https://github.com/googleapis/java-analytics-admin/commit/21d06a6e4cc8b8cb0811130b247a94f9dad0e09a)) -* Update dependency zipp to v3.8.1 ([#477](https://github.com/googleapis/java-analytics-admin/issues/477)) ([3bb00b0](https://github.com/googleapis/java-analytics-admin/commit/3bb00b05de8d5f9bb06dcc7901031fa97eddba5c)) - -## [0.13.2](https://github.com/googleapis/java-analytics-admin/compare/v0.13.1...v0.13.2) (2022-09-15) - - -### Dependencies - -* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.3 ([#454](https://github.com/googleapis/java-analytics-admin/issues/454)) ([10bc680](https://github.com/googleapis/java-analytics-admin/commit/10bc68042aef3a4d717fa032ce46ccde0c12249b)) - -## [0.13.1](https://github.com/googleapis/java-analytics-admin/compare/v0.13.0...v0.13.1) (2022-09-08) - - -### Dependencies - -* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.2 ([#449](https://github.com/googleapis/java-analytics-admin/issues/449)) ([0b36c7d](https://github.com/googleapis/java-analytics-admin/commit/0b36c7d6afdcc3ca147ee415098c17df1f897a9a)) - -## [0.13.0](https://github.com/googleapis/java-analytics-admin/compare/v0.12.1...v0.13.0) (2022-08-09) - - -### Features - -* add `GetAttributionSettings`, `UpdateAttributionSettings` methods to the Admin API v1alpha ([4a762b4](https://github.com/googleapis/java-analytics-admin/commit/4a762b41a8968884250a4da0de11b0285b863700)) -* add `GetAudience`, 'ListAudience', 'CreateAudience', 'UpdateAudience', 'ArchiveAudience' methods to the Admin API v1alpha ([#441](https://github.com/googleapis/java-analytics-admin/issues/441)) ([4a762b4](https://github.com/googleapis/java-analytics-admin/commit/4a762b41a8968884250a4da0de11b0285b863700)) -* add `RunAccessReport` method to the Admin API v1alpha ([#442](https://github.com/googleapis/java-analytics-admin/issues/442)) ([0d74509](https://github.com/googleapis/java-analytics-admin/commit/0d74509f2ac278f2489903f0c3c404cbf2c7b145)) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v3 ([#438](https://github.com/googleapis/java-analytics-admin/issues/438)) ([916acca](https://github.com/googleapis/java-analytics-admin/commit/916acca60518ee3d017412d594134ca15d92b4a6)) - -## [0.12.1](https://github.com/googleapis/java-analytics-admin/compare/v0.12.0...v0.12.1) (2022-07-13) - - -### Bug Fixes - -* enable longpaths support for windows test ([#1485](https://github.com/googleapis/java-analytics-admin/issues/1485)) ([#429](https://github.com/googleapis/java-analytics-admin/issues/429)) ([7edcdee](https://github.com/googleapis/java-analytics-admin/commit/7edcdeebe4a5723cd69b1f3d97f32b61e27dacd4)) - -## [0.12.0](https://github.com/googleapis/java-analytics-admin/compare/v0.11.0...v0.12.0) (2022-07-08) - - -### Features - -* release the Google Analytics Admin API V1 Beta ([#424](https://github.com/googleapis/java-analytics-admin/issues/424)) ([ab9449f](https://github.com/googleapis/java-analytics-admin/commit/ab9449fe9620c7c3021dd278ae900dee1781192b)) - -## [0.11.0](https://github.com/googleapis/java-analytics-admin/compare/v0.10.2...v0.11.0) (2022-07-01) - - -### Features - -* Add Java REST transport to analytics, servicecontrol, servicemanagement, serviceusage and langauge APIs ([0582719](https://github.com/googleapis/java-analytics-admin/commit/05827193641993b64f1280f0cdbd3b68c6c92705)) - - -### Bug Fixes - -* CustomDimension and CustomMetric resource configuration in Analytics Admin API ([0582719](https://github.com/googleapis/java-analytics-admin/commit/05827193641993b64f1280f0cdbd3b68c6c92705)) - -## [0.10.2](https://github.com/googleapis/java-analytics-admin/compare/v0.10.1...v0.10.2) (2022-06-23) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.13.0 ([#414](https://github.com/googleapis/java-analytics-admin/issues/414)) ([d1ada25](https://github.com/googleapis/java-analytics-admin/commit/d1ada253452e10731fb6898db205fb27dfc1b538)) - -### [0.10.1](https://github.com/googleapis/java-analytics-admin/compare/v0.10.0...v0.10.1) (2022-05-20) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.12.0 ([#408](https://github.com/googleapis/java-analytics-admin/issues/408)) ([5ca8037](https://github.com/googleapis/java-analytics-admin/commit/5ca8037fe07e9753121e2721f083e7114050b775)) - -## [0.10.0](https://github.com/googleapis/java-analytics-admin/compare/v0.9.1...v0.10.0) (2022-05-19) - - -### Features - -* add build scripts for native image testing in Java 17 ([#1440](https://github.com/googleapis/java-analytics-admin/issues/1440)) ([#404](https://github.com/googleapis/java-analytics-admin/issues/404)) ([52bf898](https://github.com/googleapis/java-analytics-admin/commit/52bf8986ae06b81411eafe742aa9585dde132dc0)) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.11.0 ([#403](https://github.com/googleapis/java-analytics-admin/issues/403)) ([4407a5d](https://github.com/googleapis/java-analytics-admin/commit/4407a5dc7d764c6599b5366f7ae577c86d8e385b)) - -### [0.9.1](https://github.com/googleapis/java-analytics-admin/compare/v0.9.0...v0.9.1) (2022-04-15) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.10.0 ([#391](https://github.com/googleapis/java-analytics-admin/issues/391)) ([4267a0b](https://github.com/googleapis/java-analytics-admin/commit/4267a0b2659d3ff594903b1af58a1c0bcd2ecf3a)) - -## [0.9.0](https://github.com/googleapis/java-analytics-admin/compare/v0.8.4...v0.9.0) (2022-03-29) - - -### ⚠ BREAKING CHANGES - -* remove `WebDataStream`, `IosAppDataStream`, `AndroidAppDataStream` resources (#377) - -### Features - -* remove `WebDataStream`, `IosAppDataStream`, `AndroidAppDataStream` resources ([#377](https://github.com/googleapis/java-analytics-admin/issues/377)) ([b93fa94](https://github.com/googleapis/java-analytics-admin/commit/b93fa9430278a6761bb12f355e7aac7e72c57c7d)) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.9.0 ([#385](https://github.com/googleapis/java-analytics-admin/issues/385)) ([8644c7f](https://github.com/googleapis/java-analytics-admin/commit/8644c7f51c89e635473b9e779fcd0123a55d9551)) - -### [0.8.4](https://github.com/googleapis/java-analytics-admin/compare/v0.8.3...v0.8.4) (2022-03-08) - - -### Dependencies - -* update actions/checkout action to v3 ([#370](https://github.com/googleapis/java-analytics-admin/issues/370)) ([e3cbf50](https://github.com/googleapis/java-analytics-admin/commit/e3cbf5059c60c54dbfaf29f195e688cbed2cfc7d)) - -### [0.8.3](https://github.com/googleapis/java-analytics-admin/compare/v0.8.2...v0.8.3) (2022-03-02) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.8.0 ([#372](https://github.com/googleapis/java-analytics-admin/issues/372)) ([19e37d1](https://github.com/googleapis/java-analytics-admin/commit/19e37d1ac7b089a947f7e306419e25e5a4149e5c)) - -### [0.8.2](https://github.com/googleapis/java-analytics-admin/compare/v0.8.1...v0.8.2) (2022-02-28) - - -### Dependencies - -* update actions/setup-java action to v3 ([#364](https://github.com/googleapis/java-analytics-admin/issues/364)) ([fcf3783](https://github.com/googleapis/java-analytics-admin/commit/fcf378339c58471f38323f694bedfd6c0399d71a)) - -### [0.8.1](https://github.com/googleapis/java-analytics-admin/compare/v0.8.0...v0.8.1) (2022-02-11) - - -### Dependencies - -* update actions/github-script action to v6 ([#355](https://github.com/googleapis/java-analytics-admin/issues/355)) ([c221e38](https://github.com/googleapis/java-analytics-admin/commit/c221e38330cceec568e1554faf7ca898903a2393)) - -## [0.8.0](https://github.com/googleapis/java-analytics-admin/compare/v0.7.0...v0.8.0) (2022-02-03) - - -### Features - -* add the `AcknowledgeUserDataCollection` operation which acknowledges the terms of user data collection for the specified property ([#323](https://github.com/googleapis/java-analytics-admin/issues/323)) ([e9fd55a](https://github.com/googleapis/java-analytics-admin/commit/e9fd55aef92171c6f6a0a16eb29be085d5a64bd6)) - - -### Dependencies - -* **java:** update actions/github-script action to v5 ([#1339](https://github.com/googleapis/java-analytics-admin/issues/1339)) ([#343](https://github.com/googleapis/java-analytics-admin/issues/343)) ([3ddd19d](https://github.com/googleapis/java-analytics-admin/commit/3ddd19d29d0e5183843180bb404d0ed614dbc407)) -* update actions/github-script action to v5 ([#342](https://github.com/googleapis/java-analytics-admin/issues/342)) ([b9d9204](https://github.com/googleapis/java-analytics-admin/commit/b9d9204dc70eeaa3a9f0f32ff18bcc470bcffa22)) -* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.7.0 ([#344](https://github.com/googleapis/java-analytics-admin/issues/344)) ([3b4f2d3](https://github.com/googleapis/java-analytics-admin/commit/3b4f2d3b5467d4bcebcdeee8163268862044efdb)) - -## [0.7.0](https://www.github.com/googleapis/java-analytics-admin/compare/v0.6.2...v0.7.0) (2022-01-07) - - -### Features - -* add `GetDataRetentionSettings`, `UpdateDataRetentionSettings` methods to the API ([#269](https://www.github.com/googleapis/java-analytics-admin/issues/269)) ([3d3726d](https://www.github.com/googleapis/java-analytics-admin/commit/3d3726db76a6763b3c7a2dd7132b0fefbfe7c6ac)) -* add custom output only field to ConversionEvent type ([3de05e5](https://www.github.com/googleapis/java-analytics-admin/commit/3de05e56d905d74ae7468aed7e66e24c685c5df6)) -* add display_video_360_advertiser_link, display_video_360_advertiser_link_proposal, data_retention_settings fields to ChangeHistoryChange.resource oneof field. ([3de05e5](https://www.github.com/googleapis/java-analytics-admin/commit/3de05e56d905d74ae7468aed7e66e24c685c5df6)) -* add service_level field to Property type ([3de05e5](https://www.github.com/googleapis/java-analytics-admin/commit/3de05e56d905d74ae7468aed7e66e24c685c5df6)) -* change measurement_unit field to mutable in CustomMetric type ([3de05e5](https://www.github.com/googleapis/java-analytics-admin/commit/3de05e56d905d74ae7468aed7e66e24c685c5df6)) - - -### Bug Fixes - -* **java:** add -ntp flag to native image testing command ([#1299](https://www.github.com/googleapis/java-analytics-admin/issues/1299)) ([#322](https://www.github.com/googleapis/java-analytics-admin/issues/322)) ([259886e](https://www.github.com/googleapis/java-analytics-admin/commit/259886e2a1b1ed49adf0ba37f220e6b4059d4737)) -* **java:** java 17 dependency arguments ([#1266](https://www.github.com/googleapis/java-analytics-admin/issues/1266)) ([#307](https://www.github.com/googleapis/java-analytics-admin/issues/307)) ([4cfbf3b](https://www.github.com/googleapis/java-analytics-admin/commit/4cfbf3b3e0bc93292fdf6e80aa662356399db047)) -* **java:** run Maven in plain console-friendly mode ([#1301](https://www.github.com/googleapis/java-analytics-admin/issues/1301)) ([#326](https://www.github.com/googleapis/java-analytics-admin/issues/326)) ([e456449](https://www.github.com/googleapis/java-analytics-admin/commit/e4564497b94927eb550712364467cefa545ae1fe)) -* remove maximum_user_access field from FirebaseLink type ([3de05e5](https://www.github.com/googleapis/java-analytics-admin/commit/3de05e56d905d74ae7468aed7e66e24c685c5df6)) -* remove MaximumUserAccess enum from the API ([3de05e5](https://www.github.com/googleapis/java-analytics-admin/commit/3de05e56d905d74ae7468aed7e66e24c685c5df6)) -* remove UpdateFirebaseLink method from the API ([3de05e5](https://www.github.com/googleapis/java-analytics-admin/commit/3de05e56d905d74ae7468aed7e66e24c685c5df6)) -* rename email_address field of GoogleAdsLink type to creator_email_address ([3de05e5](https://www.github.com/googleapis/java-analytics-admin/commit/3de05e56d905d74ae7468aed7e66e24c685c5df6)) -* rename is_deletable field of ConversionEvent type to deletable ([3de05e5](https://www.github.com/googleapis/java-analytics-admin/commit/3de05e56d905d74ae7468aed7e66e24c685c5df6)) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.5.0 ([#316](https://www.github.com/googleapis/java-analytics-admin/issues/316)) ([90be858](https://www.github.com/googleapis/java-analytics-admin/commit/90be858cd029c33b9c46962c12a89199c15c85c3)) -* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.5.1 ([#321](https://www.github.com/googleapis/java-analytics-admin/issues/321)) ([6d31a66](https://www.github.com/googleapis/java-analytics-admin/commit/6d31a66c32ed7d16d10e0205f05790be76c92fe0)) -* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.6.0 ([#329](https://www.github.com/googleapis/java-analytics-admin/issues/329)) ([462d2de](https://www.github.com/googleapis/java-analytics-admin/commit/462d2de3ca950782b90a46b978328c0f85300414)) - -### [0.6.2](https://www.github.com/googleapis/java-analytics-admin/compare/v0.6.1...v0.6.2) (2021-10-19) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.4.0 ([#301](https://www.github.com/googleapis/java-analytics-admin/issues/301)) ([f974058](https://www.github.com/googleapis/java-analytics-admin/commit/f974058cac256ea2e217758b2791b26487f8b054)) - -### [0.6.1](https://www.github.com/googleapis/java-analytics-admin/compare/v0.6.0...v0.6.1) (2021-09-24) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.3.0 ([#290](https://www.github.com/googleapis/java-analytics-admin/issues/290)) ([44ca8f6](https://www.github.com/googleapis/java-analytics-admin/commit/44ca8f6ef27550bc9b9a02a01463912e12d6f614)) - -## [0.6.0](https://www.github.com/googleapis/java-analytics-admin/compare/v0.5.0...v0.6.0) (2021-09-15) - - -### Features - -* Remove use of deprecated gradle command in java README ([#1196](https://www.github.com/googleapis/java-analytics-admin/issues/1196)) ([#273](https://www.github.com/googleapis/java-analytics-admin/issues/273)) ([dd7bfaa](https://www.github.com/googleapis/java-analytics-admin/commit/dd7bfaa111cf32a7e3f415ec43fcd53c7010769e)) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.0.1 ([#264](https://www.github.com/googleapis/java-analytics-admin/issues/264)) ([a1c4442](https://www.github.com/googleapis/java-analytics-admin/commit/a1c444255cf6d0e14f81b679f7f41e4c8c5bbfa3)) -* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.1.0 ([#268](https://www.github.com/googleapis/java-analytics-admin/issues/268)) ([1ef6fd5](https://www.github.com/googleapis/java-analytics-admin/commit/1ef6fd5631f6380ea10dbeb56959b93088fd7bab)) -* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.2.0 ([#275](https://www.github.com/googleapis/java-analytics-admin/issues/275)) ([98c2fc5](https://www.github.com/googleapis/java-analytics-admin/commit/98c2fc502d1640021c84e3c739c74b0f48fbed9b)) -* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.2.1 ([#283](https://www.github.com/googleapis/java-analytics-admin/issues/283)) ([498c5bf](https://www.github.com/googleapis/java-analytics-admin/commit/498c5bf2459a813d12f796362e113e782aa78114)) - -## [0.5.0](https://www.github.com/googleapis/java-analytics-admin/compare/v0.4.0...v0.5.0) (2021-08-06) - - -### ⚠ BREAKING CHANGES - -* release gapic-generator-java v2.0.0 (#257) - -### Features - -* release gapic-generator-java v2.0.0 ([#257](https://www.github.com/googleapis/java-analytics-admin/issues/257)) ([ebbc014](https://www.github.com/googleapis/java-analytics-admin/commit/ebbc014dfde8577e1331bc09ecc2abae3e5b2f82)) - - -### Bug Fixes - -* Add `shopt -s nullglob` to dependencies script ([#1130](https://www.github.com/googleapis/java-analytics-admin/issues/1130)) ([#232](https://www.github.com/googleapis/java-analytics-admin/issues/232)) ([7dffdfc](https://www.github.com/googleapis/java-analytics-admin/commit/7dffdfcfa03bd9df5d3a0678a816bdc5339dcb11)) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v1.4.0 ([#234](https://www.github.com/googleapis/java-analytics-admin/issues/234)) ([fdd111a](https://www.github.com/googleapis/java-analytics-admin/commit/fdd111a9791d2f2f0b32d3a439023a34fd67656a)) -* update dependency com.google.cloud:google-cloud-shared-dependencies to v2 ([#258](https://www.github.com/googleapis/java-analytics-admin/issues/258)) ([315f245](https://www.github.com/googleapis/java-analytics-admin/commit/315f245df1b516966b19a6a0980c3967cd4aca51)) - -## [0.4.0](https://www.github.com/googleapis/java-analytics-admin/compare/v0.3.2...v0.4.0) (2021-06-15) - - -### ⚠ BREAKING CHANGES - -* remove `CreateIosAppDataStream`, `CreateAndroidAppDataStream` methods from the API (#203) - -### Features - -* add CreateCustomDimension, GetCustomDimension, UpdateCustomDimension, ListCustomDimensions, ArchiveCustomDimension methods to the API ([#221](https://www.github.com/googleapis/java-analytics-admin/issues/221)) ([16ff4a6](https://www.github.com/googleapis/java-analytics-admin/commit/16ff4a6f4291e1668b710807722cbd3901d51f02)) - - -### Bug Fixes - -* add `https://www.googleapis.com/auth/analytics.edit` OAuth2 scope to the list of acceptable scopes for all read only methods ([#179](https://www.github.com/googleapis/java-analytics-admin/issues/179)) ([e8d6269](https://www.github.com/googleapis/java-analytics-admin/commit/e8d626908a020d4c1ea6ff0ff34afd5d65ae967a)) -* release scripts from issuing overlapping phases ([#197](https://www.github.com/googleapis/java-analytics-admin/issues/197)) ([30b1195](https://www.github.com/googleapis/java-analytics-admin/commit/30b1195db5389a7fb940b4decf13baf68fcd1005)) -* remove `CreateIosAppDataStream`, `CreateAndroidAppDataStream` methods from the API ([#203](https://www.github.com/googleapis/java-analytics-admin/issues/203)) ([ca467ec](https://www.github.com/googleapis/java-analytics-admin/commit/ca467ec5bbcaf3dccf4c791426ec612c903392e2)) -* typo ([#196](https://www.github.com/googleapis/java-analytics-admin/issues/196)) ([3001dfc](https://www.github.com/googleapis/java-analytics-admin/commit/3001dfc339cfa7f23497481f95e0314bdf8d7189)) - - -### Documentation - -* update the documentation of the `update_mask` field used by Update() methods ([e8d6269](https://www.github.com/googleapis/java-analytics-admin/commit/e8d626908a020d4c1ea6ff0ff34afd5d65ae967a)) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.20.1 ([#186](https://www.github.com/googleapis/java-analytics-admin/issues/186)) ([1a2d614](https://www.github.com/googleapis/java-analytics-admin/commit/1a2d614c80c0c5849f7aa71f3cae20165c3ed4aa)) -* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.21.0 ([#194](https://www.github.com/googleapis/java-analytics-admin/issues/194)) ([b429a0b](https://www.github.com/googleapis/java-analytics-admin/commit/b429a0ba4fea5f974e24f3d8e06a03addcbedc0e)) -* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.21.1 ([#198](https://www.github.com/googleapis/java-analytics-admin/issues/198)) ([640a1c2](https://www.github.com/googleapis/java-analytics-admin/commit/640a1c2398dd49d8acaa3826ff857baf715ffd43)) -* update dependency com.google.cloud:google-cloud-shared-dependencies to v1 ([#201](https://www.github.com/googleapis/java-analytics-admin/issues/201)) ([c148921](https://www.github.com/googleapis/java-analytics-admin/commit/c1489212a633e8ec6e9fa8838c3f3549ab14b4a4)) -* update dependency com.google.cloud:google-cloud-shared-dependencies to v1.1.0 ([#210](https://www.github.com/googleapis/java-analytics-admin/issues/210)) ([4801dd7](https://www.github.com/googleapis/java-analytics-admin/commit/4801dd7212132eb184f2d851549ab99e671150dd)) -* update dependency com.google.cloud:google-cloud-shared-dependencies to v1.2.0 ([#214](https://www.github.com/googleapis/java-analytics-admin/issues/214)) ([c8b4d76](https://www.github.com/googleapis/java-analytics-admin/commit/c8b4d76f3d3eff834637a135c7ccff7863073b33)) -* update dependency com.google.cloud:google-cloud-shared-dependencies to v1.3.0 ([#222](https://www.github.com/googleapis/java-analytics-admin/issues/222)) ([8bc7f9e](https://www.github.com/googleapis/java-analytics-admin/commit/8bc7f9eb4178a0f4a33b2180123d24b635f3f466)) - -### [0.3.2](https://www.github.com/googleapis/java-analytics-admin/compare/v0.3.1...v0.3.2) (2021-02-25) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.20.0 ([#175](https://www.github.com/googleapis/java-analytics-admin/issues/175)) ([75db870](https://www.github.com/googleapis/java-analytics-admin/commit/75db8701c1bb6b130e7f4399f71d13d84088c5f2)) - -### [0.3.1](https://www.github.com/googleapis/java-analytics-admin/compare/v0.3.0...v0.3.1) (2021-02-22) - - -### Bug Fixes - -* don't log downloads ([#168](https://www.github.com/googleapis/java-analytics-admin/issues/168)) ([a781d7d](https://www.github.com/googleapis/java-analytics-admin/commit/a781d7d77c3314456b9bdc7982f1ef89c7acd0e5)) - - -### Documentation - -* generate sample code in the Java microgenerator ([#152](https://www.github.com/googleapis/java-analytics-admin/issues/152)) ([62b6cd9](https://www.github.com/googleapis/java-analytics-admin/commit/62b6cd925df28035c247d67fbe86c5e46d810d4d)) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.19.0 ([#169](https://www.github.com/googleapis/java-analytics-admin/issues/169)) ([52b071b](https://www.github.com/googleapis/java-analytics-admin/commit/52b071b0f15d347510d722daacd071838c930249)) - -## [0.3.0](https://www.github.com/googleapis/java-analytics-admin/compare/v0.2.5...v0.3.0) (2021-01-19) - - -### ⚠ BREAKING CHANGES - -* `update_mask` field is required for all Update operations -* rename `country_code` field to `region_code` in `Account` -* rename `url_query_parameter` field to `uri_query_parameter` in `EnhancedMeasurementSettings` -* remove `parent` field from `GoogleAdsLink` -* remove unused fields from `EnhancedMeasurementSettings` (#137) - -### Features - -* add pagination support for `ListFirebaseLinks` operation ([6bfa58c](https://www.github.com/googleapis/java-analytics-admin/commit/6bfa58c307adc8a79dd05345299f8e39ddcf32db)) - - -### Bug Fixes - -* `update_mask` field is required for all Update operations ([6bfa58c](https://www.github.com/googleapis/java-analytics-admin/commit/6bfa58c307adc8a79dd05345299f8e39ddcf32db)) -* remove `parent` field from `GoogleAdsLink` ([6bfa58c](https://www.github.com/googleapis/java-analytics-admin/commit/6bfa58c307adc8a79dd05345299f8e39ddcf32db)) -* remove unused fields from `EnhancedMeasurementSettings` ([#137](https://www.github.com/googleapis/java-analytics-admin/issues/137)) ([6bfa58c](https://www.github.com/googleapis/java-analytics-admin/commit/6bfa58c307adc8a79dd05345299f8e39ddcf32db)) -* rename `country_code` field to `region_code` in `Account` ([6bfa58c](https://www.github.com/googleapis/java-analytics-admin/commit/6bfa58c307adc8a79dd05345299f8e39ddcf32db)) -* rename `url_query_parameter` field to `uri_query_parameter` in `EnhancedMeasurementSettings` ([6bfa58c](https://www.github.com/googleapis/java-analytics-admin/commit/6bfa58c307adc8a79dd05345299f8e39ddcf32db)) - - -### Documentation - -* put markdown table in a codeblock ([#132](https://www.github.com/googleapis/java-analytics-admin/issues/132)) ([15ccf20](https://www.github.com/googleapis/java-analytics-admin/commit/15ccf20bf20791d2a0192d67302e40a46a5cf432)) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.18.0 ([#136](https://www.github.com/googleapis/java-analytics-admin/issues/136)) ([6d52546](https://www.github.com/googleapis/java-analytics-admin/commit/6d52546b2fc5703571801d5b8045574ad9985bf1)) - -### [0.2.5](https://www.github.com/googleapis/java-analytics-admin/compare/v0.2.4...v0.2.5) (2020-12-15) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.17.0 ([#126](https://www.github.com/googleapis/java-analytics-admin/issues/126)) ([5b374ef](https://www.github.com/googleapis/java-analytics-admin/commit/5b374efd30dd85b5142c581037150f796908aecb)) - -### [0.2.4](https://www.github.com/googleapis/java-analytics-admin/compare/v0.2.3...v0.2.4) (2020-12-14) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.16.1 ([#122](https://www.github.com/googleapis/java-analytics-admin/issues/122)) ([2a6832b](https://www.github.com/googleapis/java-analytics-admin/commit/2a6832badbd82e8ab5e8c17dac0a0de23470074d)) - -### [0.2.3](https://www.github.com/googleapis/java-analytics-admin/compare/v0.2.2...v0.2.3) (2020-12-02) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.16.0 ([#112](https://www.github.com/googleapis/java-analytics-admin/issues/112)) ([166c0d0](https://www.github.com/googleapis/java-analytics-admin/commit/166c0d0a9c4b03a6471417f15c806a2008cc276a)) - -### [0.2.2](https://www.github.com/googleapis/java-analytics-admin/compare/v0.2.1...v0.2.2) (2020-11-11) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.15.0 ([#102](https://www.github.com/googleapis/java-analytics-admin/issues/102)) ([49b319e](https://www.github.com/googleapis/java-analytics-admin/commit/49b319e61f06abcead5e67a2b67c5476d72cab57)) - -### [0.2.1](https://www.github.com/googleapis/java-analytics-admin/compare/v0.2.0...v0.2.1) (2020-11-05) - - -### Bug Fixes - -* 'requests' field of CreateUserLink, UpdateUserLink, DeleteUserLink methods is now required ([#96](https://www.github.com/googleapis/java-analytics-admin/issues/96)) ([c15a776](https://www.github.com/googleapis/java-analytics-admin/commit/c15a776d47eb4d28865453281ea7c36b2510892a)) - -## [0.2.0](https://www.github.com/googleapis/java-analytics-admin/compare/v0.1.4...v0.2.0) (2020-11-02) - - -### Features - -* added ListAccountSummaries method ([#74](https://www.github.com/googleapis/java-analytics-admin/issues/74)) ([128bb78](https://www.github.com/googleapis/java-analytics-admin/commit/128bb7882cf36b5ce05b81fbf63c7cc306d9b655)) - - -### Documentation - -* renamed App + Web to Google Analytics 4 (GA4) in public documentation ([#86](https://www.github.com/googleapis/java-analytics-admin/issues/86)) ([22e27ca](https://www.github.com/googleapis/java-analytics-admin/commit/22e27ca307e0b900c1eb89d9872685950ee9e44e)) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.12.1 ([#81](https://www.github.com/googleapis/java-analytics-admin/issues/81)) ([58cb9b3](https://www.github.com/googleapis/java-analytics-admin/commit/58cb9b3a3bb64904fafae8ea414ddf729b6b6983)) -* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.13.0 ([#84](https://www.github.com/googleapis/java-analytics-admin/issues/84)) ([5db8220](https://www.github.com/googleapis/java-analytics-admin/commit/5db82207c3e1e056714dc2dbaf3cd62ae3d849c9)) -* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.14.1 ([#91](https://www.github.com/googleapis/java-analytics-admin/issues/91)) ([ac21804](https://www.github.com/googleapis/java-analytics-admin/commit/ac21804451ac2fe557f4cec7b19a7cdb290475e1)) - -### [0.1.4](https://www.github.com/googleapis/java-analytics-admin/compare/v0.1.3...v0.1.4) (2020-10-08) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.10.2 ([#63](https://www.github.com/googleapis/java-analytics-admin/issues/63)) ([ddc8c2f](https://www.github.com/googleapis/java-analytics-admin/commit/ddc8c2f01efa54fce560c35a235c7d1a3a057c44)) - -### [0.1.3](https://www.github.com/googleapis/java-analytics-admin/compare/v0.1.2...v0.1.3) (2020-09-23) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.10.0 ([#53](https://www.github.com/googleapis/java-analytics-admin/issues/53)) ([8268d33](https://www.github.com/googleapis/java-analytics-admin/commit/8268d33dd99ee0a220053a9dc2f0a4bea77f8f28)) - -### [0.1.2](https://www.github.com/googleapis/java-analytics-admin/compare/v0.1.1...v0.1.2) (2020-09-21) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.9.0 ([#34](https://www.github.com/googleapis/java-analytics-admin/issues/34)) ([52df7a7](https://www.github.com/googleapis/java-analytics-admin/commit/52df7a73bb0244e557f714c713d9eb7a700c6a4f)) - -### [0.1.1](https://www.github.com/googleapis/java-analytics-admin/compare/v0.1.0...v0.1.1) (2020-08-11) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.8.6 ([6461e4c](https://www.github.com/googleapis/java-analytics-admin/commit/6461e4c7935c15a3e553263fa44c689769370369)) - -## 0.1.0 (2020-07-24) - - -### Features - -* initial generation ([83cb5b3](https://www.github.com/googleapis/java-analytics-admin/commit/83cb5b335c3f2d4ad15eeb3d3bef56b6384ab041)) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.8.3 ([#8](https://www.github.com/googleapis/java-analytics-admin/issues/8)) ([42523c3](https://www.github.com/googleapis/java-analytics-admin/commit/42523c34e17451a00ad38c441f7eff2513eea077)) diff --git a/codecov.yaml b/codecov.yaml deleted file mode 100644 index 5724ea94..00000000 --- a/codecov.yaml +++ /dev/null @@ -1,4 +0,0 @@ ---- -codecov: - ci: - - source.cloud.google.com diff --git a/google-analytics-admin-bom/pom.xml b/google-analytics-admin-bom/pom.xml deleted file mode 100644 index e5ad96a4..00000000 --- a/google-analytics-admin-bom/pom.xml +++ /dev/null @@ -1,95 +0,0 @@ - - - 4.0.0 - com.google.analytics - google-analytics-admin-bom - 0.13.5 - pom - - com.google.cloud - google-cloud-shared-config - 1.5.3 - - - Google Analytics Admin BOM - https://github.com/googleapis/java-analytics-admin - - BOM for Analytics Admin - - - - Google LLC - - - - - chingor13 - Jeff Ching - chingor@google.com - Google LLC - - Developer - - - - - - scm:git:https://github.com/googleapis/java-analytics-admin.git - scm:git:git@github.com:googleapis/java-analytics-admin.git - https://github.com/googleapis/java-analytics-admin - - - - true - - - - - The Apache Software License, Version 2.0 - http://www.apache.org/licenses/LICENSE-2.0.txt - repo - - - - - - - com.google.analytics - google-analytics-admin - 0.13.5 - - - com.google.api.grpc - grpc-google-analytics-admin-v1alpha - 0.13.5 - - - com.google.api.grpc - grpc-google-analytics-admin-v1beta - 0.13.5 - - - com.google.api.grpc - proto-google-analytics-admin-v1alpha - 0.13.5 - - - com.google.api.grpc - proto-google-analytics-admin-v1beta - 0.13.5 - - - - - - - - org.apache.maven.plugins - maven-checkstyle-plugin - - true - - - - - diff --git a/google-analytics-admin/clirr-ignored-differences.xml b/google-analytics-admin/clirr-ignored-differences.xml deleted file mode 100644 index 9ec682c3..00000000 --- a/google-analytics-admin/clirr-ignored-differences.xml +++ /dev/null @@ -1,54 +0,0 @@ - - - - - 7002 - com/google/analytics/admin/v1alpha/AnalyticsAdminService* - * *FirebaseLink*(*) - - - 7002 - com/google/analytics/admin/v1alpha/stub/AnalyticsAdminService* - * *FirebaseLink*(*) - - - 7002 - com/google/analytics/admin/v1alpha/stub/GrpcAnalyticsAdminServiceStub* - * *FirebaseLink*(*) - - - 7002 - com/google/analytics/admin/v1alpha/AnalyticsAdminService* - * *EnhancedMeasurementSettings*(*) - - - 7002 - com/google/analytics/admin/v1alpha/stub/*AnalyticsAdminServiceStub* - * *EnhancedMeasurementSettings*(*) - - - 7002 - com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClient - * *DataStream*(*) - - - 8001 - com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClient*DataStreams* - - - 7002 - com/google/analytics/admin/v1alpha/AnalyticsAdminServiceSettings* - * *DataStream*(*) - - - 7002 - com/google/analytics/admin/v1alpha/stub/*AnalyticsAdminServiceStub* - * *DataStream*(*) - - - 7005 - com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClient* - * *MeasurementProtocolSecret*(*) - * *(*) - - \ No newline at end of file diff --git a/google-analytics-admin/pom.xml b/google-analytics-admin/pom.xml deleted file mode 100644 index abf68f75..00000000 --- a/google-analytics-admin/pom.xml +++ /dev/null @@ -1,135 +0,0 @@ - - - 4.0.0 - com.google.analytics - google-analytics-admin - 0.13.5 - jar - Google Analytics Admin - https://github.com/googleapis/java-analytics-admin - allows you to manage Google Analytics accounts and properties. - - com.google.analytics - google-analytics-admin-parent - 0.13.5 - - - google-analytics-admin - - - - io.grpc - grpc-api - - - io.grpc - grpc-stub - - - io.grpc - grpc-protobuf - - - com.google.api - api-common - - - com.google.protobuf - protobuf-java - - - com.google.api.grpc - proto-google-common-protos - - - - com.google.api.grpc - proto-google-analytics-admin-v1beta - - - com.google.api.grpc - proto-google-analytics-admin-v1alpha - - - com.google.guava - guava - - - com.google.api - gax - - - com.google.api - gax-grpc - - - com.google.api - gax-httpjson - - - org.threeten - threetenbp - - - - - junit - junit - test - - - - com.google.api.grpc - grpc-google-analytics-admin-v1alpha - test - - - com.google.api.grpc - grpc-google-analytics-admin-v1beta - test - - - - com.google.api - gax - testlib - test - - - com.google.api - gax-grpc - testlib - test - - - com.google.api - gax-httpjson - testlib - test - - - - - - java9 - - [9,) - - - - javax.annotation - javax.annotation-api - - - - - - - - - org.codehaus.mojo - flatten-maven-plugin - - - - diff --git a/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClient.java b/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClient.java deleted file mode 100644 index 49d5db40..00000000 --- a/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClient.java +++ /dev/null @@ -1,11122 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 com.google.analytics.admin.v1alpha.stub.AnalyticsAdminServiceStub; -import com.google.analytics.admin.v1alpha.stub.AnalyticsAdminServiceStubSettings; -import com.google.api.core.ApiFuture; -import com.google.api.core.ApiFutures; -import com.google.api.core.BetaApi; -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.paging.AbstractFixedSizeCollection; -import com.google.api.gax.paging.AbstractPage; -import com.google.api.gax.paging.AbstractPagedListResponse; -import com.google.api.gax.rpc.PageContext; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.common.util.concurrent.MoreExecutors; -import com.google.protobuf.Empty; -import com.google.protobuf.FieldMask; -import java.io.IOException; -import java.util.List; -import java.util.concurrent.TimeUnit; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Service Description: Service Interface for the Analytics Admin API (GA4). - * - *

This class provides the ability to make remote calls to the backing service through method - * calls that map to API methods. Sample code to get started: - * - *

{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
- *     AnalyticsAdminServiceClient.create()) {
- *   AccountName name = AccountName.of("[ACCOUNT]");
- *   Account response = analyticsAdminServiceClient.getAccount(name);
- * }
- * }
- * - *

Note: close() needs to be called on the AnalyticsAdminServiceClient object to clean up - * resources such as threads. In the example above, try-with-resources is used, which automatically - * calls close(). - * - *

The surface of this class includes several types of Java methods for each of the API's - * methods: - * - *

    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been - * converted into function parameters. It may be the case that not all fields are available as - * parameters, and not every API method will have a flattened method entry point. - *
  2. A "request object" method. This type of method only takes one parameter, a request object, - * which must be constructed before the call. Not every API method will have a request object - * method. - *
  3. A "callable" method. This type of method takes no parameters and returns an immutable API - * callable object, which can be used to initiate calls to the service. - *
- * - *

See the individual methods for example code. - * - *

Many parameters require resource names to be formatted in a particular way. To assist with - * these names, this class includes a format method for each type of name, and additionally a parse - * method to extract the individual identifiers contained within names that are returned. - * - *

This class can be customized by passing in a custom instance of AnalyticsAdminServiceSettings - * to create(). For example: - * - *

To customize credentials: - * - *

{@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 analyticsAdminServiceSettings =
- *     AnalyticsAdminServiceSettings.newBuilder()
- *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
- *         .build();
- * AnalyticsAdminServiceClient analyticsAdminServiceClient =
- *     AnalyticsAdminServiceClient.create(analyticsAdminServiceSettings);
- * }
- * - *

To customize the endpoint: - * - *

{@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 analyticsAdminServiceSettings =
- *     AnalyticsAdminServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
- * AnalyticsAdminServiceClient analyticsAdminServiceClient =
- *     AnalyticsAdminServiceClient.create(analyticsAdminServiceSettings);
- * }
- * - *

To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over - * the wire: - * - *

{@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 analyticsAdminServiceSettings =
- *     AnalyticsAdminServiceSettings.newHttpJsonBuilder().build();
- * AnalyticsAdminServiceClient analyticsAdminServiceClient =
- *     AnalyticsAdminServiceClient.create(analyticsAdminServiceSettings);
- * }
- * - *

Please refer to the GitHub repository's samples for more quickstart code snippets. - */ -@BetaApi -@Generated("by gapic-generator-java") -public class AnalyticsAdminServiceClient implements BackgroundResource { - private final AnalyticsAdminServiceSettings settings; - private final AnalyticsAdminServiceStub stub; - - /** Constructs an instance of AnalyticsAdminServiceClient with default settings. */ - public static final AnalyticsAdminServiceClient create() throws IOException { - return create(AnalyticsAdminServiceSettings.newBuilder().build()); - } - - /** - * Constructs an instance of AnalyticsAdminServiceClient, using the given settings. The channels - * are created based on the settings passed in, or defaults for any settings that are not set. - */ - public static final AnalyticsAdminServiceClient create(AnalyticsAdminServiceSettings settings) - throws IOException { - return new AnalyticsAdminServiceClient(settings); - } - - /** - * Constructs an instance of AnalyticsAdminServiceClient, using the given stub for making calls. - * This is for advanced usage - prefer using create(AnalyticsAdminServiceSettings). - */ - public static final AnalyticsAdminServiceClient create(AnalyticsAdminServiceStub stub) { - return new AnalyticsAdminServiceClient(stub); - } - - /** - * Constructs an instance of AnalyticsAdminServiceClient, 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 AnalyticsAdminServiceClient(AnalyticsAdminServiceSettings settings) throws IOException { - this.settings = settings; - this.stub = ((AnalyticsAdminServiceStubSettings) settings.getStubSettings()).createStub(); - } - - protected AnalyticsAdminServiceClient(AnalyticsAdminServiceStub stub) { - this.settings = null; - this.stub = stub; - } - - public final AnalyticsAdminServiceSettings getSettings() { - return settings; - } - - public AnalyticsAdminServiceStub getStub() { - return stub; - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lookup for a single Account. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   AccountName name = AccountName.of("[ACCOUNT]");
-   *   Account response = analyticsAdminServiceClient.getAccount(name);
-   * }
-   * }
- * - * @param name Required. The name of the account to lookup. Format: accounts/{account} Example: - * "accounts/100" - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Account getAccount(AccountName name) { - GetAccountRequest request = - GetAccountRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - return getAccount(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lookup for a single Account. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   String name = AccountName.of("[ACCOUNT]").toString();
-   *   Account response = analyticsAdminServiceClient.getAccount(name);
-   * }
-   * }
- * - * @param name Required. The name of the account to lookup. Format: accounts/{account} Example: - * "accounts/100" - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Account getAccount(String name) { - GetAccountRequest request = GetAccountRequest.newBuilder().setName(name).build(); - return getAccount(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lookup for a single Account. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   GetAccountRequest request =
-   *       GetAccountRequest.newBuilder().setName(AccountName.of("[ACCOUNT]").toString()).build();
-   *   Account response = analyticsAdminServiceClient.getAccount(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Account getAccount(GetAccountRequest request) { - return getAccountCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lookup for a single Account. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   GetAccountRequest request =
-   *       GetAccountRequest.newBuilder().setName(AccountName.of("[ACCOUNT]").toString()).build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient.getAccountCallable().futureCall(request);
-   *   // Do something.
-   *   Account response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable getAccountCallable() { - return stub.getAccountCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * 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. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   ListAccountsRequest request =
-   *       ListAccountsRequest.newBuilder()
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .setShowDeleted(true)
-   *           .build();
-   *   for (Account element : analyticsAdminServiceClient.listAccounts(request).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListAccountsPagedResponse listAccounts(ListAccountsRequest request) { - return listAccountsPagedCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * 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. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   ListAccountsRequest request =
-   *       ListAccountsRequest.newBuilder()
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .setShowDeleted(true)
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient.listAccountsPagedCallable().futureCall(request);
-   *   // Do something.
-   *   for (Account element : future.get().iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable - listAccountsPagedCallable() { - return stub.listAccountsPagedCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * 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. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   ListAccountsRequest request =
-   *       ListAccountsRequest.newBuilder()
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .setShowDeleted(true)
-   *           .build();
-   *   while (true) {
-   *     ListAccountsResponse response =
-   *         analyticsAdminServiceClient.listAccountsCallable().call(request);
-   *     for (Account element : response.getAccountsList()) {
-   *       // doThingsWith(element);
-   *     }
-   *     String nextPageToken = response.getNextPageToken();
-   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
-   *       request = request.toBuilder().setPageToken(nextPageToken).build();
-   *     } else {
-   *       break;
-   *     }
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable listAccountsCallable() { - return stub.listAccountsCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * 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. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   AccountName name = AccountName.of("[ACCOUNT]");
-   *   analyticsAdminServiceClient.deleteAccount(name);
-   * }
-   * }
- * - * @param name Required. The name of the Account to soft-delete. Format: accounts/{account} - * Example: "accounts/100" - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void deleteAccount(AccountName name) { - DeleteAccountRequest request = - DeleteAccountRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - deleteAccount(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * 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. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   String name = AccountName.of("[ACCOUNT]").toString();
-   *   analyticsAdminServiceClient.deleteAccount(name);
-   * }
-   * }
- * - * @param name Required. The name of the Account to soft-delete. Format: accounts/{account} - * Example: "accounts/100" - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void deleteAccount(String name) { - DeleteAccountRequest request = DeleteAccountRequest.newBuilder().setName(name).build(); - deleteAccount(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * 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. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   DeleteAccountRequest request =
-   *       DeleteAccountRequest.newBuilder().setName(AccountName.of("[ACCOUNT]").toString()).build();
-   *   analyticsAdminServiceClient.deleteAccount(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void deleteAccount(DeleteAccountRequest request) { - deleteAccountCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * 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. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   DeleteAccountRequest request =
-   *       DeleteAccountRequest.newBuilder().setName(AccountName.of("[ACCOUNT]").toString()).build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient.deleteAccountCallable().futureCall(request);
-   *   // Do something.
-   *   future.get();
-   * }
-   * }
- */ - public final UnaryCallable deleteAccountCallable() { - return stub.deleteAccountCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates an account. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   Account account = Account.newBuilder().build();
-   *   FieldMask updateMask = FieldMask.newBuilder().build();
-   *   Account response = analyticsAdminServiceClient.updateAccount(account, updateMask);
-   * }
-   * }
- * - * @param account Required. The account to update. The account's `name` field is used to identify - * the account. - * @param updateMask Required. The list of fields to be updated. Field names must be in snake case - * (e.g., "field_to_update"). Omitted fields will not be updated. To replace the entire - * entity, use one path with the string "*" to match all fields. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Account updateAccount(Account account, FieldMask updateMask) { - UpdateAccountRequest request = - UpdateAccountRequest.newBuilder().setAccount(account).setUpdateMask(updateMask).build(); - return updateAccount(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates an account. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   UpdateAccountRequest request =
-   *       UpdateAccountRequest.newBuilder()
-   *           .setAccount(Account.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   Account response = analyticsAdminServiceClient.updateAccount(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Account updateAccount(UpdateAccountRequest request) { - return updateAccountCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates an account. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   UpdateAccountRequest request =
-   *       UpdateAccountRequest.newBuilder()
-   *           .setAccount(Account.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient.updateAccountCallable().futureCall(request);
-   *   // Do something.
-   *   Account response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable updateAccountCallable() { - return stub.updateAccountCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Requests a ticket for creating an account. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   ProvisionAccountTicketRequest request =
-   *       ProvisionAccountTicketRequest.newBuilder()
-   *           .setAccount(Account.newBuilder().build())
-   *           .setRedirectUri("redirectUri1970337776")
-   *           .build();
-   *   ProvisionAccountTicketResponse response =
-   *       analyticsAdminServiceClient.provisionAccountTicket(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ProvisionAccountTicketResponse provisionAccountTicket( - ProvisionAccountTicketRequest request) { - return provisionAccountTicketCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Requests a ticket for creating an account. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   ProvisionAccountTicketRequest request =
-   *       ProvisionAccountTicketRequest.newBuilder()
-   *           .setAccount(Account.newBuilder().build())
-   *           .setRedirectUri("redirectUri1970337776")
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient.provisionAccountTicketCallable().futureCall(request);
-   *   // Do something.
-   *   ProvisionAccountTicketResponse response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable - provisionAccountTicketCallable() { - return stub.provisionAccountTicketCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Returns summaries of all accounts accessible by the caller. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   ListAccountSummariesRequest request =
-   *       ListAccountSummariesRequest.newBuilder()
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   for (AccountSummary element :
-   *       analyticsAdminServiceClient.listAccountSummaries(request).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListAccountSummariesPagedResponse listAccountSummaries( - ListAccountSummariesRequest request) { - return listAccountSummariesPagedCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Returns summaries of all accounts accessible by the caller. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   ListAccountSummariesRequest request =
-   *       ListAccountSummariesRequest.newBuilder()
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient.listAccountSummariesPagedCallable().futureCall(request);
-   *   // Do something.
-   *   for (AccountSummary element : future.get().iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable - listAccountSummariesPagedCallable() { - return stub.listAccountSummariesPagedCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Returns summaries of all accounts accessible by the caller. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   ListAccountSummariesRequest request =
-   *       ListAccountSummariesRequest.newBuilder()
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   while (true) {
-   *     ListAccountSummariesResponse response =
-   *         analyticsAdminServiceClient.listAccountSummariesCallable().call(request);
-   *     for (AccountSummary element : response.getAccountSummariesList()) {
-   *       // doThingsWith(element);
-   *     }
-   *     String nextPageToken = response.getNextPageToken();
-   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
-   *       request = request.toBuilder().setPageToken(nextPageToken).build();
-   *     } else {
-   *       break;
-   *     }
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable - listAccountSummariesCallable() { - return stub.listAccountSummariesCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lookup for a single "GA4" Property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   PropertyName name = PropertyName.of("[PROPERTY]");
-   *   Property response = analyticsAdminServiceClient.getProperty(name);
-   * }
-   * }
- * - * @param name Required. The name of the property to lookup. Format: properties/{property_id} - * Example: "properties/1000" - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Property getProperty(PropertyName name) { - GetPropertyRequest request = - GetPropertyRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - return getProperty(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lookup for a single "GA4" Property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   String name = PropertyName.of("[PROPERTY]").toString();
-   *   Property response = analyticsAdminServiceClient.getProperty(name);
-   * }
-   * }
- * - * @param name Required. The name of the property to lookup. Format: properties/{property_id} - * Example: "properties/1000" - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Property getProperty(String name) { - GetPropertyRequest request = GetPropertyRequest.newBuilder().setName(name).build(); - return getProperty(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lookup for a single "GA4" Property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   GetPropertyRequest request =
-   *       GetPropertyRequest.newBuilder().setName(PropertyName.of("[PROPERTY]").toString()).build();
-   *   Property response = analyticsAdminServiceClient.getProperty(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Property getProperty(GetPropertyRequest request) { - return getPropertyCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lookup for a single "GA4" Property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   GetPropertyRequest request =
-   *       GetPropertyRequest.newBuilder().setName(PropertyName.of("[PROPERTY]").toString()).build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient.getPropertyCallable().futureCall(request);
-   *   // Do something.
-   *   Property response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable getPropertyCallable() { - return stub.getPropertyCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * 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. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   ListPropertiesRequest request =
-   *       ListPropertiesRequest.newBuilder()
-   *           .setFilter("filter-1274492040")
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .setShowDeleted(true)
-   *           .build();
-   *   for (Property element : analyticsAdminServiceClient.listProperties(request).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListPropertiesPagedResponse listProperties(ListPropertiesRequest request) { - return listPropertiesPagedCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * 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. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   ListPropertiesRequest request =
-   *       ListPropertiesRequest.newBuilder()
-   *           .setFilter("filter-1274492040")
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .setShowDeleted(true)
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient.listPropertiesPagedCallable().futureCall(request);
-   *   // Do something.
-   *   for (Property element : future.get().iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable - listPropertiesPagedCallable() { - return stub.listPropertiesPagedCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * 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. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   ListPropertiesRequest request =
-   *       ListPropertiesRequest.newBuilder()
-   *           .setFilter("filter-1274492040")
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .setShowDeleted(true)
-   *           .build();
-   *   while (true) {
-   *     ListPropertiesResponse response =
-   *         analyticsAdminServiceClient.listPropertiesCallable().call(request);
-   *     for (Property element : response.getPropertiesList()) {
-   *       // doThingsWith(element);
-   *     }
-   *     String nextPageToken = response.getNextPageToken();
-   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
-   *       request = request.toBuilder().setPageToken(nextPageToken).build();
-   *     } else {
-   *       break;
-   *     }
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable - listPropertiesCallable() { - return stub.listPropertiesCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates an "GA4" property with the specified location and attributes. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   Property property = Property.newBuilder().build();
-   *   Property response = analyticsAdminServiceClient.createProperty(property);
-   * }
-   * }
- * - * @param property Required. The property to create. Note: the supplied property must specify its - * parent. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Property createProperty(Property property) { - CreatePropertyRequest request = - CreatePropertyRequest.newBuilder().setProperty(property).build(); - return createProperty(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates an "GA4" property with the specified location and attributes. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   CreatePropertyRequest request =
-   *       CreatePropertyRequest.newBuilder().setProperty(Property.newBuilder().build()).build();
-   *   Property response = analyticsAdminServiceClient.createProperty(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Property createProperty(CreatePropertyRequest request) { - return createPropertyCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates an "GA4" property with the specified location and attributes. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   CreatePropertyRequest request =
-   *       CreatePropertyRequest.newBuilder().setProperty(Property.newBuilder().build()).build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient.createPropertyCallable().futureCall(request);
-   *   // Do something.
-   *   Property response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable createPropertyCallable() { - return stub.createPropertyCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * 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 an GA4 Property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   PropertyName name = PropertyName.of("[PROPERTY]");
-   *   Property response = analyticsAdminServiceClient.deleteProperty(name);
-   * }
-   * }
- * - * @param name Required. The name of the Property to soft-delete. Format: properties/{property_id} - * Example: "properties/1000" - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Property deleteProperty(PropertyName name) { - DeletePropertyRequest request = - DeletePropertyRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - return deleteProperty(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * 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 an GA4 Property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   String name = PropertyName.of("[PROPERTY]").toString();
-   *   Property response = analyticsAdminServiceClient.deleteProperty(name);
-   * }
-   * }
- * - * @param name Required. The name of the Property to soft-delete. Format: properties/{property_id} - * Example: "properties/1000" - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Property deleteProperty(String name) { - DeletePropertyRequest request = DeletePropertyRequest.newBuilder().setName(name).build(); - return deleteProperty(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * 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 an GA4 Property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   DeletePropertyRequest request =
-   *       DeletePropertyRequest.newBuilder()
-   *           .setName(PropertyName.of("[PROPERTY]").toString())
-   *           .build();
-   *   Property response = analyticsAdminServiceClient.deleteProperty(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Property deleteProperty(DeletePropertyRequest request) { - return deletePropertyCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * 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 an GA4 Property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   DeletePropertyRequest request =
-   *       DeletePropertyRequest.newBuilder()
-   *           .setName(PropertyName.of("[PROPERTY]").toString())
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient.deletePropertyCallable().futureCall(request);
-   *   // Do something.
-   *   Property response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable deletePropertyCallable() { - return stub.deletePropertyCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   Property property = Property.newBuilder().build();
-   *   FieldMask updateMask = FieldMask.newBuilder().build();
-   *   Property response = analyticsAdminServiceClient.updateProperty(property, updateMask);
-   * }
-   * }
- * - * @param property Required. The property to update. The property's `name` field is used to - * identify the property to be updated. - * @param updateMask Required. The list of fields to be updated. Field names must be in snake case - * (e.g., "field_to_update"). Omitted fields will not be updated. To replace the entire - * entity, use one path with the string "*" to match all fields. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Property updateProperty(Property property, FieldMask updateMask) { - UpdatePropertyRequest request = - UpdatePropertyRequest.newBuilder().setProperty(property).setUpdateMask(updateMask).build(); - return updateProperty(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   UpdatePropertyRequest request =
-   *       UpdatePropertyRequest.newBuilder()
-   *           .setProperty(Property.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   Property response = analyticsAdminServiceClient.updateProperty(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Property updateProperty(UpdatePropertyRequest request) { - return updatePropertyCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   UpdatePropertyRequest request =
-   *       UpdatePropertyRequest.newBuilder()
-   *           .setProperty(Property.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient.updatePropertyCallable().futureCall(request);
-   *   // Do something.
-   *   Property response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable updatePropertyCallable() { - return stub.updatePropertyCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets information about a user's link to an account or property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   UserLinkName name = UserLinkName.ofAccountUserLinkName("[ACCOUNT]", "[USER_LINK]");
-   *   UserLink response = analyticsAdminServiceClient.getUserLink(name);
-   * }
-   * }
- * - * @param name Required. Example format: accounts/1234/userLinks/5678 - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final UserLink getUserLink(UserLinkName name) { - GetUserLinkRequest request = - GetUserLinkRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - return getUserLink(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets information about a user's link to an account or property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   String name = UserLinkName.ofAccountUserLinkName("[ACCOUNT]", "[USER_LINK]").toString();
-   *   UserLink response = analyticsAdminServiceClient.getUserLink(name);
-   * }
-   * }
- * - * @param name Required. Example format: accounts/1234/userLinks/5678 - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final UserLink getUserLink(String name) { - GetUserLinkRequest request = GetUserLinkRequest.newBuilder().setName(name).build(); - return getUserLink(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets information about a user's link to an account or property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   GetUserLinkRequest request =
-   *       GetUserLinkRequest.newBuilder()
-   *           .setName(UserLinkName.ofAccountUserLinkName("[ACCOUNT]", "[USER_LINK]").toString())
-   *           .build();
-   *   UserLink response = analyticsAdminServiceClient.getUserLink(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final UserLink getUserLink(GetUserLinkRequest request) { - return getUserLinkCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets information about a user's link to an account or property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   GetUserLinkRequest request =
-   *       GetUserLinkRequest.newBuilder()
-   *           .setName(UserLinkName.ofAccountUserLinkName("[ACCOUNT]", "[USER_LINK]").toString())
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient.getUserLinkCallable().futureCall(request);
-   *   // Do something.
-   *   UserLink response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable getUserLinkCallable() { - return stub.getUserLinkCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets information about multiple users' links to an account or property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   BatchGetUserLinksRequest request =
-   *       BatchGetUserLinksRequest.newBuilder()
-   *           .setParent(AccountName.of("[ACCOUNT]").toString())
-   *           .addAllNames(new ArrayList())
-   *           .build();
-   *   BatchGetUserLinksResponse response = analyticsAdminServiceClient.batchGetUserLinks(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final BatchGetUserLinksResponse batchGetUserLinks(BatchGetUserLinksRequest request) { - return batchGetUserLinksCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets information about multiple users' links to an account or property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   BatchGetUserLinksRequest request =
-   *       BatchGetUserLinksRequest.newBuilder()
-   *           .setParent(AccountName.of("[ACCOUNT]").toString())
-   *           .addAllNames(new ArrayList())
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient.batchGetUserLinksCallable().futureCall(request);
-   *   // Do something.
-   *   BatchGetUserLinksResponse response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable - batchGetUserLinksCallable() { - return stub.batchGetUserLinksCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists all user links on an account or property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   AccountName parent = AccountName.of("[ACCOUNT]");
-   *   for (UserLink element : analyticsAdminServiceClient.listUserLinks(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. Example format: accounts/1234 - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListUserLinksPagedResponse listUserLinks(AccountName parent) { - ListUserLinksRequest request = - ListUserLinksRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .build(); - return listUserLinks(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists all user links on an account or property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   PropertyName parent = PropertyName.of("[PROPERTY]");
-   *   for (UserLink element : analyticsAdminServiceClient.listUserLinks(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. Example format: accounts/1234 - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListUserLinksPagedResponse listUserLinks(PropertyName parent) { - ListUserLinksRequest request = - ListUserLinksRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .build(); - return listUserLinks(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists all user links on an account or property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   String parent = AccountName.of("[ACCOUNT]").toString();
-   *   for (UserLink element : analyticsAdminServiceClient.listUserLinks(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. Example format: accounts/1234 - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListUserLinksPagedResponse listUserLinks(String parent) { - ListUserLinksRequest request = ListUserLinksRequest.newBuilder().setParent(parent).build(); - return listUserLinks(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists all user links on an account or property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   ListUserLinksRequest request =
-   *       ListUserLinksRequest.newBuilder()
-   *           .setParent(AccountName.of("[ACCOUNT]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   for (UserLink element : analyticsAdminServiceClient.listUserLinks(request).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListUserLinksPagedResponse listUserLinks(ListUserLinksRequest request) { - return listUserLinksPagedCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists all user links on an account or property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   ListUserLinksRequest request =
-   *       ListUserLinksRequest.newBuilder()
-   *           .setParent(AccountName.of("[ACCOUNT]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient.listUserLinksPagedCallable().futureCall(request);
-   *   // Do something.
-   *   for (UserLink element : future.get().iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable - listUserLinksPagedCallable() { - return stub.listUserLinksPagedCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists all user links on an account or property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   ListUserLinksRequest request =
-   *       ListUserLinksRequest.newBuilder()
-   *           .setParent(AccountName.of("[ACCOUNT]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   while (true) {
-   *     ListUserLinksResponse response =
-   *         analyticsAdminServiceClient.listUserLinksCallable().call(request);
-   *     for (UserLink element : response.getUserLinksList()) {
-   *       // doThingsWith(element);
-   *     }
-   *     String nextPageToken = response.getNextPageToken();
-   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
-   *       request = request.toBuilder().setPageToken(nextPageToken).build();
-   *     } else {
-   *       break;
-   *     }
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable listUserLinksCallable() { - return stub.listUserLinksCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists all user links on an account or property, including implicit ones that come from - * effective permissions granted by groups or organization admin roles. - * - *

If a returned user link does not have direct permissions, they cannot be removed from the - * account or property directly with the DeleteUserLink command. They have to be removed from the - * group/etc that gives them permissions, which is currently only usable/discoverable in the GA or - * GMP UIs. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   AuditUserLinksRequest request =
-   *       AuditUserLinksRequest.newBuilder()
-   *           .setParent(AccountName.of("[ACCOUNT]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   for (AuditUserLink element :
-   *       analyticsAdminServiceClient.auditUserLinks(request).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final AuditUserLinksPagedResponse auditUserLinks(AuditUserLinksRequest request) { - return auditUserLinksPagedCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists all user links on an account or property, including implicit ones that come from - * effective permissions granted by groups or organization admin roles. - * - *

If a returned user link does not have direct permissions, they cannot be removed from the - * account or property directly with the DeleteUserLink command. They have to be removed from the - * group/etc that gives them permissions, which is currently only usable/discoverable in the GA or - * GMP UIs. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   AuditUserLinksRequest request =
-   *       AuditUserLinksRequest.newBuilder()
-   *           .setParent(AccountName.of("[ACCOUNT]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient.auditUserLinksPagedCallable().futureCall(request);
-   *   // Do something.
-   *   for (AuditUserLink element : future.get().iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable - auditUserLinksPagedCallable() { - return stub.auditUserLinksPagedCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists all user links on an account or property, including implicit ones that come from - * effective permissions granted by groups or organization admin roles. - * - *

If a returned user link does not have direct permissions, they cannot be removed from the - * account or property directly with the DeleteUserLink command. They have to be removed from the - * group/etc that gives them permissions, which is currently only usable/discoverable in the GA or - * GMP UIs. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   AuditUserLinksRequest request =
-   *       AuditUserLinksRequest.newBuilder()
-   *           .setParent(AccountName.of("[ACCOUNT]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   while (true) {
-   *     AuditUserLinksResponse response =
-   *         analyticsAdminServiceClient.auditUserLinksCallable().call(request);
-   *     for (AuditUserLink element : response.getUserLinksList()) {
-   *       // doThingsWith(element);
-   *     }
-   *     String nextPageToken = response.getNextPageToken();
-   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
-   *       request = request.toBuilder().setPageToken(nextPageToken).build();
-   *     } else {
-   *       break;
-   *     }
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable - auditUserLinksCallable() { - return stub.auditUserLinksCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a user link on an account or property. - * - *

If the user with the specified email already has permissions on the account or property, - * then the user's existing permissions will be unioned with the permissions specified in the new - * UserLink. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   AccountName parent = AccountName.of("[ACCOUNT]");
-   *   UserLink userLink = UserLink.newBuilder().build();
-   *   UserLink response = analyticsAdminServiceClient.createUserLink(parent, userLink);
-   * }
-   * }
- * - * @param parent Required. Example format: accounts/1234 - * @param userLink Required. The user link to create. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final UserLink createUserLink(AccountName parent, UserLink userLink) { - CreateUserLinkRequest request = - CreateUserLinkRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setUserLink(userLink) - .build(); - return createUserLink(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a user link on an account or property. - * - *

If the user with the specified email already has permissions on the account or property, - * then the user's existing permissions will be unioned with the permissions specified in the new - * UserLink. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   PropertyName parent = PropertyName.of("[PROPERTY]");
-   *   UserLink userLink = UserLink.newBuilder().build();
-   *   UserLink response = analyticsAdminServiceClient.createUserLink(parent, userLink);
-   * }
-   * }
- * - * @param parent Required. Example format: accounts/1234 - * @param userLink Required. The user link to create. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final UserLink createUserLink(PropertyName parent, UserLink userLink) { - CreateUserLinkRequest request = - CreateUserLinkRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setUserLink(userLink) - .build(); - return createUserLink(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a user link on an account or property. - * - *

If the user with the specified email already has permissions on the account or property, - * then the user's existing permissions will be unioned with the permissions specified in the new - * UserLink. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   String parent = AccountName.of("[ACCOUNT]").toString();
-   *   UserLink userLink = UserLink.newBuilder().build();
-   *   UserLink response = analyticsAdminServiceClient.createUserLink(parent, userLink);
-   * }
-   * }
- * - * @param parent Required. Example format: accounts/1234 - * @param userLink Required. The user link to create. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final UserLink createUserLink(String parent, UserLink userLink) { - CreateUserLinkRequest request = - CreateUserLinkRequest.newBuilder().setParent(parent).setUserLink(userLink).build(); - return createUserLink(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a user link on an account or property. - * - *

If the user with the specified email already has permissions on the account or property, - * then the user's existing permissions will be unioned with the permissions specified in the new - * UserLink. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   CreateUserLinkRequest request =
-   *       CreateUserLinkRequest.newBuilder()
-   *           .setParent(AccountName.of("[ACCOUNT]").toString())
-   *           .setNotifyNewUser(true)
-   *           .setUserLink(UserLink.newBuilder().build())
-   *           .build();
-   *   UserLink response = analyticsAdminServiceClient.createUserLink(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final UserLink createUserLink(CreateUserLinkRequest request) { - return createUserLinkCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a user link on an account or property. - * - *

If the user with the specified email already has permissions on the account or property, - * then the user's existing permissions will be unioned with the permissions specified in the new - * UserLink. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   CreateUserLinkRequest request =
-   *       CreateUserLinkRequest.newBuilder()
-   *           .setParent(AccountName.of("[ACCOUNT]").toString())
-   *           .setNotifyNewUser(true)
-   *           .setUserLink(UserLink.newBuilder().build())
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient.createUserLinkCallable().futureCall(request);
-   *   // Do something.
-   *   UserLink response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable createUserLinkCallable() { - return stub.createUserLinkCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates information about multiple users' links to an account or property. - * - *

This method is transactional. If any UserLink cannot be created, none of the UserLinks will - * be created. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   BatchCreateUserLinksRequest request =
-   *       BatchCreateUserLinksRequest.newBuilder()
-   *           .setParent(AccountName.of("[ACCOUNT]").toString())
-   *           .setNotifyNewUsers(true)
-   *           .addAllRequests(new ArrayList())
-   *           .build();
-   *   BatchCreateUserLinksResponse response =
-   *       analyticsAdminServiceClient.batchCreateUserLinks(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final BatchCreateUserLinksResponse batchCreateUserLinks( - BatchCreateUserLinksRequest request) { - return batchCreateUserLinksCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates information about multiple users' links to an account or property. - * - *

This method is transactional. If any UserLink cannot be created, none of the UserLinks will - * be created. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   BatchCreateUserLinksRequest request =
-   *       BatchCreateUserLinksRequest.newBuilder()
-   *           .setParent(AccountName.of("[ACCOUNT]").toString())
-   *           .setNotifyNewUsers(true)
-   *           .addAllRequests(new ArrayList())
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient.batchCreateUserLinksCallable().futureCall(request);
-   *   // Do something.
-   *   BatchCreateUserLinksResponse response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable - batchCreateUserLinksCallable() { - return stub.batchCreateUserLinksCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a user link on an account or property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   UserLink userLink = UserLink.newBuilder().build();
-   *   UserLink response = analyticsAdminServiceClient.updateUserLink(userLink);
-   * }
-   * }
- * - * @param userLink Required. The user link to update. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final UserLink updateUserLink(UserLink userLink) { - UpdateUserLinkRequest request = - UpdateUserLinkRequest.newBuilder().setUserLink(userLink).build(); - return updateUserLink(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a user link on an account or property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   UpdateUserLinkRequest request =
-   *       UpdateUserLinkRequest.newBuilder().setUserLink(UserLink.newBuilder().build()).build();
-   *   UserLink response = analyticsAdminServiceClient.updateUserLink(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final UserLink updateUserLink(UpdateUserLinkRequest request) { - return updateUserLinkCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a user link on an account or property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   UpdateUserLinkRequest request =
-   *       UpdateUserLinkRequest.newBuilder().setUserLink(UserLink.newBuilder().build()).build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient.updateUserLinkCallable().futureCall(request);
-   *   // Do something.
-   *   UserLink response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable updateUserLinkCallable() { - return stub.updateUserLinkCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates information about multiple users' links to an account or property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   BatchUpdateUserLinksRequest request =
-   *       BatchUpdateUserLinksRequest.newBuilder()
-   *           .setParent(AccountName.of("[ACCOUNT]").toString())
-   *           .addAllRequests(new ArrayList())
-   *           .build();
-   *   BatchUpdateUserLinksResponse response =
-   *       analyticsAdminServiceClient.batchUpdateUserLinks(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final BatchUpdateUserLinksResponse batchUpdateUserLinks( - BatchUpdateUserLinksRequest request) { - return batchUpdateUserLinksCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates information about multiple users' links to an account or property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   BatchUpdateUserLinksRequest request =
-   *       BatchUpdateUserLinksRequest.newBuilder()
-   *           .setParent(AccountName.of("[ACCOUNT]").toString())
-   *           .addAllRequests(new ArrayList())
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient.batchUpdateUserLinksCallable().futureCall(request);
-   *   // Do something.
-   *   BatchUpdateUserLinksResponse response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable - batchUpdateUserLinksCallable() { - return stub.batchUpdateUserLinksCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a user link on an account or property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   UserLinkName name = UserLinkName.ofAccountUserLinkName("[ACCOUNT]", "[USER_LINK]");
-   *   analyticsAdminServiceClient.deleteUserLink(name);
-   * }
-   * }
- * - * @param name Required. Example format: accounts/1234/userLinks/5678 - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void deleteUserLink(UserLinkName name) { - DeleteUserLinkRequest request = - DeleteUserLinkRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - deleteUserLink(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a user link on an account or property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   String name = UserLinkName.ofAccountUserLinkName("[ACCOUNT]", "[USER_LINK]").toString();
-   *   analyticsAdminServiceClient.deleteUserLink(name);
-   * }
-   * }
- * - * @param name Required. Example format: accounts/1234/userLinks/5678 - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void deleteUserLink(String name) { - DeleteUserLinkRequest request = DeleteUserLinkRequest.newBuilder().setName(name).build(); - deleteUserLink(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a user link on an account or property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   DeleteUserLinkRequest request =
-   *       DeleteUserLinkRequest.newBuilder()
-   *           .setName(UserLinkName.ofAccountUserLinkName("[ACCOUNT]", "[USER_LINK]").toString())
-   *           .build();
-   *   analyticsAdminServiceClient.deleteUserLink(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void deleteUserLink(DeleteUserLinkRequest request) { - deleteUserLinkCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a user link on an account or property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   DeleteUserLinkRequest request =
-   *       DeleteUserLinkRequest.newBuilder()
-   *           .setName(UserLinkName.ofAccountUserLinkName("[ACCOUNT]", "[USER_LINK]").toString())
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient.deleteUserLinkCallable().futureCall(request);
-   *   // Do something.
-   *   future.get();
-   * }
-   * }
- */ - public final UnaryCallable deleteUserLinkCallable() { - return stub.deleteUserLinkCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes information about multiple users' links to an account or property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   BatchDeleteUserLinksRequest request =
-   *       BatchDeleteUserLinksRequest.newBuilder()
-   *           .setParent(AccountName.of("[ACCOUNT]").toString())
-   *           .addAllRequests(new ArrayList())
-   *           .build();
-   *   analyticsAdminServiceClient.batchDeleteUserLinks(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void batchDeleteUserLinks(BatchDeleteUserLinksRequest request) { - batchDeleteUserLinksCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes information about multiple users' links to an account or property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   BatchDeleteUserLinksRequest request =
-   *       BatchDeleteUserLinksRequest.newBuilder()
-   *           .setParent(AccountName.of("[ACCOUNT]").toString())
-   *           .addAllRequests(new ArrayList())
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient.batchDeleteUserLinksCallable().futureCall(request);
-   *   // Do something.
-   *   future.get();
-   * }
-   * }
- */ - public final UnaryCallable batchDeleteUserLinksCallable() { - return stub.batchDeleteUserLinksCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a FirebaseLink. - * - *

Properties can have at most one FirebaseLink. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   PropertyName parent = PropertyName.of("[PROPERTY]");
-   *   FirebaseLink firebaseLink = FirebaseLink.newBuilder().build();
-   *   FirebaseLink response = analyticsAdminServiceClient.createFirebaseLink(parent, firebaseLink);
-   * }
-   * }
- * - * @param parent Required. Format: properties/{property_id} Example: properties/1234 - * @param firebaseLink Required. The Firebase link to create. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final FirebaseLink createFirebaseLink(PropertyName parent, FirebaseLink firebaseLink) { - CreateFirebaseLinkRequest request = - CreateFirebaseLinkRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setFirebaseLink(firebaseLink) - .build(); - return createFirebaseLink(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a FirebaseLink. - * - *

Properties can have at most one FirebaseLink. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   String parent = PropertyName.of("[PROPERTY]").toString();
-   *   FirebaseLink firebaseLink = FirebaseLink.newBuilder().build();
-   *   FirebaseLink response = analyticsAdminServiceClient.createFirebaseLink(parent, firebaseLink);
-   * }
-   * }
- * - * @param parent Required. Format: properties/{property_id} Example: properties/1234 - * @param firebaseLink Required. The Firebase link to create. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final FirebaseLink createFirebaseLink(String parent, FirebaseLink firebaseLink) { - CreateFirebaseLinkRequest request = - CreateFirebaseLinkRequest.newBuilder() - .setParent(parent) - .setFirebaseLink(firebaseLink) - .build(); - return createFirebaseLink(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a FirebaseLink. - * - *

Properties can have at most one FirebaseLink. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   CreateFirebaseLinkRequest request =
-   *       CreateFirebaseLinkRequest.newBuilder()
-   *           .setParent(PropertyName.of("[PROPERTY]").toString())
-   *           .setFirebaseLink(FirebaseLink.newBuilder().build())
-   *           .build();
-   *   FirebaseLink response = analyticsAdminServiceClient.createFirebaseLink(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final FirebaseLink createFirebaseLink(CreateFirebaseLinkRequest request) { - return createFirebaseLinkCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a FirebaseLink. - * - *

Properties can have at most one FirebaseLink. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   CreateFirebaseLinkRequest request =
-   *       CreateFirebaseLinkRequest.newBuilder()
-   *           .setParent(PropertyName.of("[PROPERTY]").toString())
-   *           .setFirebaseLink(FirebaseLink.newBuilder().build())
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient.createFirebaseLinkCallable().futureCall(request);
-   *   // Do something.
-   *   FirebaseLink response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable createFirebaseLinkCallable() { - return stub.createFirebaseLinkCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a FirebaseLink on a property - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   FirebaseLinkName name = FirebaseLinkName.of("[PROPERTY]", "[FIREBASE_LINK]");
-   *   analyticsAdminServiceClient.deleteFirebaseLink(name);
-   * }
-   * }
- * - * @param name Required. Format: properties/{property_id}/firebaseLinks/{firebase_link_id} - * Example: properties/1234/firebaseLinks/5678 - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void deleteFirebaseLink(FirebaseLinkName name) { - DeleteFirebaseLinkRequest request = - DeleteFirebaseLinkRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .build(); - deleteFirebaseLink(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a FirebaseLink on a property - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   String name = FirebaseLinkName.of("[PROPERTY]", "[FIREBASE_LINK]").toString();
-   *   analyticsAdminServiceClient.deleteFirebaseLink(name);
-   * }
-   * }
- * - * @param name Required. Format: properties/{property_id}/firebaseLinks/{firebase_link_id} - * Example: properties/1234/firebaseLinks/5678 - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void deleteFirebaseLink(String name) { - DeleteFirebaseLinkRequest request = - DeleteFirebaseLinkRequest.newBuilder().setName(name).build(); - deleteFirebaseLink(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a FirebaseLink on a property - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   DeleteFirebaseLinkRequest request =
-   *       DeleteFirebaseLinkRequest.newBuilder()
-   *           .setName(FirebaseLinkName.of("[PROPERTY]", "[FIREBASE_LINK]").toString())
-   *           .build();
-   *   analyticsAdminServiceClient.deleteFirebaseLink(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void deleteFirebaseLink(DeleteFirebaseLinkRequest request) { - deleteFirebaseLinkCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a FirebaseLink on a property - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   DeleteFirebaseLinkRequest request =
-   *       DeleteFirebaseLinkRequest.newBuilder()
-   *           .setName(FirebaseLinkName.of("[PROPERTY]", "[FIREBASE_LINK]").toString())
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient.deleteFirebaseLinkCallable().futureCall(request);
-   *   // Do something.
-   *   future.get();
-   * }
-   * }
- */ - public final UnaryCallable deleteFirebaseLinkCallable() { - return stub.deleteFirebaseLinkCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists FirebaseLinks on a property. Properties can have at most one FirebaseLink. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   PropertyName parent = PropertyName.of("[PROPERTY]");
-   *   for (FirebaseLink element :
-   *       analyticsAdminServiceClient.listFirebaseLinks(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. Format: properties/{property_id} Example: properties/1234 - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListFirebaseLinksPagedResponse listFirebaseLinks(PropertyName parent) { - ListFirebaseLinksRequest request = - ListFirebaseLinksRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .build(); - return listFirebaseLinks(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists FirebaseLinks on a property. Properties can have at most one FirebaseLink. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   String parent = PropertyName.of("[PROPERTY]").toString();
-   *   for (FirebaseLink element :
-   *       analyticsAdminServiceClient.listFirebaseLinks(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. Format: properties/{property_id} Example: properties/1234 - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListFirebaseLinksPagedResponse listFirebaseLinks(String parent) { - ListFirebaseLinksRequest request = - ListFirebaseLinksRequest.newBuilder().setParent(parent).build(); - return listFirebaseLinks(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists FirebaseLinks on a property. Properties can have at most one FirebaseLink. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   ListFirebaseLinksRequest request =
-   *       ListFirebaseLinksRequest.newBuilder()
-   *           .setParent(PropertyName.of("[PROPERTY]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   for (FirebaseLink element :
-   *       analyticsAdminServiceClient.listFirebaseLinks(request).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListFirebaseLinksPagedResponse listFirebaseLinks(ListFirebaseLinksRequest request) { - return listFirebaseLinksPagedCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists FirebaseLinks on a property. Properties can have at most one FirebaseLink. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   ListFirebaseLinksRequest request =
-   *       ListFirebaseLinksRequest.newBuilder()
-   *           .setParent(PropertyName.of("[PROPERTY]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient.listFirebaseLinksPagedCallable().futureCall(request);
-   *   // Do something.
-   *   for (FirebaseLink element : future.get().iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable - listFirebaseLinksPagedCallable() { - return stub.listFirebaseLinksPagedCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists FirebaseLinks on a property. Properties can have at most one FirebaseLink. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   ListFirebaseLinksRequest request =
-   *       ListFirebaseLinksRequest.newBuilder()
-   *           .setParent(PropertyName.of("[PROPERTY]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   while (true) {
-   *     ListFirebaseLinksResponse response =
-   *         analyticsAdminServiceClient.listFirebaseLinksCallable().call(request);
-   *     for (FirebaseLink element : response.getFirebaseLinksList()) {
-   *       // doThingsWith(element);
-   *     }
-   *     String nextPageToken = response.getNextPageToken();
-   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
-   *       request = request.toBuilder().setPageToken(nextPageToken).build();
-   *     } else {
-   *       break;
-   *     }
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable - listFirebaseLinksCallable() { - return stub.listFirebaseLinksCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Returns the Site Tag for the specified web stream. Site Tags are immutable singletons. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   GlobalSiteTagName name = GlobalSiteTagName.of("[PROPERTY]", "[DATA_STREAM]");
-   *   GlobalSiteTag response = analyticsAdminServiceClient.getGlobalSiteTag(name);
-   * }
-   * }
- * - * @param 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" - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final GlobalSiteTag getGlobalSiteTag(GlobalSiteTagName name) { - GetGlobalSiteTagRequest request = - GetGlobalSiteTagRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - return getGlobalSiteTag(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Returns the Site Tag for the specified web stream. Site Tags are immutable singletons. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   String name = GlobalSiteTagName.of("[PROPERTY]", "[DATA_STREAM]").toString();
-   *   GlobalSiteTag response = analyticsAdminServiceClient.getGlobalSiteTag(name);
-   * }
-   * }
- * - * @param 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" - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final GlobalSiteTag getGlobalSiteTag(String name) { - GetGlobalSiteTagRequest request = GetGlobalSiteTagRequest.newBuilder().setName(name).build(); - return getGlobalSiteTag(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Returns the Site Tag for the specified web stream. Site Tags are immutable singletons. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   GetGlobalSiteTagRequest request =
-   *       GetGlobalSiteTagRequest.newBuilder()
-   *           .setName(GlobalSiteTagName.of("[PROPERTY]", "[DATA_STREAM]").toString())
-   *           .build();
-   *   GlobalSiteTag response = analyticsAdminServiceClient.getGlobalSiteTag(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final GlobalSiteTag getGlobalSiteTag(GetGlobalSiteTagRequest request) { - return getGlobalSiteTagCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Returns the Site Tag for the specified web stream. Site Tags are immutable singletons. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   GetGlobalSiteTagRequest request =
-   *       GetGlobalSiteTagRequest.newBuilder()
-   *           .setName(GlobalSiteTagName.of("[PROPERTY]", "[DATA_STREAM]").toString())
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient.getGlobalSiteTagCallable().futureCall(request);
-   *   // Do something.
-   *   GlobalSiteTag response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable getGlobalSiteTagCallable() { - return stub.getGlobalSiteTagCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a GoogleAdsLink. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   PropertyName parent = PropertyName.of("[PROPERTY]");
-   *   GoogleAdsLink googleAdsLink = GoogleAdsLink.newBuilder().build();
-   *   GoogleAdsLink response =
-   *       analyticsAdminServiceClient.createGoogleAdsLink(parent, googleAdsLink);
-   * }
-   * }
- * - * @param parent Required. Example format: properties/1234 - * @param googleAdsLink Required. The GoogleAdsLink to create. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final GoogleAdsLink createGoogleAdsLink(PropertyName parent, GoogleAdsLink googleAdsLink) { - CreateGoogleAdsLinkRequest request = - CreateGoogleAdsLinkRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setGoogleAdsLink(googleAdsLink) - .build(); - return createGoogleAdsLink(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a GoogleAdsLink. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   String parent = PropertyName.of("[PROPERTY]").toString();
-   *   GoogleAdsLink googleAdsLink = GoogleAdsLink.newBuilder().build();
-   *   GoogleAdsLink response =
-   *       analyticsAdminServiceClient.createGoogleAdsLink(parent, googleAdsLink);
-   * }
-   * }
- * - * @param parent Required. Example format: properties/1234 - * @param googleAdsLink Required. The GoogleAdsLink to create. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final GoogleAdsLink createGoogleAdsLink(String parent, GoogleAdsLink googleAdsLink) { - CreateGoogleAdsLinkRequest request = - CreateGoogleAdsLinkRequest.newBuilder() - .setParent(parent) - .setGoogleAdsLink(googleAdsLink) - .build(); - return createGoogleAdsLink(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a GoogleAdsLink. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   CreateGoogleAdsLinkRequest request =
-   *       CreateGoogleAdsLinkRequest.newBuilder()
-   *           .setParent(PropertyName.of("[PROPERTY]").toString())
-   *           .setGoogleAdsLink(GoogleAdsLink.newBuilder().build())
-   *           .build();
-   *   GoogleAdsLink response = analyticsAdminServiceClient.createGoogleAdsLink(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final GoogleAdsLink createGoogleAdsLink(CreateGoogleAdsLinkRequest request) { - return createGoogleAdsLinkCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a GoogleAdsLink. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   CreateGoogleAdsLinkRequest request =
-   *       CreateGoogleAdsLinkRequest.newBuilder()
-   *           .setParent(PropertyName.of("[PROPERTY]").toString())
-   *           .setGoogleAdsLink(GoogleAdsLink.newBuilder().build())
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient.createGoogleAdsLinkCallable().futureCall(request);
-   *   // Do something.
-   *   GoogleAdsLink response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable - createGoogleAdsLinkCallable() { - return stub.createGoogleAdsLinkCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a GoogleAdsLink on a property - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   GoogleAdsLink googleAdsLink = GoogleAdsLink.newBuilder().build();
-   *   FieldMask updateMask = FieldMask.newBuilder().build();
-   *   GoogleAdsLink response =
-   *       analyticsAdminServiceClient.updateGoogleAdsLink(googleAdsLink, updateMask);
-   * }
-   * }
- * - * @param googleAdsLink The GoogleAdsLink to update - * @param updateMask Required. The list of fields to be updated. Field names must be in snake case - * (e.g., "field_to_update"). Omitted fields will not be updated. To replace the entire - * entity, use one path with the string "*" to match all fields. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final GoogleAdsLink updateGoogleAdsLink( - GoogleAdsLink googleAdsLink, FieldMask updateMask) { - UpdateGoogleAdsLinkRequest request = - UpdateGoogleAdsLinkRequest.newBuilder() - .setGoogleAdsLink(googleAdsLink) - .setUpdateMask(updateMask) - .build(); - return updateGoogleAdsLink(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a GoogleAdsLink on a property - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   UpdateGoogleAdsLinkRequest request =
-   *       UpdateGoogleAdsLinkRequest.newBuilder()
-   *           .setGoogleAdsLink(GoogleAdsLink.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   GoogleAdsLink response = analyticsAdminServiceClient.updateGoogleAdsLink(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final GoogleAdsLink updateGoogleAdsLink(UpdateGoogleAdsLinkRequest request) { - return updateGoogleAdsLinkCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a GoogleAdsLink on a property - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   UpdateGoogleAdsLinkRequest request =
-   *       UpdateGoogleAdsLinkRequest.newBuilder()
-   *           .setGoogleAdsLink(GoogleAdsLink.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient.updateGoogleAdsLinkCallable().futureCall(request);
-   *   // Do something.
-   *   GoogleAdsLink response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable - updateGoogleAdsLinkCallable() { - return stub.updateGoogleAdsLinkCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a GoogleAdsLink on a property - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   GoogleAdsLinkName name = GoogleAdsLinkName.of("[PROPERTY]", "[GOOGLE_ADS_LINK]");
-   *   analyticsAdminServiceClient.deleteGoogleAdsLink(name);
-   * }
-   * }
- * - * @param name Required. Example format: properties/1234/googleAdsLinks/5678 - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void deleteGoogleAdsLink(GoogleAdsLinkName name) { - DeleteGoogleAdsLinkRequest request = - DeleteGoogleAdsLinkRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .build(); - deleteGoogleAdsLink(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a GoogleAdsLink on a property - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   String name = GoogleAdsLinkName.of("[PROPERTY]", "[GOOGLE_ADS_LINK]").toString();
-   *   analyticsAdminServiceClient.deleteGoogleAdsLink(name);
-   * }
-   * }
- * - * @param name Required. Example format: properties/1234/googleAdsLinks/5678 - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void deleteGoogleAdsLink(String name) { - DeleteGoogleAdsLinkRequest request = - DeleteGoogleAdsLinkRequest.newBuilder().setName(name).build(); - deleteGoogleAdsLink(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a GoogleAdsLink on a property - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   DeleteGoogleAdsLinkRequest request =
-   *       DeleteGoogleAdsLinkRequest.newBuilder()
-   *           .setName(GoogleAdsLinkName.of("[PROPERTY]", "[GOOGLE_ADS_LINK]").toString())
-   *           .build();
-   *   analyticsAdminServiceClient.deleteGoogleAdsLink(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void deleteGoogleAdsLink(DeleteGoogleAdsLinkRequest request) { - deleteGoogleAdsLinkCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a GoogleAdsLink on a property - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   DeleteGoogleAdsLinkRequest request =
-   *       DeleteGoogleAdsLinkRequest.newBuilder()
-   *           .setName(GoogleAdsLinkName.of("[PROPERTY]", "[GOOGLE_ADS_LINK]").toString())
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient.deleteGoogleAdsLinkCallable().futureCall(request);
-   *   // Do something.
-   *   future.get();
-   * }
-   * }
- */ - public final UnaryCallable deleteGoogleAdsLinkCallable() { - return stub.deleteGoogleAdsLinkCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists GoogleAdsLinks on a property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   PropertyName parent = PropertyName.of("[PROPERTY]");
-   *   for (GoogleAdsLink element :
-   *       analyticsAdminServiceClient.listGoogleAdsLinks(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. Example format: properties/1234 - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListGoogleAdsLinksPagedResponse listGoogleAdsLinks(PropertyName parent) { - ListGoogleAdsLinksRequest request = - ListGoogleAdsLinksRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .build(); - return listGoogleAdsLinks(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists GoogleAdsLinks on a property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   String parent = PropertyName.of("[PROPERTY]").toString();
-   *   for (GoogleAdsLink element :
-   *       analyticsAdminServiceClient.listGoogleAdsLinks(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. Example format: properties/1234 - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListGoogleAdsLinksPagedResponse listGoogleAdsLinks(String parent) { - ListGoogleAdsLinksRequest request = - ListGoogleAdsLinksRequest.newBuilder().setParent(parent).build(); - return listGoogleAdsLinks(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists GoogleAdsLinks on a property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   ListGoogleAdsLinksRequest request =
-   *       ListGoogleAdsLinksRequest.newBuilder()
-   *           .setParent(PropertyName.of("[PROPERTY]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   for (GoogleAdsLink element :
-   *       analyticsAdminServiceClient.listGoogleAdsLinks(request).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListGoogleAdsLinksPagedResponse listGoogleAdsLinks( - ListGoogleAdsLinksRequest request) { - return listGoogleAdsLinksPagedCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists GoogleAdsLinks on a property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   ListGoogleAdsLinksRequest request =
-   *       ListGoogleAdsLinksRequest.newBuilder()
-   *           .setParent(PropertyName.of("[PROPERTY]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient.listGoogleAdsLinksPagedCallable().futureCall(request);
-   *   // Do something.
-   *   for (GoogleAdsLink element : future.get().iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable - listGoogleAdsLinksPagedCallable() { - return stub.listGoogleAdsLinksPagedCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists GoogleAdsLinks on a property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   ListGoogleAdsLinksRequest request =
-   *       ListGoogleAdsLinksRequest.newBuilder()
-   *           .setParent(PropertyName.of("[PROPERTY]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   while (true) {
-   *     ListGoogleAdsLinksResponse response =
-   *         analyticsAdminServiceClient.listGoogleAdsLinksCallable().call(request);
-   *     for (GoogleAdsLink element : response.getGoogleAdsLinksList()) {
-   *       // doThingsWith(element);
-   *     }
-   *     String nextPageToken = response.getNextPageToken();
-   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
-   *       request = request.toBuilder().setPageToken(nextPageToken).build();
-   *     } else {
-   *       break;
-   *     }
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable - listGoogleAdsLinksCallable() { - return stub.listGoogleAdsLinksCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Get data sharing settings on an account. Data sharing settings are singletons. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   DataSharingSettingsName name = DataSharingSettingsName.of("[ACCOUNT]");
-   *   DataSharingSettings response = analyticsAdminServiceClient.getDataSharingSettings(name);
-   * }
-   * }
- * - * @param name Required. The name of the settings to lookup. Format: - * accounts/{account}/dataSharingSettings Example: "accounts/1000/dataSharingSettings" - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final DataSharingSettings getDataSharingSettings(DataSharingSettingsName name) { - GetDataSharingSettingsRequest request = - GetDataSharingSettingsRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .build(); - return getDataSharingSettings(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Get data sharing settings on an account. Data sharing settings are singletons. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   String name = DataSharingSettingsName.of("[ACCOUNT]").toString();
-   *   DataSharingSettings response = analyticsAdminServiceClient.getDataSharingSettings(name);
-   * }
-   * }
- * - * @param name Required. The name of the settings to lookup. Format: - * accounts/{account}/dataSharingSettings Example: "accounts/1000/dataSharingSettings" - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final DataSharingSettings getDataSharingSettings(String name) { - GetDataSharingSettingsRequest request = - GetDataSharingSettingsRequest.newBuilder().setName(name).build(); - return getDataSharingSettings(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Get data sharing settings on an account. Data sharing settings are singletons. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   GetDataSharingSettingsRequest request =
-   *       GetDataSharingSettingsRequest.newBuilder()
-   *           .setName(DataSharingSettingsName.of("[ACCOUNT]").toString())
-   *           .build();
-   *   DataSharingSettings response = analyticsAdminServiceClient.getDataSharingSettings(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final DataSharingSettings getDataSharingSettings(GetDataSharingSettingsRequest request) { - return getDataSharingSettingsCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Get data sharing settings on an account. Data sharing settings are singletons. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   GetDataSharingSettingsRequest request =
-   *       GetDataSharingSettingsRequest.newBuilder()
-   *           .setName(DataSharingSettingsName.of("[ACCOUNT]").toString())
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient.getDataSharingSettingsCallable().futureCall(request);
-   *   // Do something.
-   *   DataSharingSettings response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable - getDataSharingSettingsCallable() { - return stub.getDataSharingSettingsCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lookup for a single "GA4" MeasurementProtocolSecret. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   MeasurementProtocolSecretName name =
-   *       MeasurementProtocolSecretName.of(
-   *           "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]");
-   *   MeasurementProtocolSecret response =
-   *       analyticsAdminServiceClient.getMeasurementProtocolSecret(name);
-   * }
-   * }
- * - * @param name Required. The name of the measurement protocol secret to lookup. Format: - * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final MeasurementProtocolSecret getMeasurementProtocolSecret( - MeasurementProtocolSecretName name) { - GetMeasurementProtocolSecretRequest request = - GetMeasurementProtocolSecretRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .build(); - return getMeasurementProtocolSecret(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lookup for a single "GA4" MeasurementProtocolSecret. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   String name =
-   *       MeasurementProtocolSecretName.of(
-   *               "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]")
-   *           .toString();
-   *   MeasurementProtocolSecret response =
-   *       analyticsAdminServiceClient.getMeasurementProtocolSecret(name);
-   * }
-   * }
- * - * @param name Required. The name of the measurement protocol secret to lookup. Format: - * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final MeasurementProtocolSecret getMeasurementProtocolSecret(String name) { - GetMeasurementProtocolSecretRequest request = - GetMeasurementProtocolSecretRequest.newBuilder().setName(name).build(); - return getMeasurementProtocolSecret(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lookup for a single "GA4" MeasurementProtocolSecret. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   GetMeasurementProtocolSecretRequest request =
-   *       GetMeasurementProtocolSecretRequest.newBuilder()
-   *           .setName(
-   *               MeasurementProtocolSecretName.of(
-   *                       "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]")
-   *                   .toString())
-   *           .build();
-   *   MeasurementProtocolSecret response =
-   *       analyticsAdminServiceClient.getMeasurementProtocolSecret(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final MeasurementProtocolSecret getMeasurementProtocolSecret( - GetMeasurementProtocolSecretRequest request) { - return getMeasurementProtocolSecretCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lookup for a single "GA4" MeasurementProtocolSecret. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   GetMeasurementProtocolSecretRequest request =
-   *       GetMeasurementProtocolSecretRequest.newBuilder()
-   *           .setName(
-   *               MeasurementProtocolSecretName.of(
-   *                       "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]")
-   *                   .toString())
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient.getMeasurementProtocolSecretCallable().futureCall(request);
-   *   // Do something.
-   *   MeasurementProtocolSecret response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable - getMeasurementProtocolSecretCallable() { - return stub.getMeasurementProtocolSecretCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Returns child MeasurementProtocolSecrets under the specified parent Property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   DataStreamName parent = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]");
-   *   for (MeasurementProtocolSecret element :
-   *       analyticsAdminServiceClient.listMeasurementProtocolSecrets(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. The resource name of the parent stream. Format: - * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListMeasurementProtocolSecretsPagedResponse listMeasurementProtocolSecrets( - DataStreamName parent) { - ListMeasurementProtocolSecretsRequest request = - ListMeasurementProtocolSecretsRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .build(); - return listMeasurementProtocolSecrets(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Returns child MeasurementProtocolSecrets under the specified parent Property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   String parent = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString();
-   *   for (MeasurementProtocolSecret element :
-   *       analyticsAdminServiceClient.listMeasurementProtocolSecrets(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. The resource name of the parent stream. Format: - * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListMeasurementProtocolSecretsPagedResponse listMeasurementProtocolSecrets( - String parent) { - ListMeasurementProtocolSecretsRequest request = - ListMeasurementProtocolSecretsRequest.newBuilder().setParent(parent).build(); - return listMeasurementProtocolSecrets(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Returns child MeasurementProtocolSecrets under the specified parent Property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   ListMeasurementProtocolSecretsRequest request =
-   *       ListMeasurementProtocolSecretsRequest.newBuilder()
-   *           .setParent(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   for (MeasurementProtocolSecret element :
-   *       analyticsAdminServiceClient.listMeasurementProtocolSecrets(request).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListMeasurementProtocolSecretsPagedResponse listMeasurementProtocolSecrets( - ListMeasurementProtocolSecretsRequest request) { - return listMeasurementProtocolSecretsPagedCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Returns child MeasurementProtocolSecrets under the specified parent Property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   ListMeasurementProtocolSecretsRequest request =
-   *       ListMeasurementProtocolSecretsRequest.newBuilder()
-   *           .setParent(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient
-   *           .listMeasurementProtocolSecretsPagedCallable()
-   *           .futureCall(request);
-   *   // Do something.
-   *   for (MeasurementProtocolSecret element : future.get().iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable< - ListMeasurementProtocolSecretsRequest, ListMeasurementProtocolSecretsPagedResponse> - listMeasurementProtocolSecretsPagedCallable() { - return stub.listMeasurementProtocolSecretsPagedCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Returns child MeasurementProtocolSecrets under the specified parent Property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   ListMeasurementProtocolSecretsRequest request =
-   *       ListMeasurementProtocolSecretsRequest.newBuilder()
-   *           .setParent(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   while (true) {
-   *     ListMeasurementProtocolSecretsResponse response =
-   *         analyticsAdminServiceClient.listMeasurementProtocolSecretsCallable().call(request);
-   *     for (MeasurementProtocolSecret element : response.getMeasurementProtocolSecretsList()) {
-   *       // doThingsWith(element);
-   *     }
-   *     String nextPageToken = response.getNextPageToken();
-   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
-   *       request = request.toBuilder().setPageToken(nextPageToken).build();
-   *     } else {
-   *       break;
-   *     }
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable< - ListMeasurementProtocolSecretsRequest, ListMeasurementProtocolSecretsResponse> - listMeasurementProtocolSecretsCallable() { - return stub.listMeasurementProtocolSecretsCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a measurement protocol secret. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   DataStreamName parent = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]");
-   *   MeasurementProtocolSecret measurementProtocolSecret =
-   *       MeasurementProtocolSecret.newBuilder().build();
-   *   MeasurementProtocolSecret response =
-   *       analyticsAdminServiceClient.createMeasurementProtocolSecret(
-   *           parent, measurementProtocolSecret);
-   * }
-   * }
- * - * @param parent Required. The parent resource where this secret will be created. Format: - * properties/{property}/dataStreams/{dataStream} - * @param measurementProtocolSecret Required. The measurement protocol secret to create. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final MeasurementProtocolSecret createMeasurementProtocolSecret( - DataStreamName parent, MeasurementProtocolSecret measurementProtocolSecret) { - CreateMeasurementProtocolSecretRequest request = - CreateMeasurementProtocolSecretRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setMeasurementProtocolSecret(measurementProtocolSecret) - .build(); - return createMeasurementProtocolSecret(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a measurement protocol secret. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   String parent = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString();
-   *   MeasurementProtocolSecret measurementProtocolSecret =
-   *       MeasurementProtocolSecret.newBuilder().build();
-   *   MeasurementProtocolSecret response =
-   *       analyticsAdminServiceClient.createMeasurementProtocolSecret(
-   *           parent, measurementProtocolSecret);
-   * }
-   * }
- * - * @param parent Required. The parent resource where this secret will be created. Format: - * properties/{property}/dataStreams/{dataStream} - * @param measurementProtocolSecret Required. The measurement protocol secret to create. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final MeasurementProtocolSecret createMeasurementProtocolSecret( - String parent, MeasurementProtocolSecret measurementProtocolSecret) { - CreateMeasurementProtocolSecretRequest request = - CreateMeasurementProtocolSecretRequest.newBuilder() - .setParent(parent) - .setMeasurementProtocolSecret(measurementProtocolSecret) - .build(); - return createMeasurementProtocolSecret(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a measurement protocol secret. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   CreateMeasurementProtocolSecretRequest request =
-   *       CreateMeasurementProtocolSecretRequest.newBuilder()
-   *           .setParent(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString())
-   *           .setMeasurementProtocolSecret(MeasurementProtocolSecret.newBuilder().build())
-   *           .build();
-   *   MeasurementProtocolSecret response =
-   *       analyticsAdminServiceClient.createMeasurementProtocolSecret(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final MeasurementProtocolSecret createMeasurementProtocolSecret( - CreateMeasurementProtocolSecretRequest request) { - return createMeasurementProtocolSecretCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a measurement protocol secret. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   CreateMeasurementProtocolSecretRequest request =
-   *       CreateMeasurementProtocolSecretRequest.newBuilder()
-   *           .setParent(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString())
-   *           .setMeasurementProtocolSecret(MeasurementProtocolSecret.newBuilder().build())
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient.createMeasurementProtocolSecretCallable().futureCall(request);
-   *   // Do something.
-   *   MeasurementProtocolSecret response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable - createMeasurementProtocolSecretCallable() { - return stub.createMeasurementProtocolSecretCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes target MeasurementProtocolSecret. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   MeasurementProtocolSecretName name =
-   *       MeasurementProtocolSecretName.of(
-   *           "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]");
-   *   analyticsAdminServiceClient.deleteMeasurementProtocolSecret(name);
-   * }
-   * }
- * - * @param name Required. The name of the MeasurementProtocolSecret to delete. Format: - * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void deleteMeasurementProtocolSecret(MeasurementProtocolSecretName name) { - DeleteMeasurementProtocolSecretRequest request = - DeleteMeasurementProtocolSecretRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .build(); - deleteMeasurementProtocolSecret(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes target MeasurementProtocolSecret. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   String name =
-   *       MeasurementProtocolSecretName.of(
-   *               "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]")
-   *           .toString();
-   *   analyticsAdminServiceClient.deleteMeasurementProtocolSecret(name);
-   * }
-   * }
- * - * @param name Required. The name of the MeasurementProtocolSecret to delete. Format: - * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void deleteMeasurementProtocolSecret(String name) { - DeleteMeasurementProtocolSecretRequest request = - DeleteMeasurementProtocolSecretRequest.newBuilder().setName(name).build(); - deleteMeasurementProtocolSecret(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes target MeasurementProtocolSecret. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   DeleteMeasurementProtocolSecretRequest request =
-   *       DeleteMeasurementProtocolSecretRequest.newBuilder()
-   *           .setName(
-   *               MeasurementProtocolSecretName.of(
-   *                       "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]")
-   *                   .toString())
-   *           .build();
-   *   analyticsAdminServiceClient.deleteMeasurementProtocolSecret(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void deleteMeasurementProtocolSecret( - DeleteMeasurementProtocolSecretRequest request) { - deleteMeasurementProtocolSecretCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes target MeasurementProtocolSecret. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   DeleteMeasurementProtocolSecretRequest request =
-   *       DeleteMeasurementProtocolSecretRequest.newBuilder()
-   *           .setName(
-   *               MeasurementProtocolSecretName.of(
-   *                       "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]")
-   *                   .toString())
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient.deleteMeasurementProtocolSecretCallable().futureCall(request);
-   *   // Do something.
-   *   future.get();
-   * }
-   * }
- */ - public final UnaryCallable - deleteMeasurementProtocolSecretCallable() { - return stub.deleteMeasurementProtocolSecretCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a measurement protocol secret. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   MeasurementProtocolSecret measurementProtocolSecret =
-   *       MeasurementProtocolSecret.newBuilder().build();
-   *   FieldMask updateMask = FieldMask.newBuilder().build();
-   *   MeasurementProtocolSecret response =
-   *       analyticsAdminServiceClient.updateMeasurementProtocolSecret(
-   *           measurementProtocolSecret, updateMask);
-   * }
-   * }
- * - * @param measurementProtocolSecret Required. The measurement protocol secret to update. - * @param updateMask The list of fields to be updated. Omitted fields will not be updated. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final MeasurementProtocolSecret updateMeasurementProtocolSecret( - MeasurementProtocolSecret measurementProtocolSecret, FieldMask updateMask) { - UpdateMeasurementProtocolSecretRequest request = - UpdateMeasurementProtocolSecretRequest.newBuilder() - .setMeasurementProtocolSecret(measurementProtocolSecret) - .setUpdateMask(updateMask) - .build(); - return updateMeasurementProtocolSecret(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a measurement protocol secret. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   UpdateMeasurementProtocolSecretRequest request =
-   *       UpdateMeasurementProtocolSecretRequest.newBuilder()
-   *           .setMeasurementProtocolSecret(MeasurementProtocolSecret.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   MeasurementProtocolSecret response =
-   *       analyticsAdminServiceClient.updateMeasurementProtocolSecret(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final MeasurementProtocolSecret updateMeasurementProtocolSecret( - UpdateMeasurementProtocolSecretRequest request) { - return updateMeasurementProtocolSecretCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a measurement protocol secret. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   UpdateMeasurementProtocolSecretRequest request =
-   *       UpdateMeasurementProtocolSecretRequest.newBuilder()
-   *           .setMeasurementProtocolSecret(MeasurementProtocolSecret.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient.updateMeasurementProtocolSecretCallable().futureCall(request);
-   *   // Do something.
-   *   MeasurementProtocolSecret response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable - updateMeasurementProtocolSecretCallable() { - return stub.updateMeasurementProtocolSecretCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Acknowledges the terms of user data collection for the specified property. - * - *

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

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   AcknowledgeUserDataCollectionRequest request =
-   *       AcknowledgeUserDataCollectionRequest.newBuilder()
-   *           .setProperty(PropertyName.of("[PROPERTY]").toString())
-   *           .setAcknowledgement("acknowledgement1769490938")
-   *           .build();
-   *   AcknowledgeUserDataCollectionResponse response =
-   *       analyticsAdminServiceClient.acknowledgeUserDataCollection(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final AcknowledgeUserDataCollectionResponse acknowledgeUserDataCollection( - AcknowledgeUserDataCollectionRequest request) { - return acknowledgeUserDataCollectionCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Acknowledges the terms of user data collection for the specified property. - * - *

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

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   AcknowledgeUserDataCollectionRequest request =
-   *       AcknowledgeUserDataCollectionRequest.newBuilder()
-   *           .setProperty(PropertyName.of("[PROPERTY]").toString())
-   *           .setAcknowledgement("acknowledgement1769490938")
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient.acknowledgeUserDataCollectionCallable().futureCall(request);
-   *   // Do something.
-   *   AcknowledgeUserDataCollectionResponse response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable< - AcknowledgeUserDataCollectionRequest, AcknowledgeUserDataCollectionResponse> - acknowledgeUserDataCollectionCallable() { - return stub.acknowledgeUserDataCollectionCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Searches through all changes to an account or its children given the specified set of filters. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   SearchChangeHistoryEventsRequest request =
-   *       SearchChangeHistoryEventsRequest.newBuilder()
-   *           .setAccount(AccountName.of("[ACCOUNT]").toString())
-   *           .setProperty(PropertyName.of("[PROPERTY]").toString())
-   *           .addAllResourceType(new ArrayList())
-   *           .addAllAction(new ArrayList())
-   *           .addAllActorEmail(new ArrayList())
-   *           .setEarliestChangeTime(Timestamp.newBuilder().build())
-   *           .setLatestChangeTime(Timestamp.newBuilder().build())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   for (ChangeHistoryEvent element :
-   *       analyticsAdminServiceClient.searchChangeHistoryEvents(request).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final SearchChangeHistoryEventsPagedResponse searchChangeHistoryEvents( - SearchChangeHistoryEventsRequest request) { - return searchChangeHistoryEventsPagedCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Searches through all changes to an account or its children given the specified set of filters. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   SearchChangeHistoryEventsRequest request =
-   *       SearchChangeHistoryEventsRequest.newBuilder()
-   *           .setAccount(AccountName.of("[ACCOUNT]").toString())
-   *           .setProperty(PropertyName.of("[PROPERTY]").toString())
-   *           .addAllResourceType(new ArrayList())
-   *           .addAllAction(new ArrayList())
-   *           .addAllActorEmail(new ArrayList())
-   *           .setEarliestChangeTime(Timestamp.newBuilder().build())
-   *           .setLatestChangeTime(Timestamp.newBuilder().build())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient.searchChangeHistoryEventsPagedCallable().futureCall(request);
-   *   // Do something.
-   *   for (ChangeHistoryEvent element : future.get().iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable< - SearchChangeHistoryEventsRequest, SearchChangeHistoryEventsPagedResponse> - searchChangeHistoryEventsPagedCallable() { - return stub.searchChangeHistoryEventsPagedCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Searches through all changes to an account or its children given the specified set of filters. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   SearchChangeHistoryEventsRequest request =
-   *       SearchChangeHistoryEventsRequest.newBuilder()
-   *           .setAccount(AccountName.of("[ACCOUNT]").toString())
-   *           .setProperty(PropertyName.of("[PROPERTY]").toString())
-   *           .addAllResourceType(new ArrayList())
-   *           .addAllAction(new ArrayList())
-   *           .addAllActorEmail(new ArrayList())
-   *           .setEarliestChangeTime(Timestamp.newBuilder().build())
-   *           .setLatestChangeTime(Timestamp.newBuilder().build())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   while (true) {
-   *     SearchChangeHistoryEventsResponse response =
-   *         analyticsAdminServiceClient.searchChangeHistoryEventsCallable().call(request);
-   *     for (ChangeHistoryEvent element : response.getChangeHistoryEventsList()) {
-   *       // doThingsWith(element);
-   *     }
-   *     String nextPageToken = response.getNextPageToken();
-   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
-   *       request = request.toBuilder().setPageToken(nextPageToken).build();
-   *     } else {
-   *       break;
-   *     }
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable - searchChangeHistoryEventsCallable() { - return stub.searchChangeHistoryEventsCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lookup for Google Signals settings for a property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   GoogleSignalsSettingsName name = GoogleSignalsSettingsName.of("[PROPERTY]");
-   *   GoogleSignalsSettings response = analyticsAdminServiceClient.getGoogleSignalsSettings(name);
-   * }
-   * }
- * - * @param name Required. The name of the google signals settings to retrieve. Format: - * properties/{property}/googleSignalsSettings - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final GoogleSignalsSettings getGoogleSignalsSettings(GoogleSignalsSettingsName name) { - GetGoogleSignalsSettingsRequest request = - GetGoogleSignalsSettingsRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .build(); - return getGoogleSignalsSettings(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lookup for Google Signals settings for a property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   String name = GoogleSignalsSettingsName.of("[PROPERTY]").toString();
-   *   GoogleSignalsSettings response = analyticsAdminServiceClient.getGoogleSignalsSettings(name);
-   * }
-   * }
- * - * @param name Required. The name of the google signals settings to retrieve. Format: - * properties/{property}/googleSignalsSettings - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final GoogleSignalsSettings getGoogleSignalsSettings(String name) { - GetGoogleSignalsSettingsRequest request = - GetGoogleSignalsSettingsRequest.newBuilder().setName(name).build(); - return getGoogleSignalsSettings(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lookup for Google Signals settings for a property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   GetGoogleSignalsSettingsRequest request =
-   *       GetGoogleSignalsSettingsRequest.newBuilder()
-   *           .setName(GoogleSignalsSettingsName.of("[PROPERTY]").toString())
-   *           .build();
-   *   GoogleSignalsSettings response =
-   *       analyticsAdminServiceClient.getGoogleSignalsSettings(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final GoogleSignalsSettings getGoogleSignalsSettings( - GetGoogleSignalsSettingsRequest request) { - return getGoogleSignalsSettingsCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lookup for Google Signals settings for a property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   GetGoogleSignalsSettingsRequest request =
-   *       GetGoogleSignalsSettingsRequest.newBuilder()
-   *           .setName(GoogleSignalsSettingsName.of("[PROPERTY]").toString())
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient.getGoogleSignalsSettingsCallable().futureCall(request);
-   *   // Do something.
-   *   GoogleSignalsSettings response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable - getGoogleSignalsSettingsCallable() { - return stub.getGoogleSignalsSettingsCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates Google Signals settings for a property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   GoogleSignalsSettings googleSignalsSettings = GoogleSignalsSettings.newBuilder().build();
-   *   FieldMask updateMask = FieldMask.newBuilder().build();
-   *   GoogleSignalsSettings response =
-   *       analyticsAdminServiceClient.updateGoogleSignalsSettings(
-   *           googleSignalsSettings, updateMask);
-   * }
-   * }
- * - * @param googleSignalsSettings Required. The settings to update. The `name` field is used to - * identify the settings to be updated. - * @param updateMask Required. The list of fields to be updated. Field names must be in snake case - * (e.g., "field_to_update"). Omitted fields will not be updated. To replace the entire - * entity, use one path with the string "*" to match all fields. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final GoogleSignalsSettings updateGoogleSignalsSettings( - GoogleSignalsSettings googleSignalsSettings, FieldMask updateMask) { - UpdateGoogleSignalsSettingsRequest request = - UpdateGoogleSignalsSettingsRequest.newBuilder() - .setGoogleSignalsSettings(googleSignalsSettings) - .setUpdateMask(updateMask) - .build(); - return updateGoogleSignalsSettings(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates Google Signals settings for a property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   UpdateGoogleSignalsSettingsRequest request =
-   *       UpdateGoogleSignalsSettingsRequest.newBuilder()
-   *           .setGoogleSignalsSettings(GoogleSignalsSettings.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   GoogleSignalsSettings response =
-   *       analyticsAdminServiceClient.updateGoogleSignalsSettings(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final GoogleSignalsSettings updateGoogleSignalsSettings( - UpdateGoogleSignalsSettingsRequest request) { - return updateGoogleSignalsSettingsCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates Google Signals settings for a property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   UpdateGoogleSignalsSettingsRequest request =
-   *       UpdateGoogleSignalsSettingsRequest.newBuilder()
-   *           .setGoogleSignalsSettings(GoogleSignalsSettings.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient.updateGoogleSignalsSettingsCallable().futureCall(request);
-   *   // Do something.
-   *   GoogleSignalsSettings response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable - updateGoogleSignalsSettingsCallable() { - return stub.updateGoogleSignalsSettingsCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a conversion event with the specified attributes. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   PropertyName parent = PropertyName.of("[PROPERTY]");
-   *   ConversionEvent conversionEvent = ConversionEvent.newBuilder().build();
-   *   ConversionEvent response =
-   *       analyticsAdminServiceClient.createConversionEvent(parent, conversionEvent);
-   * }
-   * }
- * - * @param parent Required. The resource name of the parent property where this conversion event - * will be created. Format: properties/123 - * @param conversionEvent Required. The conversion event to create. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ConversionEvent createConversionEvent( - PropertyName parent, ConversionEvent conversionEvent) { - CreateConversionEventRequest request = - CreateConversionEventRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setConversionEvent(conversionEvent) - .build(); - return createConversionEvent(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a conversion event with the specified attributes. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   String parent = PropertyName.of("[PROPERTY]").toString();
-   *   ConversionEvent conversionEvent = ConversionEvent.newBuilder().build();
-   *   ConversionEvent response =
-   *       analyticsAdminServiceClient.createConversionEvent(parent, conversionEvent);
-   * }
-   * }
- * - * @param parent Required. The resource name of the parent property where this conversion event - * will be created. Format: properties/123 - * @param conversionEvent Required. The conversion event to create. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ConversionEvent createConversionEvent( - String parent, ConversionEvent conversionEvent) { - CreateConversionEventRequest request = - CreateConversionEventRequest.newBuilder() - .setParent(parent) - .setConversionEvent(conversionEvent) - .build(); - return createConversionEvent(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a conversion event with the specified attributes. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   CreateConversionEventRequest request =
-   *       CreateConversionEventRequest.newBuilder()
-   *           .setConversionEvent(ConversionEvent.newBuilder().build())
-   *           .setParent(PropertyName.of("[PROPERTY]").toString())
-   *           .build();
-   *   ConversionEvent response = analyticsAdminServiceClient.createConversionEvent(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ConversionEvent createConversionEvent(CreateConversionEventRequest request) { - return createConversionEventCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a conversion event with the specified attributes. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   CreateConversionEventRequest request =
-   *       CreateConversionEventRequest.newBuilder()
-   *           .setConversionEvent(ConversionEvent.newBuilder().build())
-   *           .setParent(PropertyName.of("[PROPERTY]").toString())
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient.createConversionEventCallable().futureCall(request);
-   *   // Do something.
-   *   ConversionEvent response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable - createConversionEventCallable() { - return stub.createConversionEventCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Retrieve a single conversion event. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   ConversionEventName name = ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]");
-   *   ConversionEvent response = analyticsAdminServiceClient.getConversionEvent(name);
-   * }
-   * }
- * - * @param name Required. The resource name of the conversion event to retrieve. Format: - * properties/{property}/conversionEvents/{conversion_event} Example: - * "properties/123/conversionEvents/456" - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ConversionEvent getConversionEvent(ConversionEventName name) { - GetConversionEventRequest request = - GetConversionEventRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .build(); - return getConversionEvent(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Retrieve a single conversion event. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   String name = ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]").toString();
-   *   ConversionEvent response = analyticsAdminServiceClient.getConversionEvent(name);
-   * }
-   * }
- * - * @param name Required. The resource name of the conversion event to retrieve. Format: - * properties/{property}/conversionEvents/{conversion_event} Example: - * "properties/123/conversionEvents/456" - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ConversionEvent getConversionEvent(String name) { - GetConversionEventRequest request = - GetConversionEventRequest.newBuilder().setName(name).build(); - return getConversionEvent(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Retrieve a single conversion event. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   GetConversionEventRequest request =
-   *       GetConversionEventRequest.newBuilder()
-   *           .setName(ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]").toString())
-   *           .build();
-   *   ConversionEvent response = analyticsAdminServiceClient.getConversionEvent(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ConversionEvent getConversionEvent(GetConversionEventRequest request) { - return getConversionEventCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Retrieve a single conversion event. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   GetConversionEventRequest request =
-   *       GetConversionEventRequest.newBuilder()
-   *           .setName(ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]").toString())
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient.getConversionEventCallable().futureCall(request);
-   *   // Do something.
-   *   ConversionEvent response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable - getConversionEventCallable() { - return stub.getConversionEventCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a conversion event in a property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   ConversionEventName name = ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]");
-   *   analyticsAdminServiceClient.deleteConversionEvent(name);
-   * }
-   * }
- * - * @param name Required. The resource name of the conversion event to delete. Format: - * properties/{property}/conversionEvents/{conversion_event} Example: - * "properties/123/conversionEvents/456" - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void deleteConversionEvent(ConversionEventName name) { - DeleteConversionEventRequest request = - DeleteConversionEventRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .build(); - deleteConversionEvent(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a conversion event in a property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   String name = ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]").toString();
-   *   analyticsAdminServiceClient.deleteConversionEvent(name);
-   * }
-   * }
- * - * @param name Required. The resource name of the conversion event to delete. Format: - * properties/{property}/conversionEvents/{conversion_event} Example: - * "properties/123/conversionEvents/456" - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void deleteConversionEvent(String name) { - DeleteConversionEventRequest request = - DeleteConversionEventRequest.newBuilder().setName(name).build(); - deleteConversionEvent(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a conversion event in a property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   DeleteConversionEventRequest request =
-   *       DeleteConversionEventRequest.newBuilder()
-   *           .setName(ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]").toString())
-   *           .build();
-   *   analyticsAdminServiceClient.deleteConversionEvent(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void deleteConversionEvent(DeleteConversionEventRequest request) { - deleteConversionEventCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a conversion event in a property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   DeleteConversionEventRequest request =
-   *       DeleteConversionEventRequest.newBuilder()
-   *           .setName(ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]").toString())
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient.deleteConversionEventCallable().futureCall(request);
-   *   // Do something.
-   *   future.get();
-   * }
-   * }
- */ - public final UnaryCallable deleteConversionEventCallable() { - return stub.deleteConversionEventCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Returns a list of conversion events in the specified parent property. - * - *

Returns an empty list if no conversion events are found. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   PropertyName parent = PropertyName.of("[PROPERTY]");
-   *   for (ConversionEvent element :
-   *       analyticsAdminServiceClient.listConversionEvents(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. The resource name of the parent property. Example: 'properties/123' - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListConversionEventsPagedResponse listConversionEvents(PropertyName parent) { - ListConversionEventsRequest request = - ListConversionEventsRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .build(); - return listConversionEvents(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Returns a list of conversion events in the specified parent property. - * - *

Returns an empty list if no conversion events are found. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   String parent = PropertyName.of("[PROPERTY]").toString();
-   *   for (ConversionEvent element :
-   *       analyticsAdminServiceClient.listConversionEvents(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. The resource name of the parent property. Example: 'properties/123' - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListConversionEventsPagedResponse listConversionEvents(String parent) { - ListConversionEventsRequest request = - ListConversionEventsRequest.newBuilder().setParent(parent).build(); - return listConversionEvents(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Returns a list of conversion events in the specified parent property. - * - *

Returns an empty list if no conversion events are found. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   ListConversionEventsRequest request =
-   *       ListConversionEventsRequest.newBuilder()
-   *           .setParent(PropertyName.of("[PROPERTY]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   for (ConversionEvent element :
-   *       analyticsAdminServiceClient.listConversionEvents(request).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListConversionEventsPagedResponse listConversionEvents( - ListConversionEventsRequest request) { - return listConversionEventsPagedCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Returns a list of conversion events in the specified parent property. - * - *

Returns an empty list if no conversion events are found. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   ListConversionEventsRequest request =
-   *       ListConversionEventsRequest.newBuilder()
-   *           .setParent(PropertyName.of("[PROPERTY]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient.listConversionEventsPagedCallable().futureCall(request);
-   *   // Do something.
-   *   for (ConversionEvent element : future.get().iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable - listConversionEventsPagedCallable() { - return stub.listConversionEventsPagedCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Returns a list of conversion events in the specified parent property. - * - *

Returns an empty list if no conversion events are found. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   ListConversionEventsRequest request =
-   *       ListConversionEventsRequest.newBuilder()
-   *           .setParent(PropertyName.of("[PROPERTY]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   while (true) {
-   *     ListConversionEventsResponse response =
-   *         analyticsAdminServiceClient.listConversionEventsCallable().call(request);
-   *     for (ConversionEvent element : response.getConversionEventsList()) {
-   *       // doThingsWith(element);
-   *     }
-   *     String nextPageToken = response.getNextPageToken();
-   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
-   *       request = request.toBuilder().setPageToken(nextPageToken).build();
-   *     } else {
-   *       break;
-   *     }
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable - listConversionEventsCallable() { - return stub.listConversionEventsCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Look up a single DisplayVideo360AdvertiserLink - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   DisplayVideo360AdvertiserLinkName name =
-   *       DisplayVideo360AdvertiserLinkName.of("[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]");
-   *   DisplayVideo360AdvertiserLink response =
-   *       analyticsAdminServiceClient.getDisplayVideo360AdvertiserLink(name);
-   * }
-   * }
- * - * @param name Required. The name of the DisplayVideo360AdvertiserLink to get. Example format: - * properties/1234/displayVideo360AdvertiserLink/5678 - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final DisplayVideo360AdvertiserLink getDisplayVideo360AdvertiserLink( - DisplayVideo360AdvertiserLinkName name) { - GetDisplayVideo360AdvertiserLinkRequest request = - GetDisplayVideo360AdvertiserLinkRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .build(); - return getDisplayVideo360AdvertiserLink(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Look up a single DisplayVideo360AdvertiserLink - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   String name =
-   *       DisplayVideo360AdvertiserLinkName.of("[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]")
-   *           .toString();
-   *   DisplayVideo360AdvertiserLink response =
-   *       analyticsAdminServiceClient.getDisplayVideo360AdvertiserLink(name);
-   * }
-   * }
- * - * @param name Required. The name of the DisplayVideo360AdvertiserLink to get. Example format: - * properties/1234/displayVideo360AdvertiserLink/5678 - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final DisplayVideo360AdvertiserLink getDisplayVideo360AdvertiserLink(String name) { - GetDisplayVideo360AdvertiserLinkRequest request = - GetDisplayVideo360AdvertiserLinkRequest.newBuilder().setName(name).build(); - return getDisplayVideo360AdvertiserLink(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Look up a single DisplayVideo360AdvertiserLink - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   GetDisplayVideo360AdvertiserLinkRequest request =
-   *       GetDisplayVideo360AdvertiserLinkRequest.newBuilder()
-   *           .setName(
-   *               DisplayVideo360AdvertiserLinkName.of(
-   *                       "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]")
-   *                   .toString())
-   *           .build();
-   *   DisplayVideo360AdvertiserLink response =
-   *       analyticsAdminServiceClient.getDisplayVideo360AdvertiserLink(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final DisplayVideo360AdvertiserLink getDisplayVideo360AdvertiserLink( - GetDisplayVideo360AdvertiserLinkRequest request) { - return getDisplayVideo360AdvertiserLinkCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Look up a single DisplayVideo360AdvertiserLink - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   GetDisplayVideo360AdvertiserLinkRequest request =
-   *       GetDisplayVideo360AdvertiserLinkRequest.newBuilder()
-   *           .setName(
-   *               DisplayVideo360AdvertiserLinkName.of(
-   *                       "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]")
-   *                   .toString())
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient
-   *           .getDisplayVideo360AdvertiserLinkCallable()
-   *           .futureCall(request);
-   *   // Do something.
-   *   DisplayVideo360AdvertiserLink response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable - getDisplayVideo360AdvertiserLinkCallable() { - return stub.getDisplayVideo360AdvertiserLinkCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists all DisplayVideo360AdvertiserLinks on a property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   PropertyName parent = PropertyName.of("[PROPERTY]");
-   *   for (DisplayVideo360AdvertiserLink element :
-   *       analyticsAdminServiceClient.listDisplayVideo360AdvertiserLinks(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. Example format: properties/1234 - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListDisplayVideo360AdvertiserLinksPagedResponse listDisplayVideo360AdvertiserLinks( - PropertyName parent) { - ListDisplayVideo360AdvertiserLinksRequest request = - ListDisplayVideo360AdvertiserLinksRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .build(); - return listDisplayVideo360AdvertiserLinks(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists all DisplayVideo360AdvertiserLinks on a property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   String parent = PropertyName.of("[PROPERTY]").toString();
-   *   for (DisplayVideo360AdvertiserLink element :
-   *       analyticsAdminServiceClient.listDisplayVideo360AdvertiserLinks(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. Example format: properties/1234 - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListDisplayVideo360AdvertiserLinksPagedResponse listDisplayVideo360AdvertiserLinks( - String parent) { - ListDisplayVideo360AdvertiserLinksRequest request = - ListDisplayVideo360AdvertiserLinksRequest.newBuilder().setParent(parent).build(); - return listDisplayVideo360AdvertiserLinks(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists all DisplayVideo360AdvertiserLinks on a property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   ListDisplayVideo360AdvertiserLinksRequest request =
-   *       ListDisplayVideo360AdvertiserLinksRequest.newBuilder()
-   *           .setParent(PropertyName.of("[PROPERTY]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   for (DisplayVideo360AdvertiserLink element :
-   *       analyticsAdminServiceClient.listDisplayVideo360AdvertiserLinks(request).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListDisplayVideo360AdvertiserLinksPagedResponse listDisplayVideo360AdvertiserLinks( - ListDisplayVideo360AdvertiserLinksRequest request) { - return listDisplayVideo360AdvertiserLinksPagedCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists all DisplayVideo360AdvertiserLinks on a property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   ListDisplayVideo360AdvertiserLinksRequest request =
-   *       ListDisplayVideo360AdvertiserLinksRequest.newBuilder()
-   *           .setParent(PropertyName.of("[PROPERTY]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient
-   *           .listDisplayVideo360AdvertiserLinksPagedCallable()
-   *           .futureCall(request);
-   *   // Do something.
-   *   for (DisplayVideo360AdvertiserLink element : future.get().iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable< - ListDisplayVideo360AdvertiserLinksRequest, - ListDisplayVideo360AdvertiserLinksPagedResponse> - listDisplayVideo360AdvertiserLinksPagedCallable() { - return stub.listDisplayVideo360AdvertiserLinksPagedCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists all DisplayVideo360AdvertiserLinks on a property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   ListDisplayVideo360AdvertiserLinksRequest request =
-   *       ListDisplayVideo360AdvertiserLinksRequest.newBuilder()
-   *           .setParent(PropertyName.of("[PROPERTY]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   while (true) {
-   *     ListDisplayVideo360AdvertiserLinksResponse response =
-   *         analyticsAdminServiceClient.listDisplayVideo360AdvertiserLinksCallable().call(request);
-   *     for (DisplayVideo360AdvertiserLink element :
-   *         response.getDisplayVideo360AdvertiserLinksList()) {
-   *       // doThingsWith(element);
-   *     }
-   *     String nextPageToken = response.getNextPageToken();
-   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
-   *       request = request.toBuilder().setPageToken(nextPageToken).build();
-   *     } else {
-   *       break;
-   *     }
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable< - ListDisplayVideo360AdvertiserLinksRequest, ListDisplayVideo360AdvertiserLinksResponse> - listDisplayVideo360AdvertiserLinksCallable() { - return stub.listDisplayVideo360AdvertiserLinksCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * 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. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   PropertyName parent = PropertyName.of("[PROPERTY]");
-   *   DisplayVideo360AdvertiserLink displayVideo360AdvertiserLink =
-   *       DisplayVideo360AdvertiserLink.newBuilder().build();
-   *   DisplayVideo360AdvertiserLink response =
-   *       analyticsAdminServiceClient.createDisplayVideo360AdvertiserLink(
-   *           parent, displayVideo360AdvertiserLink);
-   * }
-   * }
- * - * @param parent Required. Example format: properties/1234 - * @param displayVideo360AdvertiserLink Required. The DisplayVideo360AdvertiserLink to create. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final DisplayVideo360AdvertiserLink createDisplayVideo360AdvertiserLink( - PropertyName parent, DisplayVideo360AdvertiserLink displayVideo360AdvertiserLink) { - CreateDisplayVideo360AdvertiserLinkRequest request = - CreateDisplayVideo360AdvertiserLinkRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setDisplayVideo360AdvertiserLink(displayVideo360AdvertiserLink) - .build(); - return createDisplayVideo360AdvertiserLink(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * 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. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   String parent = PropertyName.of("[PROPERTY]").toString();
-   *   DisplayVideo360AdvertiserLink displayVideo360AdvertiserLink =
-   *       DisplayVideo360AdvertiserLink.newBuilder().build();
-   *   DisplayVideo360AdvertiserLink response =
-   *       analyticsAdminServiceClient.createDisplayVideo360AdvertiserLink(
-   *           parent, displayVideo360AdvertiserLink);
-   * }
-   * }
- * - * @param parent Required. Example format: properties/1234 - * @param displayVideo360AdvertiserLink Required. The DisplayVideo360AdvertiserLink to create. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final DisplayVideo360AdvertiserLink createDisplayVideo360AdvertiserLink( - String parent, DisplayVideo360AdvertiserLink displayVideo360AdvertiserLink) { - CreateDisplayVideo360AdvertiserLinkRequest request = - CreateDisplayVideo360AdvertiserLinkRequest.newBuilder() - .setParent(parent) - .setDisplayVideo360AdvertiserLink(displayVideo360AdvertiserLink) - .build(); - return createDisplayVideo360AdvertiserLink(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * 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. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   CreateDisplayVideo360AdvertiserLinkRequest request =
-   *       CreateDisplayVideo360AdvertiserLinkRequest.newBuilder()
-   *           .setParent(PropertyName.of("[PROPERTY]").toString())
-   *           .setDisplayVideo360AdvertiserLink(DisplayVideo360AdvertiserLink.newBuilder().build())
-   *           .build();
-   *   DisplayVideo360AdvertiserLink response =
-   *       analyticsAdminServiceClient.createDisplayVideo360AdvertiserLink(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final DisplayVideo360AdvertiserLink createDisplayVideo360AdvertiserLink( - CreateDisplayVideo360AdvertiserLinkRequest request) { - return createDisplayVideo360AdvertiserLinkCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * 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. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   CreateDisplayVideo360AdvertiserLinkRequest request =
-   *       CreateDisplayVideo360AdvertiserLinkRequest.newBuilder()
-   *           .setParent(PropertyName.of("[PROPERTY]").toString())
-   *           .setDisplayVideo360AdvertiserLink(DisplayVideo360AdvertiserLink.newBuilder().build())
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient
-   *           .createDisplayVideo360AdvertiserLinkCallable()
-   *           .futureCall(request);
-   *   // Do something.
-   *   DisplayVideo360AdvertiserLink response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable< - CreateDisplayVideo360AdvertiserLinkRequest, DisplayVideo360AdvertiserLink> - createDisplayVideo360AdvertiserLinkCallable() { - return stub.createDisplayVideo360AdvertiserLinkCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a DisplayVideo360AdvertiserLink on a property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   DisplayVideo360AdvertiserLinkName name =
-   *       DisplayVideo360AdvertiserLinkName.of("[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]");
-   *   analyticsAdminServiceClient.deleteDisplayVideo360AdvertiserLink(name);
-   * }
-   * }
- * - * @param name Required. The name of the DisplayVideo360AdvertiserLink to delete. Example format: - * properties/1234/displayVideo360AdvertiserLinks/5678 - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void deleteDisplayVideo360AdvertiserLink(DisplayVideo360AdvertiserLinkName name) { - DeleteDisplayVideo360AdvertiserLinkRequest request = - DeleteDisplayVideo360AdvertiserLinkRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .build(); - deleteDisplayVideo360AdvertiserLink(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a DisplayVideo360AdvertiserLink on a property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   String name =
-   *       DisplayVideo360AdvertiserLinkName.of("[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]")
-   *           .toString();
-   *   analyticsAdminServiceClient.deleteDisplayVideo360AdvertiserLink(name);
-   * }
-   * }
- * - * @param name Required. The name of the DisplayVideo360AdvertiserLink to delete. Example format: - * properties/1234/displayVideo360AdvertiserLinks/5678 - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void deleteDisplayVideo360AdvertiserLink(String name) { - DeleteDisplayVideo360AdvertiserLinkRequest request = - DeleteDisplayVideo360AdvertiserLinkRequest.newBuilder().setName(name).build(); - deleteDisplayVideo360AdvertiserLink(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a DisplayVideo360AdvertiserLink on a property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   DeleteDisplayVideo360AdvertiserLinkRequest request =
-   *       DeleteDisplayVideo360AdvertiserLinkRequest.newBuilder()
-   *           .setName(
-   *               DisplayVideo360AdvertiserLinkName.of(
-   *                       "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]")
-   *                   .toString())
-   *           .build();
-   *   analyticsAdminServiceClient.deleteDisplayVideo360AdvertiserLink(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void deleteDisplayVideo360AdvertiserLink( - DeleteDisplayVideo360AdvertiserLinkRequest request) { - deleteDisplayVideo360AdvertiserLinkCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a DisplayVideo360AdvertiserLink on a property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   DeleteDisplayVideo360AdvertiserLinkRequest request =
-   *       DeleteDisplayVideo360AdvertiserLinkRequest.newBuilder()
-   *           .setName(
-   *               DisplayVideo360AdvertiserLinkName.of(
-   *                       "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]")
-   *                   .toString())
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient
-   *           .deleteDisplayVideo360AdvertiserLinkCallable()
-   *           .futureCall(request);
-   *   // Do something.
-   *   future.get();
-   * }
-   * }
- */ - public final UnaryCallable - deleteDisplayVideo360AdvertiserLinkCallable() { - return stub.deleteDisplayVideo360AdvertiserLinkCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a DisplayVideo360AdvertiserLink on a property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   DisplayVideo360AdvertiserLink displayVideo360AdvertiserLink =
-   *       DisplayVideo360AdvertiserLink.newBuilder().build();
-   *   FieldMask updateMask = FieldMask.newBuilder().build();
-   *   DisplayVideo360AdvertiserLink response =
-   *       analyticsAdminServiceClient.updateDisplayVideo360AdvertiserLink(
-   *           displayVideo360AdvertiserLink, updateMask);
-   * }
-   * }
- * - * @param displayVideo360AdvertiserLink The DisplayVideo360AdvertiserLink to update - * @param updateMask Required. The list of fields to be updated. Omitted fields will not be - * updated. To replace the entire entity, use one path with the string "*" to match all - * fields. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final DisplayVideo360AdvertiserLink updateDisplayVideo360AdvertiserLink( - DisplayVideo360AdvertiserLink displayVideo360AdvertiserLink, FieldMask updateMask) { - UpdateDisplayVideo360AdvertiserLinkRequest request = - UpdateDisplayVideo360AdvertiserLinkRequest.newBuilder() - .setDisplayVideo360AdvertiserLink(displayVideo360AdvertiserLink) - .setUpdateMask(updateMask) - .build(); - return updateDisplayVideo360AdvertiserLink(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a DisplayVideo360AdvertiserLink on a property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   UpdateDisplayVideo360AdvertiserLinkRequest request =
-   *       UpdateDisplayVideo360AdvertiserLinkRequest.newBuilder()
-   *           .setDisplayVideo360AdvertiserLink(DisplayVideo360AdvertiserLink.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   DisplayVideo360AdvertiserLink response =
-   *       analyticsAdminServiceClient.updateDisplayVideo360AdvertiserLink(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final DisplayVideo360AdvertiserLink updateDisplayVideo360AdvertiserLink( - UpdateDisplayVideo360AdvertiserLinkRequest request) { - return updateDisplayVideo360AdvertiserLinkCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a DisplayVideo360AdvertiserLink on a property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   UpdateDisplayVideo360AdvertiserLinkRequest request =
-   *       UpdateDisplayVideo360AdvertiserLinkRequest.newBuilder()
-   *           .setDisplayVideo360AdvertiserLink(DisplayVideo360AdvertiserLink.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient
-   *           .updateDisplayVideo360AdvertiserLinkCallable()
-   *           .futureCall(request);
-   *   // Do something.
-   *   DisplayVideo360AdvertiserLink response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable< - UpdateDisplayVideo360AdvertiserLinkRequest, DisplayVideo360AdvertiserLink> - updateDisplayVideo360AdvertiserLinkCallable() { - return stub.updateDisplayVideo360AdvertiserLinkCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lookup for a single DisplayVideo360AdvertiserLinkProposal. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   DisplayVideo360AdvertiserLinkProposalName name =
-   *       DisplayVideo360AdvertiserLinkProposalName.of(
-   *           "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]");
-   *   DisplayVideo360AdvertiserLinkProposal response =
-   *       analyticsAdminServiceClient.getDisplayVideo360AdvertiserLinkProposal(name);
-   * }
-   * }
- * - * @param name Required. The name of the DisplayVideo360AdvertiserLinkProposal to get. Example - * format: properties/1234/displayVideo360AdvertiserLinkProposals/5678 - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final DisplayVideo360AdvertiserLinkProposal getDisplayVideo360AdvertiserLinkProposal( - DisplayVideo360AdvertiserLinkProposalName name) { - GetDisplayVideo360AdvertiserLinkProposalRequest request = - GetDisplayVideo360AdvertiserLinkProposalRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .build(); - return getDisplayVideo360AdvertiserLinkProposal(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lookup for a single DisplayVideo360AdvertiserLinkProposal. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   String name =
-   *       DisplayVideo360AdvertiserLinkProposalName.of(
-   *               "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]")
-   *           .toString();
-   *   DisplayVideo360AdvertiserLinkProposal response =
-   *       analyticsAdminServiceClient.getDisplayVideo360AdvertiserLinkProposal(name);
-   * }
-   * }
- * - * @param name Required. The name of the DisplayVideo360AdvertiserLinkProposal to get. Example - * format: properties/1234/displayVideo360AdvertiserLinkProposals/5678 - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final DisplayVideo360AdvertiserLinkProposal getDisplayVideo360AdvertiserLinkProposal( - String name) { - GetDisplayVideo360AdvertiserLinkProposalRequest request = - GetDisplayVideo360AdvertiserLinkProposalRequest.newBuilder().setName(name).build(); - return getDisplayVideo360AdvertiserLinkProposal(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lookup for a single DisplayVideo360AdvertiserLinkProposal. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   GetDisplayVideo360AdvertiserLinkProposalRequest request =
-   *       GetDisplayVideo360AdvertiserLinkProposalRequest.newBuilder()
-   *           .setName(
-   *               DisplayVideo360AdvertiserLinkProposalName.of(
-   *                       "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]")
-   *                   .toString())
-   *           .build();
-   *   DisplayVideo360AdvertiserLinkProposal response =
-   *       analyticsAdminServiceClient.getDisplayVideo360AdvertiserLinkProposal(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final DisplayVideo360AdvertiserLinkProposal getDisplayVideo360AdvertiserLinkProposal( - GetDisplayVideo360AdvertiserLinkProposalRequest request) { - return getDisplayVideo360AdvertiserLinkProposalCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lookup for a single DisplayVideo360AdvertiserLinkProposal. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   GetDisplayVideo360AdvertiserLinkProposalRequest request =
-   *       GetDisplayVideo360AdvertiserLinkProposalRequest.newBuilder()
-   *           .setName(
-   *               DisplayVideo360AdvertiserLinkProposalName.of(
-   *                       "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]")
-   *                   .toString())
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient
-   *           .getDisplayVideo360AdvertiserLinkProposalCallable()
-   *           .futureCall(request);
-   *   // Do something.
-   *   DisplayVideo360AdvertiserLinkProposal response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable< - GetDisplayVideo360AdvertiserLinkProposalRequest, DisplayVideo360AdvertiserLinkProposal> - getDisplayVideo360AdvertiserLinkProposalCallable() { - return stub.getDisplayVideo360AdvertiserLinkProposalCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists DisplayVideo360AdvertiserLinkProposals on a property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   PropertyName parent = PropertyName.of("[PROPERTY]");
-   *   for (DisplayVideo360AdvertiserLinkProposal element :
-   *       analyticsAdminServiceClient
-   *           .listDisplayVideo360AdvertiserLinkProposals(parent)
-   *           .iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. Example format: properties/1234 - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListDisplayVideo360AdvertiserLinkProposalsPagedResponse - listDisplayVideo360AdvertiserLinkProposals(PropertyName parent) { - ListDisplayVideo360AdvertiserLinkProposalsRequest request = - ListDisplayVideo360AdvertiserLinkProposalsRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .build(); - return listDisplayVideo360AdvertiserLinkProposals(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists DisplayVideo360AdvertiserLinkProposals on a property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   String parent = PropertyName.of("[PROPERTY]").toString();
-   *   for (DisplayVideo360AdvertiserLinkProposal element :
-   *       analyticsAdminServiceClient
-   *           .listDisplayVideo360AdvertiserLinkProposals(parent)
-   *           .iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. Example format: properties/1234 - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListDisplayVideo360AdvertiserLinkProposalsPagedResponse - listDisplayVideo360AdvertiserLinkProposals(String parent) { - ListDisplayVideo360AdvertiserLinkProposalsRequest request = - ListDisplayVideo360AdvertiserLinkProposalsRequest.newBuilder().setParent(parent).build(); - return listDisplayVideo360AdvertiserLinkProposals(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists DisplayVideo360AdvertiserLinkProposals on a property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   ListDisplayVideo360AdvertiserLinkProposalsRequest request =
-   *       ListDisplayVideo360AdvertiserLinkProposalsRequest.newBuilder()
-   *           .setParent(PropertyName.of("[PROPERTY]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   for (DisplayVideo360AdvertiserLinkProposal element :
-   *       analyticsAdminServiceClient
-   *           .listDisplayVideo360AdvertiserLinkProposals(request)
-   *           .iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListDisplayVideo360AdvertiserLinkProposalsPagedResponse - listDisplayVideo360AdvertiserLinkProposals( - ListDisplayVideo360AdvertiserLinkProposalsRequest request) { - return listDisplayVideo360AdvertiserLinkProposalsPagedCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists DisplayVideo360AdvertiserLinkProposals on a property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   ListDisplayVideo360AdvertiserLinkProposalsRequest request =
-   *       ListDisplayVideo360AdvertiserLinkProposalsRequest.newBuilder()
-   *           .setParent(PropertyName.of("[PROPERTY]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient
-   *           .listDisplayVideo360AdvertiserLinkProposalsPagedCallable()
-   *           .futureCall(request);
-   *   // Do something.
-   *   for (DisplayVideo360AdvertiserLinkProposal element : future.get().iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable< - ListDisplayVideo360AdvertiserLinkProposalsRequest, - ListDisplayVideo360AdvertiserLinkProposalsPagedResponse> - listDisplayVideo360AdvertiserLinkProposalsPagedCallable() { - return stub.listDisplayVideo360AdvertiserLinkProposalsPagedCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists DisplayVideo360AdvertiserLinkProposals on a property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   ListDisplayVideo360AdvertiserLinkProposalsRequest request =
-   *       ListDisplayVideo360AdvertiserLinkProposalsRequest.newBuilder()
-   *           .setParent(PropertyName.of("[PROPERTY]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   while (true) {
-   *     ListDisplayVideo360AdvertiserLinkProposalsResponse response =
-   *         analyticsAdminServiceClient
-   *             .listDisplayVideo360AdvertiserLinkProposalsCallable()
-   *             .call(request);
-   *     for (DisplayVideo360AdvertiserLinkProposal element :
-   *         response.getDisplayVideo360AdvertiserLinkProposalsList()) {
-   *       // doThingsWith(element);
-   *     }
-   *     String nextPageToken = response.getNextPageToken();
-   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
-   *       request = request.toBuilder().setPageToken(nextPageToken).build();
-   *     } else {
-   *       break;
-   *     }
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable< - ListDisplayVideo360AdvertiserLinkProposalsRequest, - ListDisplayVideo360AdvertiserLinkProposalsResponse> - listDisplayVideo360AdvertiserLinkProposalsCallable() { - return stub.listDisplayVideo360AdvertiserLinkProposalsCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a DisplayVideo360AdvertiserLinkProposal. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   PropertyName parent = PropertyName.of("[PROPERTY]");
-   *   DisplayVideo360AdvertiserLinkProposal displayVideo360AdvertiserLinkProposal =
-   *       DisplayVideo360AdvertiserLinkProposal.newBuilder().build();
-   *   DisplayVideo360AdvertiserLinkProposal response =
-   *       analyticsAdminServiceClient.createDisplayVideo360AdvertiserLinkProposal(
-   *           parent, displayVideo360AdvertiserLinkProposal);
-   * }
-   * }
- * - * @param parent Required. Example format: properties/1234 - * @param displayVideo360AdvertiserLinkProposal Required. The - * DisplayVideo360AdvertiserLinkProposal to create. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final DisplayVideo360AdvertiserLinkProposal createDisplayVideo360AdvertiserLinkProposal( - PropertyName parent, - DisplayVideo360AdvertiserLinkProposal displayVideo360AdvertiserLinkProposal) { - CreateDisplayVideo360AdvertiserLinkProposalRequest request = - CreateDisplayVideo360AdvertiserLinkProposalRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setDisplayVideo360AdvertiserLinkProposal(displayVideo360AdvertiserLinkProposal) - .build(); - return createDisplayVideo360AdvertiserLinkProposal(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a DisplayVideo360AdvertiserLinkProposal. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   String parent = PropertyName.of("[PROPERTY]").toString();
-   *   DisplayVideo360AdvertiserLinkProposal displayVideo360AdvertiserLinkProposal =
-   *       DisplayVideo360AdvertiserLinkProposal.newBuilder().build();
-   *   DisplayVideo360AdvertiserLinkProposal response =
-   *       analyticsAdminServiceClient.createDisplayVideo360AdvertiserLinkProposal(
-   *           parent, displayVideo360AdvertiserLinkProposal);
-   * }
-   * }
- * - * @param parent Required. Example format: properties/1234 - * @param displayVideo360AdvertiserLinkProposal Required. The - * DisplayVideo360AdvertiserLinkProposal to create. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final DisplayVideo360AdvertiserLinkProposal createDisplayVideo360AdvertiserLinkProposal( - String parent, DisplayVideo360AdvertiserLinkProposal displayVideo360AdvertiserLinkProposal) { - CreateDisplayVideo360AdvertiserLinkProposalRequest request = - CreateDisplayVideo360AdvertiserLinkProposalRequest.newBuilder() - .setParent(parent) - .setDisplayVideo360AdvertiserLinkProposal(displayVideo360AdvertiserLinkProposal) - .build(); - return createDisplayVideo360AdvertiserLinkProposal(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a DisplayVideo360AdvertiserLinkProposal. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   CreateDisplayVideo360AdvertiserLinkProposalRequest request =
-   *       CreateDisplayVideo360AdvertiserLinkProposalRequest.newBuilder()
-   *           .setParent(PropertyName.of("[PROPERTY]").toString())
-   *           .setDisplayVideo360AdvertiserLinkProposal(
-   *               DisplayVideo360AdvertiserLinkProposal.newBuilder().build())
-   *           .build();
-   *   DisplayVideo360AdvertiserLinkProposal response =
-   *       analyticsAdminServiceClient.createDisplayVideo360AdvertiserLinkProposal(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final DisplayVideo360AdvertiserLinkProposal createDisplayVideo360AdvertiserLinkProposal( - CreateDisplayVideo360AdvertiserLinkProposalRequest request) { - return createDisplayVideo360AdvertiserLinkProposalCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a DisplayVideo360AdvertiserLinkProposal. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   CreateDisplayVideo360AdvertiserLinkProposalRequest request =
-   *       CreateDisplayVideo360AdvertiserLinkProposalRequest.newBuilder()
-   *           .setParent(PropertyName.of("[PROPERTY]").toString())
-   *           .setDisplayVideo360AdvertiserLinkProposal(
-   *               DisplayVideo360AdvertiserLinkProposal.newBuilder().build())
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient
-   *           .createDisplayVideo360AdvertiserLinkProposalCallable()
-   *           .futureCall(request);
-   *   // Do something.
-   *   DisplayVideo360AdvertiserLinkProposal response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable< - CreateDisplayVideo360AdvertiserLinkProposalRequest, DisplayVideo360AdvertiserLinkProposal> - createDisplayVideo360AdvertiserLinkProposalCallable() { - return stub.createDisplayVideo360AdvertiserLinkProposalCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a DisplayVideo360AdvertiserLinkProposal on a property. This can only be used on - * cancelled proposals. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   DisplayVideo360AdvertiserLinkProposalName name =
-   *       DisplayVideo360AdvertiserLinkProposalName.of(
-   *           "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]");
-   *   analyticsAdminServiceClient.deleteDisplayVideo360AdvertiserLinkProposal(name);
-   * }
-   * }
- * - * @param name Required. The name of the DisplayVideo360AdvertiserLinkProposal to delete. Example - * format: properties/1234/displayVideo360AdvertiserLinkProposals/5678 - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void deleteDisplayVideo360AdvertiserLinkProposal( - DisplayVideo360AdvertiserLinkProposalName name) { - DeleteDisplayVideo360AdvertiserLinkProposalRequest request = - DeleteDisplayVideo360AdvertiserLinkProposalRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .build(); - deleteDisplayVideo360AdvertiserLinkProposal(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a DisplayVideo360AdvertiserLinkProposal on a property. This can only be used on - * cancelled proposals. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   String name =
-   *       DisplayVideo360AdvertiserLinkProposalName.of(
-   *               "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]")
-   *           .toString();
-   *   analyticsAdminServiceClient.deleteDisplayVideo360AdvertiserLinkProposal(name);
-   * }
-   * }
- * - * @param name Required. The name of the DisplayVideo360AdvertiserLinkProposal to delete. Example - * format: properties/1234/displayVideo360AdvertiserLinkProposals/5678 - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void deleteDisplayVideo360AdvertiserLinkProposal(String name) { - DeleteDisplayVideo360AdvertiserLinkProposalRequest request = - DeleteDisplayVideo360AdvertiserLinkProposalRequest.newBuilder().setName(name).build(); - deleteDisplayVideo360AdvertiserLinkProposal(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a DisplayVideo360AdvertiserLinkProposal on a property. This can only be used on - * cancelled proposals. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   DeleteDisplayVideo360AdvertiserLinkProposalRequest request =
-   *       DeleteDisplayVideo360AdvertiserLinkProposalRequest.newBuilder()
-   *           .setName(
-   *               DisplayVideo360AdvertiserLinkProposalName.of(
-   *                       "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]")
-   *                   .toString())
-   *           .build();
-   *   analyticsAdminServiceClient.deleteDisplayVideo360AdvertiserLinkProposal(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void deleteDisplayVideo360AdvertiserLinkProposal( - DeleteDisplayVideo360AdvertiserLinkProposalRequest request) { - deleteDisplayVideo360AdvertiserLinkProposalCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a DisplayVideo360AdvertiserLinkProposal on a property. This can only be used on - * cancelled proposals. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   DeleteDisplayVideo360AdvertiserLinkProposalRequest request =
-   *       DeleteDisplayVideo360AdvertiserLinkProposalRequest.newBuilder()
-   *           .setName(
-   *               DisplayVideo360AdvertiserLinkProposalName.of(
-   *                       "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]")
-   *                   .toString())
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient
-   *           .deleteDisplayVideo360AdvertiserLinkProposalCallable()
-   *           .futureCall(request);
-   *   // Do something.
-   *   future.get();
-   * }
-   * }
- */ - public final UnaryCallable - deleteDisplayVideo360AdvertiserLinkProposalCallable() { - return stub.deleteDisplayVideo360AdvertiserLinkProposalCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Approves a DisplayVideo360AdvertiserLinkProposal. The DisplayVideo360AdvertiserLinkProposal - * will be deleted and a new DisplayVideo360AdvertiserLink will be created. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   ApproveDisplayVideo360AdvertiserLinkProposalRequest request =
-   *       ApproveDisplayVideo360AdvertiserLinkProposalRequest.newBuilder()
-   *           .setName(
-   *               DisplayVideo360AdvertiserLinkProposalName.of(
-   *                       "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]")
-   *                   .toString())
-   *           .build();
-   *   ApproveDisplayVideo360AdvertiserLinkProposalResponse response =
-   *       analyticsAdminServiceClient.approveDisplayVideo360AdvertiserLinkProposal(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ApproveDisplayVideo360AdvertiserLinkProposalResponse - approveDisplayVideo360AdvertiserLinkProposal( - ApproveDisplayVideo360AdvertiserLinkProposalRequest request) { - return approveDisplayVideo360AdvertiserLinkProposalCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Approves a DisplayVideo360AdvertiserLinkProposal. The DisplayVideo360AdvertiserLinkProposal - * will be deleted and a new DisplayVideo360AdvertiserLink will be created. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   ApproveDisplayVideo360AdvertiserLinkProposalRequest request =
-   *       ApproveDisplayVideo360AdvertiserLinkProposalRequest.newBuilder()
-   *           .setName(
-   *               DisplayVideo360AdvertiserLinkProposalName.of(
-   *                       "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]")
-   *                   .toString())
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient
-   *           .approveDisplayVideo360AdvertiserLinkProposalCallable()
-   *           .futureCall(request);
-   *   // Do something.
-   *   ApproveDisplayVideo360AdvertiserLinkProposalResponse response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable< - ApproveDisplayVideo360AdvertiserLinkProposalRequest, - ApproveDisplayVideo360AdvertiserLinkProposalResponse> - approveDisplayVideo360AdvertiserLinkProposalCallable() { - return stub.approveDisplayVideo360AdvertiserLinkProposalCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * 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. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   CancelDisplayVideo360AdvertiserLinkProposalRequest request =
-   *       CancelDisplayVideo360AdvertiserLinkProposalRequest.newBuilder()
-   *           .setName(
-   *               DisplayVideo360AdvertiserLinkProposalName.of(
-   *                       "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]")
-   *                   .toString())
-   *           .build();
-   *   DisplayVideo360AdvertiserLinkProposal response =
-   *       analyticsAdminServiceClient.cancelDisplayVideo360AdvertiserLinkProposal(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final DisplayVideo360AdvertiserLinkProposal cancelDisplayVideo360AdvertiserLinkProposal( - CancelDisplayVideo360AdvertiserLinkProposalRequest request) { - return cancelDisplayVideo360AdvertiserLinkProposalCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * 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. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   CancelDisplayVideo360AdvertiserLinkProposalRequest request =
-   *       CancelDisplayVideo360AdvertiserLinkProposalRequest.newBuilder()
-   *           .setName(
-   *               DisplayVideo360AdvertiserLinkProposalName.of(
-   *                       "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]")
-   *                   .toString())
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient
-   *           .cancelDisplayVideo360AdvertiserLinkProposalCallable()
-   *           .futureCall(request);
-   *   // Do something.
-   *   DisplayVideo360AdvertiserLinkProposal response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable< - CancelDisplayVideo360AdvertiserLinkProposalRequest, DisplayVideo360AdvertiserLinkProposal> - cancelDisplayVideo360AdvertiserLinkProposalCallable() { - return stub.cancelDisplayVideo360AdvertiserLinkProposalCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a CustomDimension. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   PropertyName parent = PropertyName.of("[PROPERTY]");
-   *   CustomDimension customDimension = CustomDimension.newBuilder().build();
-   *   CustomDimension response =
-   *       analyticsAdminServiceClient.createCustomDimension(parent, customDimension);
-   * }
-   * }
- * - * @param parent Required. Example format: properties/1234 - * @param customDimension Required. The CustomDimension to create. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final CustomDimension createCustomDimension( - PropertyName parent, CustomDimension customDimension) { - CreateCustomDimensionRequest request = - CreateCustomDimensionRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setCustomDimension(customDimension) - .build(); - return createCustomDimension(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a CustomDimension. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   String parent = PropertyName.of("[PROPERTY]").toString();
-   *   CustomDimension customDimension = CustomDimension.newBuilder().build();
-   *   CustomDimension response =
-   *       analyticsAdminServiceClient.createCustomDimension(parent, customDimension);
-   * }
-   * }
- * - * @param parent Required. Example format: properties/1234 - * @param customDimension Required. The CustomDimension to create. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final CustomDimension createCustomDimension( - String parent, CustomDimension customDimension) { - CreateCustomDimensionRequest request = - CreateCustomDimensionRequest.newBuilder() - .setParent(parent) - .setCustomDimension(customDimension) - .build(); - return createCustomDimension(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a CustomDimension. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   CreateCustomDimensionRequest request =
-   *       CreateCustomDimensionRequest.newBuilder()
-   *           .setParent(PropertyName.of("[PROPERTY]").toString())
-   *           .setCustomDimension(CustomDimension.newBuilder().build())
-   *           .build();
-   *   CustomDimension response = analyticsAdminServiceClient.createCustomDimension(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final CustomDimension createCustomDimension(CreateCustomDimensionRequest request) { - return createCustomDimensionCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a CustomDimension. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   CreateCustomDimensionRequest request =
-   *       CreateCustomDimensionRequest.newBuilder()
-   *           .setParent(PropertyName.of("[PROPERTY]").toString())
-   *           .setCustomDimension(CustomDimension.newBuilder().build())
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient.createCustomDimensionCallable().futureCall(request);
-   *   // Do something.
-   *   CustomDimension response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable - createCustomDimensionCallable() { - return stub.createCustomDimensionCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a CustomDimension on a property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   CustomDimension customDimension = CustomDimension.newBuilder().build();
-   *   FieldMask updateMask = FieldMask.newBuilder().build();
-   *   CustomDimension response =
-   *       analyticsAdminServiceClient.updateCustomDimension(customDimension, updateMask);
-   * }
-   * }
- * - * @param customDimension The CustomDimension to update - * @param updateMask Required. The list of fields to be updated. Omitted fields will not be - * updated. To replace the entire entity, use one path with the string "*" to match all - * fields. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final CustomDimension updateCustomDimension( - CustomDimension customDimension, FieldMask updateMask) { - UpdateCustomDimensionRequest request = - UpdateCustomDimensionRequest.newBuilder() - .setCustomDimension(customDimension) - .setUpdateMask(updateMask) - .build(); - return updateCustomDimension(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a CustomDimension on a property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   UpdateCustomDimensionRequest request =
-   *       UpdateCustomDimensionRequest.newBuilder()
-   *           .setCustomDimension(CustomDimension.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   CustomDimension response = analyticsAdminServiceClient.updateCustomDimension(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final CustomDimension updateCustomDimension(UpdateCustomDimensionRequest request) { - return updateCustomDimensionCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a CustomDimension on a property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   UpdateCustomDimensionRequest request =
-   *       UpdateCustomDimensionRequest.newBuilder()
-   *           .setCustomDimension(CustomDimension.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient.updateCustomDimensionCallable().futureCall(request);
-   *   // Do something.
-   *   CustomDimension response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable - updateCustomDimensionCallable() { - return stub.updateCustomDimensionCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists CustomDimensions on a property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   PropertyName parent = PropertyName.of("[PROPERTY]");
-   *   for (CustomDimension element :
-   *       analyticsAdminServiceClient.listCustomDimensions(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. Example format: properties/1234 - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListCustomDimensionsPagedResponse listCustomDimensions(PropertyName parent) { - ListCustomDimensionsRequest request = - ListCustomDimensionsRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .build(); - return listCustomDimensions(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists CustomDimensions on a property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   String parent = PropertyName.of("[PROPERTY]").toString();
-   *   for (CustomDimension element :
-   *       analyticsAdminServiceClient.listCustomDimensions(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. Example format: properties/1234 - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListCustomDimensionsPagedResponse listCustomDimensions(String parent) { - ListCustomDimensionsRequest request = - ListCustomDimensionsRequest.newBuilder().setParent(parent).build(); - return listCustomDimensions(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists CustomDimensions on a property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   ListCustomDimensionsRequest request =
-   *       ListCustomDimensionsRequest.newBuilder()
-   *           .setParent(PropertyName.of("[PROPERTY]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   for (CustomDimension element :
-   *       analyticsAdminServiceClient.listCustomDimensions(request).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListCustomDimensionsPagedResponse listCustomDimensions( - ListCustomDimensionsRequest request) { - return listCustomDimensionsPagedCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists CustomDimensions on a property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   ListCustomDimensionsRequest request =
-   *       ListCustomDimensionsRequest.newBuilder()
-   *           .setParent(PropertyName.of("[PROPERTY]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient.listCustomDimensionsPagedCallable().futureCall(request);
-   *   // Do something.
-   *   for (CustomDimension element : future.get().iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable - listCustomDimensionsPagedCallable() { - return stub.listCustomDimensionsPagedCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists CustomDimensions on a property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   ListCustomDimensionsRequest request =
-   *       ListCustomDimensionsRequest.newBuilder()
-   *           .setParent(PropertyName.of("[PROPERTY]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   while (true) {
-   *     ListCustomDimensionsResponse response =
-   *         analyticsAdminServiceClient.listCustomDimensionsCallable().call(request);
-   *     for (CustomDimension element : response.getCustomDimensionsList()) {
-   *       // doThingsWith(element);
-   *     }
-   *     String nextPageToken = response.getNextPageToken();
-   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
-   *       request = request.toBuilder().setPageToken(nextPageToken).build();
-   *     } else {
-   *       break;
-   *     }
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable - listCustomDimensionsCallable() { - return stub.listCustomDimensionsCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Archives a CustomDimension on a property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   CustomDimensionName name = CustomDimensionName.of("[PROPERTY]", "[CUSTOM_DIMENSION]");
-   *   analyticsAdminServiceClient.archiveCustomDimension(name);
-   * }
-   * }
- * - * @param name Required. The name of the CustomDimension to archive. Example format: - * properties/1234/customDimensions/5678 - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void archiveCustomDimension(CustomDimensionName name) { - ArchiveCustomDimensionRequest request = - ArchiveCustomDimensionRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .build(); - archiveCustomDimension(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Archives a CustomDimension on a property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   String name = CustomDimensionName.of("[PROPERTY]", "[CUSTOM_DIMENSION]").toString();
-   *   analyticsAdminServiceClient.archiveCustomDimension(name);
-   * }
-   * }
- * - * @param name Required. The name of the CustomDimension to archive. Example format: - * properties/1234/customDimensions/5678 - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void archiveCustomDimension(String name) { - ArchiveCustomDimensionRequest request = - ArchiveCustomDimensionRequest.newBuilder().setName(name).build(); - archiveCustomDimension(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Archives a CustomDimension on a property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   ArchiveCustomDimensionRequest request =
-   *       ArchiveCustomDimensionRequest.newBuilder()
-   *           .setName(CustomDimensionName.of("[PROPERTY]", "[CUSTOM_DIMENSION]").toString())
-   *           .build();
-   *   analyticsAdminServiceClient.archiveCustomDimension(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void archiveCustomDimension(ArchiveCustomDimensionRequest request) { - archiveCustomDimensionCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Archives a CustomDimension on a property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   ArchiveCustomDimensionRequest request =
-   *       ArchiveCustomDimensionRequest.newBuilder()
-   *           .setName(CustomDimensionName.of("[PROPERTY]", "[CUSTOM_DIMENSION]").toString())
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient.archiveCustomDimensionCallable().futureCall(request);
-   *   // Do something.
-   *   future.get();
-   * }
-   * }
- */ - public final UnaryCallable - archiveCustomDimensionCallable() { - return stub.archiveCustomDimensionCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lookup for a single CustomDimension. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   CustomDimensionName name = CustomDimensionName.of("[PROPERTY]", "[CUSTOM_DIMENSION]");
-   *   CustomDimension response = analyticsAdminServiceClient.getCustomDimension(name);
-   * }
-   * }
- * - * @param name Required. The name of the CustomDimension to get. Example format: - * properties/1234/customDimensions/5678 - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final CustomDimension getCustomDimension(CustomDimensionName name) { - GetCustomDimensionRequest request = - GetCustomDimensionRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .build(); - return getCustomDimension(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lookup for a single CustomDimension. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   String name = CustomDimensionName.of("[PROPERTY]", "[CUSTOM_DIMENSION]").toString();
-   *   CustomDimension response = analyticsAdminServiceClient.getCustomDimension(name);
-   * }
-   * }
- * - * @param name Required. The name of the CustomDimension to get. Example format: - * properties/1234/customDimensions/5678 - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final CustomDimension getCustomDimension(String name) { - GetCustomDimensionRequest request = - GetCustomDimensionRequest.newBuilder().setName(name).build(); - return getCustomDimension(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lookup for a single CustomDimension. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   GetCustomDimensionRequest request =
-   *       GetCustomDimensionRequest.newBuilder()
-   *           .setName(CustomDimensionName.of("[PROPERTY]", "[CUSTOM_DIMENSION]").toString())
-   *           .build();
-   *   CustomDimension response = analyticsAdminServiceClient.getCustomDimension(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final CustomDimension getCustomDimension(GetCustomDimensionRequest request) { - return getCustomDimensionCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lookup for a single CustomDimension. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   GetCustomDimensionRequest request =
-   *       GetCustomDimensionRequest.newBuilder()
-   *           .setName(CustomDimensionName.of("[PROPERTY]", "[CUSTOM_DIMENSION]").toString())
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient.getCustomDimensionCallable().futureCall(request);
-   *   // Do something.
-   *   CustomDimension response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable - getCustomDimensionCallable() { - return stub.getCustomDimensionCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a CustomMetric. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   PropertyName parent = PropertyName.of("[PROPERTY]");
-   *   CustomMetric customMetric = CustomMetric.newBuilder().build();
-   *   CustomMetric response = analyticsAdminServiceClient.createCustomMetric(parent, customMetric);
-   * }
-   * }
- * - * @param parent Required. Example format: properties/1234 - * @param customMetric Required. The CustomMetric to create. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final CustomMetric createCustomMetric(PropertyName parent, CustomMetric customMetric) { - CreateCustomMetricRequest request = - CreateCustomMetricRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setCustomMetric(customMetric) - .build(); - return createCustomMetric(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a CustomMetric. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   String parent = PropertyName.of("[PROPERTY]").toString();
-   *   CustomMetric customMetric = CustomMetric.newBuilder().build();
-   *   CustomMetric response = analyticsAdminServiceClient.createCustomMetric(parent, customMetric);
-   * }
-   * }
- * - * @param parent Required. Example format: properties/1234 - * @param customMetric Required. The CustomMetric to create. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final CustomMetric createCustomMetric(String parent, CustomMetric customMetric) { - CreateCustomMetricRequest request = - CreateCustomMetricRequest.newBuilder() - .setParent(parent) - .setCustomMetric(customMetric) - .build(); - return createCustomMetric(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a CustomMetric. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   CreateCustomMetricRequest request =
-   *       CreateCustomMetricRequest.newBuilder()
-   *           .setParent(PropertyName.of("[PROPERTY]").toString())
-   *           .setCustomMetric(CustomMetric.newBuilder().build())
-   *           .build();
-   *   CustomMetric response = analyticsAdminServiceClient.createCustomMetric(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final CustomMetric createCustomMetric(CreateCustomMetricRequest request) { - return createCustomMetricCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a CustomMetric. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   CreateCustomMetricRequest request =
-   *       CreateCustomMetricRequest.newBuilder()
-   *           .setParent(PropertyName.of("[PROPERTY]").toString())
-   *           .setCustomMetric(CustomMetric.newBuilder().build())
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient.createCustomMetricCallable().futureCall(request);
-   *   // Do something.
-   *   CustomMetric response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable createCustomMetricCallable() { - return stub.createCustomMetricCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a CustomMetric on a property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   CustomMetric customMetric = CustomMetric.newBuilder().build();
-   *   FieldMask updateMask = FieldMask.newBuilder().build();
-   *   CustomMetric response =
-   *       analyticsAdminServiceClient.updateCustomMetric(customMetric, updateMask);
-   * }
-   * }
- * - * @param customMetric The CustomMetric to update - * @param updateMask Required. The list of fields to be updated. Omitted fields will not be - * updated. To replace the entire entity, use one path with the string "*" to match all - * fields. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final CustomMetric updateCustomMetric(CustomMetric customMetric, FieldMask updateMask) { - UpdateCustomMetricRequest request = - UpdateCustomMetricRequest.newBuilder() - .setCustomMetric(customMetric) - .setUpdateMask(updateMask) - .build(); - return updateCustomMetric(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a CustomMetric on a property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   UpdateCustomMetricRequest request =
-   *       UpdateCustomMetricRequest.newBuilder()
-   *           .setCustomMetric(CustomMetric.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   CustomMetric response = analyticsAdminServiceClient.updateCustomMetric(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final CustomMetric updateCustomMetric(UpdateCustomMetricRequest request) { - return updateCustomMetricCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a CustomMetric on a property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   UpdateCustomMetricRequest request =
-   *       UpdateCustomMetricRequest.newBuilder()
-   *           .setCustomMetric(CustomMetric.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient.updateCustomMetricCallable().futureCall(request);
-   *   // Do something.
-   *   CustomMetric response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable updateCustomMetricCallable() { - return stub.updateCustomMetricCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists CustomMetrics on a property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   PropertyName parent = PropertyName.of("[PROPERTY]");
-   *   for (CustomMetric element :
-   *       analyticsAdminServiceClient.listCustomMetrics(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. Example format: properties/1234 - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListCustomMetricsPagedResponse listCustomMetrics(PropertyName parent) { - ListCustomMetricsRequest request = - ListCustomMetricsRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .build(); - return listCustomMetrics(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists CustomMetrics on a property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   String parent = PropertyName.of("[PROPERTY]").toString();
-   *   for (CustomMetric element :
-   *       analyticsAdminServiceClient.listCustomMetrics(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. Example format: properties/1234 - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListCustomMetricsPagedResponse listCustomMetrics(String parent) { - ListCustomMetricsRequest request = - ListCustomMetricsRequest.newBuilder().setParent(parent).build(); - return listCustomMetrics(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists CustomMetrics on a property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   ListCustomMetricsRequest request =
-   *       ListCustomMetricsRequest.newBuilder()
-   *           .setParent(PropertyName.of("[PROPERTY]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   for (CustomMetric element :
-   *       analyticsAdminServiceClient.listCustomMetrics(request).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListCustomMetricsPagedResponse listCustomMetrics(ListCustomMetricsRequest request) { - return listCustomMetricsPagedCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists CustomMetrics on a property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   ListCustomMetricsRequest request =
-   *       ListCustomMetricsRequest.newBuilder()
-   *           .setParent(PropertyName.of("[PROPERTY]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient.listCustomMetricsPagedCallable().futureCall(request);
-   *   // Do something.
-   *   for (CustomMetric element : future.get().iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable - listCustomMetricsPagedCallable() { - return stub.listCustomMetricsPagedCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists CustomMetrics on a property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   ListCustomMetricsRequest request =
-   *       ListCustomMetricsRequest.newBuilder()
-   *           .setParent(PropertyName.of("[PROPERTY]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   while (true) {
-   *     ListCustomMetricsResponse response =
-   *         analyticsAdminServiceClient.listCustomMetricsCallable().call(request);
-   *     for (CustomMetric element : response.getCustomMetricsList()) {
-   *       // doThingsWith(element);
-   *     }
-   *     String nextPageToken = response.getNextPageToken();
-   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
-   *       request = request.toBuilder().setPageToken(nextPageToken).build();
-   *     } else {
-   *       break;
-   *     }
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable - listCustomMetricsCallable() { - return stub.listCustomMetricsCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Archives a CustomMetric on a property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   CustomMetricName name = CustomMetricName.of("[PROPERTY]", "[CUSTOM_METRIC]");
-   *   analyticsAdminServiceClient.archiveCustomMetric(name);
-   * }
-   * }
- * - * @param name Required. The name of the CustomMetric to archive. Example format: - * properties/1234/customMetrics/5678 - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void archiveCustomMetric(CustomMetricName name) { - ArchiveCustomMetricRequest request = - ArchiveCustomMetricRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .build(); - archiveCustomMetric(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Archives a CustomMetric on a property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   String name = CustomMetricName.of("[PROPERTY]", "[CUSTOM_METRIC]").toString();
-   *   analyticsAdminServiceClient.archiveCustomMetric(name);
-   * }
-   * }
- * - * @param name Required. The name of the CustomMetric to archive. Example format: - * properties/1234/customMetrics/5678 - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void archiveCustomMetric(String name) { - ArchiveCustomMetricRequest request = - ArchiveCustomMetricRequest.newBuilder().setName(name).build(); - archiveCustomMetric(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Archives a CustomMetric on a property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   ArchiveCustomMetricRequest request =
-   *       ArchiveCustomMetricRequest.newBuilder()
-   *           .setName(CustomMetricName.of("[PROPERTY]", "[CUSTOM_METRIC]").toString())
-   *           .build();
-   *   analyticsAdminServiceClient.archiveCustomMetric(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void archiveCustomMetric(ArchiveCustomMetricRequest request) { - archiveCustomMetricCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Archives a CustomMetric on a property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   ArchiveCustomMetricRequest request =
-   *       ArchiveCustomMetricRequest.newBuilder()
-   *           .setName(CustomMetricName.of("[PROPERTY]", "[CUSTOM_METRIC]").toString())
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient.archiveCustomMetricCallable().futureCall(request);
-   *   // Do something.
-   *   future.get();
-   * }
-   * }
- */ - public final UnaryCallable archiveCustomMetricCallable() { - return stub.archiveCustomMetricCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lookup for a single CustomMetric. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   CustomMetricName name = CustomMetricName.of("[PROPERTY]", "[CUSTOM_METRIC]");
-   *   CustomMetric response = analyticsAdminServiceClient.getCustomMetric(name);
-   * }
-   * }
- * - * @param name Required. The name of the CustomMetric to get. Example format: - * properties/1234/customMetrics/5678 - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final CustomMetric getCustomMetric(CustomMetricName name) { - GetCustomMetricRequest request = - GetCustomMetricRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - return getCustomMetric(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lookup for a single CustomMetric. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   String name = CustomMetricName.of("[PROPERTY]", "[CUSTOM_METRIC]").toString();
-   *   CustomMetric response = analyticsAdminServiceClient.getCustomMetric(name);
-   * }
-   * }
- * - * @param name Required. The name of the CustomMetric to get. Example format: - * properties/1234/customMetrics/5678 - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final CustomMetric getCustomMetric(String name) { - GetCustomMetricRequest request = GetCustomMetricRequest.newBuilder().setName(name).build(); - return getCustomMetric(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lookup for a single CustomMetric. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   GetCustomMetricRequest request =
-   *       GetCustomMetricRequest.newBuilder()
-   *           .setName(CustomMetricName.of("[PROPERTY]", "[CUSTOM_METRIC]").toString())
-   *           .build();
-   *   CustomMetric response = analyticsAdminServiceClient.getCustomMetric(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final CustomMetric getCustomMetric(GetCustomMetricRequest request) { - return getCustomMetricCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lookup for a single CustomMetric. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   GetCustomMetricRequest request =
-   *       GetCustomMetricRequest.newBuilder()
-   *           .setName(CustomMetricName.of("[PROPERTY]", "[CUSTOM_METRIC]").toString())
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient.getCustomMetricCallable().futureCall(request);
-   *   // Do something.
-   *   CustomMetric response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable getCustomMetricCallable() { - return stub.getCustomMetricCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Returns the singleton data retention settings for this property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   DataRetentionSettingsName name = DataRetentionSettingsName.of("[PROPERTY]");
-   *   DataRetentionSettings response = analyticsAdminServiceClient.getDataRetentionSettings(name);
-   * }
-   * }
- * - * @param name Required. The name of the settings to lookup. Format: - * properties/{property}/dataRetentionSettings Example: - * "properties/1000/dataRetentionSettings" - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final DataRetentionSettings getDataRetentionSettings(DataRetentionSettingsName name) { - GetDataRetentionSettingsRequest request = - GetDataRetentionSettingsRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .build(); - return getDataRetentionSettings(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Returns the singleton data retention settings for this property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   String name = DataRetentionSettingsName.of("[PROPERTY]").toString();
-   *   DataRetentionSettings response = analyticsAdminServiceClient.getDataRetentionSettings(name);
-   * }
-   * }
- * - * @param name Required. The name of the settings to lookup. Format: - * properties/{property}/dataRetentionSettings Example: - * "properties/1000/dataRetentionSettings" - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final DataRetentionSettings getDataRetentionSettings(String name) { - GetDataRetentionSettingsRequest request = - GetDataRetentionSettingsRequest.newBuilder().setName(name).build(); - return getDataRetentionSettings(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Returns the singleton data retention settings for this property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   GetDataRetentionSettingsRequest request =
-   *       GetDataRetentionSettingsRequest.newBuilder()
-   *           .setName(DataRetentionSettingsName.of("[PROPERTY]").toString())
-   *           .build();
-   *   DataRetentionSettings response =
-   *       analyticsAdminServiceClient.getDataRetentionSettings(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final DataRetentionSettings getDataRetentionSettings( - GetDataRetentionSettingsRequest request) { - return getDataRetentionSettingsCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Returns the singleton data retention settings for this property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   GetDataRetentionSettingsRequest request =
-   *       GetDataRetentionSettingsRequest.newBuilder()
-   *           .setName(DataRetentionSettingsName.of("[PROPERTY]").toString())
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient.getDataRetentionSettingsCallable().futureCall(request);
-   *   // Do something.
-   *   DataRetentionSettings response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable - getDataRetentionSettingsCallable() { - return stub.getDataRetentionSettingsCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates the singleton data retention settings for this property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   DataRetentionSettings dataRetentionSettings = DataRetentionSettings.newBuilder().build();
-   *   FieldMask updateMask = FieldMask.newBuilder().build();
-   *   DataRetentionSettings response =
-   *       analyticsAdminServiceClient.updateDataRetentionSettings(
-   *           dataRetentionSettings, updateMask);
-   * }
-   * }
- * - * @param dataRetentionSettings Required. The settings to update. The `name` field is used to - * identify the settings to be updated. - * @param updateMask Required. The list of fields to be updated. Field names must be in snake case - * (e.g., "field_to_update"). Omitted fields will not be updated. To replace the entire - * entity, use one path with the string "*" to match all fields. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final DataRetentionSettings updateDataRetentionSettings( - DataRetentionSettings dataRetentionSettings, FieldMask updateMask) { - UpdateDataRetentionSettingsRequest request = - UpdateDataRetentionSettingsRequest.newBuilder() - .setDataRetentionSettings(dataRetentionSettings) - .setUpdateMask(updateMask) - .build(); - return updateDataRetentionSettings(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates the singleton data retention settings for this property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   UpdateDataRetentionSettingsRequest request =
-   *       UpdateDataRetentionSettingsRequest.newBuilder()
-   *           .setDataRetentionSettings(DataRetentionSettings.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   DataRetentionSettings response =
-   *       analyticsAdminServiceClient.updateDataRetentionSettings(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final DataRetentionSettings updateDataRetentionSettings( - UpdateDataRetentionSettingsRequest request) { - return updateDataRetentionSettingsCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates the singleton data retention settings for this property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   UpdateDataRetentionSettingsRequest request =
-   *       UpdateDataRetentionSettingsRequest.newBuilder()
-   *           .setDataRetentionSettings(DataRetentionSettings.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient.updateDataRetentionSettingsCallable().futureCall(request);
-   *   // Do something.
-   *   DataRetentionSettings response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable - updateDataRetentionSettingsCallable() { - return stub.updateDataRetentionSettingsCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a DataStream. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   PropertyName parent = PropertyName.of("[PROPERTY]");
-   *   DataStream dataStream = DataStream.newBuilder().build();
-   *   DataStream response = analyticsAdminServiceClient.createDataStream(parent, dataStream);
-   * }
-   * }
- * - * @param parent Required. Example format: properties/1234 - * @param dataStream Required. The DataStream to create. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final DataStream createDataStream(PropertyName parent, DataStream dataStream) { - CreateDataStreamRequest request = - CreateDataStreamRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setDataStream(dataStream) - .build(); - return createDataStream(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a DataStream. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   String parent = PropertyName.of("[PROPERTY]").toString();
-   *   DataStream dataStream = DataStream.newBuilder().build();
-   *   DataStream response = analyticsAdminServiceClient.createDataStream(parent, dataStream);
-   * }
-   * }
- * - * @param parent Required. Example format: properties/1234 - * @param dataStream Required. The DataStream to create. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final DataStream createDataStream(String parent, DataStream dataStream) { - CreateDataStreamRequest request = - CreateDataStreamRequest.newBuilder().setParent(parent).setDataStream(dataStream).build(); - return createDataStream(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a DataStream. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   CreateDataStreamRequest request =
-   *       CreateDataStreamRequest.newBuilder()
-   *           .setParent(PropertyName.of("[PROPERTY]").toString())
-   *           .setDataStream(DataStream.newBuilder().build())
-   *           .build();
-   *   DataStream response = analyticsAdminServiceClient.createDataStream(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final DataStream createDataStream(CreateDataStreamRequest request) { - return createDataStreamCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a DataStream. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   CreateDataStreamRequest request =
-   *       CreateDataStreamRequest.newBuilder()
-   *           .setParent(PropertyName.of("[PROPERTY]").toString())
-   *           .setDataStream(DataStream.newBuilder().build())
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient.createDataStreamCallable().futureCall(request);
-   *   // Do something.
-   *   DataStream response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable createDataStreamCallable() { - return stub.createDataStreamCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a DataStream on a property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   DataStreamName name = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]");
-   *   analyticsAdminServiceClient.deleteDataStream(name);
-   * }
-   * }
- * - * @param name Required. The name of the DataStream to delete. Example format: - * properties/1234/dataStreams/5678 - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void deleteDataStream(DataStreamName name) { - DeleteDataStreamRequest request = - DeleteDataStreamRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - deleteDataStream(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a DataStream on a property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   String name = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString();
-   *   analyticsAdminServiceClient.deleteDataStream(name);
-   * }
-   * }
- * - * @param name Required. The name of the DataStream to delete. Example format: - * properties/1234/dataStreams/5678 - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void deleteDataStream(String name) { - DeleteDataStreamRequest request = DeleteDataStreamRequest.newBuilder().setName(name).build(); - deleteDataStream(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a DataStream on a property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   DeleteDataStreamRequest request =
-   *       DeleteDataStreamRequest.newBuilder()
-   *           .setName(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString())
-   *           .build();
-   *   analyticsAdminServiceClient.deleteDataStream(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void deleteDataStream(DeleteDataStreamRequest request) { - deleteDataStreamCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a DataStream on a property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   DeleteDataStreamRequest request =
-   *       DeleteDataStreamRequest.newBuilder()
-   *           .setName(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString())
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient.deleteDataStreamCallable().futureCall(request);
-   *   // Do something.
-   *   future.get();
-   * }
-   * }
- */ - public final UnaryCallable deleteDataStreamCallable() { - return stub.deleteDataStreamCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a DataStream on a property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   DataStream dataStream = DataStream.newBuilder().build();
-   *   FieldMask updateMask = FieldMask.newBuilder().build();
-   *   DataStream response = analyticsAdminServiceClient.updateDataStream(dataStream, updateMask);
-   * }
-   * }
- * - * @param dataStream The DataStream to update - * @param updateMask Required. The list of fields to be updated. Omitted fields will not be - * updated. To replace the entire entity, use one path with the string "*" to match all - * fields. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final DataStream updateDataStream(DataStream dataStream, FieldMask updateMask) { - UpdateDataStreamRequest request = - UpdateDataStreamRequest.newBuilder() - .setDataStream(dataStream) - .setUpdateMask(updateMask) - .build(); - return updateDataStream(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a DataStream on a property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   UpdateDataStreamRequest request =
-   *       UpdateDataStreamRequest.newBuilder()
-   *           .setDataStream(DataStream.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   DataStream response = analyticsAdminServiceClient.updateDataStream(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final DataStream updateDataStream(UpdateDataStreamRequest request) { - return updateDataStreamCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a DataStream on a property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   UpdateDataStreamRequest request =
-   *       UpdateDataStreamRequest.newBuilder()
-   *           .setDataStream(DataStream.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient.updateDataStreamCallable().futureCall(request);
-   *   // Do something.
-   *   DataStream response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable updateDataStreamCallable() { - return stub.updateDataStreamCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists DataStreams on a property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   PropertyName parent = PropertyName.of("[PROPERTY]");
-   *   for (DataStream element : analyticsAdminServiceClient.listDataStreams(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. Example format: properties/1234 - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListDataStreamsPagedResponse listDataStreams(PropertyName parent) { - ListDataStreamsRequest request = - ListDataStreamsRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .build(); - return listDataStreams(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists DataStreams on a property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   String parent = PropertyName.of("[PROPERTY]").toString();
-   *   for (DataStream element : analyticsAdminServiceClient.listDataStreams(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. Example format: properties/1234 - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListDataStreamsPagedResponse listDataStreams(String parent) { - ListDataStreamsRequest request = ListDataStreamsRequest.newBuilder().setParent(parent).build(); - return listDataStreams(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists DataStreams on a property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   ListDataStreamsRequest request =
-   *       ListDataStreamsRequest.newBuilder()
-   *           .setParent(PropertyName.of("[PROPERTY]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   for (DataStream element : analyticsAdminServiceClient.listDataStreams(request).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListDataStreamsPagedResponse listDataStreams(ListDataStreamsRequest request) { - return listDataStreamsPagedCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists DataStreams on a property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   ListDataStreamsRequest request =
-   *       ListDataStreamsRequest.newBuilder()
-   *           .setParent(PropertyName.of("[PROPERTY]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient.listDataStreamsPagedCallable().futureCall(request);
-   *   // Do something.
-   *   for (DataStream element : future.get().iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable - listDataStreamsPagedCallable() { - return stub.listDataStreamsPagedCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists DataStreams on a property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   ListDataStreamsRequest request =
-   *       ListDataStreamsRequest.newBuilder()
-   *           .setParent(PropertyName.of("[PROPERTY]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   while (true) {
-   *     ListDataStreamsResponse response =
-   *         analyticsAdminServiceClient.listDataStreamsCallable().call(request);
-   *     for (DataStream element : response.getDataStreamsList()) {
-   *       // doThingsWith(element);
-   *     }
-   *     String nextPageToken = response.getNextPageToken();
-   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
-   *       request = request.toBuilder().setPageToken(nextPageToken).build();
-   *     } else {
-   *       break;
-   *     }
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable - listDataStreamsCallable() { - return stub.listDataStreamsCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lookup for a single DataStream. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   DataStreamName name = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]");
-   *   DataStream response = analyticsAdminServiceClient.getDataStream(name);
-   * }
-   * }
- * - * @param name Required. The name of the DataStream to get. Example format: - * properties/1234/dataStreams/5678 - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final DataStream getDataStream(DataStreamName name) { - GetDataStreamRequest request = - GetDataStreamRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - return getDataStream(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lookup for a single DataStream. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   String name = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString();
-   *   DataStream response = analyticsAdminServiceClient.getDataStream(name);
-   * }
-   * }
- * - * @param name Required. The name of the DataStream to get. Example format: - * properties/1234/dataStreams/5678 - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final DataStream getDataStream(String name) { - GetDataStreamRequest request = GetDataStreamRequest.newBuilder().setName(name).build(); - return getDataStream(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lookup for a single DataStream. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   GetDataStreamRequest request =
-   *       GetDataStreamRequest.newBuilder()
-   *           .setName(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString())
-   *           .build();
-   *   DataStream response = analyticsAdminServiceClient.getDataStream(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final DataStream getDataStream(GetDataStreamRequest request) { - return getDataStreamCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lookup for a single DataStream. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   GetDataStreamRequest request =
-   *       GetDataStreamRequest.newBuilder()
-   *           .setName(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString())
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient.getDataStreamCallable().futureCall(request);
-   *   // Do something.
-   *   DataStream response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable getDataStreamCallable() { - return stub.getDataStreamCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lookup for a single Audience. Audiences created before 2020 may not be supported. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   AudienceName name = AudienceName.of("[PROPERTY]", "[AUDIENCE]");
-   *   Audience response = analyticsAdminServiceClient.getAudience(name);
-   * }
-   * }
- * - * @param name Required. The name of the Audience to get. Example format: - * properties/1234/audiences/5678 - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Audience getAudience(AudienceName name) { - GetAudienceRequest request = - GetAudienceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - return getAudience(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lookup for a single Audience. Audiences created before 2020 may not be supported. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   String name = AudienceName.of("[PROPERTY]", "[AUDIENCE]").toString();
-   *   Audience response = analyticsAdminServiceClient.getAudience(name);
-   * }
-   * }
- * - * @param name Required. The name of the Audience to get. Example format: - * properties/1234/audiences/5678 - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Audience getAudience(String name) { - GetAudienceRequest request = GetAudienceRequest.newBuilder().setName(name).build(); - return getAudience(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lookup for a single Audience. Audiences created before 2020 may not be supported. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   GetAudienceRequest request =
-   *       GetAudienceRequest.newBuilder()
-   *           .setName(AudienceName.of("[PROPERTY]", "[AUDIENCE]").toString())
-   *           .build();
-   *   Audience response = analyticsAdminServiceClient.getAudience(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Audience getAudience(GetAudienceRequest request) { - return getAudienceCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lookup for a single Audience. Audiences created before 2020 may not be supported. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   GetAudienceRequest request =
-   *       GetAudienceRequest.newBuilder()
-   *           .setName(AudienceName.of("[PROPERTY]", "[AUDIENCE]").toString())
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient.getAudienceCallable().futureCall(request);
-   *   // Do something.
-   *   Audience response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable getAudienceCallable() { - return stub.getAudienceCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists Audiences on a property. Audiences created before 2020 may not be supported. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   PropertyName parent = PropertyName.of("[PROPERTY]");
-   *   for (Audience element : analyticsAdminServiceClient.listAudiences(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. Example format: properties/1234 - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListAudiencesPagedResponse listAudiences(PropertyName parent) { - ListAudiencesRequest request = - ListAudiencesRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .build(); - return listAudiences(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists Audiences on a property. Audiences created before 2020 may not be supported. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   String parent = PropertyName.of("[PROPERTY]").toString();
-   *   for (Audience element : analyticsAdminServiceClient.listAudiences(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. Example format: properties/1234 - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListAudiencesPagedResponse listAudiences(String parent) { - ListAudiencesRequest request = ListAudiencesRequest.newBuilder().setParent(parent).build(); - return listAudiences(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists Audiences on a property. Audiences created before 2020 may not be supported. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   ListAudiencesRequest request =
-   *       ListAudiencesRequest.newBuilder()
-   *           .setParent(PropertyName.of("[PROPERTY]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   for (Audience element : analyticsAdminServiceClient.listAudiences(request).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListAudiencesPagedResponse listAudiences(ListAudiencesRequest request) { - return listAudiencesPagedCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists Audiences on a property. Audiences created before 2020 may not be supported. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   ListAudiencesRequest request =
-   *       ListAudiencesRequest.newBuilder()
-   *           .setParent(PropertyName.of("[PROPERTY]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient.listAudiencesPagedCallable().futureCall(request);
-   *   // Do something.
-   *   for (Audience element : future.get().iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable - listAudiencesPagedCallable() { - return stub.listAudiencesPagedCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists Audiences on a property. Audiences created before 2020 may not be supported. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   ListAudiencesRequest request =
-   *       ListAudiencesRequest.newBuilder()
-   *           .setParent(PropertyName.of("[PROPERTY]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   while (true) {
-   *     ListAudiencesResponse response =
-   *         analyticsAdminServiceClient.listAudiencesCallable().call(request);
-   *     for (Audience element : response.getAudiencesList()) {
-   *       // doThingsWith(element);
-   *     }
-   *     String nextPageToken = response.getNextPageToken();
-   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
-   *       request = request.toBuilder().setPageToken(nextPageToken).build();
-   *     } else {
-   *       break;
-   *     }
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable listAudiencesCallable() { - return stub.listAudiencesCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates an Audience. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   PropertyName parent = PropertyName.of("[PROPERTY]");
-   *   Audience audience = Audience.newBuilder().build();
-   *   Audience response = analyticsAdminServiceClient.createAudience(parent, audience);
-   * }
-   * }
- * - * @param parent Required. Example format: properties/1234 - * @param audience Required. The audience to create. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Audience createAudience(PropertyName parent, Audience audience) { - CreateAudienceRequest request = - CreateAudienceRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setAudience(audience) - .build(); - return createAudience(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates an Audience. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   String parent = PropertyName.of("[PROPERTY]").toString();
-   *   Audience audience = Audience.newBuilder().build();
-   *   Audience response = analyticsAdminServiceClient.createAudience(parent, audience);
-   * }
-   * }
- * - * @param parent Required. Example format: properties/1234 - * @param audience Required. The audience to create. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Audience createAudience(String parent, Audience audience) { - CreateAudienceRequest request = - CreateAudienceRequest.newBuilder().setParent(parent).setAudience(audience).build(); - return createAudience(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates an Audience. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   CreateAudienceRequest request =
-   *       CreateAudienceRequest.newBuilder()
-   *           .setParent(PropertyName.of("[PROPERTY]").toString())
-   *           .setAudience(Audience.newBuilder().build())
-   *           .build();
-   *   Audience response = analyticsAdminServiceClient.createAudience(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Audience createAudience(CreateAudienceRequest request) { - return createAudienceCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates an Audience. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   CreateAudienceRequest request =
-   *       CreateAudienceRequest.newBuilder()
-   *           .setParent(PropertyName.of("[PROPERTY]").toString())
-   *           .setAudience(Audience.newBuilder().build())
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient.createAudienceCallable().futureCall(request);
-   *   // Do something.
-   *   Audience response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable createAudienceCallable() { - return stub.createAudienceCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates an Audience on a property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   Audience audience = Audience.newBuilder().build();
-   *   FieldMask updateMask = FieldMask.newBuilder().build();
-   *   Audience response = analyticsAdminServiceClient.updateAudience(audience, updateMask);
-   * }
-   * }
- * - * @param audience Required. The audience to update. The audience's `name` field is used to - * identify the audience to be updated. - * @param updateMask Required. The list of fields to be updated. Field names must be in snake case - * (e.g., "field_to_update"). Omitted fields will not be updated. To replace the entire - * entity, use one path with the string "*" to match all fields. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Audience updateAudience(Audience audience, FieldMask updateMask) { - UpdateAudienceRequest request = - UpdateAudienceRequest.newBuilder().setAudience(audience).setUpdateMask(updateMask).build(); - return updateAudience(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates an Audience on a property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   UpdateAudienceRequest request =
-   *       UpdateAudienceRequest.newBuilder()
-   *           .setAudience(Audience.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   Audience response = analyticsAdminServiceClient.updateAudience(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Audience updateAudience(UpdateAudienceRequest request) { - return updateAudienceCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates an Audience on a property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   UpdateAudienceRequest request =
-   *       UpdateAudienceRequest.newBuilder()
-   *           .setAudience(Audience.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient.updateAudienceCallable().futureCall(request);
-   *   // Do something.
-   *   Audience response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable updateAudienceCallable() { - return stub.updateAudienceCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Archives an Audience on a property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   ArchiveAudienceRequest request =
-   *       ArchiveAudienceRequest.newBuilder()
-   *           .setName(PropertyName.of("[PROPERTY]").toString())
-   *           .build();
-   *   analyticsAdminServiceClient.archiveAudience(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void archiveAudience(ArchiveAudienceRequest request) { - archiveAudienceCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Archives an Audience on a property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   ArchiveAudienceRequest request =
-   *       ArchiveAudienceRequest.newBuilder()
-   *           .setName(PropertyName.of("[PROPERTY]").toString())
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient.archiveAudienceCallable().futureCall(request);
-   *   // Do something.
-   *   future.get();
-   * }
-   * }
- */ - public final UnaryCallable archiveAudienceCallable() { - return stub.archiveAudienceCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lookup for a AttributionSettings singleton. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   AttributionSettingsName name = AttributionSettingsName.of("[PROPERTY]");
-   *   AttributionSettings response = analyticsAdminServiceClient.getAttributionSettings(name);
-   * }
-   * }
- * - * @param name Required. The name of the attribution settings to retrieve. Format: - * properties/{property}/attributionSettings - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final AttributionSettings getAttributionSettings(AttributionSettingsName name) { - GetAttributionSettingsRequest request = - GetAttributionSettingsRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .build(); - return getAttributionSettings(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lookup for a AttributionSettings singleton. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   String name = AttributionSettingsName.of("[PROPERTY]").toString();
-   *   AttributionSettings response = analyticsAdminServiceClient.getAttributionSettings(name);
-   * }
-   * }
- * - * @param name Required. The name of the attribution settings to retrieve. Format: - * properties/{property}/attributionSettings - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final AttributionSettings getAttributionSettings(String name) { - GetAttributionSettingsRequest request = - GetAttributionSettingsRequest.newBuilder().setName(name).build(); - return getAttributionSettings(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lookup for a AttributionSettings singleton. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   GetAttributionSettingsRequest request =
-   *       GetAttributionSettingsRequest.newBuilder()
-   *           .setName(AttributionSettingsName.of("[PROPERTY]").toString())
-   *           .build();
-   *   AttributionSettings response = analyticsAdminServiceClient.getAttributionSettings(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final AttributionSettings getAttributionSettings(GetAttributionSettingsRequest request) { - return getAttributionSettingsCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lookup for a AttributionSettings singleton. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   GetAttributionSettingsRequest request =
-   *       GetAttributionSettingsRequest.newBuilder()
-   *           .setName(AttributionSettingsName.of("[PROPERTY]").toString())
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient.getAttributionSettingsCallable().futureCall(request);
-   *   // Do something.
-   *   AttributionSettings response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable - getAttributionSettingsCallable() { - return stub.getAttributionSettingsCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates attribution settings on a property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   AttributionSettings attributionSettings = AttributionSettings.newBuilder().build();
-   *   FieldMask updateMask = FieldMask.newBuilder().build();
-   *   AttributionSettings response =
-   *       analyticsAdminServiceClient.updateAttributionSettings(attributionSettings, updateMask);
-   * }
-   * }
- * - * @param attributionSettings Required. The attribution settings to update. The `name` field is - * used to identify the settings to be updated. - * @param updateMask Required. The list of fields to be updated. Field names must be in snake case - * (e.g., "field_to_update"). Omitted fields will not be updated. To replace the entire - * entity, use one path with the string "*" to match all fields. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final AttributionSettings updateAttributionSettings( - AttributionSettings attributionSettings, FieldMask updateMask) { - UpdateAttributionSettingsRequest request = - UpdateAttributionSettingsRequest.newBuilder() - .setAttributionSettings(attributionSettings) - .setUpdateMask(updateMask) - .build(); - return updateAttributionSettings(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates attribution settings on a property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   UpdateAttributionSettingsRequest request =
-   *       UpdateAttributionSettingsRequest.newBuilder()
-   *           .setAttributionSettings(AttributionSettings.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   AttributionSettings response = analyticsAdminServiceClient.updateAttributionSettings(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final AttributionSettings updateAttributionSettings( - UpdateAttributionSettingsRequest request) { - return updateAttributionSettingsCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates attribution settings on a property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   UpdateAttributionSettingsRequest request =
-   *       UpdateAttributionSettingsRequest.newBuilder()
-   *           .setAttributionSettings(AttributionSettings.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient.updateAttributionSettingsCallable().futureCall(request);
-   *   // Do something.
-   *   AttributionSettings response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable - updateAttributionSettingsCallable() { - return stub.updateAttributionSettingsCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Returns a customized report of data access records. The report provides records of each time a - * user reads Google Analytics reporting data. Access records are retained for up to 2 years. - * - *

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

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

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   RunAccessReportRequest request =
-   *       RunAccessReportRequest.newBuilder()
-   *           .setEntity("entity-1298275357")
-   *           .addAllDimensions(new ArrayList())
-   *           .addAllMetrics(new ArrayList())
-   *           .addAllDateRanges(new ArrayList())
-   *           .setDimensionFilter(AccessFilterExpression.newBuilder().build())
-   *           .setMetricFilter(AccessFilterExpression.newBuilder().build())
-   *           .setOffset(-1019779949)
-   *           .setLimit(102976443)
-   *           .setTimeZone("timeZone-2077180903")
-   *           .addAllOrderBys(new ArrayList())
-   *           .setReturnEntityQuota(true)
-   *           .build();
-   *   RunAccessReportResponse response = analyticsAdminServiceClient.runAccessReport(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final RunAccessReportResponse runAccessReport(RunAccessReportRequest request) { - return runAccessReportCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Returns a customized report of data access records. The report provides records of each time a - * user reads Google Analytics reporting data. Access records are retained for up to 2 years. - * - *

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

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

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   RunAccessReportRequest request =
-   *       RunAccessReportRequest.newBuilder()
-   *           .setEntity("entity-1298275357")
-   *           .addAllDimensions(new ArrayList())
-   *           .addAllMetrics(new ArrayList())
-   *           .addAllDateRanges(new ArrayList())
-   *           .setDimensionFilter(AccessFilterExpression.newBuilder().build())
-   *           .setMetricFilter(AccessFilterExpression.newBuilder().build())
-   *           .setOffset(-1019779949)
-   *           .setLimit(102976443)
-   *           .setTimeZone("timeZone-2077180903")
-   *           .addAllOrderBys(new ArrayList())
-   *           .setReturnEntityQuota(true)
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient.runAccessReportCallable().futureCall(request);
-   *   // Do something.
-   *   RunAccessReportResponse response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable - runAccessReportCallable() { - return stub.runAccessReportCallable(); - } - - @Override - public final void close() { - stub.close(); - } - - @Override - public void shutdown() { - stub.shutdown(); - } - - @Override - public boolean isShutdown() { - return stub.isShutdown(); - } - - @Override - public boolean isTerminated() { - return stub.isTerminated(); - } - - @Override - public void shutdownNow() { - stub.shutdownNow(); - } - - @Override - public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { - return stub.awaitTermination(duration, unit); - } - - public static class ListAccountsPagedResponse - extends AbstractPagedListResponse< - ListAccountsRequest, - ListAccountsResponse, - Account, - ListAccountsPage, - ListAccountsFixedSizeCollection> { - - public static ApiFuture createAsync( - PageContext context, - ApiFuture futureResponse) { - ApiFuture futurePage = - ListAccountsPage.createEmptyPage().createPageAsync(context, futureResponse); - return ApiFutures.transform( - futurePage, - input -> new ListAccountsPagedResponse(input), - MoreExecutors.directExecutor()); - } - - private ListAccountsPagedResponse(ListAccountsPage page) { - super(page, ListAccountsFixedSizeCollection.createEmptyCollection()); - } - } - - public static class ListAccountsPage - extends AbstractPage { - - private ListAccountsPage( - PageContext context, - ListAccountsResponse response) { - super(context, response); - } - - private static ListAccountsPage createEmptyPage() { - return new ListAccountsPage(null, null); - } - - @Override - protected ListAccountsPage createPage( - PageContext context, - ListAccountsResponse response) { - return new ListAccountsPage(context, response); - } - - @Override - public ApiFuture createPageAsync( - PageContext context, - ApiFuture futureResponse) { - return super.createPageAsync(context, futureResponse); - } - } - - public static class ListAccountsFixedSizeCollection - extends AbstractFixedSizeCollection< - ListAccountsRequest, - ListAccountsResponse, - Account, - ListAccountsPage, - ListAccountsFixedSizeCollection> { - - private ListAccountsFixedSizeCollection(List pages, int collectionSize) { - super(pages, collectionSize); - } - - private static ListAccountsFixedSizeCollection createEmptyCollection() { - return new ListAccountsFixedSizeCollection(null, 0); - } - - @Override - protected ListAccountsFixedSizeCollection createCollection( - List pages, int collectionSize) { - return new ListAccountsFixedSizeCollection(pages, collectionSize); - } - } - - public static class ListAccountSummariesPagedResponse - extends AbstractPagedListResponse< - ListAccountSummariesRequest, - ListAccountSummariesResponse, - AccountSummary, - ListAccountSummariesPage, - ListAccountSummariesFixedSizeCollection> { - - public static ApiFuture createAsync( - PageContext - context, - ApiFuture futureResponse) { - ApiFuture futurePage = - ListAccountSummariesPage.createEmptyPage().createPageAsync(context, futureResponse); - return ApiFutures.transform( - futurePage, - input -> new ListAccountSummariesPagedResponse(input), - MoreExecutors.directExecutor()); - } - - private ListAccountSummariesPagedResponse(ListAccountSummariesPage page) { - super(page, ListAccountSummariesFixedSizeCollection.createEmptyCollection()); - } - } - - public static class ListAccountSummariesPage - extends AbstractPage< - ListAccountSummariesRequest, - ListAccountSummariesResponse, - AccountSummary, - ListAccountSummariesPage> { - - private ListAccountSummariesPage( - PageContext - context, - ListAccountSummariesResponse response) { - super(context, response); - } - - private static ListAccountSummariesPage createEmptyPage() { - return new ListAccountSummariesPage(null, null); - } - - @Override - protected ListAccountSummariesPage createPage( - PageContext - context, - ListAccountSummariesResponse response) { - return new ListAccountSummariesPage(context, response); - } - - @Override - public ApiFuture createPageAsync( - PageContext - context, - ApiFuture futureResponse) { - return super.createPageAsync(context, futureResponse); - } - } - - public static class ListAccountSummariesFixedSizeCollection - extends AbstractFixedSizeCollection< - ListAccountSummariesRequest, - ListAccountSummariesResponse, - AccountSummary, - ListAccountSummariesPage, - ListAccountSummariesFixedSizeCollection> { - - private ListAccountSummariesFixedSizeCollection( - List pages, int collectionSize) { - super(pages, collectionSize); - } - - private static ListAccountSummariesFixedSizeCollection createEmptyCollection() { - return new ListAccountSummariesFixedSizeCollection(null, 0); - } - - @Override - protected ListAccountSummariesFixedSizeCollection createCollection( - List pages, int collectionSize) { - return new ListAccountSummariesFixedSizeCollection(pages, collectionSize); - } - } - - public static class ListPropertiesPagedResponse - extends AbstractPagedListResponse< - ListPropertiesRequest, - ListPropertiesResponse, - Property, - ListPropertiesPage, - ListPropertiesFixedSizeCollection> { - - public static ApiFuture createAsync( - PageContext context, - ApiFuture futureResponse) { - ApiFuture futurePage = - ListPropertiesPage.createEmptyPage().createPageAsync(context, futureResponse); - return ApiFutures.transform( - futurePage, - input -> new ListPropertiesPagedResponse(input), - MoreExecutors.directExecutor()); - } - - private ListPropertiesPagedResponse(ListPropertiesPage page) { - super(page, ListPropertiesFixedSizeCollection.createEmptyCollection()); - } - } - - public static class ListPropertiesPage - extends AbstractPage< - ListPropertiesRequest, ListPropertiesResponse, Property, ListPropertiesPage> { - - private ListPropertiesPage( - PageContext context, - ListPropertiesResponse response) { - super(context, response); - } - - private static ListPropertiesPage createEmptyPage() { - return new ListPropertiesPage(null, null); - } - - @Override - protected ListPropertiesPage createPage( - PageContext context, - ListPropertiesResponse response) { - return new ListPropertiesPage(context, response); - } - - @Override - public ApiFuture createPageAsync( - PageContext context, - ApiFuture futureResponse) { - return super.createPageAsync(context, futureResponse); - } - } - - public static class ListPropertiesFixedSizeCollection - extends AbstractFixedSizeCollection< - ListPropertiesRequest, - ListPropertiesResponse, - Property, - ListPropertiesPage, - ListPropertiesFixedSizeCollection> { - - private ListPropertiesFixedSizeCollection(List pages, int collectionSize) { - super(pages, collectionSize); - } - - private static ListPropertiesFixedSizeCollection createEmptyCollection() { - return new ListPropertiesFixedSizeCollection(null, 0); - } - - @Override - protected ListPropertiesFixedSizeCollection createCollection( - List pages, int collectionSize) { - return new ListPropertiesFixedSizeCollection(pages, collectionSize); - } - } - - public static class ListUserLinksPagedResponse - extends AbstractPagedListResponse< - ListUserLinksRequest, - ListUserLinksResponse, - UserLink, - ListUserLinksPage, - ListUserLinksFixedSizeCollection> { - - public static ApiFuture createAsync( - PageContext context, - ApiFuture futureResponse) { - ApiFuture futurePage = - ListUserLinksPage.createEmptyPage().createPageAsync(context, futureResponse); - return ApiFutures.transform( - futurePage, - input -> new ListUserLinksPagedResponse(input), - MoreExecutors.directExecutor()); - } - - private ListUserLinksPagedResponse(ListUserLinksPage page) { - super(page, ListUserLinksFixedSizeCollection.createEmptyCollection()); - } - } - - public static class ListUserLinksPage - extends AbstractPage< - ListUserLinksRequest, ListUserLinksResponse, UserLink, ListUserLinksPage> { - - private ListUserLinksPage( - PageContext context, - ListUserLinksResponse response) { - super(context, response); - } - - private static ListUserLinksPage createEmptyPage() { - return new ListUserLinksPage(null, null); - } - - @Override - protected ListUserLinksPage createPage( - PageContext context, - ListUserLinksResponse response) { - return new ListUserLinksPage(context, response); - } - - @Override - public ApiFuture createPageAsync( - PageContext context, - ApiFuture futureResponse) { - return super.createPageAsync(context, futureResponse); - } - } - - public static class ListUserLinksFixedSizeCollection - extends AbstractFixedSizeCollection< - ListUserLinksRequest, - ListUserLinksResponse, - UserLink, - ListUserLinksPage, - ListUserLinksFixedSizeCollection> { - - private ListUserLinksFixedSizeCollection(List pages, int collectionSize) { - super(pages, collectionSize); - } - - private static ListUserLinksFixedSizeCollection createEmptyCollection() { - return new ListUserLinksFixedSizeCollection(null, 0); - } - - @Override - protected ListUserLinksFixedSizeCollection createCollection( - List pages, int collectionSize) { - return new ListUserLinksFixedSizeCollection(pages, collectionSize); - } - } - - public static class AuditUserLinksPagedResponse - extends AbstractPagedListResponse< - AuditUserLinksRequest, - AuditUserLinksResponse, - AuditUserLink, - AuditUserLinksPage, - AuditUserLinksFixedSizeCollection> { - - public static ApiFuture createAsync( - PageContext context, - ApiFuture futureResponse) { - ApiFuture futurePage = - AuditUserLinksPage.createEmptyPage().createPageAsync(context, futureResponse); - return ApiFutures.transform( - futurePage, - input -> new AuditUserLinksPagedResponse(input), - MoreExecutors.directExecutor()); - } - - private AuditUserLinksPagedResponse(AuditUserLinksPage page) { - super(page, AuditUserLinksFixedSizeCollection.createEmptyCollection()); - } - } - - public static class AuditUserLinksPage - extends AbstractPage< - AuditUserLinksRequest, AuditUserLinksResponse, AuditUserLink, AuditUserLinksPage> { - - private AuditUserLinksPage( - PageContext context, - AuditUserLinksResponse response) { - super(context, response); - } - - private static AuditUserLinksPage createEmptyPage() { - return new AuditUserLinksPage(null, null); - } - - @Override - protected AuditUserLinksPage createPage( - PageContext context, - AuditUserLinksResponse response) { - return new AuditUserLinksPage(context, response); - } - - @Override - public ApiFuture createPageAsync( - PageContext context, - ApiFuture futureResponse) { - return super.createPageAsync(context, futureResponse); - } - } - - public static class AuditUserLinksFixedSizeCollection - extends AbstractFixedSizeCollection< - AuditUserLinksRequest, - AuditUserLinksResponse, - AuditUserLink, - AuditUserLinksPage, - AuditUserLinksFixedSizeCollection> { - - private AuditUserLinksFixedSizeCollection(List pages, int collectionSize) { - super(pages, collectionSize); - } - - private static AuditUserLinksFixedSizeCollection createEmptyCollection() { - return new AuditUserLinksFixedSizeCollection(null, 0); - } - - @Override - protected AuditUserLinksFixedSizeCollection createCollection( - List pages, int collectionSize) { - return new AuditUserLinksFixedSizeCollection(pages, collectionSize); - } - } - - public static class ListFirebaseLinksPagedResponse - extends AbstractPagedListResponse< - ListFirebaseLinksRequest, - ListFirebaseLinksResponse, - FirebaseLink, - ListFirebaseLinksPage, - ListFirebaseLinksFixedSizeCollection> { - - public static ApiFuture createAsync( - PageContext context, - ApiFuture futureResponse) { - ApiFuture futurePage = - ListFirebaseLinksPage.createEmptyPage().createPageAsync(context, futureResponse); - return ApiFutures.transform( - futurePage, - input -> new ListFirebaseLinksPagedResponse(input), - MoreExecutors.directExecutor()); - } - - private ListFirebaseLinksPagedResponse(ListFirebaseLinksPage page) { - super(page, ListFirebaseLinksFixedSizeCollection.createEmptyCollection()); - } - } - - public static class ListFirebaseLinksPage - extends AbstractPage< - ListFirebaseLinksRequest, - ListFirebaseLinksResponse, - FirebaseLink, - ListFirebaseLinksPage> { - - private ListFirebaseLinksPage( - PageContext context, - ListFirebaseLinksResponse response) { - super(context, response); - } - - private static ListFirebaseLinksPage createEmptyPage() { - return new ListFirebaseLinksPage(null, null); - } - - @Override - protected ListFirebaseLinksPage createPage( - PageContext context, - ListFirebaseLinksResponse response) { - return new ListFirebaseLinksPage(context, response); - } - - @Override - public ApiFuture createPageAsync( - PageContext context, - ApiFuture futureResponse) { - return super.createPageAsync(context, futureResponse); - } - } - - public static class ListFirebaseLinksFixedSizeCollection - extends AbstractFixedSizeCollection< - ListFirebaseLinksRequest, - ListFirebaseLinksResponse, - FirebaseLink, - ListFirebaseLinksPage, - ListFirebaseLinksFixedSizeCollection> { - - private ListFirebaseLinksFixedSizeCollection( - List pages, int collectionSize) { - super(pages, collectionSize); - } - - private static ListFirebaseLinksFixedSizeCollection createEmptyCollection() { - return new ListFirebaseLinksFixedSizeCollection(null, 0); - } - - @Override - protected ListFirebaseLinksFixedSizeCollection createCollection( - List pages, int collectionSize) { - return new ListFirebaseLinksFixedSizeCollection(pages, collectionSize); - } - } - - public static class ListGoogleAdsLinksPagedResponse - extends AbstractPagedListResponse< - ListGoogleAdsLinksRequest, - ListGoogleAdsLinksResponse, - GoogleAdsLink, - ListGoogleAdsLinksPage, - ListGoogleAdsLinksFixedSizeCollection> { - - public static ApiFuture createAsync( - PageContext context, - ApiFuture futureResponse) { - ApiFuture futurePage = - ListGoogleAdsLinksPage.createEmptyPage().createPageAsync(context, futureResponse); - return ApiFutures.transform( - futurePage, - input -> new ListGoogleAdsLinksPagedResponse(input), - MoreExecutors.directExecutor()); - } - - private ListGoogleAdsLinksPagedResponse(ListGoogleAdsLinksPage page) { - super(page, ListGoogleAdsLinksFixedSizeCollection.createEmptyCollection()); - } - } - - public static class ListGoogleAdsLinksPage - extends AbstractPage< - ListGoogleAdsLinksRequest, - ListGoogleAdsLinksResponse, - GoogleAdsLink, - ListGoogleAdsLinksPage> { - - private ListGoogleAdsLinksPage( - PageContext context, - ListGoogleAdsLinksResponse response) { - super(context, response); - } - - private static ListGoogleAdsLinksPage createEmptyPage() { - return new ListGoogleAdsLinksPage(null, null); - } - - @Override - protected ListGoogleAdsLinksPage createPage( - PageContext context, - ListGoogleAdsLinksResponse response) { - return new ListGoogleAdsLinksPage(context, response); - } - - @Override - public ApiFuture createPageAsync( - PageContext context, - ApiFuture futureResponse) { - return super.createPageAsync(context, futureResponse); - } - } - - public static class ListGoogleAdsLinksFixedSizeCollection - extends AbstractFixedSizeCollection< - ListGoogleAdsLinksRequest, - ListGoogleAdsLinksResponse, - GoogleAdsLink, - ListGoogleAdsLinksPage, - ListGoogleAdsLinksFixedSizeCollection> { - - private ListGoogleAdsLinksFixedSizeCollection( - List pages, int collectionSize) { - super(pages, collectionSize); - } - - private static ListGoogleAdsLinksFixedSizeCollection createEmptyCollection() { - return new ListGoogleAdsLinksFixedSizeCollection(null, 0); - } - - @Override - protected ListGoogleAdsLinksFixedSizeCollection createCollection( - List pages, int collectionSize) { - return new ListGoogleAdsLinksFixedSizeCollection(pages, collectionSize); - } - } - - public static class ListMeasurementProtocolSecretsPagedResponse - extends AbstractPagedListResponse< - ListMeasurementProtocolSecretsRequest, - ListMeasurementProtocolSecretsResponse, - MeasurementProtocolSecret, - ListMeasurementProtocolSecretsPage, - ListMeasurementProtocolSecretsFixedSizeCollection> { - - public static ApiFuture createAsync( - PageContext< - ListMeasurementProtocolSecretsRequest, - ListMeasurementProtocolSecretsResponse, - MeasurementProtocolSecret> - context, - ApiFuture futureResponse) { - ApiFuture futurePage = - ListMeasurementProtocolSecretsPage.createEmptyPage() - .createPageAsync(context, futureResponse); - return ApiFutures.transform( - futurePage, - input -> new ListMeasurementProtocolSecretsPagedResponse(input), - MoreExecutors.directExecutor()); - } - - private ListMeasurementProtocolSecretsPagedResponse(ListMeasurementProtocolSecretsPage page) { - super(page, ListMeasurementProtocolSecretsFixedSizeCollection.createEmptyCollection()); - } - } - - public static class ListMeasurementProtocolSecretsPage - extends AbstractPage< - ListMeasurementProtocolSecretsRequest, - ListMeasurementProtocolSecretsResponse, - MeasurementProtocolSecret, - ListMeasurementProtocolSecretsPage> { - - private ListMeasurementProtocolSecretsPage( - PageContext< - ListMeasurementProtocolSecretsRequest, - ListMeasurementProtocolSecretsResponse, - MeasurementProtocolSecret> - context, - ListMeasurementProtocolSecretsResponse response) { - super(context, response); - } - - private static ListMeasurementProtocolSecretsPage createEmptyPage() { - return new ListMeasurementProtocolSecretsPage(null, null); - } - - @Override - protected ListMeasurementProtocolSecretsPage createPage( - PageContext< - ListMeasurementProtocolSecretsRequest, - ListMeasurementProtocolSecretsResponse, - MeasurementProtocolSecret> - context, - ListMeasurementProtocolSecretsResponse response) { - return new ListMeasurementProtocolSecretsPage(context, response); - } - - @Override - public ApiFuture createPageAsync( - PageContext< - ListMeasurementProtocolSecretsRequest, - ListMeasurementProtocolSecretsResponse, - MeasurementProtocolSecret> - context, - ApiFuture futureResponse) { - return super.createPageAsync(context, futureResponse); - } - } - - public static class ListMeasurementProtocolSecretsFixedSizeCollection - extends AbstractFixedSizeCollection< - ListMeasurementProtocolSecretsRequest, - ListMeasurementProtocolSecretsResponse, - MeasurementProtocolSecret, - ListMeasurementProtocolSecretsPage, - ListMeasurementProtocolSecretsFixedSizeCollection> { - - private ListMeasurementProtocolSecretsFixedSizeCollection( - List pages, int collectionSize) { - super(pages, collectionSize); - } - - private static ListMeasurementProtocolSecretsFixedSizeCollection createEmptyCollection() { - return new ListMeasurementProtocolSecretsFixedSizeCollection(null, 0); - } - - @Override - protected ListMeasurementProtocolSecretsFixedSizeCollection createCollection( - List pages, int collectionSize) { - return new ListMeasurementProtocolSecretsFixedSizeCollection(pages, collectionSize); - } - } - - public static class SearchChangeHistoryEventsPagedResponse - extends AbstractPagedListResponse< - SearchChangeHistoryEventsRequest, - SearchChangeHistoryEventsResponse, - ChangeHistoryEvent, - SearchChangeHistoryEventsPage, - SearchChangeHistoryEventsFixedSizeCollection> { - - public static ApiFuture createAsync( - PageContext< - SearchChangeHistoryEventsRequest, - SearchChangeHistoryEventsResponse, - ChangeHistoryEvent> - context, - ApiFuture futureResponse) { - ApiFuture futurePage = - SearchChangeHistoryEventsPage.createEmptyPage().createPageAsync(context, futureResponse); - return ApiFutures.transform( - futurePage, - input -> new SearchChangeHistoryEventsPagedResponse(input), - MoreExecutors.directExecutor()); - } - - private SearchChangeHistoryEventsPagedResponse(SearchChangeHistoryEventsPage page) { - super(page, SearchChangeHistoryEventsFixedSizeCollection.createEmptyCollection()); - } - } - - public static class SearchChangeHistoryEventsPage - extends AbstractPage< - SearchChangeHistoryEventsRequest, - SearchChangeHistoryEventsResponse, - ChangeHistoryEvent, - SearchChangeHistoryEventsPage> { - - private SearchChangeHistoryEventsPage( - PageContext< - SearchChangeHistoryEventsRequest, - SearchChangeHistoryEventsResponse, - ChangeHistoryEvent> - context, - SearchChangeHistoryEventsResponse response) { - super(context, response); - } - - private static SearchChangeHistoryEventsPage createEmptyPage() { - return new SearchChangeHistoryEventsPage(null, null); - } - - @Override - protected SearchChangeHistoryEventsPage createPage( - PageContext< - SearchChangeHistoryEventsRequest, - SearchChangeHistoryEventsResponse, - ChangeHistoryEvent> - context, - SearchChangeHistoryEventsResponse response) { - return new SearchChangeHistoryEventsPage(context, response); - } - - @Override - public ApiFuture createPageAsync( - PageContext< - SearchChangeHistoryEventsRequest, - SearchChangeHistoryEventsResponse, - ChangeHistoryEvent> - context, - ApiFuture futureResponse) { - return super.createPageAsync(context, futureResponse); - } - } - - public static class SearchChangeHistoryEventsFixedSizeCollection - extends AbstractFixedSizeCollection< - SearchChangeHistoryEventsRequest, - SearchChangeHistoryEventsResponse, - ChangeHistoryEvent, - SearchChangeHistoryEventsPage, - SearchChangeHistoryEventsFixedSizeCollection> { - - private SearchChangeHistoryEventsFixedSizeCollection( - List pages, int collectionSize) { - super(pages, collectionSize); - } - - private static SearchChangeHistoryEventsFixedSizeCollection createEmptyCollection() { - return new SearchChangeHistoryEventsFixedSizeCollection(null, 0); - } - - @Override - protected SearchChangeHistoryEventsFixedSizeCollection createCollection( - List pages, int collectionSize) { - return new SearchChangeHistoryEventsFixedSizeCollection(pages, collectionSize); - } - } - - public static class ListConversionEventsPagedResponse - extends AbstractPagedListResponse< - ListConversionEventsRequest, - ListConversionEventsResponse, - ConversionEvent, - ListConversionEventsPage, - ListConversionEventsFixedSizeCollection> { - - public static ApiFuture createAsync( - PageContext - context, - ApiFuture futureResponse) { - ApiFuture futurePage = - ListConversionEventsPage.createEmptyPage().createPageAsync(context, futureResponse); - return ApiFutures.transform( - futurePage, - input -> new ListConversionEventsPagedResponse(input), - MoreExecutors.directExecutor()); - } - - private ListConversionEventsPagedResponse(ListConversionEventsPage page) { - super(page, ListConversionEventsFixedSizeCollection.createEmptyCollection()); - } - } - - public static class ListConversionEventsPage - extends AbstractPage< - ListConversionEventsRequest, - ListConversionEventsResponse, - ConversionEvent, - ListConversionEventsPage> { - - private ListConversionEventsPage( - PageContext - context, - ListConversionEventsResponse response) { - super(context, response); - } - - private static ListConversionEventsPage createEmptyPage() { - return new ListConversionEventsPage(null, null); - } - - @Override - protected ListConversionEventsPage createPage( - PageContext - context, - ListConversionEventsResponse response) { - return new ListConversionEventsPage(context, response); - } - - @Override - public ApiFuture createPageAsync( - PageContext - context, - ApiFuture futureResponse) { - return super.createPageAsync(context, futureResponse); - } - } - - public static class ListConversionEventsFixedSizeCollection - extends AbstractFixedSizeCollection< - ListConversionEventsRequest, - ListConversionEventsResponse, - ConversionEvent, - ListConversionEventsPage, - ListConversionEventsFixedSizeCollection> { - - private ListConversionEventsFixedSizeCollection( - List pages, int collectionSize) { - super(pages, collectionSize); - } - - private static ListConversionEventsFixedSizeCollection createEmptyCollection() { - return new ListConversionEventsFixedSizeCollection(null, 0); - } - - @Override - protected ListConversionEventsFixedSizeCollection createCollection( - List pages, int collectionSize) { - return new ListConversionEventsFixedSizeCollection(pages, collectionSize); - } - } - - public static class ListDisplayVideo360AdvertiserLinksPagedResponse - extends AbstractPagedListResponse< - ListDisplayVideo360AdvertiserLinksRequest, - ListDisplayVideo360AdvertiserLinksResponse, - DisplayVideo360AdvertiserLink, - ListDisplayVideo360AdvertiserLinksPage, - ListDisplayVideo360AdvertiserLinksFixedSizeCollection> { - - public static ApiFuture createAsync( - PageContext< - ListDisplayVideo360AdvertiserLinksRequest, - ListDisplayVideo360AdvertiserLinksResponse, - DisplayVideo360AdvertiserLink> - context, - ApiFuture futureResponse) { - ApiFuture futurePage = - ListDisplayVideo360AdvertiserLinksPage.createEmptyPage() - .createPageAsync(context, futureResponse); - return ApiFutures.transform( - futurePage, - input -> new ListDisplayVideo360AdvertiserLinksPagedResponse(input), - MoreExecutors.directExecutor()); - } - - private ListDisplayVideo360AdvertiserLinksPagedResponse( - ListDisplayVideo360AdvertiserLinksPage page) { - super(page, ListDisplayVideo360AdvertiserLinksFixedSizeCollection.createEmptyCollection()); - } - } - - public static class ListDisplayVideo360AdvertiserLinksPage - extends AbstractPage< - ListDisplayVideo360AdvertiserLinksRequest, - ListDisplayVideo360AdvertiserLinksResponse, - DisplayVideo360AdvertiserLink, - ListDisplayVideo360AdvertiserLinksPage> { - - private ListDisplayVideo360AdvertiserLinksPage( - PageContext< - ListDisplayVideo360AdvertiserLinksRequest, - ListDisplayVideo360AdvertiserLinksResponse, - DisplayVideo360AdvertiserLink> - context, - ListDisplayVideo360AdvertiserLinksResponse response) { - super(context, response); - } - - private static ListDisplayVideo360AdvertiserLinksPage createEmptyPage() { - return new ListDisplayVideo360AdvertiserLinksPage(null, null); - } - - @Override - protected ListDisplayVideo360AdvertiserLinksPage createPage( - PageContext< - ListDisplayVideo360AdvertiserLinksRequest, - ListDisplayVideo360AdvertiserLinksResponse, - DisplayVideo360AdvertiserLink> - context, - ListDisplayVideo360AdvertiserLinksResponse response) { - return new ListDisplayVideo360AdvertiserLinksPage(context, response); - } - - @Override - public ApiFuture createPageAsync( - PageContext< - ListDisplayVideo360AdvertiserLinksRequest, - ListDisplayVideo360AdvertiserLinksResponse, - DisplayVideo360AdvertiserLink> - context, - ApiFuture futureResponse) { - return super.createPageAsync(context, futureResponse); - } - } - - public static class ListDisplayVideo360AdvertiserLinksFixedSizeCollection - extends AbstractFixedSizeCollection< - ListDisplayVideo360AdvertiserLinksRequest, - ListDisplayVideo360AdvertiserLinksResponse, - DisplayVideo360AdvertiserLink, - ListDisplayVideo360AdvertiserLinksPage, - ListDisplayVideo360AdvertiserLinksFixedSizeCollection> { - - private ListDisplayVideo360AdvertiserLinksFixedSizeCollection( - List pages, int collectionSize) { - super(pages, collectionSize); - } - - private static ListDisplayVideo360AdvertiserLinksFixedSizeCollection createEmptyCollection() { - return new ListDisplayVideo360AdvertiserLinksFixedSizeCollection(null, 0); - } - - @Override - protected ListDisplayVideo360AdvertiserLinksFixedSizeCollection createCollection( - List pages, int collectionSize) { - return new ListDisplayVideo360AdvertiserLinksFixedSizeCollection(pages, collectionSize); - } - } - - public static class ListDisplayVideo360AdvertiserLinkProposalsPagedResponse - extends AbstractPagedListResponse< - ListDisplayVideo360AdvertiserLinkProposalsRequest, - ListDisplayVideo360AdvertiserLinkProposalsResponse, - DisplayVideo360AdvertiserLinkProposal, - ListDisplayVideo360AdvertiserLinkProposalsPage, - ListDisplayVideo360AdvertiserLinkProposalsFixedSizeCollection> { - - public static ApiFuture createAsync( - PageContext< - ListDisplayVideo360AdvertiserLinkProposalsRequest, - ListDisplayVideo360AdvertiserLinkProposalsResponse, - DisplayVideo360AdvertiserLinkProposal> - context, - ApiFuture futureResponse) { - ApiFuture futurePage = - ListDisplayVideo360AdvertiserLinkProposalsPage.createEmptyPage() - .createPageAsync(context, futureResponse); - return ApiFutures.transform( - futurePage, - input -> new ListDisplayVideo360AdvertiserLinkProposalsPagedResponse(input), - MoreExecutors.directExecutor()); - } - - private ListDisplayVideo360AdvertiserLinkProposalsPagedResponse( - ListDisplayVideo360AdvertiserLinkProposalsPage page) { - super( - page, - ListDisplayVideo360AdvertiserLinkProposalsFixedSizeCollection.createEmptyCollection()); - } - } - - public static class ListDisplayVideo360AdvertiserLinkProposalsPage - extends AbstractPage< - ListDisplayVideo360AdvertiserLinkProposalsRequest, - ListDisplayVideo360AdvertiserLinkProposalsResponse, - DisplayVideo360AdvertiserLinkProposal, - ListDisplayVideo360AdvertiserLinkProposalsPage> { - - private ListDisplayVideo360AdvertiserLinkProposalsPage( - PageContext< - ListDisplayVideo360AdvertiserLinkProposalsRequest, - ListDisplayVideo360AdvertiserLinkProposalsResponse, - DisplayVideo360AdvertiserLinkProposal> - context, - ListDisplayVideo360AdvertiserLinkProposalsResponse response) { - super(context, response); - } - - private static ListDisplayVideo360AdvertiserLinkProposalsPage createEmptyPage() { - return new ListDisplayVideo360AdvertiserLinkProposalsPage(null, null); - } - - @Override - protected ListDisplayVideo360AdvertiserLinkProposalsPage createPage( - PageContext< - ListDisplayVideo360AdvertiserLinkProposalsRequest, - ListDisplayVideo360AdvertiserLinkProposalsResponse, - DisplayVideo360AdvertiserLinkProposal> - context, - ListDisplayVideo360AdvertiserLinkProposalsResponse response) { - return new ListDisplayVideo360AdvertiserLinkProposalsPage(context, response); - } - - @Override - public ApiFuture createPageAsync( - PageContext< - ListDisplayVideo360AdvertiserLinkProposalsRequest, - ListDisplayVideo360AdvertiserLinkProposalsResponse, - DisplayVideo360AdvertiserLinkProposal> - context, - ApiFuture futureResponse) { - return super.createPageAsync(context, futureResponse); - } - } - - public static class ListDisplayVideo360AdvertiserLinkProposalsFixedSizeCollection - extends AbstractFixedSizeCollection< - ListDisplayVideo360AdvertiserLinkProposalsRequest, - ListDisplayVideo360AdvertiserLinkProposalsResponse, - DisplayVideo360AdvertiserLinkProposal, - ListDisplayVideo360AdvertiserLinkProposalsPage, - ListDisplayVideo360AdvertiserLinkProposalsFixedSizeCollection> { - - private ListDisplayVideo360AdvertiserLinkProposalsFixedSizeCollection( - List pages, int collectionSize) { - super(pages, collectionSize); - } - - private static ListDisplayVideo360AdvertiserLinkProposalsFixedSizeCollection - createEmptyCollection() { - return new ListDisplayVideo360AdvertiserLinkProposalsFixedSizeCollection(null, 0); - } - - @Override - protected ListDisplayVideo360AdvertiserLinkProposalsFixedSizeCollection createCollection( - List pages, int collectionSize) { - return new ListDisplayVideo360AdvertiserLinkProposalsFixedSizeCollection( - pages, collectionSize); - } - } - - public static class ListCustomDimensionsPagedResponse - extends AbstractPagedListResponse< - ListCustomDimensionsRequest, - ListCustomDimensionsResponse, - CustomDimension, - ListCustomDimensionsPage, - ListCustomDimensionsFixedSizeCollection> { - - public static ApiFuture createAsync( - PageContext - context, - ApiFuture futureResponse) { - ApiFuture futurePage = - ListCustomDimensionsPage.createEmptyPage().createPageAsync(context, futureResponse); - return ApiFutures.transform( - futurePage, - input -> new ListCustomDimensionsPagedResponse(input), - MoreExecutors.directExecutor()); - } - - private ListCustomDimensionsPagedResponse(ListCustomDimensionsPage page) { - super(page, ListCustomDimensionsFixedSizeCollection.createEmptyCollection()); - } - } - - public static class ListCustomDimensionsPage - extends AbstractPage< - ListCustomDimensionsRequest, - ListCustomDimensionsResponse, - CustomDimension, - ListCustomDimensionsPage> { - - private ListCustomDimensionsPage( - PageContext - context, - ListCustomDimensionsResponse response) { - super(context, response); - } - - private static ListCustomDimensionsPage createEmptyPage() { - return new ListCustomDimensionsPage(null, null); - } - - @Override - protected ListCustomDimensionsPage createPage( - PageContext - context, - ListCustomDimensionsResponse response) { - return new ListCustomDimensionsPage(context, response); - } - - @Override - public ApiFuture createPageAsync( - PageContext - context, - ApiFuture futureResponse) { - return super.createPageAsync(context, futureResponse); - } - } - - public static class ListCustomDimensionsFixedSizeCollection - extends AbstractFixedSizeCollection< - ListCustomDimensionsRequest, - ListCustomDimensionsResponse, - CustomDimension, - ListCustomDimensionsPage, - ListCustomDimensionsFixedSizeCollection> { - - private ListCustomDimensionsFixedSizeCollection( - List pages, int collectionSize) { - super(pages, collectionSize); - } - - private static ListCustomDimensionsFixedSizeCollection createEmptyCollection() { - return new ListCustomDimensionsFixedSizeCollection(null, 0); - } - - @Override - protected ListCustomDimensionsFixedSizeCollection createCollection( - List pages, int collectionSize) { - return new ListCustomDimensionsFixedSizeCollection(pages, collectionSize); - } - } - - public static class ListCustomMetricsPagedResponse - extends AbstractPagedListResponse< - ListCustomMetricsRequest, - ListCustomMetricsResponse, - CustomMetric, - ListCustomMetricsPage, - ListCustomMetricsFixedSizeCollection> { - - public static ApiFuture createAsync( - PageContext context, - ApiFuture futureResponse) { - ApiFuture futurePage = - ListCustomMetricsPage.createEmptyPage().createPageAsync(context, futureResponse); - return ApiFutures.transform( - futurePage, - input -> new ListCustomMetricsPagedResponse(input), - MoreExecutors.directExecutor()); - } - - private ListCustomMetricsPagedResponse(ListCustomMetricsPage page) { - super(page, ListCustomMetricsFixedSizeCollection.createEmptyCollection()); - } - } - - public static class ListCustomMetricsPage - extends AbstractPage< - ListCustomMetricsRequest, - ListCustomMetricsResponse, - CustomMetric, - ListCustomMetricsPage> { - - private ListCustomMetricsPage( - PageContext context, - ListCustomMetricsResponse response) { - super(context, response); - } - - private static ListCustomMetricsPage createEmptyPage() { - return new ListCustomMetricsPage(null, null); - } - - @Override - protected ListCustomMetricsPage createPage( - PageContext context, - ListCustomMetricsResponse response) { - return new ListCustomMetricsPage(context, response); - } - - @Override - public ApiFuture createPageAsync( - PageContext context, - ApiFuture futureResponse) { - return super.createPageAsync(context, futureResponse); - } - } - - public static class ListCustomMetricsFixedSizeCollection - extends AbstractFixedSizeCollection< - ListCustomMetricsRequest, - ListCustomMetricsResponse, - CustomMetric, - ListCustomMetricsPage, - ListCustomMetricsFixedSizeCollection> { - - private ListCustomMetricsFixedSizeCollection( - List pages, int collectionSize) { - super(pages, collectionSize); - } - - private static ListCustomMetricsFixedSizeCollection createEmptyCollection() { - return new ListCustomMetricsFixedSizeCollection(null, 0); - } - - @Override - protected ListCustomMetricsFixedSizeCollection createCollection( - List pages, int collectionSize) { - return new ListCustomMetricsFixedSizeCollection(pages, collectionSize); - } - } - - public static class ListDataStreamsPagedResponse - extends AbstractPagedListResponse< - ListDataStreamsRequest, - ListDataStreamsResponse, - DataStream, - ListDataStreamsPage, - ListDataStreamsFixedSizeCollection> { - - public static ApiFuture createAsync( - PageContext context, - ApiFuture futureResponse) { - ApiFuture futurePage = - ListDataStreamsPage.createEmptyPage().createPageAsync(context, futureResponse); - return ApiFutures.transform( - futurePage, - input -> new ListDataStreamsPagedResponse(input), - MoreExecutors.directExecutor()); - } - - private ListDataStreamsPagedResponse(ListDataStreamsPage page) { - super(page, ListDataStreamsFixedSizeCollection.createEmptyCollection()); - } - } - - public static class ListDataStreamsPage - extends AbstractPage< - ListDataStreamsRequest, ListDataStreamsResponse, DataStream, ListDataStreamsPage> { - - private ListDataStreamsPage( - PageContext context, - ListDataStreamsResponse response) { - super(context, response); - } - - private static ListDataStreamsPage createEmptyPage() { - return new ListDataStreamsPage(null, null); - } - - @Override - protected ListDataStreamsPage createPage( - PageContext context, - ListDataStreamsResponse response) { - return new ListDataStreamsPage(context, response); - } - - @Override - public ApiFuture createPageAsync( - PageContext context, - ApiFuture futureResponse) { - return super.createPageAsync(context, futureResponse); - } - } - - public static class ListDataStreamsFixedSizeCollection - extends AbstractFixedSizeCollection< - ListDataStreamsRequest, - ListDataStreamsResponse, - DataStream, - ListDataStreamsPage, - ListDataStreamsFixedSizeCollection> { - - private ListDataStreamsFixedSizeCollection( - List pages, int collectionSize) { - super(pages, collectionSize); - } - - private static ListDataStreamsFixedSizeCollection createEmptyCollection() { - return new ListDataStreamsFixedSizeCollection(null, 0); - } - - @Override - protected ListDataStreamsFixedSizeCollection createCollection( - List pages, int collectionSize) { - return new ListDataStreamsFixedSizeCollection(pages, collectionSize); - } - } - - public static class ListAudiencesPagedResponse - extends AbstractPagedListResponse< - ListAudiencesRequest, - ListAudiencesResponse, - Audience, - ListAudiencesPage, - ListAudiencesFixedSizeCollection> { - - public static ApiFuture createAsync( - PageContext context, - ApiFuture futureResponse) { - ApiFuture futurePage = - ListAudiencesPage.createEmptyPage().createPageAsync(context, futureResponse); - return ApiFutures.transform( - futurePage, - input -> new ListAudiencesPagedResponse(input), - MoreExecutors.directExecutor()); - } - - private ListAudiencesPagedResponse(ListAudiencesPage page) { - super(page, ListAudiencesFixedSizeCollection.createEmptyCollection()); - } - } - - public static class ListAudiencesPage - extends AbstractPage< - ListAudiencesRequest, ListAudiencesResponse, Audience, ListAudiencesPage> { - - private ListAudiencesPage( - PageContext context, - ListAudiencesResponse response) { - super(context, response); - } - - private static ListAudiencesPage createEmptyPage() { - return new ListAudiencesPage(null, null); - } - - @Override - protected ListAudiencesPage createPage( - PageContext context, - ListAudiencesResponse response) { - return new ListAudiencesPage(context, response); - } - - @Override - public ApiFuture createPageAsync( - PageContext context, - ApiFuture futureResponse) { - return super.createPageAsync(context, futureResponse); - } - } - - public static class ListAudiencesFixedSizeCollection - extends AbstractFixedSizeCollection< - ListAudiencesRequest, - ListAudiencesResponse, - Audience, - ListAudiencesPage, - ListAudiencesFixedSizeCollection> { - - private ListAudiencesFixedSizeCollection(List pages, int collectionSize) { - super(pages, collectionSize); - } - - private static ListAudiencesFixedSizeCollection createEmptyCollection() { - return new ListAudiencesFixedSizeCollection(null, 0); - } - - @Override - protected ListAudiencesFixedSizeCollection createCollection( - List pages, int collectionSize) { - return new ListAudiencesFixedSizeCollection(pages, collectionSize); - } - } -} diff --git a/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceSettings.java b/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceSettings.java deleted file mode 100644 index 8d06ec84..00000000 --- a/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceSettings.java +++ /dev/null @@ -1,1261 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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.AuditUserLinksPagedResponse; -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.ListAudiencesPagedResponse; -import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListConversionEventsPagedResponse; -import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListCustomDimensionsPagedResponse; -import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListCustomMetricsPagedResponse; -import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListDataStreamsPagedResponse; -import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListDisplayVideo360AdvertiserLinkProposalsPagedResponse; -import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListDisplayVideo360AdvertiserLinksPagedResponse; -import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListFirebaseLinksPagedResponse; -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.ListUserLinksPagedResponse; -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 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 getUserLink. */ - public UnaryCallSettings getUserLinkSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).getUserLinkSettings(); - } - - /** Returns the object with the settings used for calls to batchGetUserLinks. */ - public UnaryCallSettings - batchGetUserLinksSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).batchGetUserLinksSettings(); - } - - /** Returns the object with the settings used for calls to listUserLinks. */ - public PagedCallSettings - listUserLinksSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).listUserLinksSettings(); - } - - /** Returns the object with the settings used for calls to auditUserLinks. */ - public PagedCallSettings< - AuditUserLinksRequest, AuditUserLinksResponse, AuditUserLinksPagedResponse> - auditUserLinksSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).auditUserLinksSettings(); - } - - /** Returns the object with the settings used for calls to createUserLink. */ - public UnaryCallSettings createUserLinkSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).createUserLinkSettings(); - } - - /** Returns the object with the settings used for calls to batchCreateUserLinks. */ - public UnaryCallSettings - batchCreateUserLinksSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).batchCreateUserLinksSettings(); - } - - /** Returns the object with the settings used for calls to updateUserLink. */ - public UnaryCallSettings updateUserLinkSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).updateUserLinkSettings(); - } - - /** Returns the object with the settings used for calls to batchUpdateUserLinks. */ - public UnaryCallSettings - batchUpdateUserLinksSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).batchUpdateUserLinksSettings(); - } - - /** Returns the object with the settings used for calls to deleteUserLink. */ - public UnaryCallSettings deleteUserLinkSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).deleteUserLinkSettings(); - } - - /** Returns the object with the settings used for calls to batchDeleteUserLinks. */ - public UnaryCallSettings batchDeleteUserLinksSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).batchDeleteUserLinksSettings(); - } - - /** 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 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 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 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(); - } - - 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 getUserLink. */ - public UnaryCallSettings.Builder getUserLinkSettings() { - return getStubSettingsBuilder().getUserLinkSettings(); - } - - /** Returns the builder for the settings used for calls to batchGetUserLinks. */ - public UnaryCallSettings.Builder - batchGetUserLinksSettings() { - return getStubSettingsBuilder().batchGetUserLinksSettings(); - } - - /** Returns the builder for the settings used for calls to listUserLinks. */ - public PagedCallSettings.Builder< - ListUserLinksRequest, ListUserLinksResponse, ListUserLinksPagedResponse> - listUserLinksSettings() { - return getStubSettingsBuilder().listUserLinksSettings(); - } - - /** Returns the builder for the settings used for calls to auditUserLinks. */ - public PagedCallSettings.Builder< - AuditUserLinksRequest, AuditUserLinksResponse, AuditUserLinksPagedResponse> - auditUserLinksSettings() { - return getStubSettingsBuilder().auditUserLinksSettings(); - } - - /** Returns the builder for the settings used for calls to createUserLink. */ - public UnaryCallSettings.Builder createUserLinkSettings() { - return getStubSettingsBuilder().createUserLinkSettings(); - } - - /** Returns the builder for the settings used for calls to batchCreateUserLinks. */ - public UnaryCallSettings.Builder - batchCreateUserLinksSettings() { - return getStubSettingsBuilder().batchCreateUserLinksSettings(); - } - - /** Returns the builder for the settings used for calls to updateUserLink. */ - public UnaryCallSettings.Builder updateUserLinkSettings() { - return getStubSettingsBuilder().updateUserLinkSettings(); - } - - /** Returns the builder for the settings used for calls to batchUpdateUserLinks. */ - public UnaryCallSettings.Builder - batchUpdateUserLinksSettings() { - return getStubSettingsBuilder().batchUpdateUserLinksSettings(); - } - - /** Returns the builder for the settings used for calls to deleteUserLink. */ - public UnaryCallSettings.Builder deleteUserLinkSettings() { - return getStubSettingsBuilder().deleteUserLinkSettings(); - } - - /** Returns the builder for the settings used for calls to batchDeleteUserLinks. */ - public UnaryCallSettings.Builder - batchDeleteUserLinksSettings() { - return getStubSettingsBuilder().batchDeleteUserLinksSettings(); - } - - /** 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 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 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 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(); - } - - @Override - public AnalyticsAdminServiceSettings build() throws IOException { - return new AnalyticsAdminServiceSettings(this); - } - } -} diff --git a/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/gapic_metadata.json b/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/gapic_metadata.json deleted file mode 100644 index 54b51a3e..00000000 --- a/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/gapic_metadata.json +++ /dev/null @@ -1,255 +0,0 @@ -{ - "schema": "1.0", - "comment": "This file maps proto services/RPCs to the corresponding library clients/methods", - "language": "java", - "protoPackage": "google.analytics.admin.v1alpha", - "libraryPackage": "com.google.analytics.admin.v1alpha", - "services": { - "AnalyticsAdminService": { - "clients": { - "grpc": { - "libraryClient": "AnalyticsAdminServiceClient", - "rpcs": { - "AcknowledgeUserDataCollection": { - "methods": ["acknowledgeUserDataCollection", "acknowledgeUserDataCollectionCallable"] - }, - "ApproveDisplayVideo360AdvertiserLinkProposal": { - "methods": ["approveDisplayVideo360AdvertiserLinkProposal", "approveDisplayVideo360AdvertiserLinkProposalCallable"] - }, - "ArchiveAudience": { - "methods": ["archiveAudience", "archiveAudienceCallable"] - }, - "ArchiveCustomDimension": { - "methods": ["archiveCustomDimension", "archiveCustomDimension", "archiveCustomDimension", "archiveCustomDimensionCallable"] - }, - "ArchiveCustomMetric": { - "methods": ["archiveCustomMetric", "archiveCustomMetric", "archiveCustomMetric", "archiveCustomMetricCallable"] - }, - "AuditUserLinks": { - "methods": ["auditUserLinks", "auditUserLinksPagedCallable", "auditUserLinksCallable"] - }, - "BatchCreateUserLinks": { - "methods": ["batchCreateUserLinks", "batchCreateUserLinksCallable"] - }, - "BatchDeleteUserLinks": { - "methods": ["batchDeleteUserLinks", "batchDeleteUserLinksCallable"] - }, - "BatchGetUserLinks": { - "methods": ["batchGetUserLinks", "batchGetUserLinksCallable"] - }, - "BatchUpdateUserLinks": { - "methods": ["batchUpdateUserLinks", "batchUpdateUserLinksCallable"] - }, - "CancelDisplayVideo360AdvertiserLinkProposal": { - "methods": ["cancelDisplayVideo360AdvertiserLinkProposal", "cancelDisplayVideo360AdvertiserLinkProposalCallable"] - }, - "CreateAudience": { - "methods": ["createAudience", "createAudience", "createAudience", "createAudienceCallable"] - }, - "CreateConversionEvent": { - "methods": ["createConversionEvent", "createConversionEvent", "createConversionEvent", "createConversionEventCallable"] - }, - "CreateCustomDimension": { - "methods": ["createCustomDimension", "createCustomDimension", "createCustomDimension", "createCustomDimensionCallable"] - }, - "CreateCustomMetric": { - "methods": ["createCustomMetric", "createCustomMetric", "createCustomMetric", "createCustomMetricCallable"] - }, - "CreateDataStream": { - "methods": ["createDataStream", "createDataStream", "createDataStream", "createDataStreamCallable"] - }, - "CreateDisplayVideo360AdvertiserLink": { - "methods": ["createDisplayVideo360AdvertiserLink", "createDisplayVideo360AdvertiserLink", "createDisplayVideo360AdvertiserLink", "createDisplayVideo360AdvertiserLinkCallable"] - }, - "CreateDisplayVideo360AdvertiserLinkProposal": { - "methods": ["createDisplayVideo360AdvertiserLinkProposal", "createDisplayVideo360AdvertiserLinkProposal", "createDisplayVideo360AdvertiserLinkProposal", "createDisplayVideo360AdvertiserLinkProposalCallable"] - }, - "CreateFirebaseLink": { - "methods": ["createFirebaseLink", "createFirebaseLink", "createFirebaseLink", "createFirebaseLinkCallable"] - }, - "CreateGoogleAdsLink": { - "methods": ["createGoogleAdsLink", "createGoogleAdsLink", "createGoogleAdsLink", "createGoogleAdsLinkCallable"] - }, - "CreateMeasurementProtocolSecret": { - "methods": ["createMeasurementProtocolSecret", "createMeasurementProtocolSecret", "createMeasurementProtocolSecret", "createMeasurementProtocolSecretCallable"] - }, - "CreateProperty": { - "methods": ["createProperty", "createProperty", "createPropertyCallable"] - }, - "CreateUserLink": { - "methods": ["createUserLink", "createUserLink", "createUserLink", "createUserLink", "createUserLinkCallable"] - }, - "DeleteAccount": { - "methods": ["deleteAccount", "deleteAccount", "deleteAccount", "deleteAccountCallable"] - }, - "DeleteConversionEvent": { - "methods": ["deleteConversionEvent", "deleteConversionEvent", "deleteConversionEvent", "deleteConversionEventCallable"] - }, - "DeleteDataStream": { - "methods": ["deleteDataStream", "deleteDataStream", "deleteDataStream", "deleteDataStreamCallable"] - }, - "DeleteDisplayVideo360AdvertiserLink": { - "methods": ["deleteDisplayVideo360AdvertiserLink", "deleteDisplayVideo360AdvertiserLink", "deleteDisplayVideo360AdvertiserLink", "deleteDisplayVideo360AdvertiserLinkCallable"] - }, - "DeleteDisplayVideo360AdvertiserLinkProposal": { - "methods": ["deleteDisplayVideo360AdvertiserLinkProposal", "deleteDisplayVideo360AdvertiserLinkProposal", "deleteDisplayVideo360AdvertiserLinkProposal", "deleteDisplayVideo360AdvertiserLinkProposalCallable"] - }, - "DeleteFirebaseLink": { - "methods": ["deleteFirebaseLink", "deleteFirebaseLink", "deleteFirebaseLink", "deleteFirebaseLinkCallable"] - }, - "DeleteGoogleAdsLink": { - "methods": ["deleteGoogleAdsLink", "deleteGoogleAdsLink", "deleteGoogleAdsLink", "deleteGoogleAdsLinkCallable"] - }, - "DeleteMeasurementProtocolSecret": { - "methods": ["deleteMeasurementProtocolSecret", "deleteMeasurementProtocolSecret", "deleteMeasurementProtocolSecret", "deleteMeasurementProtocolSecretCallable"] - }, - "DeleteProperty": { - "methods": ["deleteProperty", "deleteProperty", "deleteProperty", "deletePropertyCallable"] - }, - "DeleteUserLink": { - "methods": ["deleteUserLink", "deleteUserLink", "deleteUserLink", "deleteUserLinkCallable"] - }, - "GetAccount": { - "methods": ["getAccount", "getAccount", "getAccount", "getAccountCallable"] - }, - "GetAttributionSettings": { - "methods": ["getAttributionSettings", "getAttributionSettings", "getAttributionSettings", "getAttributionSettingsCallable"] - }, - "GetAudience": { - "methods": ["getAudience", "getAudience", "getAudience", "getAudienceCallable"] - }, - "GetConversionEvent": { - "methods": ["getConversionEvent", "getConversionEvent", "getConversionEvent", "getConversionEventCallable"] - }, - "GetCustomDimension": { - "methods": ["getCustomDimension", "getCustomDimension", "getCustomDimension", "getCustomDimensionCallable"] - }, - "GetCustomMetric": { - "methods": ["getCustomMetric", "getCustomMetric", "getCustomMetric", "getCustomMetricCallable"] - }, - "GetDataRetentionSettings": { - "methods": ["getDataRetentionSettings", "getDataRetentionSettings", "getDataRetentionSettings", "getDataRetentionSettingsCallable"] - }, - "GetDataSharingSettings": { - "methods": ["getDataSharingSettings", "getDataSharingSettings", "getDataSharingSettings", "getDataSharingSettingsCallable"] - }, - "GetDataStream": { - "methods": ["getDataStream", "getDataStream", "getDataStream", "getDataStreamCallable"] - }, - "GetDisplayVideo360AdvertiserLink": { - "methods": ["getDisplayVideo360AdvertiserLink", "getDisplayVideo360AdvertiserLink", "getDisplayVideo360AdvertiserLink", "getDisplayVideo360AdvertiserLinkCallable"] - }, - "GetDisplayVideo360AdvertiserLinkProposal": { - "methods": ["getDisplayVideo360AdvertiserLinkProposal", "getDisplayVideo360AdvertiserLinkProposal", "getDisplayVideo360AdvertiserLinkProposal", "getDisplayVideo360AdvertiserLinkProposalCallable"] - }, - "GetGlobalSiteTag": { - "methods": ["getGlobalSiteTag", "getGlobalSiteTag", "getGlobalSiteTag", "getGlobalSiteTagCallable"] - }, - "GetGoogleSignalsSettings": { - "methods": ["getGoogleSignalsSettings", "getGoogleSignalsSettings", "getGoogleSignalsSettings", "getGoogleSignalsSettingsCallable"] - }, - "GetMeasurementProtocolSecret": { - "methods": ["getMeasurementProtocolSecret", "getMeasurementProtocolSecret", "getMeasurementProtocolSecret", "getMeasurementProtocolSecretCallable"] - }, - "GetProperty": { - "methods": ["getProperty", "getProperty", "getProperty", "getPropertyCallable"] - }, - "GetUserLink": { - "methods": ["getUserLink", "getUserLink", "getUserLink", "getUserLinkCallable"] - }, - "ListAccountSummaries": { - "methods": ["listAccountSummaries", "listAccountSummariesPagedCallable", "listAccountSummariesCallable"] - }, - "ListAccounts": { - "methods": ["listAccounts", "listAccountsPagedCallable", "listAccountsCallable"] - }, - "ListAudiences": { - "methods": ["listAudiences", "listAudiences", "listAudiences", "listAudiencesPagedCallable", "listAudiencesCallable"] - }, - "ListConversionEvents": { - "methods": ["listConversionEvents", "listConversionEvents", "listConversionEvents", "listConversionEventsPagedCallable", "listConversionEventsCallable"] - }, - "ListCustomDimensions": { - "methods": ["listCustomDimensions", "listCustomDimensions", "listCustomDimensions", "listCustomDimensionsPagedCallable", "listCustomDimensionsCallable"] - }, - "ListCustomMetrics": { - "methods": ["listCustomMetrics", "listCustomMetrics", "listCustomMetrics", "listCustomMetricsPagedCallable", "listCustomMetricsCallable"] - }, - "ListDataStreams": { - "methods": ["listDataStreams", "listDataStreams", "listDataStreams", "listDataStreamsPagedCallable", "listDataStreamsCallable"] - }, - "ListDisplayVideo360AdvertiserLinkProposals": { - "methods": ["listDisplayVideo360AdvertiserLinkProposals", "listDisplayVideo360AdvertiserLinkProposals", "listDisplayVideo360AdvertiserLinkProposals", "listDisplayVideo360AdvertiserLinkProposalsPagedCallable", "listDisplayVideo360AdvertiserLinkProposalsCallable"] - }, - "ListDisplayVideo360AdvertiserLinks": { - "methods": ["listDisplayVideo360AdvertiserLinks", "listDisplayVideo360AdvertiserLinks", "listDisplayVideo360AdvertiserLinks", "listDisplayVideo360AdvertiserLinksPagedCallable", "listDisplayVideo360AdvertiserLinksCallable"] - }, - "ListFirebaseLinks": { - "methods": ["listFirebaseLinks", "listFirebaseLinks", "listFirebaseLinks", "listFirebaseLinksPagedCallable", "listFirebaseLinksCallable"] - }, - "ListGoogleAdsLinks": { - "methods": ["listGoogleAdsLinks", "listGoogleAdsLinks", "listGoogleAdsLinks", "listGoogleAdsLinksPagedCallable", "listGoogleAdsLinksCallable"] - }, - "ListMeasurementProtocolSecrets": { - "methods": ["listMeasurementProtocolSecrets", "listMeasurementProtocolSecrets", "listMeasurementProtocolSecrets", "listMeasurementProtocolSecretsPagedCallable", "listMeasurementProtocolSecretsCallable"] - }, - "ListProperties": { - "methods": ["listProperties", "listPropertiesPagedCallable", "listPropertiesCallable"] - }, - "ListUserLinks": { - "methods": ["listUserLinks", "listUserLinks", "listUserLinks", "listUserLinks", "listUserLinksPagedCallable", "listUserLinksCallable"] - }, - "ProvisionAccountTicket": { - "methods": ["provisionAccountTicket", "provisionAccountTicketCallable"] - }, - "RunAccessReport": { - "methods": ["runAccessReport", "runAccessReportCallable"] - }, - "SearchChangeHistoryEvents": { - "methods": ["searchChangeHistoryEvents", "searchChangeHistoryEventsPagedCallable", "searchChangeHistoryEventsCallable"] - }, - "UpdateAccount": { - "methods": ["updateAccount", "updateAccount", "updateAccountCallable"] - }, - "UpdateAttributionSettings": { - "methods": ["updateAttributionSettings", "updateAttributionSettings", "updateAttributionSettingsCallable"] - }, - "UpdateAudience": { - "methods": ["updateAudience", "updateAudience", "updateAudienceCallable"] - }, - "UpdateCustomDimension": { - "methods": ["updateCustomDimension", "updateCustomDimension", "updateCustomDimensionCallable"] - }, - "UpdateCustomMetric": { - "methods": ["updateCustomMetric", "updateCustomMetric", "updateCustomMetricCallable"] - }, - "UpdateDataRetentionSettings": { - "methods": ["updateDataRetentionSettings", "updateDataRetentionSettings", "updateDataRetentionSettingsCallable"] - }, - "UpdateDataStream": { - "methods": ["updateDataStream", "updateDataStream", "updateDataStreamCallable"] - }, - "UpdateDisplayVideo360AdvertiserLink": { - "methods": ["updateDisplayVideo360AdvertiserLink", "updateDisplayVideo360AdvertiserLink", "updateDisplayVideo360AdvertiserLinkCallable"] - }, - "UpdateGoogleAdsLink": { - "methods": ["updateGoogleAdsLink", "updateGoogleAdsLink", "updateGoogleAdsLinkCallable"] - }, - "UpdateGoogleSignalsSettings": { - "methods": ["updateGoogleSignalsSettings", "updateGoogleSignalsSettings", "updateGoogleSignalsSettingsCallable"] - }, - "UpdateMeasurementProtocolSecret": { - "methods": ["updateMeasurementProtocolSecret", "updateMeasurementProtocolSecret", "updateMeasurementProtocolSecretCallable"] - }, - "UpdateProperty": { - "methods": ["updateProperty", "updateProperty", "updatePropertyCallable"] - }, - "UpdateUserLink": { - "methods": ["updateUserLink", "updateUserLink", "updateUserLinkCallable"] - } - } - } - } - } - } -} \ No newline at end of file diff --git a/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/package-info.java b/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/package-info.java deleted file mode 100644 index 2be4cd3b..00000000 --- a/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/package-info.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -/** - * A client to Google Analytics Admin API - * - *

The interfaces provided are listed below, along with usage samples. - * - *

======================= AnalyticsAdminServiceClient ======================= - * - *

Service Description: Service Interface for the Analytics Admin API (GA4). - * - *

Sample for AnalyticsAdminServiceClient: - * - *

{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
- *     AnalyticsAdminServiceClient.create()) {
- *   AccountName name = AccountName.of("[ACCOUNT]");
- *   Account response = analyticsAdminServiceClient.getAccount(name);
- * }
- * }
- */ -@Generated("by gapic-generator-java") -package com.google.analytics.admin.v1alpha; - -import javax.annotation.Generated; diff --git a/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStub.java b/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStub.java deleted file mode 100644 index cfc427e4..00000000 --- a/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStub.java +++ /dev/null @@ -1,644 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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.AuditUserLinksPagedResponse; -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.ListAudiencesPagedResponse; -import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListConversionEventsPagedResponse; -import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListCustomDimensionsPagedResponse; -import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListCustomMetricsPagedResponse; -import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListDataStreamsPagedResponse; -import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListDisplayVideo360AdvertiserLinkProposalsPagedResponse; -import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListDisplayVideo360AdvertiserLinksPagedResponse; -import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListFirebaseLinksPagedResponse; -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.ListUserLinksPagedResponse; -import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.SearchChangeHistoryEventsPagedResponse; - -import com.google.analytics.admin.v1alpha.Account; -import com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest; -import com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse; -import com.google.analytics.admin.v1alpha.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.AuditUserLinksRequest; -import com.google.analytics.admin.v1alpha.AuditUserLinksResponse; -import com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest; -import com.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse; -import com.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest; -import com.google.analytics.admin.v1alpha.BatchGetUserLinksRequest; -import com.google.analytics.admin.v1alpha.BatchGetUserLinksResponse; -import com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest; -import com.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse; -import com.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest; -import com.google.analytics.admin.v1alpha.ConversionEvent; -import com.google.analytics.admin.v1alpha.CreateAudienceRequest; -import com.google.analytics.admin.v1alpha.CreateConversionEventRequest; -import com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest; -import com.google.analytics.admin.v1alpha.CreateCustomMetricRequest; -import com.google.analytics.admin.v1alpha.CreateDataStreamRequest; -import com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest; -import com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest; -import com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest; -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.CreateUserLinkRequest; -import com.google.analytics.admin.v1alpha.CustomDimension; -import com.google.analytics.admin.v1alpha.CustomMetric; -import com.google.analytics.admin.v1alpha.DataRetentionSettings; -import com.google.analytics.admin.v1alpha.DataSharingSettings; -import com.google.analytics.admin.v1alpha.DataStream; -import com.google.analytics.admin.v1alpha.DeleteAccountRequest; -import com.google.analytics.admin.v1alpha.DeleteConversionEventRequest; -import com.google.analytics.admin.v1alpha.DeleteDataStreamRequest; -import com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest; -import com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest; -import com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest; -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.DeleteUserLinkRequest; -import com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink; -import com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal; -import com.google.analytics.admin.v1alpha.FirebaseLink; -import com.google.analytics.admin.v1alpha.GetAccountRequest; -import com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest; -import com.google.analytics.admin.v1alpha.GetAudienceRequest; -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.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.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.GetUserLinkRequest; -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.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.ListAudiencesRequest; -import com.google.analytics.admin.v1alpha.ListAudiencesResponse; -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.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.ListUserLinksRequest; -import com.google.analytics.admin.v1alpha.ListUserLinksResponse; -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.RunAccessReportRequest; -import com.google.analytics.admin.v1alpha.RunAccessReportResponse; -import com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest; -import com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse; -import com.google.analytics.admin.v1alpha.UpdateAccountRequest; -import com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest; -import com.google.analytics.admin.v1alpha.UpdateAudienceRequest; -import com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest; -import com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest; -import com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest; -import com.google.analytics.admin.v1alpha.UpdateDataStreamRequest; -import com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest; -import com.google.analytics.admin.v1alpha.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.UpdateUserLinkRequest; -import com.google.analytics.admin.v1alpha.UserLink; -import com.google.api.core.BetaApi; -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.protobuf.Empty; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Base stub class for the AnalyticsAdminService service API. - * - *

This class is for advanced usage and reflects the underlying API directly. - */ -@BetaApi -@Generated("by gapic-generator-java") -public abstract class AnalyticsAdminServiceStub implements BackgroundResource { - - public UnaryCallable getAccountCallable() { - throw new UnsupportedOperationException("Not implemented: getAccountCallable()"); - } - - public UnaryCallable listAccountsPagedCallable() { - throw new UnsupportedOperationException("Not implemented: listAccountsPagedCallable()"); - } - - public UnaryCallable listAccountsCallable() { - throw new UnsupportedOperationException("Not implemented: listAccountsCallable()"); - } - - public UnaryCallable deleteAccountCallable() { - throw new UnsupportedOperationException("Not implemented: deleteAccountCallable()"); - } - - public UnaryCallable updateAccountCallable() { - throw new UnsupportedOperationException("Not implemented: updateAccountCallable()"); - } - - public UnaryCallable - provisionAccountTicketCallable() { - throw new UnsupportedOperationException("Not implemented: provisionAccountTicketCallable()"); - } - - public UnaryCallable - listAccountSummariesPagedCallable() { - throw new UnsupportedOperationException("Not implemented: listAccountSummariesPagedCallable()"); - } - - public UnaryCallable - listAccountSummariesCallable() { - throw new UnsupportedOperationException("Not implemented: listAccountSummariesCallable()"); - } - - public UnaryCallable getPropertyCallable() { - throw new UnsupportedOperationException("Not implemented: getPropertyCallable()"); - } - - public UnaryCallable - listPropertiesPagedCallable() { - throw new UnsupportedOperationException("Not implemented: listPropertiesPagedCallable()"); - } - - public UnaryCallable listPropertiesCallable() { - throw new UnsupportedOperationException("Not implemented: listPropertiesCallable()"); - } - - public UnaryCallable createPropertyCallable() { - throw new UnsupportedOperationException("Not implemented: createPropertyCallable()"); - } - - public UnaryCallable deletePropertyCallable() { - throw new UnsupportedOperationException("Not implemented: deletePropertyCallable()"); - } - - public UnaryCallable updatePropertyCallable() { - throw new UnsupportedOperationException("Not implemented: updatePropertyCallable()"); - } - - public UnaryCallable getUserLinkCallable() { - throw new UnsupportedOperationException("Not implemented: getUserLinkCallable()"); - } - - public UnaryCallable - batchGetUserLinksCallable() { - throw new UnsupportedOperationException("Not implemented: batchGetUserLinksCallable()"); - } - - public UnaryCallable - listUserLinksPagedCallable() { - throw new UnsupportedOperationException("Not implemented: listUserLinksPagedCallable()"); - } - - public UnaryCallable listUserLinksCallable() { - throw new UnsupportedOperationException("Not implemented: listUserLinksCallable()"); - } - - public UnaryCallable - auditUserLinksPagedCallable() { - throw new UnsupportedOperationException("Not implemented: auditUserLinksPagedCallable()"); - } - - public UnaryCallable auditUserLinksCallable() { - throw new UnsupportedOperationException("Not implemented: auditUserLinksCallable()"); - } - - public UnaryCallable createUserLinkCallable() { - throw new UnsupportedOperationException("Not implemented: createUserLinkCallable()"); - } - - public UnaryCallable - batchCreateUserLinksCallable() { - throw new UnsupportedOperationException("Not implemented: batchCreateUserLinksCallable()"); - } - - public UnaryCallable updateUserLinkCallable() { - throw new UnsupportedOperationException("Not implemented: updateUserLinkCallable()"); - } - - public UnaryCallable - batchUpdateUserLinksCallable() { - throw new UnsupportedOperationException("Not implemented: batchUpdateUserLinksCallable()"); - } - - public UnaryCallable deleteUserLinkCallable() { - throw new UnsupportedOperationException("Not implemented: deleteUserLinkCallable()"); - } - - public UnaryCallable batchDeleteUserLinksCallable() { - throw new UnsupportedOperationException("Not implemented: batchDeleteUserLinksCallable()"); - } - - public UnaryCallable createFirebaseLinkCallable() { - throw new UnsupportedOperationException("Not implemented: createFirebaseLinkCallable()"); - } - - public UnaryCallable deleteFirebaseLinkCallable() { - throw new UnsupportedOperationException("Not implemented: deleteFirebaseLinkCallable()"); - } - - public UnaryCallable - listFirebaseLinksPagedCallable() { - throw new UnsupportedOperationException("Not implemented: listFirebaseLinksPagedCallable()"); - } - - public UnaryCallable - listFirebaseLinksCallable() { - throw new UnsupportedOperationException("Not implemented: listFirebaseLinksCallable()"); - } - - public UnaryCallable getGlobalSiteTagCallable() { - throw new UnsupportedOperationException("Not implemented: getGlobalSiteTagCallable()"); - } - - public UnaryCallable createGoogleAdsLinkCallable() { - throw new UnsupportedOperationException("Not implemented: createGoogleAdsLinkCallable()"); - } - - public UnaryCallable updateGoogleAdsLinkCallable() { - throw new UnsupportedOperationException("Not implemented: updateGoogleAdsLinkCallable()"); - } - - public UnaryCallable deleteGoogleAdsLinkCallable() { - throw new UnsupportedOperationException("Not implemented: deleteGoogleAdsLinkCallable()"); - } - - public UnaryCallable - listGoogleAdsLinksPagedCallable() { - throw new UnsupportedOperationException("Not implemented: listGoogleAdsLinksPagedCallable()"); - } - - public UnaryCallable - listGoogleAdsLinksCallable() { - throw new UnsupportedOperationException("Not implemented: listGoogleAdsLinksCallable()"); - } - - public UnaryCallable - getDataSharingSettingsCallable() { - throw new UnsupportedOperationException("Not implemented: getDataSharingSettingsCallable()"); - } - - public UnaryCallable - getMeasurementProtocolSecretCallable() { - throw new UnsupportedOperationException( - "Not implemented: getMeasurementProtocolSecretCallable()"); - } - - public UnaryCallable< - ListMeasurementProtocolSecretsRequest, ListMeasurementProtocolSecretsPagedResponse> - listMeasurementProtocolSecretsPagedCallable() { - throw new UnsupportedOperationException( - "Not implemented: listMeasurementProtocolSecretsPagedCallable()"); - } - - public UnaryCallable< - ListMeasurementProtocolSecretsRequest, ListMeasurementProtocolSecretsResponse> - listMeasurementProtocolSecretsCallable() { - throw new UnsupportedOperationException( - "Not implemented: listMeasurementProtocolSecretsCallable()"); - } - - public UnaryCallable - createMeasurementProtocolSecretCallable() { - throw new UnsupportedOperationException( - "Not implemented: createMeasurementProtocolSecretCallable()"); - } - - public UnaryCallable - deleteMeasurementProtocolSecretCallable() { - throw new UnsupportedOperationException( - "Not implemented: deleteMeasurementProtocolSecretCallable()"); - } - - public UnaryCallable - updateMeasurementProtocolSecretCallable() { - throw new UnsupportedOperationException( - "Not implemented: updateMeasurementProtocolSecretCallable()"); - } - - public UnaryCallable - acknowledgeUserDataCollectionCallable() { - throw new UnsupportedOperationException( - "Not implemented: acknowledgeUserDataCollectionCallable()"); - } - - public UnaryCallable - searchChangeHistoryEventsPagedCallable() { - throw new UnsupportedOperationException( - "Not implemented: searchChangeHistoryEventsPagedCallable()"); - } - - public UnaryCallable - searchChangeHistoryEventsCallable() { - throw new UnsupportedOperationException("Not implemented: searchChangeHistoryEventsCallable()"); - } - - public UnaryCallable - getGoogleSignalsSettingsCallable() { - throw new UnsupportedOperationException("Not implemented: getGoogleSignalsSettingsCallable()"); - } - - public UnaryCallable - updateGoogleSignalsSettingsCallable() { - throw new UnsupportedOperationException( - "Not implemented: updateGoogleSignalsSettingsCallable()"); - } - - public UnaryCallable - createConversionEventCallable() { - throw new UnsupportedOperationException("Not implemented: createConversionEventCallable()"); - } - - public UnaryCallable getConversionEventCallable() { - throw new UnsupportedOperationException("Not implemented: getConversionEventCallable()"); - } - - public UnaryCallable deleteConversionEventCallable() { - throw new UnsupportedOperationException("Not implemented: deleteConversionEventCallable()"); - } - - public UnaryCallable - listConversionEventsPagedCallable() { - throw new UnsupportedOperationException("Not implemented: listConversionEventsPagedCallable()"); - } - - public UnaryCallable - listConversionEventsCallable() { - throw new UnsupportedOperationException("Not implemented: listConversionEventsCallable()"); - } - - public UnaryCallable - getDisplayVideo360AdvertiserLinkCallable() { - throw new UnsupportedOperationException( - "Not implemented: getDisplayVideo360AdvertiserLinkCallable()"); - } - - public UnaryCallable< - ListDisplayVideo360AdvertiserLinksRequest, - ListDisplayVideo360AdvertiserLinksPagedResponse> - listDisplayVideo360AdvertiserLinksPagedCallable() { - throw new UnsupportedOperationException( - "Not implemented: listDisplayVideo360AdvertiserLinksPagedCallable()"); - } - - public UnaryCallable< - ListDisplayVideo360AdvertiserLinksRequest, ListDisplayVideo360AdvertiserLinksResponse> - listDisplayVideo360AdvertiserLinksCallable() { - throw new UnsupportedOperationException( - "Not implemented: listDisplayVideo360AdvertiserLinksCallable()"); - } - - public UnaryCallable - createDisplayVideo360AdvertiserLinkCallable() { - throw new UnsupportedOperationException( - "Not implemented: createDisplayVideo360AdvertiserLinkCallable()"); - } - - public UnaryCallable - deleteDisplayVideo360AdvertiserLinkCallable() { - throw new UnsupportedOperationException( - "Not implemented: deleteDisplayVideo360AdvertiserLinkCallable()"); - } - - public UnaryCallable - updateDisplayVideo360AdvertiserLinkCallable() { - throw new UnsupportedOperationException( - "Not implemented: updateDisplayVideo360AdvertiserLinkCallable()"); - } - - public UnaryCallable< - GetDisplayVideo360AdvertiserLinkProposalRequest, DisplayVideo360AdvertiserLinkProposal> - getDisplayVideo360AdvertiserLinkProposalCallable() { - throw new UnsupportedOperationException( - "Not implemented: getDisplayVideo360AdvertiserLinkProposalCallable()"); - } - - public UnaryCallable< - ListDisplayVideo360AdvertiserLinkProposalsRequest, - ListDisplayVideo360AdvertiserLinkProposalsPagedResponse> - listDisplayVideo360AdvertiserLinkProposalsPagedCallable() { - throw new UnsupportedOperationException( - "Not implemented: listDisplayVideo360AdvertiserLinkProposalsPagedCallable()"); - } - - public UnaryCallable< - ListDisplayVideo360AdvertiserLinkProposalsRequest, - ListDisplayVideo360AdvertiserLinkProposalsResponse> - listDisplayVideo360AdvertiserLinkProposalsCallable() { - throw new UnsupportedOperationException( - "Not implemented: listDisplayVideo360AdvertiserLinkProposalsCallable()"); - } - - public UnaryCallable< - CreateDisplayVideo360AdvertiserLinkProposalRequest, DisplayVideo360AdvertiserLinkProposal> - createDisplayVideo360AdvertiserLinkProposalCallable() { - throw new UnsupportedOperationException( - "Not implemented: createDisplayVideo360AdvertiserLinkProposalCallable()"); - } - - public UnaryCallable - deleteDisplayVideo360AdvertiserLinkProposalCallable() { - throw new UnsupportedOperationException( - "Not implemented: deleteDisplayVideo360AdvertiserLinkProposalCallable()"); - } - - public UnaryCallable< - ApproveDisplayVideo360AdvertiserLinkProposalRequest, - ApproveDisplayVideo360AdvertiserLinkProposalResponse> - approveDisplayVideo360AdvertiserLinkProposalCallable() { - throw new UnsupportedOperationException( - "Not implemented: approveDisplayVideo360AdvertiserLinkProposalCallable()"); - } - - public UnaryCallable< - CancelDisplayVideo360AdvertiserLinkProposalRequest, DisplayVideo360AdvertiserLinkProposal> - cancelDisplayVideo360AdvertiserLinkProposalCallable() { - throw new UnsupportedOperationException( - "Not implemented: cancelDisplayVideo360AdvertiserLinkProposalCallable()"); - } - - public UnaryCallable - createCustomDimensionCallable() { - throw new UnsupportedOperationException("Not implemented: createCustomDimensionCallable()"); - } - - public UnaryCallable - updateCustomDimensionCallable() { - throw new UnsupportedOperationException("Not implemented: updateCustomDimensionCallable()"); - } - - public UnaryCallable - listCustomDimensionsPagedCallable() { - throw new UnsupportedOperationException("Not implemented: listCustomDimensionsPagedCallable()"); - } - - public UnaryCallable - listCustomDimensionsCallable() { - throw new UnsupportedOperationException("Not implemented: listCustomDimensionsCallable()"); - } - - public UnaryCallable archiveCustomDimensionCallable() { - throw new UnsupportedOperationException("Not implemented: archiveCustomDimensionCallable()"); - } - - public UnaryCallable getCustomDimensionCallable() { - throw new UnsupportedOperationException("Not implemented: getCustomDimensionCallable()"); - } - - public UnaryCallable createCustomMetricCallable() { - throw new UnsupportedOperationException("Not implemented: createCustomMetricCallable()"); - } - - public UnaryCallable updateCustomMetricCallable() { - throw new UnsupportedOperationException("Not implemented: updateCustomMetricCallable()"); - } - - public UnaryCallable - listCustomMetricsPagedCallable() { - throw new UnsupportedOperationException("Not implemented: listCustomMetricsPagedCallable()"); - } - - public UnaryCallable - listCustomMetricsCallable() { - throw new UnsupportedOperationException("Not implemented: listCustomMetricsCallable()"); - } - - public UnaryCallable archiveCustomMetricCallable() { - throw new UnsupportedOperationException("Not implemented: archiveCustomMetricCallable()"); - } - - public UnaryCallable getCustomMetricCallable() { - throw new UnsupportedOperationException("Not implemented: getCustomMetricCallable()"); - } - - public UnaryCallable - getDataRetentionSettingsCallable() { - throw new UnsupportedOperationException("Not implemented: getDataRetentionSettingsCallable()"); - } - - public UnaryCallable - updateDataRetentionSettingsCallable() { - throw new UnsupportedOperationException( - "Not implemented: updateDataRetentionSettingsCallable()"); - } - - public UnaryCallable createDataStreamCallable() { - throw new UnsupportedOperationException("Not implemented: createDataStreamCallable()"); - } - - public UnaryCallable deleteDataStreamCallable() { - throw new UnsupportedOperationException("Not implemented: deleteDataStreamCallable()"); - } - - public UnaryCallable updateDataStreamCallable() { - throw new UnsupportedOperationException("Not implemented: updateDataStreamCallable()"); - } - - public UnaryCallable - listDataStreamsPagedCallable() { - throw new UnsupportedOperationException("Not implemented: listDataStreamsPagedCallable()"); - } - - public UnaryCallable listDataStreamsCallable() { - throw new UnsupportedOperationException("Not implemented: listDataStreamsCallable()"); - } - - public UnaryCallable getDataStreamCallable() { - throw new UnsupportedOperationException("Not implemented: getDataStreamCallable()"); - } - - public UnaryCallable getAudienceCallable() { - throw new UnsupportedOperationException("Not implemented: getAudienceCallable()"); - } - - public UnaryCallable - listAudiencesPagedCallable() { - throw new UnsupportedOperationException("Not implemented: listAudiencesPagedCallable()"); - } - - public UnaryCallable listAudiencesCallable() { - throw new UnsupportedOperationException("Not implemented: listAudiencesCallable()"); - } - - public UnaryCallable createAudienceCallable() { - throw new UnsupportedOperationException("Not implemented: createAudienceCallable()"); - } - - public UnaryCallable updateAudienceCallable() { - throw new UnsupportedOperationException("Not implemented: updateAudienceCallable()"); - } - - public UnaryCallable archiveAudienceCallable() { - throw new UnsupportedOperationException("Not implemented: archiveAudienceCallable()"); - } - - public UnaryCallable - getAttributionSettingsCallable() { - throw new UnsupportedOperationException("Not implemented: getAttributionSettingsCallable()"); - } - - public UnaryCallable - updateAttributionSettingsCallable() { - throw new UnsupportedOperationException("Not implemented: updateAttributionSettingsCallable()"); - } - - public UnaryCallable runAccessReportCallable() { - throw new UnsupportedOperationException("Not implemented: runAccessReportCallable()"); - } - - @Override - public abstract void close(); -} diff --git a/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStubSettings.java b/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStubSettings.java deleted file mode 100644 index 27c9d02c..00000000 --- a/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStubSettings.java +++ /dev/null @@ -1,3716 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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.AuditUserLinksPagedResponse; -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.ListAudiencesPagedResponse; -import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListConversionEventsPagedResponse; -import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListCustomDimensionsPagedResponse; -import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListCustomMetricsPagedResponse; -import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListDataStreamsPagedResponse; -import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListDisplayVideo360AdvertiserLinkProposalsPagedResponse; -import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListDisplayVideo360AdvertiserLinksPagedResponse; -import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListFirebaseLinksPagedResponse; -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.ListUserLinksPagedResponse; -import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.SearchChangeHistoryEventsPagedResponse; - -import com.google.analytics.admin.v1alpha.Account; -import com.google.analytics.admin.v1alpha.AccountSummary; -import com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest; -import com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse; -import com.google.analytics.admin.v1alpha.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.AuditUserLink; -import com.google.analytics.admin.v1alpha.AuditUserLinksRequest; -import com.google.analytics.admin.v1alpha.AuditUserLinksResponse; -import com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest; -import com.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse; -import com.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest; -import com.google.analytics.admin.v1alpha.BatchGetUserLinksRequest; -import com.google.analytics.admin.v1alpha.BatchGetUserLinksResponse; -import com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest; -import com.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse; -import com.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest; -import com.google.analytics.admin.v1alpha.ChangeHistoryEvent; -import com.google.analytics.admin.v1alpha.ConversionEvent; -import com.google.analytics.admin.v1alpha.CreateAudienceRequest; -import com.google.analytics.admin.v1alpha.CreateConversionEventRequest; -import com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest; -import com.google.analytics.admin.v1alpha.CreateCustomMetricRequest; -import com.google.analytics.admin.v1alpha.CreateDataStreamRequest; -import com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest; -import com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest; -import com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest; -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.CreateUserLinkRequest; -import com.google.analytics.admin.v1alpha.CustomDimension; -import com.google.analytics.admin.v1alpha.CustomMetric; -import com.google.analytics.admin.v1alpha.DataRetentionSettings; -import com.google.analytics.admin.v1alpha.DataSharingSettings; -import com.google.analytics.admin.v1alpha.DataStream; -import com.google.analytics.admin.v1alpha.DeleteAccountRequest; -import com.google.analytics.admin.v1alpha.DeleteConversionEventRequest; -import com.google.analytics.admin.v1alpha.DeleteDataStreamRequest; -import com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest; -import com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest; -import com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest; -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.DeleteUserLinkRequest; -import com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink; -import com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal; -import com.google.analytics.admin.v1alpha.FirebaseLink; -import com.google.analytics.admin.v1alpha.GetAccountRequest; -import com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest; -import com.google.analytics.admin.v1alpha.GetAudienceRequest; -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.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.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.GetUserLinkRequest; -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.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.ListAudiencesRequest; -import com.google.analytics.admin.v1alpha.ListAudiencesResponse; -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.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.ListUserLinksRequest; -import com.google.analytics.admin.v1alpha.ListUserLinksResponse; -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.RunAccessReportRequest; -import com.google.analytics.admin.v1alpha.RunAccessReportResponse; -import com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest; -import com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse; -import com.google.analytics.admin.v1alpha.UpdateAccountRequest; -import com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest; -import com.google.analytics.admin.v1alpha.UpdateAudienceRequest; -import com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest; -import com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest; -import com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest; -import com.google.analytics.admin.v1alpha.UpdateDataStreamRequest; -import com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest; -import com.google.analytics.admin.v1alpha.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.UpdateUserLinkRequest; -import com.google.analytics.admin.v1alpha.UserLink; -import com.google.api.core.ApiFunction; -import com.google.api.core.ApiFuture; -import com.google.api.core.BetaApi; -import com.google.api.gax.core.GaxProperties; -import com.google.api.gax.core.GoogleCredentialsProvider; -import com.google.api.gax.core.InstantiatingExecutorProvider; -import com.google.api.gax.grpc.GaxGrpcProperties; -import com.google.api.gax.grpc.GrpcTransportChannel; -import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; -import com.google.api.gax.httpjson.GaxHttpJsonProperties; -import com.google.api.gax.httpjson.HttpJsonTransportChannel; -import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; -import com.google.api.gax.retrying.RetrySettings; -import com.google.api.gax.rpc.ApiCallContext; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.PageContext; -import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.PagedListDescriptor; -import com.google.api.gax.rpc.PagedListResponseFactory; -import com.google.api.gax.rpc.StatusCode; -import com.google.api.gax.rpc.StubSettings; -import com.google.api.gax.rpc.TransportChannelProvider; -import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.common.collect.ImmutableList; -import com.google.common.collect.ImmutableMap; -import com.google.common.collect.ImmutableSet; -import com.google.common.collect.Lists; -import com.google.protobuf.Empty; -import java.io.IOException; -import java.util.List; -import javax.annotation.Generated; -import org.threeten.bp.Duration; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Settings class to configure an instance of {@link AnalyticsAdminServiceStub}. - * - *

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
- * AnalyticsAdminServiceStubSettings.Builder analyticsAdminServiceSettingsBuilder =
- *     AnalyticsAdminServiceStubSettings.newBuilder();
- * analyticsAdminServiceSettingsBuilder
- *     .getAccountSettings()
- *     .setRetrySettings(
- *         analyticsAdminServiceSettingsBuilder.getAccountSettings().getRetrySettings().toBuilder()
- *             .setTotalTimeout(Duration.ofSeconds(30))
- *             .build());
- * AnalyticsAdminServiceStubSettings analyticsAdminServiceSettings =
- *     analyticsAdminServiceSettingsBuilder.build();
- * }
- */ -@BetaApi -@Generated("by gapic-generator-java") -public class AnalyticsAdminServiceStubSettings - extends StubSettings { - /** The default scopes of the service. */ - private static final ImmutableList DEFAULT_SERVICE_SCOPES = - ImmutableList.builder() - .add("https://www.googleapis.com/auth/analytics.edit") - .add("https://www.googleapis.com/auth/analytics.manage.users") - .add("https://www.googleapis.com/auth/analytics.manage.users.readonly") - .add("https://www.googleapis.com/auth/analytics.readonly") - .build(); - - private final UnaryCallSettings getAccountSettings; - private final PagedCallSettings< - ListAccountsRequest, ListAccountsResponse, ListAccountsPagedResponse> - listAccountsSettings; - private final UnaryCallSettings deleteAccountSettings; - private final UnaryCallSettings updateAccountSettings; - private final UnaryCallSettings - provisionAccountTicketSettings; - private final PagedCallSettings< - ListAccountSummariesRequest, - ListAccountSummariesResponse, - ListAccountSummariesPagedResponse> - listAccountSummariesSettings; - private final UnaryCallSettings getPropertySettings; - private final PagedCallSettings< - ListPropertiesRequest, ListPropertiesResponse, ListPropertiesPagedResponse> - listPropertiesSettings; - private final UnaryCallSettings createPropertySettings; - private final UnaryCallSettings deletePropertySettings; - private final UnaryCallSettings updatePropertySettings; - private final UnaryCallSettings getUserLinkSettings; - private final UnaryCallSettings - batchGetUserLinksSettings; - private final PagedCallSettings< - ListUserLinksRequest, ListUserLinksResponse, ListUserLinksPagedResponse> - listUserLinksSettings; - private final PagedCallSettings< - AuditUserLinksRequest, AuditUserLinksResponse, AuditUserLinksPagedResponse> - auditUserLinksSettings; - private final UnaryCallSettings createUserLinkSettings; - private final UnaryCallSettings - batchCreateUserLinksSettings; - private final UnaryCallSettings updateUserLinkSettings; - private final UnaryCallSettings - batchUpdateUserLinksSettings; - private final UnaryCallSettings deleteUserLinkSettings; - private final UnaryCallSettings batchDeleteUserLinksSettings; - private final UnaryCallSettings - createFirebaseLinkSettings; - private final UnaryCallSettings deleteFirebaseLinkSettings; - private final PagedCallSettings< - ListFirebaseLinksRequest, ListFirebaseLinksResponse, ListFirebaseLinksPagedResponse> - listFirebaseLinksSettings; - private final UnaryCallSettings getGlobalSiteTagSettings; - private final UnaryCallSettings - createGoogleAdsLinkSettings; - private final UnaryCallSettings - updateGoogleAdsLinkSettings; - private final UnaryCallSettings deleteGoogleAdsLinkSettings; - private final PagedCallSettings< - ListGoogleAdsLinksRequest, ListGoogleAdsLinksResponse, ListGoogleAdsLinksPagedResponse> - listGoogleAdsLinksSettings; - private final UnaryCallSettings - getDataSharingSettingsSettings; - private final UnaryCallSettings - getMeasurementProtocolSecretSettings; - private final PagedCallSettings< - ListMeasurementProtocolSecretsRequest, - ListMeasurementProtocolSecretsResponse, - ListMeasurementProtocolSecretsPagedResponse> - listMeasurementProtocolSecretsSettings; - private final UnaryCallSettings - createMeasurementProtocolSecretSettings; - private final UnaryCallSettings - deleteMeasurementProtocolSecretSettings; - private final UnaryCallSettings - updateMeasurementProtocolSecretSettings; - private final UnaryCallSettings< - AcknowledgeUserDataCollectionRequest, AcknowledgeUserDataCollectionResponse> - acknowledgeUserDataCollectionSettings; - private final PagedCallSettings< - SearchChangeHistoryEventsRequest, - SearchChangeHistoryEventsResponse, - SearchChangeHistoryEventsPagedResponse> - searchChangeHistoryEventsSettings; - private final UnaryCallSettings - getGoogleSignalsSettingsSettings; - private final UnaryCallSettings - updateGoogleSignalsSettingsSettings; - private final UnaryCallSettings - createConversionEventSettings; - private final UnaryCallSettings - getConversionEventSettings; - private final UnaryCallSettings - deleteConversionEventSettings; - private final PagedCallSettings< - ListConversionEventsRequest, - ListConversionEventsResponse, - ListConversionEventsPagedResponse> - listConversionEventsSettings; - private final UnaryCallSettings< - GetDisplayVideo360AdvertiserLinkRequest, DisplayVideo360AdvertiserLink> - getDisplayVideo360AdvertiserLinkSettings; - private final PagedCallSettings< - ListDisplayVideo360AdvertiserLinksRequest, - ListDisplayVideo360AdvertiserLinksResponse, - ListDisplayVideo360AdvertiserLinksPagedResponse> - listDisplayVideo360AdvertiserLinksSettings; - private final UnaryCallSettings< - CreateDisplayVideo360AdvertiserLinkRequest, DisplayVideo360AdvertiserLink> - createDisplayVideo360AdvertiserLinkSettings; - private final UnaryCallSettings - deleteDisplayVideo360AdvertiserLinkSettings; - private final UnaryCallSettings< - UpdateDisplayVideo360AdvertiserLinkRequest, DisplayVideo360AdvertiserLink> - updateDisplayVideo360AdvertiserLinkSettings; - private final UnaryCallSettings< - GetDisplayVideo360AdvertiserLinkProposalRequest, DisplayVideo360AdvertiserLinkProposal> - getDisplayVideo360AdvertiserLinkProposalSettings; - private final PagedCallSettings< - ListDisplayVideo360AdvertiserLinkProposalsRequest, - ListDisplayVideo360AdvertiserLinkProposalsResponse, - ListDisplayVideo360AdvertiserLinkProposalsPagedResponse> - listDisplayVideo360AdvertiserLinkProposalsSettings; - private final UnaryCallSettings< - CreateDisplayVideo360AdvertiserLinkProposalRequest, DisplayVideo360AdvertiserLinkProposal> - createDisplayVideo360AdvertiserLinkProposalSettings; - private final UnaryCallSettings - deleteDisplayVideo360AdvertiserLinkProposalSettings; - private final UnaryCallSettings< - ApproveDisplayVideo360AdvertiserLinkProposalRequest, - ApproveDisplayVideo360AdvertiserLinkProposalResponse> - approveDisplayVideo360AdvertiserLinkProposalSettings; - private final UnaryCallSettings< - CancelDisplayVideo360AdvertiserLinkProposalRequest, DisplayVideo360AdvertiserLinkProposal> - cancelDisplayVideo360AdvertiserLinkProposalSettings; - private final UnaryCallSettings - createCustomDimensionSettings; - private final UnaryCallSettings - updateCustomDimensionSettings; - private final PagedCallSettings< - ListCustomDimensionsRequest, - ListCustomDimensionsResponse, - ListCustomDimensionsPagedResponse> - listCustomDimensionsSettings; - private final UnaryCallSettings - archiveCustomDimensionSettings; - private final UnaryCallSettings - getCustomDimensionSettings; - private final UnaryCallSettings - createCustomMetricSettings; - private final UnaryCallSettings - updateCustomMetricSettings; - private final PagedCallSettings< - ListCustomMetricsRequest, ListCustomMetricsResponse, ListCustomMetricsPagedResponse> - listCustomMetricsSettings; - private final UnaryCallSettings archiveCustomMetricSettings; - private final UnaryCallSettings getCustomMetricSettings; - private final UnaryCallSettings - getDataRetentionSettingsSettings; - private final UnaryCallSettings - updateDataRetentionSettingsSettings; - private final UnaryCallSettings createDataStreamSettings; - private final UnaryCallSettings deleteDataStreamSettings; - private final UnaryCallSettings updateDataStreamSettings; - private final PagedCallSettings< - ListDataStreamsRequest, ListDataStreamsResponse, ListDataStreamsPagedResponse> - listDataStreamsSettings; - private final UnaryCallSettings getDataStreamSettings; - private final UnaryCallSettings getAudienceSettings; - private final PagedCallSettings< - ListAudiencesRequest, ListAudiencesResponse, ListAudiencesPagedResponse> - listAudiencesSettings; - private final UnaryCallSettings createAudienceSettings; - private final UnaryCallSettings updateAudienceSettings; - private final UnaryCallSettings archiveAudienceSettings; - private final UnaryCallSettings - getAttributionSettingsSettings; - private final UnaryCallSettings - updateAttributionSettingsSettings; - private final UnaryCallSettings - runAccessReportSettings; - - private static final PagedListDescriptor - LIST_ACCOUNTS_PAGE_STR_DESC = - new PagedListDescriptor() { - @Override - public String emptyToken() { - return ""; - } - - @Override - public ListAccountsRequest injectToken(ListAccountsRequest payload, String token) { - return ListAccountsRequest.newBuilder(payload).setPageToken(token).build(); - } - - @Override - public ListAccountsRequest injectPageSize(ListAccountsRequest payload, int pageSize) { - return ListAccountsRequest.newBuilder(payload).setPageSize(pageSize).build(); - } - - @Override - public Integer extractPageSize(ListAccountsRequest payload) { - return payload.getPageSize(); - } - - @Override - public String extractNextToken(ListAccountsResponse payload) { - return payload.getNextPageToken(); - } - - @Override - public Iterable extractResources(ListAccountsResponse payload) { - return payload.getAccountsList() == null - ? ImmutableList.of() - : payload.getAccountsList(); - } - }; - - private static final PagedListDescriptor< - ListAccountSummariesRequest, ListAccountSummariesResponse, AccountSummary> - LIST_ACCOUNT_SUMMARIES_PAGE_STR_DESC = - new PagedListDescriptor< - ListAccountSummariesRequest, ListAccountSummariesResponse, AccountSummary>() { - @Override - public String emptyToken() { - return ""; - } - - @Override - public ListAccountSummariesRequest injectToken( - ListAccountSummariesRequest payload, String token) { - return ListAccountSummariesRequest.newBuilder(payload).setPageToken(token).build(); - } - - @Override - public ListAccountSummariesRequest injectPageSize( - ListAccountSummariesRequest payload, int pageSize) { - return ListAccountSummariesRequest.newBuilder(payload).setPageSize(pageSize).build(); - } - - @Override - public Integer extractPageSize(ListAccountSummariesRequest payload) { - return payload.getPageSize(); - } - - @Override - public String extractNextToken(ListAccountSummariesResponse payload) { - return payload.getNextPageToken(); - } - - @Override - public Iterable extractResources(ListAccountSummariesResponse payload) { - return payload.getAccountSummariesList() == null - ? ImmutableList.of() - : payload.getAccountSummariesList(); - } - }; - - private static final PagedListDescriptor - LIST_PROPERTIES_PAGE_STR_DESC = - new PagedListDescriptor() { - @Override - public String emptyToken() { - return ""; - } - - @Override - public ListPropertiesRequest injectToken(ListPropertiesRequest payload, String token) { - return ListPropertiesRequest.newBuilder(payload).setPageToken(token).build(); - } - - @Override - public ListPropertiesRequest injectPageSize( - ListPropertiesRequest payload, int pageSize) { - return ListPropertiesRequest.newBuilder(payload).setPageSize(pageSize).build(); - } - - @Override - public Integer extractPageSize(ListPropertiesRequest payload) { - return payload.getPageSize(); - } - - @Override - public String extractNextToken(ListPropertiesResponse payload) { - return payload.getNextPageToken(); - } - - @Override - public Iterable extractResources(ListPropertiesResponse payload) { - return payload.getPropertiesList() == null - ? ImmutableList.of() - : payload.getPropertiesList(); - } - }; - - private static final PagedListDescriptor - LIST_USER_LINKS_PAGE_STR_DESC = - new PagedListDescriptor() { - @Override - public String emptyToken() { - return ""; - } - - @Override - public ListUserLinksRequest injectToken(ListUserLinksRequest payload, String token) { - return ListUserLinksRequest.newBuilder(payload).setPageToken(token).build(); - } - - @Override - public ListUserLinksRequest injectPageSize(ListUserLinksRequest payload, int pageSize) { - return ListUserLinksRequest.newBuilder(payload).setPageSize(pageSize).build(); - } - - @Override - public Integer extractPageSize(ListUserLinksRequest payload) { - return payload.getPageSize(); - } - - @Override - public String extractNextToken(ListUserLinksResponse payload) { - return payload.getNextPageToken(); - } - - @Override - public Iterable extractResources(ListUserLinksResponse payload) { - return payload.getUserLinksList() == null - ? ImmutableList.of() - : payload.getUserLinksList(); - } - }; - - private static final PagedListDescriptor< - AuditUserLinksRequest, AuditUserLinksResponse, AuditUserLink> - AUDIT_USER_LINKS_PAGE_STR_DESC = - new PagedListDescriptor() { - @Override - public String emptyToken() { - return ""; - } - - @Override - public AuditUserLinksRequest injectToken(AuditUserLinksRequest payload, String token) { - return AuditUserLinksRequest.newBuilder(payload).setPageToken(token).build(); - } - - @Override - public AuditUserLinksRequest injectPageSize( - AuditUserLinksRequest payload, int pageSize) { - return AuditUserLinksRequest.newBuilder(payload).setPageSize(pageSize).build(); - } - - @Override - public Integer extractPageSize(AuditUserLinksRequest payload) { - return payload.getPageSize(); - } - - @Override - public String extractNextToken(AuditUserLinksResponse payload) { - return payload.getNextPageToken(); - } - - @Override - public Iterable extractResources(AuditUserLinksResponse payload) { - return payload.getUserLinksList() == null - ? ImmutableList.of() - : payload.getUserLinksList(); - } - }; - - private static final PagedListDescriptor< - ListFirebaseLinksRequest, ListFirebaseLinksResponse, FirebaseLink> - LIST_FIREBASE_LINKS_PAGE_STR_DESC = - new PagedListDescriptor< - ListFirebaseLinksRequest, ListFirebaseLinksResponse, FirebaseLink>() { - @Override - public String emptyToken() { - return ""; - } - - @Override - public ListFirebaseLinksRequest injectToken( - ListFirebaseLinksRequest payload, String token) { - return ListFirebaseLinksRequest.newBuilder(payload).setPageToken(token).build(); - } - - @Override - public ListFirebaseLinksRequest injectPageSize( - ListFirebaseLinksRequest payload, int pageSize) { - return ListFirebaseLinksRequest.newBuilder(payload).setPageSize(pageSize).build(); - } - - @Override - public Integer extractPageSize(ListFirebaseLinksRequest payload) { - return payload.getPageSize(); - } - - @Override - public String extractNextToken(ListFirebaseLinksResponse payload) { - return payload.getNextPageToken(); - } - - @Override - public Iterable extractResources(ListFirebaseLinksResponse payload) { - return payload.getFirebaseLinksList() == null - ? ImmutableList.of() - : payload.getFirebaseLinksList(); - } - }; - - private static final PagedListDescriptor< - ListGoogleAdsLinksRequest, ListGoogleAdsLinksResponse, GoogleAdsLink> - LIST_GOOGLE_ADS_LINKS_PAGE_STR_DESC = - new PagedListDescriptor< - ListGoogleAdsLinksRequest, ListGoogleAdsLinksResponse, GoogleAdsLink>() { - @Override - public String emptyToken() { - return ""; - } - - @Override - public ListGoogleAdsLinksRequest injectToken( - ListGoogleAdsLinksRequest payload, String token) { - return ListGoogleAdsLinksRequest.newBuilder(payload).setPageToken(token).build(); - } - - @Override - public ListGoogleAdsLinksRequest injectPageSize( - ListGoogleAdsLinksRequest payload, int pageSize) { - return ListGoogleAdsLinksRequest.newBuilder(payload).setPageSize(pageSize).build(); - } - - @Override - public Integer extractPageSize(ListGoogleAdsLinksRequest payload) { - return payload.getPageSize(); - } - - @Override - public String extractNextToken(ListGoogleAdsLinksResponse payload) { - return payload.getNextPageToken(); - } - - @Override - public Iterable extractResources(ListGoogleAdsLinksResponse payload) { - return payload.getGoogleAdsLinksList() == null - ? ImmutableList.of() - : payload.getGoogleAdsLinksList(); - } - }; - - private static final PagedListDescriptor< - ListMeasurementProtocolSecretsRequest, - ListMeasurementProtocolSecretsResponse, - MeasurementProtocolSecret> - LIST_MEASUREMENT_PROTOCOL_SECRETS_PAGE_STR_DESC = - new PagedListDescriptor< - ListMeasurementProtocolSecretsRequest, - ListMeasurementProtocolSecretsResponse, - MeasurementProtocolSecret>() { - @Override - public String emptyToken() { - return ""; - } - - @Override - public ListMeasurementProtocolSecretsRequest injectToken( - ListMeasurementProtocolSecretsRequest payload, String token) { - return ListMeasurementProtocolSecretsRequest.newBuilder(payload) - .setPageToken(token) - .build(); - } - - @Override - public ListMeasurementProtocolSecretsRequest injectPageSize( - ListMeasurementProtocolSecretsRequest payload, int pageSize) { - return ListMeasurementProtocolSecretsRequest.newBuilder(payload) - .setPageSize(pageSize) - .build(); - } - - @Override - public Integer extractPageSize(ListMeasurementProtocolSecretsRequest payload) { - return payload.getPageSize(); - } - - @Override - public String extractNextToken(ListMeasurementProtocolSecretsResponse payload) { - return payload.getNextPageToken(); - } - - @Override - public Iterable extractResources( - ListMeasurementProtocolSecretsResponse payload) { - return payload.getMeasurementProtocolSecretsList() == null - ? ImmutableList.of() - : payload.getMeasurementProtocolSecretsList(); - } - }; - - private static final PagedListDescriptor< - SearchChangeHistoryEventsRequest, SearchChangeHistoryEventsResponse, ChangeHistoryEvent> - SEARCH_CHANGE_HISTORY_EVENTS_PAGE_STR_DESC = - new PagedListDescriptor< - SearchChangeHistoryEventsRequest, - SearchChangeHistoryEventsResponse, - ChangeHistoryEvent>() { - @Override - public String emptyToken() { - return ""; - } - - @Override - public SearchChangeHistoryEventsRequest injectToken( - SearchChangeHistoryEventsRequest payload, String token) { - return SearchChangeHistoryEventsRequest.newBuilder(payload) - .setPageToken(token) - .build(); - } - - @Override - public SearchChangeHistoryEventsRequest injectPageSize( - SearchChangeHistoryEventsRequest payload, int pageSize) { - return SearchChangeHistoryEventsRequest.newBuilder(payload) - .setPageSize(pageSize) - .build(); - } - - @Override - public Integer extractPageSize(SearchChangeHistoryEventsRequest payload) { - return payload.getPageSize(); - } - - @Override - public String extractNextToken(SearchChangeHistoryEventsResponse payload) { - return payload.getNextPageToken(); - } - - @Override - public Iterable extractResources( - SearchChangeHistoryEventsResponse payload) { - return payload.getChangeHistoryEventsList() == null - ? ImmutableList.of() - : payload.getChangeHistoryEventsList(); - } - }; - - private static final PagedListDescriptor< - ListConversionEventsRequest, ListConversionEventsResponse, ConversionEvent> - LIST_CONVERSION_EVENTS_PAGE_STR_DESC = - new PagedListDescriptor< - ListConversionEventsRequest, ListConversionEventsResponse, ConversionEvent>() { - @Override - public String emptyToken() { - return ""; - } - - @Override - public ListConversionEventsRequest injectToken( - ListConversionEventsRequest payload, String token) { - return ListConversionEventsRequest.newBuilder(payload).setPageToken(token).build(); - } - - @Override - public ListConversionEventsRequest injectPageSize( - ListConversionEventsRequest payload, int pageSize) { - return ListConversionEventsRequest.newBuilder(payload).setPageSize(pageSize).build(); - } - - @Override - public Integer extractPageSize(ListConversionEventsRequest payload) { - return payload.getPageSize(); - } - - @Override - public String extractNextToken(ListConversionEventsResponse payload) { - return payload.getNextPageToken(); - } - - @Override - public Iterable extractResources( - ListConversionEventsResponse payload) { - return payload.getConversionEventsList() == null - ? ImmutableList.of() - : payload.getConversionEventsList(); - } - }; - - private static final PagedListDescriptor< - ListDisplayVideo360AdvertiserLinksRequest, - ListDisplayVideo360AdvertiserLinksResponse, - DisplayVideo360AdvertiserLink> - LIST_DISPLAY_VIDEO360_ADVERTISER_LINKS_PAGE_STR_DESC = - new PagedListDescriptor< - ListDisplayVideo360AdvertiserLinksRequest, - ListDisplayVideo360AdvertiserLinksResponse, - DisplayVideo360AdvertiserLink>() { - @Override - public String emptyToken() { - return ""; - } - - @Override - public ListDisplayVideo360AdvertiserLinksRequest injectToken( - ListDisplayVideo360AdvertiserLinksRequest payload, String token) { - return ListDisplayVideo360AdvertiserLinksRequest.newBuilder(payload) - .setPageToken(token) - .build(); - } - - @Override - public ListDisplayVideo360AdvertiserLinksRequest injectPageSize( - ListDisplayVideo360AdvertiserLinksRequest payload, int pageSize) { - return ListDisplayVideo360AdvertiserLinksRequest.newBuilder(payload) - .setPageSize(pageSize) - .build(); - } - - @Override - public Integer extractPageSize(ListDisplayVideo360AdvertiserLinksRequest payload) { - return payload.getPageSize(); - } - - @Override - public String extractNextToken(ListDisplayVideo360AdvertiserLinksResponse payload) { - return payload.getNextPageToken(); - } - - @Override - public Iterable extractResources( - ListDisplayVideo360AdvertiserLinksResponse payload) { - return payload.getDisplayVideo360AdvertiserLinksList() == null - ? ImmutableList.of() - : payload.getDisplayVideo360AdvertiserLinksList(); - } - }; - - private static final PagedListDescriptor< - ListDisplayVideo360AdvertiserLinkProposalsRequest, - ListDisplayVideo360AdvertiserLinkProposalsResponse, - DisplayVideo360AdvertiserLinkProposal> - LIST_DISPLAY_VIDEO360_ADVERTISER_LINK_PROPOSALS_PAGE_STR_DESC = - new PagedListDescriptor< - ListDisplayVideo360AdvertiserLinkProposalsRequest, - ListDisplayVideo360AdvertiserLinkProposalsResponse, - DisplayVideo360AdvertiserLinkProposal>() { - @Override - public String emptyToken() { - return ""; - } - - @Override - public ListDisplayVideo360AdvertiserLinkProposalsRequest injectToken( - ListDisplayVideo360AdvertiserLinkProposalsRequest payload, String token) { - return ListDisplayVideo360AdvertiserLinkProposalsRequest.newBuilder(payload) - .setPageToken(token) - .build(); - } - - @Override - public ListDisplayVideo360AdvertiserLinkProposalsRequest injectPageSize( - ListDisplayVideo360AdvertiserLinkProposalsRequest payload, int pageSize) { - return ListDisplayVideo360AdvertiserLinkProposalsRequest.newBuilder(payload) - .setPageSize(pageSize) - .build(); - } - - @Override - public Integer extractPageSize( - ListDisplayVideo360AdvertiserLinkProposalsRequest payload) { - return payload.getPageSize(); - } - - @Override - public String extractNextToken( - ListDisplayVideo360AdvertiserLinkProposalsResponse payload) { - return payload.getNextPageToken(); - } - - @Override - public Iterable extractResources( - ListDisplayVideo360AdvertiserLinkProposalsResponse payload) { - return payload.getDisplayVideo360AdvertiserLinkProposalsList() == null - ? ImmutableList.of() - : payload.getDisplayVideo360AdvertiserLinkProposalsList(); - } - }; - - private static final PagedListDescriptor< - ListCustomDimensionsRequest, ListCustomDimensionsResponse, CustomDimension> - LIST_CUSTOM_DIMENSIONS_PAGE_STR_DESC = - new PagedListDescriptor< - ListCustomDimensionsRequest, ListCustomDimensionsResponse, CustomDimension>() { - @Override - public String emptyToken() { - return ""; - } - - @Override - public ListCustomDimensionsRequest injectToken( - ListCustomDimensionsRequest payload, String token) { - return ListCustomDimensionsRequest.newBuilder(payload).setPageToken(token).build(); - } - - @Override - public ListCustomDimensionsRequest injectPageSize( - ListCustomDimensionsRequest payload, int pageSize) { - return ListCustomDimensionsRequest.newBuilder(payload).setPageSize(pageSize).build(); - } - - @Override - public Integer extractPageSize(ListCustomDimensionsRequest payload) { - return payload.getPageSize(); - } - - @Override - public String extractNextToken(ListCustomDimensionsResponse payload) { - return payload.getNextPageToken(); - } - - @Override - public Iterable extractResources( - ListCustomDimensionsResponse payload) { - return payload.getCustomDimensionsList() == null - ? ImmutableList.of() - : payload.getCustomDimensionsList(); - } - }; - - private static final PagedListDescriptor< - ListCustomMetricsRequest, ListCustomMetricsResponse, CustomMetric> - LIST_CUSTOM_METRICS_PAGE_STR_DESC = - new PagedListDescriptor< - ListCustomMetricsRequest, ListCustomMetricsResponse, CustomMetric>() { - @Override - public String emptyToken() { - return ""; - } - - @Override - public ListCustomMetricsRequest injectToken( - ListCustomMetricsRequest payload, String token) { - return ListCustomMetricsRequest.newBuilder(payload).setPageToken(token).build(); - } - - @Override - public ListCustomMetricsRequest injectPageSize( - ListCustomMetricsRequest payload, int pageSize) { - return ListCustomMetricsRequest.newBuilder(payload).setPageSize(pageSize).build(); - } - - @Override - public Integer extractPageSize(ListCustomMetricsRequest payload) { - return payload.getPageSize(); - } - - @Override - public String extractNextToken(ListCustomMetricsResponse payload) { - return payload.getNextPageToken(); - } - - @Override - public Iterable extractResources(ListCustomMetricsResponse payload) { - return payload.getCustomMetricsList() == null - ? ImmutableList.of() - : payload.getCustomMetricsList(); - } - }; - - private static final PagedListDescriptor< - ListDataStreamsRequest, ListDataStreamsResponse, DataStream> - LIST_DATA_STREAMS_PAGE_STR_DESC = - new PagedListDescriptor() { - @Override - public String emptyToken() { - return ""; - } - - @Override - public ListDataStreamsRequest injectToken( - ListDataStreamsRequest payload, String token) { - return ListDataStreamsRequest.newBuilder(payload).setPageToken(token).build(); - } - - @Override - public ListDataStreamsRequest injectPageSize( - ListDataStreamsRequest payload, int pageSize) { - return ListDataStreamsRequest.newBuilder(payload).setPageSize(pageSize).build(); - } - - @Override - public Integer extractPageSize(ListDataStreamsRequest payload) { - return payload.getPageSize(); - } - - @Override - public String extractNextToken(ListDataStreamsResponse payload) { - return payload.getNextPageToken(); - } - - @Override - public Iterable extractResources(ListDataStreamsResponse payload) { - return payload.getDataStreamsList() == null - ? ImmutableList.of() - : payload.getDataStreamsList(); - } - }; - - private static final PagedListDescriptor - LIST_AUDIENCES_PAGE_STR_DESC = - new PagedListDescriptor() { - @Override - public String emptyToken() { - return ""; - } - - @Override - public ListAudiencesRequest injectToken(ListAudiencesRequest payload, String token) { - return ListAudiencesRequest.newBuilder(payload).setPageToken(token).build(); - } - - @Override - public ListAudiencesRequest injectPageSize(ListAudiencesRequest payload, int pageSize) { - return ListAudiencesRequest.newBuilder(payload).setPageSize(pageSize).build(); - } - - @Override - public Integer extractPageSize(ListAudiencesRequest payload) { - return payload.getPageSize(); - } - - @Override - public String extractNextToken(ListAudiencesResponse payload) { - return payload.getNextPageToken(); - } - - @Override - public Iterable extractResources(ListAudiencesResponse payload) { - return payload.getAudiencesList() == null - ? ImmutableList.of() - : payload.getAudiencesList(); - } - }; - - private static final PagedListResponseFactory< - ListAccountsRequest, ListAccountsResponse, ListAccountsPagedResponse> - LIST_ACCOUNTS_PAGE_STR_FACT = - new PagedListResponseFactory< - ListAccountsRequest, ListAccountsResponse, ListAccountsPagedResponse>() { - @Override - public ApiFuture getFuturePagedResponse( - UnaryCallable callable, - ListAccountsRequest request, - ApiCallContext context, - ApiFuture futureResponse) { - PageContext pageContext = - PageContext.create(callable, LIST_ACCOUNTS_PAGE_STR_DESC, request, context); - return ListAccountsPagedResponse.createAsync(pageContext, futureResponse); - } - }; - - private static final PagedListResponseFactory< - ListAccountSummariesRequest, - ListAccountSummariesResponse, - ListAccountSummariesPagedResponse> - LIST_ACCOUNT_SUMMARIES_PAGE_STR_FACT = - new PagedListResponseFactory< - ListAccountSummariesRequest, - ListAccountSummariesResponse, - ListAccountSummariesPagedResponse>() { - @Override - public ApiFuture getFuturePagedResponse( - UnaryCallable callable, - ListAccountSummariesRequest request, - ApiCallContext context, - ApiFuture futureResponse) { - PageContext - pageContext = - PageContext.create( - callable, LIST_ACCOUNT_SUMMARIES_PAGE_STR_DESC, request, context); - return ListAccountSummariesPagedResponse.createAsync(pageContext, futureResponse); - } - }; - - private static final PagedListResponseFactory< - ListPropertiesRequest, ListPropertiesResponse, ListPropertiesPagedResponse> - LIST_PROPERTIES_PAGE_STR_FACT = - new PagedListResponseFactory< - ListPropertiesRequest, ListPropertiesResponse, ListPropertiesPagedResponse>() { - @Override - public ApiFuture getFuturePagedResponse( - UnaryCallable callable, - ListPropertiesRequest request, - ApiCallContext context, - ApiFuture futureResponse) { - PageContext pageContext = - PageContext.create(callable, LIST_PROPERTIES_PAGE_STR_DESC, request, context); - return ListPropertiesPagedResponse.createAsync(pageContext, futureResponse); - } - }; - - private static final PagedListResponseFactory< - ListUserLinksRequest, ListUserLinksResponse, ListUserLinksPagedResponse> - LIST_USER_LINKS_PAGE_STR_FACT = - new PagedListResponseFactory< - ListUserLinksRequest, ListUserLinksResponse, ListUserLinksPagedResponse>() { - @Override - public ApiFuture getFuturePagedResponse( - UnaryCallable callable, - ListUserLinksRequest request, - ApiCallContext context, - ApiFuture futureResponse) { - PageContext pageContext = - PageContext.create(callable, LIST_USER_LINKS_PAGE_STR_DESC, request, context); - return ListUserLinksPagedResponse.createAsync(pageContext, futureResponse); - } - }; - - private static final PagedListResponseFactory< - AuditUserLinksRequest, AuditUserLinksResponse, AuditUserLinksPagedResponse> - AUDIT_USER_LINKS_PAGE_STR_FACT = - new PagedListResponseFactory< - AuditUserLinksRequest, AuditUserLinksResponse, AuditUserLinksPagedResponse>() { - @Override - public ApiFuture getFuturePagedResponse( - UnaryCallable callable, - AuditUserLinksRequest request, - ApiCallContext context, - ApiFuture futureResponse) { - PageContext - pageContext = - PageContext.create( - callable, AUDIT_USER_LINKS_PAGE_STR_DESC, request, context); - return AuditUserLinksPagedResponse.createAsync(pageContext, futureResponse); - } - }; - - private static final PagedListResponseFactory< - ListFirebaseLinksRequest, ListFirebaseLinksResponse, ListFirebaseLinksPagedResponse> - LIST_FIREBASE_LINKS_PAGE_STR_FACT = - new PagedListResponseFactory< - ListFirebaseLinksRequest, - ListFirebaseLinksResponse, - ListFirebaseLinksPagedResponse>() { - @Override - public ApiFuture getFuturePagedResponse( - UnaryCallable callable, - ListFirebaseLinksRequest request, - ApiCallContext context, - ApiFuture futureResponse) { - PageContext - pageContext = - PageContext.create( - callable, LIST_FIREBASE_LINKS_PAGE_STR_DESC, request, context); - return ListFirebaseLinksPagedResponse.createAsync(pageContext, futureResponse); - } - }; - - private static final PagedListResponseFactory< - ListGoogleAdsLinksRequest, ListGoogleAdsLinksResponse, ListGoogleAdsLinksPagedResponse> - LIST_GOOGLE_ADS_LINKS_PAGE_STR_FACT = - new PagedListResponseFactory< - ListGoogleAdsLinksRequest, - ListGoogleAdsLinksResponse, - ListGoogleAdsLinksPagedResponse>() { - @Override - public ApiFuture getFuturePagedResponse( - UnaryCallable callable, - ListGoogleAdsLinksRequest request, - ApiCallContext context, - ApiFuture futureResponse) { - PageContext - pageContext = - PageContext.create( - callable, LIST_GOOGLE_ADS_LINKS_PAGE_STR_DESC, request, context); - return ListGoogleAdsLinksPagedResponse.createAsync(pageContext, futureResponse); - } - }; - - private static final PagedListResponseFactory< - ListMeasurementProtocolSecretsRequest, - ListMeasurementProtocolSecretsResponse, - ListMeasurementProtocolSecretsPagedResponse> - LIST_MEASUREMENT_PROTOCOL_SECRETS_PAGE_STR_FACT = - new PagedListResponseFactory< - ListMeasurementProtocolSecretsRequest, - ListMeasurementProtocolSecretsResponse, - ListMeasurementProtocolSecretsPagedResponse>() { - @Override - public ApiFuture getFuturePagedResponse( - UnaryCallable< - ListMeasurementProtocolSecretsRequest, - ListMeasurementProtocolSecretsResponse> - callable, - ListMeasurementProtocolSecretsRequest request, - ApiCallContext context, - ApiFuture futureResponse) { - PageContext< - ListMeasurementProtocolSecretsRequest, - ListMeasurementProtocolSecretsResponse, - MeasurementProtocolSecret> - pageContext = - PageContext.create( - callable, - LIST_MEASUREMENT_PROTOCOL_SECRETS_PAGE_STR_DESC, - request, - context); - return ListMeasurementProtocolSecretsPagedResponse.createAsync( - pageContext, futureResponse); - } - }; - - private static final PagedListResponseFactory< - SearchChangeHistoryEventsRequest, - SearchChangeHistoryEventsResponse, - SearchChangeHistoryEventsPagedResponse> - SEARCH_CHANGE_HISTORY_EVENTS_PAGE_STR_FACT = - new PagedListResponseFactory< - SearchChangeHistoryEventsRequest, - SearchChangeHistoryEventsResponse, - SearchChangeHistoryEventsPagedResponse>() { - @Override - public ApiFuture getFuturePagedResponse( - UnaryCallable - callable, - SearchChangeHistoryEventsRequest request, - ApiCallContext context, - ApiFuture futureResponse) { - PageContext< - SearchChangeHistoryEventsRequest, - SearchChangeHistoryEventsResponse, - ChangeHistoryEvent> - pageContext = - PageContext.create( - callable, SEARCH_CHANGE_HISTORY_EVENTS_PAGE_STR_DESC, request, context); - return SearchChangeHistoryEventsPagedResponse.createAsync( - pageContext, futureResponse); - } - }; - - private static final PagedListResponseFactory< - ListConversionEventsRequest, - ListConversionEventsResponse, - ListConversionEventsPagedResponse> - LIST_CONVERSION_EVENTS_PAGE_STR_FACT = - new PagedListResponseFactory< - ListConversionEventsRequest, - ListConversionEventsResponse, - ListConversionEventsPagedResponse>() { - @Override - public ApiFuture getFuturePagedResponse( - UnaryCallable callable, - ListConversionEventsRequest request, - ApiCallContext context, - ApiFuture futureResponse) { - PageContext< - ListConversionEventsRequest, ListConversionEventsResponse, ConversionEvent> - pageContext = - PageContext.create( - callable, LIST_CONVERSION_EVENTS_PAGE_STR_DESC, request, context); - return ListConversionEventsPagedResponse.createAsync(pageContext, futureResponse); - } - }; - - private static final PagedListResponseFactory< - ListDisplayVideo360AdvertiserLinksRequest, - ListDisplayVideo360AdvertiserLinksResponse, - ListDisplayVideo360AdvertiserLinksPagedResponse> - LIST_DISPLAY_VIDEO360_ADVERTISER_LINKS_PAGE_STR_FACT = - new PagedListResponseFactory< - ListDisplayVideo360AdvertiserLinksRequest, - ListDisplayVideo360AdvertiserLinksResponse, - ListDisplayVideo360AdvertiserLinksPagedResponse>() { - @Override - public ApiFuture - getFuturePagedResponse( - UnaryCallable< - ListDisplayVideo360AdvertiserLinksRequest, - ListDisplayVideo360AdvertiserLinksResponse> - callable, - ListDisplayVideo360AdvertiserLinksRequest request, - ApiCallContext context, - ApiFuture futureResponse) { - PageContext< - ListDisplayVideo360AdvertiserLinksRequest, - ListDisplayVideo360AdvertiserLinksResponse, - DisplayVideo360AdvertiserLink> - pageContext = - PageContext.create( - callable, - LIST_DISPLAY_VIDEO360_ADVERTISER_LINKS_PAGE_STR_DESC, - request, - context); - return ListDisplayVideo360AdvertiserLinksPagedResponse.createAsync( - pageContext, futureResponse); - } - }; - - private static final PagedListResponseFactory< - ListDisplayVideo360AdvertiserLinkProposalsRequest, - ListDisplayVideo360AdvertiserLinkProposalsResponse, - ListDisplayVideo360AdvertiserLinkProposalsPagedResponse> - LIST_DISPLAY_VIDEO360_ADVERTISER_LINK_PROPOSALS_PAGE_STR_FACT = - new PagedListResponseFactory< - ListDisplayVideo360AdvertiserLinkProposalsRequest, - ListDisplayVideo360AdvertiserLinkProposalsResponse, - ListDisplayVideo360AdvertiserLinkProposalsPagedResponse>() { - @Override - public ApiFuture - getFuturePagedResponse( - UnaryCallable< - ListDisplayVideo360AdvertiserLinkProposalsRequest, - ListDisplayVideo360AdvertiserLinkProposalsResponse> - callable, - ListDisplayVideo360AdvertiserLinkProposalsRequest request, - ApiCallContext context, - ApiFuture futureResponse) { - PageContext< - ListDisplayVideo360AdvertiserLinkProposalsRequest, - ListDisplayVideo360AdvertiserLinkProposalsResponse, - DisplayVideo360AdvertiserLinkProposal> - pageContext = - PageContext.create( - callable, - LIST_DISPLAY_VIDEO360_ADVERTISER_LINK_PROPOSALS_PAGE_STR_DESC, - request, - context); - return ListDisplayVideo360AdvertiserLinkProposalsPagedResponse.createAsync( - pageContext, futureResponse); - } - }; - - private static final PagedListResponseFactory< - ListCustomDimensionsRequest, - ListCustomDimensionsResponse, - ListCustomDimensionsPagedResponse> - LIST_CUSTOM_DIMENSIONS_PAGE_STR_FACT = - new PagedListResponseFactory< - ListCustomDimensionsRequest, - ListCustomDimensionsResponse, - ListCustomDimensionsPagedResponse>() { - @Override - public ApiFuture getFuturePagedResponse( - UnaryCallable callable, - ListCustomDimensionsRequest request, - ApiCallContext context, - ApiFuture futureResponse) { - PageContext< - ListCustomDimensionsRequest, ListCustomDimensionsResponse, CustomDimension> - pageContext = - PageContext.create( - callable, LIST_CUSTOM_DIMENSIONS_PAGE_STR_DESC, request, context); - return ListCustomDimensionsPagedResponse.createAsync(pageContext, futureResponse); - } - }; - - private static final PagedListResponseFactory< - ListCustomMetricsRequest, ListCustomMetricsResponse, ListCustomMetricsPagedResponse> - LIST_CUSTOM_METRICS_PAGE_STR_FACT = - new PagedListResponseFactory< - ListCustomMetricsRequest, - ListCustomMetricsResponse, - ListCustomMetricsPagedResponse>() { - @Override - public ApiFuture getFuturePagedResponse( - UnaryCallable callable, - ListCustomMetricsRequest request, - ApiCallContext context, - ApiFuture futureResponse) { - PageContext - pageContext = - PageContext.create( - callable, LIST_CUSTOM_METRICS_PAGE_STR_DESC, request, context); - return ListCustomMetricsPagedResponse.createAsync(pageContext, futureResponse); - } - }; - - private static final PagedListResponseFactory< - ListDataStreamsRequest, ListDataStreamsResponse, ListDataStreamsPagedResponse> - LIST_DATA_STREAMS_PAGE_STR_FACT = - new PagedListResponseFactory< - ListDataStreamsRequest, ListDataStreamsResponse, ListDataStreamsPagedResponse>() { - @Override - public ApiFuture getFuturePagedResponse( - UnaryCallable callable, - ListDataStreamsRequest request, - ApiCallContext context, - ApiFuture futureResponse) { - PageContext pageContext = - PageContext.create(callable, LIST_DATA_STREAMS_PAGE_STR_DESC, request, context); - return ListDataStreamsPagedResponse.createAsync(pageContext, futureResponse); - } - }; - - private static final PagedListResponseFactory< - ListAudiencesRequest, ListAudiencesResponse, ListAudiencesPagedResponse> - LIST_AUDIENCES_PAGE_STR_FACT = - new PagedListResponseFactory< - ListAudiencesRequest, ListAudiencesResponse, ListAudiencesPagedResponse>() { - @Override - public ApiFuture getFuturePagedResponse( - UnaryCallable callable, - ListAudiencesRequest request, - ApiCallContext context, - ApiFuture futureResponse) { - PageContext pageContext = - PageContext.create(callable, LIST_AUDIENCES_PAGE_STR_DESC, request, context); - return ListAudiencesPagedResponse.createAsync(pageContext, futureResponse); - } - }; - - /** Returns the object with the settings used for calls to getAccount. */ - public UnaryCallSettings getAccountSettings() { - return getAccountSettings; - } - - /** Returns the object with the settings used for calls to listAccounts. */ - public PagedCallSettings - listAccountsSettings() { - return listAccountsSettings; - } - - /** Returns the object with the settings used for calls to deleteAccount. */ - public UnaryCallSettings deleteAccountSettings() { - return deleteAccountSettings; - } - - /** Returns the object with the settings used for calls to updateAccount. */ - public UnaryCallSettings updateAccountSettings() { - return updateAccountSettings; - } - - /** Returns the object with the settings used for calls to provisionAccountTicket. */ - public UnaryCallSettings - provisionAccountTicketSettings() { - return provisionAccountTicketSettings; - } - - /** Returns the object with the settings used for calls to listAccountSummaries. */ - public PagedCallSettings< - ListAccountSummariesRequest, - ListAccountSummariesResponse, - ListAccountSummariesPagedResponse> - listAccountSummariesSettings() { - return listAccountSummariesSettings; - } - - /** Returns the object with the settings used for calls to getProperty. */ - public UnaryCallSettings getPropertySettings() { - return getPropertySettings; - } - - /** Returns the object with the settings used for calls to listProperties. */ - public PagedCallSettings< - ListPropertiesRequest, ListPropertiesResponse, ListPropertiesPagedResponse> - listPropertiesSettings() { - return listPropertiesSettings; - } - - /** Returns the object with the settings used for calls to createProperty. */ - public UnaryCallSettings createPropertySettings() { - return createPropertySettings; - } - - /** Returns the object with the settings used for calls to deleteProperty. */ - public UnaryCallSettings deletePropertySettings() { - return deletePropertySettings; - } - - /** Returns the object with the settings used for calls to updateProperty. */ - public UnaryCallSettings updatePropertySettings() { - return updatePropertySettings; - } - - /** Returns the object with the settings used for calls to getUserLink. */ - public UnaryCallSettings getUserLinkSettings() { - return getUserLinkSettings; - } - - /** Returns the object with the settings used for calls to batchGetUserLinks. */ - public UnaryCallSettings - batchGetUserLinksSettings() { - return batchGetUserLinksSettings; - } - - /** Returns the object with the settings used for calls to listUserLinks. */ - public PagedCallSettings - listUserLinksSettings() { - return listUserLinksSettings; - } - - /** Returns the object with the settings used for calls to auditUserLinks. */ - public PagedCallSettings< - AuditUserLinksRequest, AuditUserLinksResponse, AuditUserLinksPagedResponse> - auditUserLinksSettings() { - return auditUserLinksSettings; - } - - /** Returns the object with the settings used for calls to createUserLink. */ - public UnaryCallSettings createUserLinkSettings() { - return createUserLinkSettings; - } - - /** Returns the object with the settings used for calls to batchCreateUserLinks. */ - public UnaryCallSettings - batchCreateUserLinksSettings() { - return batchCreateUserLinksSettings; - } - - /** Returns the object with the settings used for calls to updateUserLink. */ - public UnaryCallSettings updateUserLinkSettings() { - return updateUserLinkSettings; - } - - /** Returns the object with the settings used for calls to batchUpdateUserLinks. */ - public UnaryCallSettings - batchUpdateUserLinksSettings() { - return batchUpdateUserLinksSettings; - } - - /** Returns the object with the settings used for calls to deleteUserLink. */ - public UnaryCallSettings deleteUserLinkSettings() { - return deleteUserLinkSettings; - } - - /** Returns the object with the settings used for calls to batchDeleteUserLinks. */ - public UnaryCallSettings batchDeleteUserLinksSettings() { - return batchDeleteUserLinksSettings; - } - - /** Returns the object with the settings used for calls to createFirebaseLink. */ - public UnaryCallSettings createFirebaseLinkSettings() { - return createFirebaseLinkSettings; - } - - /** Returns the object with the settings used for calls to deleteFirebaseLink. */ - public UnaryCallSettings deleteFirebaseLinkSettings() { - return deleteFirebaseLinkSettings; - } - - /** Returns the object with the settings used for calls to listFirebaseLinks. */ - public PagedCallSettings< - ListFirebaseLinksRequest, ListFirebaseLinksResponse, ListFirebaseLinksPagedResponse> - listFirebaseLinksSettings() { - return listFirebaseLinksSettings; - } - - /** Returns the object with the settings used for calls to getGlobalSiteTag. */ - public UnaryCallSettings getGlobalSiteTagSettings() { - return getGlobalSiteTagSettings; - } - - /** Returns the object with the settings used for calls to createGoogleAdsLink. */ - public UnaryCallSettings - createGoogleAdsLinkSettings() { - return createGoogleAdsLinkSettings; - } - - /** Returns the object with the settings used for calls to updateGoogleAdsLink. */ - public UnaryCallSettings - updateGoogleAdsLinkSettings() { - return updateGoogleAdsLinkSettings; - } - - /** Returns the object with the settings used for calls to deleteGoogleAdsLink. */ - public UnaryCallSettings deleteGoogleAdsLinkSettings() { - return deleteGoogleAdsLinkSettings; - } - - /** Returns the object with the settings used for calls to listGoogleAdsLinks. */ - public PagedCallSettings< - ListGoogleAdsLinksRequest, ListGoogleAdsLinksResponse, ListGoogleAdsLinksPagedResponse> - listGoogleAdsLinksSettings() { - return listGoogleAdsLinksSettings; - } - - /** Returns the object with the settings used for calls to getDataSharingSettings. */ - public UnaryCallSettings - getDataSharingSettingsSettings() { - return getDataSharingSettingsSettings; - } - - /** Returns the object with the settings used for calls to getMeasurementProtocolSecret. */ - public UnaryCallSettings - getMeasurementProtocolSecretSettings() { - return getMeasurementProtocolSecretSettings; - } - - /** Returns the object with the settings used for calls to listMeasurementProtocolSecrets. */ - public PagedCallSettings< - ListMeasurementProtocolSecretsRequest, - ListMeasurementProtocolSecretsResponse, - ListMeasurementProtocolSecretsPagedResponse> - listMeasurementProtocolSecretsSettings() { - return listMeasurementProtocolSecretsSettings; - } - - /** Returns the object with the settings used for calls to createMeasurementProtocolSecret. */ - public UnaryCallSettings - createMeasurementProtocolSecretSettings() { - return createMeasurementProtocolSecretSettings; - } - - /** Returns the object with the settings used for calls to deleteMeasurementProtocolSecret. */ - public UnaryCallSettings - deleteMeasurementProtocolSecretSettings() { - return deleteMeasurementProtocolSecretSettings; - } - - /** Returns the object with the settings used for calls to updateMeasurementProtocolSecret. */ - public UnaryCallSettings - updateMeasurementProtocolSecretSettings() { - return updateMeasurementProtocolSecretSettings; - } - - /** Returns the object with the settings used for calls to acknowledgeUserDataCollection. */ - public UnaryCallSettings< - AcknowledgeUserDataCollectionRequest, AcknowledgeUserDataCollectionResponse> - acknowledgeUserDataCollectionSettings() { - return acknowledgeUserDataCollectionSettings; - } - - /** Returns the object with the settings used for calls to searchChangeHistoryEvents. */ - public PagedCallSettings< - SearchChangeHistoryEventsRequest, - SearchChangeHistoryEventsResponse, - SearchChangeHistoryEventsPagedResponse> - searchChangeHistoryEventsSettings() { - return searchChangeHistoryEventsSettings; - } - - /** Returns the object with the settings used for calls to getGoogleSignalsSettings. */ - public UnaryCallSettings - getGoogleSignalsSettingsSettings() { - return getGoogleSignalsSettingsSettings; - } - - /** Returns the object with the settings used for calls to updateGoogleSignalsSettings. */ - public UnaryCallSettings - updateGoogleSignalsSettingsSettings() { - return updateGoogleSignalsSettingsSettings; - } - - /** Returns the object with the settings used for calls to createConversionEvent. */ - public UnaryCallSettings - createConversionEventSettings() { - return createConversionEventSettings; - } - - /** Returns the object with the settings used for calls to getConversionEvent. */ - public UnaryCallSettings - getConversionEventSettings() { - return getConversionEventSettings; - } - - /** Returns the object with the settings used for calls to deleteConversionEvent. */ - public UnaryCallSettings deleteConversionEventSettings() { - return deleteConversionEventSettings; - } - - /** Returns the object with the settings used for calls to listConversionEvents. */ - public PagedCallSettings< - ListConversionEventsRequest, - ListConversionEventsResponse, - ListConversionEventsPagedResponse> - listConversionEventsSettings() { - return listConversionEventsSettings; - } - - /** Returns the object with the settings used for calls to getDisplayVideo360AdvertiserLink. */ - public UnaryCallSettings - getDisplayVideo360AdvertiserLinkSettings() { - return getDisplayVideo360AdvertiserLinkSettings; - } - - /** Returns the object with the settings used for calls to listDisplayVideo360AdvertiserLinks. */ - public PagedCallSettings< - ListDisplayVideo360AdvertiserLinksRequest, - ListDisplayVideo360AdvertiserLinksResponse, - ListDisplayVideo360AdvertiserLinksPagedResponse> - listDisplayVideo360AdvertiserLinksSettings() { - return listDisplayVideo360AdvertiserLinksSettings; - } - - /** Returns the object with the settings used for calls to createDisplayVideo360AdvertiserLink. */ - public UnaryCallSettings< - CreateDisplayVideo360AdvertiserLinkRequest, DisplayVideo360AdvertiserLink> - createDisplayVideo360AdvertiserLinkSettings() { - return createDisplayVideo360AdvertiserLinkSettings; - } - - /** Returns the object with the settings used for calls to deleteDisplayVideo360AdvertiserLink. */ - public UnaryCallSettings - deleteDisplayVideo360AdvertiserLinkSettings() { - return deleteDisplayVideo360AdvertiserLinkSettings; - } - - /** Returns the object with the settings used for calls to updateDisplayVideo360AdvertiserLink. */ - public UnaryCallSettings< - UpdateDisplayVideo360AdvertiserLinkRequest, DisplayVideo360AdvertiserLink> - updateDisplayVideo360AdvertiserLinkSettings() { - return updateDisplayVideo360AdvertiserLinkSettings; - } - - /** - * Returns the object with the settings used for calls to - * getDisplayVideo360AdvertiserLinkProposal. - */ - public UnaryCallSettings< - GetDisplayVideo360AdvertiserLinkProposalRequest, DisplayVideo360AdvertiserLinkProposal> - getDisplayVideo360AdvertiserLinkProposalSettings() { - return getDisplayVideo360AdvertiserLinkProposalSettings; - } - - /** - * Returns the object with the settings used for calls to - * listDisplayVideo360AdvertiserLinkProposals. - */ - public PagedCallSettings< - ListDisplayVideo360AdvertiserLinkProposalsRequest, - ListDisplayVideo360AdvertiserLinkProposalsResponse, - ListDisplayVideo360AdvertiserLinkProposalsPagedResponse> - listDisplayVideo360AdvertiserLinkProposalsSettings() { - return listDisplayVideo360AdvertiserLinkProposalsSettings; - } - - /** - * Returns the object with the settings used for calls to - * createDisplayVideo360AdvertiserLinkProposal. - */ - public UnaryCallSettings< - CreateDisplayVideo360AdvertiserLinkProposalRequest, DisplayVideo360AdvertiserLinkProposal> - createDisplayVideo360AdvertiserLinkProposalSettings() { - return createDisplayVideo360AdvertiserLinkProposalSettings; - } - - /** - * Returns the object with the settings used for calls to - * deleteDisplayVideo360AdvertiserLinkProposal. - */ - public UnaryCallSettings - deleteDisplayVideo360AdvertiserLinkProposalSettings() { - return deleteDisplayVideo360AdvertiserLinkProposalSettings; - } - - /** - * Returns the object with the settings used for calls to - * approveDisplayVideo360AdvertiserLinkProposal. - */ - public UnaryCallSettings< - ApproveDisplayVideo360AdvertiserLinkProposalRequest, - ApproveDisplayVideo360AdvertiserLinkProposalResponse> - approveDisplayVideo360AdvertiserLinkProposalSettings() { - return approveDisplayVideo360AdvertiserLinkProposalSettings; - } - - /** - * Returns the object with the settings used for calls to - * cancelDisplayVideo360AdvertiserLinkProposal. - */ - public UnaryCallSettings< - CancelDisplayVideo360AdvertiserLinkProposalRequest, DisplayVideo360AdvertiserLinkProposal> - cancelDisplayVideo360AdvertiserLinkProposalSettings() { - return cancelDisplayVideo360AdvertiserLinkProposalSettings; - } - - /** Returns the object with the settings used for calls to createCustomDimension. */ - public UnaryCallSettings - createCustomDimensionSettings() { - return createCustomDimensionSettings; - } - - /** Returns the object with the settings used for calls to updateCustomDimension. */ - public UnaryCallSettings - updateCustomDimensionSettings() { - return updateCustomDimensionSettings; - } - - /** Returns the object with the settings used for calls to listCustomDimensions. */ - public PagedCallSettings< - ListCustomDimensionsRequest, - ListCustomDimensionsResponse, - ListCustomDimensionsPagedResponse> - listCustomDimensionsSettings() { - return listCustomDimensionsSettings; - } - - /** Returns the object with the settings used for calls to archiveCustomDimension. */ - public UnaryCallSettings archiveCustomDimensionSettings() { - return archiveCustomDimensionSettings; - } - - /** Returns the object with the settings used for calls to getCustomDimension. */ - public UnaryCallSettings - getCustomDimensionSettings() { - return getCustomDimensionSettings; - } - - /** Returns the object with the settings used for calls to createCustomMetric. */ - public UnaryCallSettings createCustomMetricSettings() { - return createCustomMetricSettings; - } - - /** Returns the object with the settings used for calls to updateCustomMetric. */ - public UnaryCallSettings updateCustomMetricSettings() { - return updateCustomMetricSettings; - } - - /** Returns the object with the settings used for calls to listCustomMetrics. */ - public PagedCallSettings< - ListCustomMetricsRequest, ListCustomMetricsResponse, ListCustomMetricsPagedResponse> - listCustomMetricsSettings() { - return listCustomMetricsSettings; - } - - /** Returns the object with the settings used for calls to archiveCustomMetric. */ - public UnaryCallSettings archiveCustomMetricSettings() { - return archiveCustomMetricSettings; - } - - /** Returns the object with the settings used for calls to getCustomMetric. */ - public UnaryCallSettings getCustomMetricSettings() { - return getCustomMetricSettings; - } - - /** Returns the object with the settings used for calls to getDataRetentionSettings. */ - public UnaryCallSettings - getDataRetentionSettingsSettings() { - return getDataRetentionSettingsSettings; - } - - /** Returns the object with the settings used for calls to updateDataRetentionSettings. */ - public UnaryCallSettings - updateDataRetentionSettingsSettings() { - return updateDataRetentionSettingsSettings; - } - - /** Returns the object with the settings used for calls to createDataStream. */ - public UnaryCallSettings createDataStreamSettings() { - return createDataStreamSettings; - } - - /** Returns the object with the settings used for calls to deleteDataStream. */ - public UnaryCallSettings deleteDataStreamSettings() { - return deleteDataStreamSettings; - } - - /** Returns the object with the settings used for calls to updateDataStream. */ - public UnaryCallSettings updateDataStreamSettings() { - return updateDataStreamSettings; - } - - /** Returns the object with the settings used for calls to listDataStreams. */ - public PagedCallSettings< - ListDataStreamsRequest, ListDataStreamsResponse, ListDataStreamsPagedResponse> - listDataStreamsSettings() { - return listDataStreamsSettings; - } - - /** Returns the object with the settings used for calls to getDataStream. */ - public UnaryCallSettings getDataStreamSettings() { - return getDataStreamSettings; - } - - /** Returns the object with the settings used for calls to getAudience. */ - public UnaryCallSettings getAudienceSettings() { - return getAudienceSettings; - } - - /** Returns the object with the settings used for calls to listAudiences. */ - public PagedCallSettings - listAudiencesSettings() { - return listAudiencesSettings; - } - - /** Returns the object with the settings used for calls to createAudience. */ - public UnaryCallSettings createAudienceSettings() { - return createAudienceSettings; - } - - /** Returns the object with the settings used for calls to updateAudience. */ - public UnaryCallSettings updateAudienceSettings() { - return updateAudienceSettings; - } - - /** Returns the object with the settings used for calls to archiveAudience. */ - public UnaryCallSettings archiveAudienceSettings() { - return archiveAudienceSettings; - } - - /** Returns the object with the settings used for calls to getAttributionSettings. */ - public UnaryCallSettings - getAttributionSettingsSettings() { - return getAttributionSettingsSettings; - } - - /** Returns the object with the settings used for calls to updateAttributionSettings. */ - public UnaryCallSettings - updateAttributionSettingsSettings() { - return updateAttributionSettingsSettings; - } - - /** Returns the object with the settings used for calls to runAccessReport. */ - public UnaryCallSettings - runAccessReportSettings() { - return runAccessReportSettings; - } - - public AnalyticsAdminServiceStub createStub() throws IOException { - if (getTransportChannelProvider() - .getTransportName() - .equals(GrpcTransportChannel.getGrpcTransportName())) { - return GrpcAnalyticsAdminServiceStub.create(this); - } - if (getTransportChannelProvider() - .getTransportName() - .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { - return HttpJsonAnalyticsAdminServiceStub.create(this); - } - throw new UnsupportedOperationException( - String.format( - "Transport not supported: %s", getTransportChannelProvider().getTransportName())); - } - - /** Returns a builder for the default ExecutorProvider for this service. */ - public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { - return InstantiatingExecutorProvider.newBuilder(); - } - - /** Returns the default service endpoint. */ - public static String getDefaultEndpoint() { - return "analyticsadmin.googleapis.com:443"; - } - - /** Returns the default mTLS service endpoint. */ - public static String getDefaultMtlsEndpoint() { - return "analyticsadmin.mtls.googleapis.com:443"; - } - - /** Returns the default service scopes. */ - public static List getDefaultServiceScopes() { - return DEFAULT_SERVICE_SCOPES; - } - - /** Returns a builder for the default credentials for this service. */ - public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { - return GoogleCredentialsProvider.newBuilder() - .setScopesToApply(DEFAULT_SERVICE_SCOPES) - .setUseJwtAccessWithScope(true); - } - - /** Returns a builder for the default gRPC ChannelProvider for this service. */ - public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { - return InstantiatingGrpcChannelProvider.newBuilder() - .setMaxInboundMessageSize(Integer.MAX_VALUE); - } - - /** Returns a builder for the default REST ChannelProvider for this service. */ - @BetaApi - public static InstantiatingHttpJsonChannelProvider.Builder - defaultHttpJsonTransportProviderBuilder() { - return InstantiatingHttpJsonChannelProvider.newBuilder(); - } - - public static TransportChannelProvider defaultTransportChannelProvider() { - return defaultGrpcTransportProviderBuilder().build(); - } - - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { - return ApiClientHeaderProvider.newBuilder() - .setGeneratedLibToken( - "gapic", GaxProperties.getLibraryVersion(AnalyticsAdminServiceStubSettings.class)) - .setTransportToken( - GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); - } - - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { - return ApiClientHeaderProvider.newBuilder() - .setGeneratedLibToken( - "gapic", GaxProperties.getLibraryVersion(AnalyticsAdminServiceStubSettings.class)) - .setTransportToken( - GaxHttpJsonProperties.getHttpJsonTokenName(), - GaxHttpJsonProperties.getHttpJsonVersion()); - } - - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { - return AnalyticsAdminServiceStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); - } - - /** Returns a new gRPC builder for this class. */ - public static Builder newBuilder() { - return Builder.createDefault(); - } - - /** Returns a new REST builder for this class. */ - 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 AnalyticsAdminServiceStubSettings(Builder settingsBuilder) throws IOException { - super(settingsBuilder); - - getAccountSettings = settingsBuilder.getAccountSettings().build(); - listAccountsSettings = settingsBuilder.listAccountsSettings().build(); - deleteAccountSettings = settingsBuilder.deleteAccountSettings().build(); - updateAccountSettings = settingsBuilder.updateAccountSettings().build(); - provisionAccountTicketSettings = settingsBuilder.provisionAccountTicketSettings().build(); - listAccountSummariesSettings = settingsBuilder.listAccountSummariesSettings().build(); - getPropertySettings = settingsBuilder.getPropertySettings().build(); - listPropertiesSettings = settingsBuilder.listPropertiesSettings().build(); - createPropertySettings = settingsBuilder.createPropertySettings().build(); - deletePropertySettings = settingsBuilder.deletePropertySettings().build(); - updatePropertySettings = settingsBuilder.updatePropertySettings().build(); - getUserLinkSettings = settingsBuilder.getUserLinkSettings().build(); - batchGetUserLinksSettings = settingsBuilder.batchGetUserLinksSettings().build(); - listUserLinksSettings = settingsBuilder.listUserLinksSettings().build(); - auditUserLinksSettings = settingsBuilder.auditUserLinksSettings().build(); - createUserLinkSettings = settingsBuilder.createUserLinkSettings().build(); - batchCreateUserLinksSettings = settingsBuilder.batchCreateUserLinksSettings().build(); - updateUserLinkSettings = settingsBuilder.updateUserLinkSettings().build(); - batchUpdateUserLinksSettings = settingsBuilder.batchUpdateUserLinksSettings().build(); - deleteUserLinkSettings = settingsBuilder.deleteUserLinkSettings().build(); - batchDeleteUserLinksSettings = settingsBuilder.batchDeleteUserLinksSettings().build(); - createFirebaseLinkSettings = settingsBuilder.createFirebaseLinkSettings().build(); - deleteFirebaseLinkSettings = settingsBuilder.deleteFirebaseLinkSettings().build(); - listFirebaseLinksSettings = settingsBuilder.listFirebaseLinksSettings().build(); - getGlobalSiteTagSettings = settingsBuilder.getGlobalSiteTagSettings().build(); - createGoogleAdsLinkSettings = settingsBuilder.createGoogleAdsLinkSettings().build(); - updateGoogleAdsLinkSettings = settingsBuilder.updateGoogleAdsLinkSettings().build(); - deleteGoogleAdsLinkSettings = settingsBuilder.deleteGoogleAdsLinkSettings().build(); - listGoogleAdsLinksSettings = settingsBuilder.listGoogleAdsLinksSettings().build(); - getDataSharingSettingsSettings = settingsBuilder.getDataSharingSettingsSettings().build(); - getMeasurementProtocolSecretSettings = - settingsBuilder.getMeasurementProtocolSecretSettings().build(); - listMeasurementProtocolSecretsSettings = - settingsBuilder.listMeasurementProtocolSecretsSettings().build(); - createMeasurementProtocolSecretSettings = - settingsBuilder.createMeasurementProtocolSecretSettings().build(); - deleteMeasurementProtocolSecretSettings = - settingsBuilder.deleteMeasurementProtocolSecretSettings().build(); - updateMeasurementProtocolSecretSettings = - settingsBuilder.updateMeasurementProtocolSecretSettings().build(); - acknowledgeUserDataCollectionSettings = - settingsBuilder.acknowledgeUserDataCollectionSettings().build(); - searchChangeHistoryEventsSettings = settingsBuilder.searchChangeHistoryEventsSettings().build(); - getGoogleSignalsSettingsSettings = settingsBuilder.getGoogleSignalsSettingsSettings().build(); - updateGoogleSignalsSettingsSettings = - settingsBuilder.updateGoogleSignalsSettingsSettings().build(); - createConversionEventSettings = settingsBuilder.createConversionEventSettings().build(); - getConversionEventSettings = settingsBuilder.getConversionEventSettings().build(); - deleteConversionEventSettings = settingsBuilder.deleteConversionEventSettings().build(); - listConversionEventsSettings = settingsBuilder.listConversionEventsSettings().build(); - getDisplayVideo360AdvertiserLinkSettings = - settingsBuilder.getDisplayVideo360AdvertiserLinkSettings().build(); - listDisplayVideo360AdvertiserLinksSettings = - settingsBuilder.listDisplayVideo360AdvertiserLinksSettings().build(); - createDisplayVideo360AdvertiserLinkSettings = - settingsBuilder.createDisplayVideo360AdvertiserLinkSettings().build(); - deleteDisplayVideo360AdvertiserLinkSettings = - settingsBuilder.deleteDisplayVideo360AdvertiserLinkSettings().build(); - updateDisplayVideo360AdvertiserLinkSettings = - settingsBuilder.updateDisplayVideo360AdvertiserLinkSettings().build(); - getDisplayVideo360AdvertiserLinkProposalSettings = - settingsBuilder.getDisplayVideo360AdvertiserLinkProposalSettings().build(); - listDisplayVideo360AdvertiserLinkProposalsSettings = - settingsBuilder.listDisplayVideo360AdvertiserLinkProposalsSettings().build(); - createDisplayVideo360AdvertiserLinkProposalSettings = - settingsBuilder.createDisplayVideo360AdvertiserLinkProposalSettings().build(); - deleteDisplayVideo360AdvertiserLinkProposalSettings = - settingsBuilder.deleteDisplayVideo360AdvertiserLinkProposalSettings().build(); - approveDisplayVideo360AdvertiserLinkProposalSettings = - settingsBuilder.approveDisplayVideo360AdvertiserLinkProposalSettings().build(); - cancelDisplayVideo360AdvertiserLinkProposalSettings = - settingsBuilder.cancelDisplayVideo360AdvertiserLinkProposalSettings().build(); - createCustomDimensionSettings = settingsBuilder.createCustomDimensionSettings().build(); - updateCustomDimensionSettings = settingsBuilder.updateCustomDimensionSettings().build(); - listCustomDimensionsSettings = settingsBuilder.listCustomDimensionsSettings().build(); - archiveCustomDimensionSettings = settingsBuilder.archiveCustomDimensionSettings().build(); - getCustomDimensionSettings = settingsBuilder.getCustomDimensionSettings().build(); - createCustomMetricSettings = settingsBuilder.createCustomMetricSettings().build(); - updateCustomMetricSettings = settingsBuilder.updateCustomMetricSettings().build(); - listCustomMetricsSettings = settingsBuilder.listCustomMetricsSettings().build(); - archiveCustomMetricSettings = settingsBuilder.archiveCustomMetricSettings().build(); - getCustomMetricSettings = settingsBuilder.getCustomMetricSettings().build(); - getDataRetentionSettingsSettings = settingsBuilder.getDataRetentionSettingsSettings().build(); - updateDataRetentionSettingsSettings = - settingsBuilder.updateDataRetentionSettingsSettings().build(); - createDataStreamSettings = settingsBuilder.createDataStreamSettings().build(); - deleteDataStreamSettings = settingsBuilder.deleteDataStreamSettings().build(); - updateDataStreamSettings = settingsBuilder.updateDataStreamSettings().build(); - listDataStreamsSettings = settingsBuilder.listDataStreamsSettings().build(); - getDataStreamSettings = settingsBuilder.getDataStreamSettings().build(); - getAudienceSettings = settingsBuilder.getAudienceSettings().build(); - listAudiencesSettings = settingsBuilder.listAudiencesSettings().build(); - createAudienceSettings = settingsBuilder.createAudienceSettings().build(); - updateAudienceSettings = settingsBuilder.updateAudienceSettings().build(); - archiveAudienceSettings = settingsBuilder.archiveAudienceSettings().build(); - getAttributionSettingsSettings = settingsBuilder.getAttributionSettingsSettings().build(); - updateAttributionSettingsSettings = settingsBuilder.updateAttributionSettingsSettings().build(); - runAccessReportSettings = settingsBuilder.runAccessReportSettings().build(); - } - - /** Builder for AnalyticsAdminServiceStubSettings. */ - public static class Builder - extends StubSettings.Builder { - private final ImmutableList> unaryMethodSettingsBuilders; - private final UnaryCallSettings.Builder getAccountSettings; - private final PagedCallSettings.Builder< - ListAccountsRequest, ListAccountsResponse, ListAccountsPagedResponse> - listAccountsSettings; - private final UnaryCallSettings.Builder deleteAccountSettings; - private final UnaryCallSettings.Builder updateAccountSettings; - private final UnaryCallSettings.Builder< - ProvisionAccountTicketRequest, ProvisionAccountTicketResponse> - provisionAccountTicketSettings; - private final PagedCallSettings.Builder< - ListAccountSummariesRequest, - ListAccountSummariesResponse, - ListAccountSummariesPagedResponse> - listAccountSummariesSettings; - private final UnaryCallSettings.Builder getPropertySettings; - private final PagedCallSettings.Builder< - ListPropertiesRequest, ListPropertiesResponse, ListPropertiesPagedResponse> - listPropertiesSettings; - private final UnaryCallSettings.Builder createPropertySettings; - private final UnaryCallSettings.Builder deletePropertySettings; - private final UnaryCallSettings.Builder updatePropertySettings; - private final UnaryCallSettings.Builder getUserLinkSettings; - private final UnaryCallSettings.Builder - batchGetUserLinksSettings; - private final PagedCallSettings.Builder< - ListUserLinksRequest, ListUserLinksResponse, ListUserLinksPagedResponse> - listUserLinksSettings; - private final PagedCallSettings.Builder< - AuditUserLinksRequest, AuditUserLinksResponse, AuditUserLinksPagedResponse> - auditUserLinksSettings; - private final UnaryCallSettings.Builder createUserLinkSettings; - private final UnaryCallSettings.Builder< - BatchCreateUserLinksRequest, BatchCreateUserLinksResponse> - batchCreateUserLinksSettings; - private final UnaryCallSettings.Builder updateUserLinkSettings; - private final UnaryCallSettings.Builder< - BatchUpdateUserLinksRequest, BatchUpdateUserLinksResponse> - batchUpdateUserLinksSettings; - private final UnaryCallSettings.Builder deleteUserLinkSettings; - private final UnaryCallSettings.Builder - batchDeleteUserLinksSettings; - private final UnaryCallSettings.Builder - createFirebaseLinkSettings; - private final UnaryCallSettings.Builder - deleteFirebaseLinkSettings; - private final PagedCallSettings.Builder< - ListFirebaseLinksRequest, ListFirebaseLinksResponse, ListFirebaseLinksPagedResponse> - listFirebaseLinksSettings; - private final UnaryCallSettings.Builder - getGlobalSiteTagSettings; - private final UnaryCallSettings.Builder - createGoogleAdsLinkSettings; - private final UnaryCallSettings.Builder - updateGoogleAdsLinkSettings; - private final UnaryCallSettings.Builder - deleteGoogleAdsLinkSettings; - private final PagedCallSettings.Builder< - ListGoogleAdsLinksRequest, ListGoogleAdsLinksResponse, ListGoogleAdsLinksPagedResponse> - listGoogleAdsLinksSettings; - private final UnaryCallSettings.Builder - getDataSharingSettingsSettings; - private final UnaryCallSettings.Builder< - GetMeasurementProtocolSecretRequest, MeasurementProtocolSecret> - getMeasurementProtocolSecretSettings; - private final PagedCallSettings.Builder< - ListMeasurementProtocolSecretsRequest, - ListMeasurementProtocolSecretsResponse, - ListMeasurementProtocolSecretsPagedResponse> - listMeasurementProtocolSecretsSettings; - private final UnaryCallSettings.Builder< - CreateMeasurementProtocolSecretRequest, MeasurementProtocolSecret> - createMeasurementProtocolSecretSettings; - private final UnaryCallSettings.Builder - deleteMeasurementProtocolSecretSettings; - private final UnaryCallSettings.Builder< - UpdateMeasurementProtocolSecretRequest, MeasurementProtocolSecret> - updateMeasurementProtocolSecretSettings; - private final UnaryCallSettings.Builder< - AcknowledgeUserDataCollectionRequest, AcknowledgeUserDataCollectionResponse> - acknowledgeUserDataCollectionSettings; - private final PagedCallSettings.Builder< - SearchChangeHistoryEventsRequest, - SearchChangeHistoryEventsResponse, - SearchChangeHistoryEventsPagedResponse> - searchChangeHistoryEventsSettings; - private final UnaryCallSettings.Builder - getGoogleSignalsSettingsSettings; - private final UnaryCallSettings.Builder< - UpdateGoogleSignalsSettingsRequest, GoogleSignalsSettings> - updateGoogleSignalsSettingsSettings; - private final UnaryCallSettings.Builder - createConversionEventSettings; - private final UnaryCallSettings.Builder - getConversionEventSettings; - private final UnaryCallSettings.Builder - deleteConversionEventSettings; - private final PagedCallSettings.Builder< - ListConversionEventsRequest, - ListConversionEventsResponse, - ListConversionEventsPagedResponse> - listConversionEventsSettings; - private final UnaryCallSettings.Builder< - GetDisplayVideo360AdvertiserLinkRequest, DisplayVideo360AdvertiserLink> - getDisplayVideo360AdvertiserLinkSettings; - private final PagedCallSettings.Builder< - ListDisplayVideo360AdvertiserLinksRequest, - ListDisplayVideo360AdvertiserLinksResponse, - ListDisplayVideo360AdvertiserLinksPagedResponse> - listDisplayVideo360AdvertiserLinksSettings; - private final UnaryCallSettings.Builder< - CreateDisplayVideo360AdvertiserLinkRequest, DisplayVideo360AdvertiserLink> - createDisplayVideo360AdvertiserLinkSettings; - private final UnaryCallSettings.Builder - deleteDisplayVideo360AdvertiserLinkSettings; - private final UnaryCallSettings.Builder< - UpdateDisplayVideo360AdvertiserLinkRequest, DisplayVideo360AdvertiserLink> - updateDisplayVideo360AdvertiserLinkSettings; - private final UnaryCallSettings.Builder< - GetDisplayVideo360AdvertiserLinkProposalRequest, DisplayVideo360AdvertiserLinkProposal> - getDisplayVideo360AdvertiserLinkProposalSettings; - private final PagedCallSettings.Builder< - ListDisplayVideo360AdvertiserLinkProposalsRequest, - ListDisplayVideo360AdvertiserLinkProposalsResponse, - ListDisplayVideo360AdvertiserLinkProposalsPagedResponse> - listDisplayVideo360AdvertiserLinkProposalsSettings; - private final UnaryCallSettings.Builder< - CreateDisplayVideo360AdvertiserLinkProposalRequest, - DisplayVideo360AdvertiserLinkProposal> - createDisplayVideo360AdvertiserLinkProposalSettings; - private final UnaryCallSettings.Builder< - DeleteDisplayVideo360AdvertiserLinkProposalRequest, Empty> - deleteDisplayVideo360AdvertiserLinkProposalSettings; - private final UnaryCallSettings.Builder< - ApproveDisplayVideo360AdvertiserLinkProposalRequest, - ApproveDisplayVideo360AdvertiserLinkProposalResponse> - approveDisplayVideo360AdvertiserLinkProposalSettings; - private final UnaryCallSettings.Builder< - CancelDisplayVideo360AdvertiserLinkProposalRequest, - DisplayVideo360AdvertiserLinkProposal> - cancelDisplayVideo360AdvertiserLinkProposalSettings; - private final UnaryCallSettings.Builder - createCustomDimensionSettings; - private final UnaryCallSettings.Builder - updateCustomDimensionSettings; - private final PagedCallSettings.Builder< - ListCustomDimensionsRequest, - ListCustomDimensionsResponse, - ListCustomDimensionsPagedResponse> - listCustomDimensionsSettings; - private final UnaryCallSettings.Builder - archiveCustomDimensionSettings; - private final UnaryCallSettings.Builder - getCustomDimensionSettings; - private final UnaryCallSettings.Builder - createCustomMetricSettings; - private final UnaryCallSettings.Builder - updateCustomMetricSettings; - private final PagedCallSettings.Builder< - ListCustomMetricsRequest, ListCustomMetricsResponse, ListCustomMetricsPagedResponse> - listCustomMetricsSettings; - private final UnaryCallSettings.Builder - archiveCustomMetricSettings; - private final UnaryCallSettings.Builder - getCustomMetricSettings; - private final UnaryCallSettings.Builder - getDataRetentionSettingsSettings; - private final UnaryCallSettings.Builder< - UpdateDataRetentionSettingsRequest, DataRetentionSettings> - updateDataRetentionSettingsSettings; - private final UnaryCallSettings.Builder - createDataStreamSettings; - private final UnaryCallSettings.Builder - deleteDataStreamSettings; - private final UnaryCallSettings.Builder - updateDataStreamSettings; - private final PagedCallSettings.Builder< - ListDataStreamsRequest, ListDataStreamsResponse, ListDataStreamsPagedResponse> - listDataStreamsSettings; - private final UnaryCallSettings.Builder getDataStreamSettings; - private final UnaryCallSettings.Builder getAudienceSettings; - private final PagedCallSettings.Builder< - ListAudiencesRequest, ListAudiencesResponse, ListAudiencesPagedResponse> - listAudiencesSettings; - private final UnaryCallSettings.Builder createAudienceSettings; - private final UnaryCallSettings.Builder updateAudienceSettings; - private final UnaryCallSettings.Builder archiveAudienceSettings; - private final UnaryCallSettings.Builder - getAttributionSettingsSettings; - private final UnaryCallSettings.Builder - updateAttributionSettingsSettings; - private final UnaryCallSettings.Builder - runAccessReportSettings; - private static final ImmutableMap> - RETRYABLE_CODE_DEFINITIONS; - - static { - ImmutableMap.Builder> definitions = - ImmutableMap.builder(); - definitions.put( - "retry_policy_0_codes", - ImmutableSet.copyOf( - Lists.newArrayList( - StatusCode.Code.UNAVAILABLE, StatusCode.Code.UNKNOWN))); - RETRYABLE_CODE_DEFINITIONS = definitions.build(); - } - - private static final ImmutableMap RETRY_PARAM_DEFINITIONS; - - static { - ImmutableMap.Builder definitions = ImmutableMap.builder(); - RetrySettings settings = null; - settings = - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(1000L)) - .setRetryDelayMultiplier(1.3) - .setMaxRetryDelay(Duration.ofMillis(60000L)) - .setInitialRpcTimeout(Duration.ofMillis(60000L)) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ofMillis(60000L)) - .setTotalTimeout(Duration.ofMillis(60000L)) - .build(); - definitions.put("retry_policy_0_params", settings); - RETRY_PARAM_DEFINITIONS = definitions.build(); - } - - protected Builder() { - this(((ClientContext) null)); - } - - protected Builder(ClientContext clientContext) { - super(clientContext); - - getAccountSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - listAccountsSettings = PagedCallSettings.newBuilder(LIST_ACCOUNTS_PAGE_STR_FACT); - deleteAccountSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - updateAccountSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - provisionAccountTicketSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - listAccountSummariesSettings = - PagedCallSettings.newBuilder(LIST_ACCOUNT_SUMMARIES_PAGE_STR_FACT); - getPropertySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - listPropertiesSettings = PagedCallSettings.newBuilder(LIST_PROPERTIES_PAGE_STR_FACT); - createPropertySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - deletePropertySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - updatePropertySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - getUserLinkSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - batchGetUserLinksSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - listUserLinksSettings = PagedCallSettings.newBuilder(LIST_USER_LINKS_PAGE_STR_FACT); - auditUserLinksSettings = PagedCallSettings.newBuilder(AUDIT_USER_LINKS_PAGE_STR_FACT); - createUserLinkSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - batchCreateUserLinksSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - updateUserLinkSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - batchUpdateUserLinksSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - deleteUserLinkSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - batchDeleteUserLinksSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - createFirebaseLinkSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - deleteFirebaseLinkSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - listFirebaseLinksSettings = PagedCallSettings.newBuilder(LIST_FIREBASE_LINKS_PAGE_STR_FACT); - getGlobalSiteTagSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - createGoogleAdsLinkSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - updateGoogleAdsLinkSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - deleteGoogleAdsLinkSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - listGoogleAdsLinksSettings = - PagedCallSettings.newBuilder(LIST_GOOGLE_ADS_LINKS_PAGE_STR_FACT); - getDataSharingSettingsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - getMeasurementProtocolSecretSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - listMeasurementProtocolSecretsSettings = - PagedCallSettings.newBuilder(LIST_MEASUREMENT_PROTOCOL_SECRETS_PAGE_STR_FACT); - createMeasurementProtocolSecretSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - deleteMeasurementProtocolSecretSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - updateMeasurementProtocolSecretSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - acknowledgeUserDataCollectionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - searchChangeHistoryEventsSettings = - PagedCallSettings.newBuilder(SEARCH_CHANGE_HISTORY_EVENTS_PAGE_STR_FACT); - getGoogleSignalsSettingsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - updateGoogleSignalsSettingsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - createConversionEventSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - getConversionEventSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - deleteConversionEventSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - listConversionEventsSettings = - PagedCallSettings.newBuilder(LIST_CONVERSION_EVENTS_PAGE_STR_FACT); - getDisplayVideo360AdvertiserLinkSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - listDisplayVideo360AdvertiserLinksSettings = - PagedCallSettings.newBuilder(LIST_DISPLAY_VIDEO360_ADVERTISER_LINKS_PAGE_STR_FACT); - createDisplayVideo360AdvertiserLinkSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - deleteDisplayVideo360AdvertiserLinkSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - updateDisplayVideo360AdvertiserLinkSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - getDisplayVideo360AdvertiserLinkProposalSettings = - UnaryCallSettings.newUnaryCallSettingsBuilder(); - listDisplayVideo360AdvertiserLinkProposalsSettings = - PagedCallSettings.newBuilder( - LIST_DISPLAY_VIDEO360_ADVERTISER_LINK_PROPOSALS_PAGE_STR_FACT); - createDisplayVideo360AdvertiserLinkProposalSettings = - UnaryCallSettings.newUnaryCallSettingsBuilder(); - deleteDisplayVideo360AdvertiserLinkProposalSettings = - UnaryCallSettings.newUnaryCallSettingsBuilder(); - approveDisplayVideo360AdvertiserLinkProposalSettings = - UnaryCallSettings.newUnaryCallSettingsBuilder(); - cancelDisplayVideo360AdvertiserLinkProposalSettings = - UnaryCallSettings.newUnaryCallSettingsBuilder(); - createCustomDimensionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - updateCustomDimensionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - listCustomDimensionsSettings = - PagedCallSettings.newBuilder(LIST_CUSTOM_DIMENSIONS_PAGE_STR_FACT); - archiveCustomDimensionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - getCustomDimensionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - createCustomMetricSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - updateCustomMetricSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - listCustomMetricsSettings = PagedCallSettings.newBuilder(LIST_CUSTOM_METRICS_PAGE_STR_FACT); - archiveCustomMetricSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - getCustomMetricSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - getDataRetentionSettingsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - updateDataRetentionSettingsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - createDataStreamSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - deleteDataStreamSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - updateDataStreamSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - listDataStreamsSettings = PagedCallSettings.newBuilder(LIST_DATA_STREAMS_PAGE_STR_FACT); - getDataStreamSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - getAudienceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - listAudiencesSettings = PagedCallSettings.newBuilder(LIST_AUDIENCES_PAGE_STR_FACT); - createAudienceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - updateAudienceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - archiveAudienceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - getAttributionSettingsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - updateAttributionSettingsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - runAccessReportSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - - unaryMethodSettingsBuilders = - ImmutableList.>of( - getAccountSettings, - listAccountsSettings, - deleteAccountSettings, - updateAccountSettings, - provisionAccountTicketSettings, - listAccountSummariesSettings, - getPropertySettings, - listPropertiesSettings, - createPropertySettings, - deletePropertySettings, - updatePropertySettings, - getUserLinkSettings, - batchGetUserLinksSettings, - listUserLinksSettings, - auditUserLinksSettings, - createUserLinkSettings, - batchCreateUserLinksSettings, - updateUserLinkSettings, - batchUpdateUserLinksSettings, - deleteUserLinkSettings, - batchDeleteUserLinksSettings, - createFirebaseLinkSettings, - deleteFirebaseLinkSettings, - listFirebaseLinksSettings, - getGlobalSiteTagSettings, - createGoogleAdsLinkSettings, - updateGoogleAdsLinkSettings, - deleteGoogleAdsLinkSettings, - listGoogleAdsLinksSettings, - getDataSharingSettingsSettings, - getMeasurementProtocolSecretSettings, - listMeasurementProtocolSecretsSettings, - createMeasurementProtocolSecretSettings, - deleteMeasurementProtocolSecretSettings, - updateMeasurementProtocolSecretSettings, - acknowledgeUserDataCollectionSettings, - searchChangeHistoryEventsSettings, - getGoogleSignalsSettingsSettings, - updateGoogleSignalsSettingsSettings, - createConversionEventSettings, - getConversionEventSettings, - deleteConversionEventSettings, - listConversionEventsSettings, - getDisplayVideo360AdvertiserLinkSettings, - listDisplayVideo360AdvertiserLinksSettings, - createDisplayVideo360AdvertiserLinkSettings, - deleteDisplayVideo360AdvertiserLinkSettings, - updateDisplayVideo360AdvertiserLinkSettings, - getDisplayVideo360AdvertiserLinkProposalSettings, - listDisplayVideo360AdvertiserLinkProposalsSettings, - createDisplayVideo360AdvertiserLinkProposalSettings, - deleteDisplayVideo360AdvertiserLinkProposalSettings, - approveDisplayVideo360AdvertiserLinkProposalSettings, - cancelDisplayVideo360AdvertiserLinkProposalSettings, - createCustomDimensionSettings, - updateCustomDimensionSettings, - listCustomDimensionsSettings, - archiveCustomDimensionSettings, - getCustomDimensionSettings, - createCustomMetricSettings, - updateCustomMetricSettings, - listCustomMetricsSettings, - archiveCustomMetricSettings, - getCustomMetricSettings, - getDataRetentionSettingsSettings, - updateDataRetentionSettingsSettings, - createDataStreamSettings, - deleteDataStreamSettings, - updateDataStreamSettings, - listDataStreamsSettings, - getDataStreamSettings, - getAudienceSettings, - listAudiencesSettings, - createAudienceSettings, - updateAudienceSettings, - archiveAudienceSettings, - getAttributionSettingsSettings, - updateAttributionSettingsSettings, - runAccessReportSettings); - initDefaults(this); - } - - protected Builder(AnalyticsAdminServiceStubSettings settings) { - super(settings); - - getAccountSettings = settings.getAccountSettings.toBuilder(); - listAccountsSettings = settings.listAccountsSettings.toBuilder(); - deleteAccountSettings = settings.deleteAccountSettings.toBuilder(); - updateAccountSettings = settings.updateAccountSettings.toBuilder(); - provisionAccountTicketSettings = settings.provisionAccountTicketSettings.toBuilder(); - listAccountSummariesSettings = settings.listAccountSummariesSettings.toBuilder(); - getPropertySettings = settings.getPropertySettings.toBuilder(); - listPropertiesSettings = settings.listPropertiesSettings.toBuilder(); - createPropertySettings = settings.createPropertySettings.toBuilder(); - deletePropertySettings = settings.deletePropertySettings.toBuilder(); - updatePropertySettings = settings.updatePropertySettings.toBuilder(); - getUserLinkSettings = settings.getUserLinkSettings.toBuilder(); - batchGetUserLinksSettings = settings.batchGetUserLinksSettings.toBuilder(); - listUserLinksSettings = settings.listUserLinksSettings.toBuilder(); - auditUserLinksSettings = settings.auditUserLinksSettings.toBuilder(); - createUserLinkSettings = settings.createUserLinkSettings.toBuilder(); - batchCreateUserLinksSettings = settings.batchCreateUserLinksSettings.toBuilder(); - updateUserLinkSettings = settings.updateUserLinkSettings.toBuilder(); - batchUpdateUserLinksSettings = settings.batchUpdateUserLinksSettings.toBuilder(); - deleteUserLinkSettings = settings.deleteUserLinkSettings.toBuilder(); - batchDeleteUserLinksSettings = settings.batchDeleteUserLinksSettings.toBuilder(); - createFirebaseLinkSettings = settings.createFirebaseLinkSettings.toBuilder(); - deleteFirebaseLinkSettings = settings.deleteFirebaseLinkSettings.toBuilder(); - listFirebaseLinksSettings = settings.listFirebaseLinksSettings.toBuilder(); - getGlobalSiteTagSettings = settings.getGlobalSiteTagSettings.toBuilder(); - createGoogleAdsLinkSettings = settings.createGoogleAdsLinkSettings.toBuilder(); - updateGoogleAdsLinkSettings = settings.updateGoogleAdsLinkSettings.toBuilder(); - deleteGoogleAdsLinkSettings = settings.deleteGoogleAdsLinkSettings.toBuilder(); - listGoogleAdsLinksSettings = settings.listGoogleAdsLinksSettings.toBuilder(); - getDataSharingSettingsSettings = settings.getDataSharingSettingsSettings.toBuilder(); - getMeasurementProtocolSecretSettings = - settings.getMeasurementProtocolSecretSettings.toBuilder(); - listMeasurementProtocolSecretsSettings = - settings.listMeasurementProtocolSecretsSettings.toBuilder(); - createMeasurementProtocolSecretSettings = - settings.createMeasurementProtocolSecretSettings.toBuilder(); - deleteMeasurementProtocolSecretSettings = - settings.deleteMeasurementProtocolSecretSettings.toBuilder(); - updateMeasurementProtocolSecretSettings = - settings.updateMeasurementProtocolSecretSettings.toBuilder(); - acknowledgeUserDataCollectionSettings = - settings.acknowledgeUserDataCollectionSettings.toBuilder(); - searchChangeHistoryEventsSettings = settings.searchChangeHistoryEventsSettings.toBuilder(); - getGoogleSignalsSettingsSettings = settings.getGoogleSignalsSettingsSettings.toBuilder(); - updateGoogleSignalsSettingsSettings = - settings.updateGoogleSignalsSettingsSettings.toBuilder(); - createConversionEventSettings = settings.createConversionEventSettings.toBuilder(); - getConversionEventSettings = settings.getConversionEventSettings.toBuilder(); - deleteConversionEventSettings = settings.deleteConversionEventSettings.toBuilder(); - listConversionEventsSettings = settings.listConversionEventsSettings.toBuilder(); - getDisplayVideo360AdvertiserLinkSettings = - settings.getDisplayVideo360AdvertiserLinkSettings.toBuilder(); - listDisplayVideo360AdvertiserLinksSettings = - settings.listDisplayVideo360AdvertiserLinksSettings.toBuilder(); - createDisplayVideo360AdvertiserLinkSettings = - settings.createDisplayVideo360AdvertiserLinkSettings.toBuilder(); - deleteDisplayVideo360AdvertiserLinkSettings = - settings.deleteDisplayVideo360AdvertiserLinkSettings.toBuilder(); - updateDisplayVideo360AdvertiserLinkSettings = - settings.updateDisplayVideo360AdvertiserLinkSettings.toBuilder(); - getDisplayVideo360AdvertiserLinkProposalSettings = - settings.getDisplayVideo360AdvertiserLinkProposalSettings.toBuilder(); - listDisplayVideo360AdvertiserLinkProposalsSettings = - settings.listDisplayVideo360AdvertiserLinkProposalsSettings.toBuilder(); - createDisplayVideo360AdvertiserLinkProposalSettings = - settings.createDisplayVideo360AdvertiserLinkProposalSettings.toBuilder(); - deleteDisplayVideo360AdvertiserLinkProposalSettings = - settings.deleteDisplayVideo360AdvertiserLinkProposalSettings.toBuilder(); - approveDisplayVideo360AdvertiserLinkProposalSettings = - settings.approveDisplayVideo360AdvertiserLinkProposalSettings.toBuilder(); - cancelDisplayVideo360AdvertiserLinkProposalSettings = - settings.cancelDisplayVideo360AdvertiserLinkProposalSettings.toBuilder(); - createCustomDimensionSettings = settings.createCustomDimensionSettings.toBuilder(); - updateCustomDimensionSettings = settings.updateCustomDimensionSettings.toBuilder(); - listCustomDimensionsSettings = settings.listCustomDimensionsSettings.toBuilder(); - archiveCustomDimensionSettings = settings.archiveCustomDimensionSettings.toBuilder(); - getCustomDimensionSettings = settings.getCustomDimensionSettings.toBuilder(); - createCustomMetricSettings = settings.createCustomMetricSettings.toBuilder(); - updateCustomMetricSettings = settings.updateCustomMetricSettings.toBuilder(); - listCustomMetricsSettings = settings.listCustomMetricsSettings.toBuilder(); - archiveCustomMetricSettings = settings.archiveCustomMetricSettings.toBuilder(); - getCustomMetricSettings = settings.getCustomMetricSettings.toBuilder(); - getDataRetentionSettingsSettings = settings.getDataRetentionSettingsSettings.toBuilder(); - updateDataRetentionSettingsSettings = - settings.updateDataRetentionSettingsSettings.toBuilder(); - createDataStreamSettings = settings.createDataStreamSettings.toBuilder(); - deleteDataStreamSettings = settings.deleteDataStreamSettings.toBuilder(); - updateDataStreamSettings = settings.updateDataStreamSettings.toBuilder(); - listDataStreamsSettings = settings.listDataStreamsSettings.toBuilder(); - getDataStreamSettings = settings.getDataStreamSettings.toBuilder(); - getAudienceSettings = settings.getAudienceSettings.toBuilder(); - listAudiencesSettings = settings.listAudiencesSettings.toBuilder(); - createAudienceSettings = settings.createAudienceSettings.toBuilder(); - updateAudienceSettings = settings.updateAudienceSettings.toBuilder(); - archiveAudienceSettings = settings.archiveAudienceSettings.toBuilder(); - getAttributionSettingsSettings = settings.getAttributionSettingsSettings.toBuilder(); - updateAttributionSettingsSettings = settings.updateAttributionSettingsSettings.toBuilder(); - runAccessReportSettings = settings.runAccessReportSettings.toBuilder(); - - unaryMethodSettingsBuilders = - ImmutableList.>of( - getAccountSettings, - listAccountsSettings, - deleteAccountSettings, - updateAccountSettings, - provisionAccountTicketSettings, - listAccountSummariesSettings, - getPropertySettings, - listPropertiesSettings, - createPropertySettings, - deletePropertySettings, - updatePropertySettings, - getUserLinkSettings, - batchGetUserLinksSettings, - listUserLinksSettings, - auditUserLinksSettings, - createUserLinkSettings, - batchCreateUserLinksSettings, - updateUserLinkSettings, - batchUpdateUserLinksSettings, - deleteUserLinkSettings, - batchDeleteUserLinksSettings, - createFirebaseLinkSettings, - deleteFirebaseLinkSettings, - listFirebaseLinksSettings, - getGlobalSiteTagSettings, - createGoogleAdsLinkSettings, - updateGoogleAdsLinkSettings, - deleteGoogleAdsLinkSettings, - listGoogleAdsLinksSettings, - getDataSharingSettingsSettings, - getMeasurementProtocolSecretSettings, - listMeasurementProtocolSecretsSettings, - createMeasurementProtocolSecretSettings, - deleteMeasurementProtocolSecretSettings, - updateMeasurementProtocolSecretSettings, - acknowledgeUserDataCollectionSettings, - searchChangeHistoryEventsSettings, - getGoogleSignalsSettingsSettings, - updateGoogleSignalsSettingsSettings, - createConversionEventSettings, - getConversionEventSettings, - deleteConversionEventSettings, - listConversionEventsSettings, - getDisplayVideo360AdvertiserLinkSettings, - listDisplayVideo360AdvertiserLinksSettings, - createDisplayVideo360AdvertiserLinkSettings, - deleteDisplayVideo360AdvertiserLinkSettings, - updateDisplayVideo360AdvertiserLinkSettings, - getDisplayVideo360AdvertiserLinkProposalSettings, - listDisplayVideo360AdvertiserLinkProposalsSettings, - createDisplayVideo360AdvertiserLinkProposalSettings, - deleteDisplayVideo360AdvertiserLinkProposalSettings, - approveDisplayVideo360AdvertiserLinkProposalSettings, - cancelDisplayVideo360AdvertiserLinkProposalSettings, - createCustomDimensionSettings, - updateCustomDimensionSettings, - listCustomDimensionsSettings, - archiveCustomDimensionSettings, - getCustomDimensionSettings, - createCustomMetricSettings, - updateCustomMetricSettings, - listCustomMetricsSettings, - archiveCustomMetricSettings, - getCustomMetricSettings, - getDataRetentionSettingsSettings, - updateDataRetentionSettingsSettings, - createDataStreamSettings, - deleteDataStreamSettings, - updateDataStreamSettings, - listDataStreamsSettings, - getDataStreamSettings, - getAudienceSettings, - listAudiencesSettings, - createAudienceSettings, - updateAudienceSettings, - archiveAudienceSettings, - getAttributionSettingsSettings, - updateAttributionSettingsSettings, - runAccessReportSettings); - } - - private static Builder createDefault() { - Builder builder = new Builder(((ClientContext) null)); - - builder.setTransportChannelProvider(defaultTransportChannelProvider()); - builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); - builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); - builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); - builder.setSwitchToMtlsEndpointAllowed(true); - - return initDefaults(builder); - } - - private static Builder createHttpJsonDefault() { - Builder builder = new Builder(((ClientContext) null)); - - builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); - builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); - builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); - builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); - builder.setSwitchToMtlsEndpointAllowed(true); - - return initDefaults(builder); - } - - private static Builder initDefaults(Builder builder) { - builder - .getAccountSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .listAccountsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .deleteAccountSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .updateAccountSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .provisionAccountTicketSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .listAccountSummariesSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .getPropertySettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .listPropertiesSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .createPropertySettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .deletePropertySettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .updatePropertySettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .getUserLinkSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .batchGetUserLinksSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .listUserLinksSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .auditUserLinksSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .createUserLinkSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .batchCreateUserLinksSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .updateUserLinkSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .batchUpdateUserLinksSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .deleteUserLinkSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .batchDeleteUserLinksSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .createFirebaseLinkSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .deleteFirebaseLinkSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .listFirebaseLinksSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .getGlobalSiteTagSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .createGoogleAdsLinkSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .updateGoogleAdsLinkSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .deleteGoogleAdsLinkSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .listGoogleAdsLinksSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .getDataSharingSettingsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .getMeasurementProtocolSecretSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .listMeasurementProtocolSecretsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .createMeasurementProtocolSecretSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .deleteMeasurementProtocolSecretSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .updateMeasurementProtocolSecretSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .acknowledgeUserDataCollectionSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .searchChangeHistoryEventsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .getGoogleSignalsSettingsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .updateGoogleSignalsSettingsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .createConversionEventSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .getConversionEventSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .deleteConversionEventSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .listConversionEventsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .getDisplayVideo360AdvertiserLinkSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .listDisplayVideo360AdvertiserLinksSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .createDisplayVideo360AdvertiserLinkSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .deleteDisplayVideo360AdvertiserLinkSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .updateDisplayVideo360AdvertiserLinkSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .getDisplayVideo360AdvertiserLinkProposalSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .listDisplayVideo360AdvertiserLinkProposalsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .createDisplayVideo360AdvertiserLinkProposalSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .deleteDisplayVideo360AdvertiserLinkProposalSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .approveDisplayVideo360AdvertiserLinkProposalSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .cancelDisplayVideo360AdvertiserLinkProposalSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .createCustomDimensionSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .updateCustomDimensionSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .listCustomDimensionsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .archiveCustomDimensionSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .getCustomDimensionSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .createCustomMetricSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .updateCustomMetricSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .listCustomMetricsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .archiveCustomMetricSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .getCustomMetricSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .getDataRetentionSettingsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .updateDataRetentionSettingsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .createDataStreamSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .deleteDataStreamSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .updateDataStreamSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .listDataStreamsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .getDataStreamSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .getAudienceSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .listAudiencesSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .createAudienceSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .updateAudienceSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .archiveAudienceSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .getAttributionSettingsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .updateAttributionSettingsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .runAccessReportSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - return builder; - } - - /** - * 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(unaryMethodSettingsBuilders, settingsUpdater); - return this; - } - - public ImmutableList> unaryMethodSettingsBuilders() { - return unaryMethodSettingsBuilders; - } - - /** Returns the builder for the settings used for calls to getAccount. */ - public UnaryCallSettings.Builder getAccountSettings() { - return getAccountSettings; - } - - /** Returns the builder for the settings used for calls to listAccounts. */ - public PagedCallSettings.Builder< - ListAccountsRequest, ListAccountsResponse, ListAccountsPagedResponse> - listAccountsSettings() { - return listAccountsSettings; - } - - /** Returns the builder for the settings used for calls to deleteAccount. */ - public UnaryCallSettings.Builder deleteAccountSettings() { - return deleteAccountSettings; - } - - /** Returns the builder for the settings used for calls to updateAccount. */ - public UnaryCallSettings.Builder updateAccountSettings() { - return updateAccountSettings; - } - - /** Returns the builder for the settings used for calls to provisionAccountTicket. */ - public UnaryCallSettings.Builder - provisionAccountTicketSettings() { - return provisionAccountTicketSettings; - } - - /** Returns the builder for the settings used for calls to listAccountSummaries. */ - public PagedCallSettings.Builder< - ListAccountSummariesRequest, - ListAccountSummariesResponse, - ListAccountSummariesPagedResponse> - listAccountSummariesSettings() { - return listAccountSummariesSettings; - } - - /** Returns the builder for the settings used for calls to getProperty. */ - public UnaryCallSettings.Builder getPropertySettings() { - return getPropertySettings; - } - - /** Returns the builder for the settings used for calls to listProperties. */ - public PagedCallSettings.Builder< - ListPropertiesRequest, ListPropertiesResponse, ListPropertiesPagedResponse> - listPropertiesSettings() { - return listPropertiesSettings; - } - - /** Returns the builder for the settings used for calls to createProperty. */ - public UnaryCallSettings.Builder createPropertySettings() { - return createPropertySettings; - } - - /** Returns the builder for the settings used for calls to deleteProperty. */ - public UnaryCallSettings.Builder deletePropertySettings() { - return deletePropertySettings; - } - - /** Returns the builder for the settings used for calls to updateProperty. */ - public UnaryCallSettings.Builder updatePropertySettings() { - return updatePropertySettings; - } - - /** Returns the builder for the settings used for calls to getUserLink. */ - public UnaryCallSettings.Builder getUserLinkSettings() { - return getUserLinkSettings; - } - - /** Returns the builder for the settings used for calls to batchGetUserLinks. */ - public UnaryCallSettings.Builder - batchGetUserLinksSettings() { - return batchGetUserLinksSettings; - } - - /** Returns the builder for the settings used for calls to listUserLinks. */ - public PagedCallSettings.Builder< - ListUserLinksRequest, ListUserLinksResponse, ListUserLinksPagedResponse> - listUserLinksSettings() { - return listUserLinksSettings; - } - - /** Returns the builder for the settings used for calls to auditUserLinks. */ - public PagedCallSettings.Builder< - AuditUserLinksRequest, AuditUserLinksResponse, AuditUserLinksPagedResponse> - auditUserLinksSettings() { - return auditUserLinksSettings; - } - - /** Returns the builder for the settings used for calls to createUserLink. */ - public UnaryCallSettings.Builder createUserLinkSettings() { - return createUserLinkSettings; - } - - /** Returns the builder for the settings used for calls to batchCreateUserLinks. */ - public UnaryCallSettings.Builder - batchCreateUserLinksSettings() { - return batchCreateUserLinksSettings; - } - - /** Returns the builder for the settings used for calls to updateUserLink. */ - public UnaryCallSettings.Builder updateUserLinkSettings() { - return updateUserLinkSettings; - } - - /** Returns the builder for the settings used for calls to batchUpdateUserLinks. */ - public UnaryCallSettings.Builder - batchUpdateUserLinksSettings() { - return batchUpdateUserLinksSettings; - } - - /** Returns the builder for the settings used for calls to deleteUserLink. */ - public UnaryCallSettings.Builder deleteUserLinkSettings() { - return deleteUserLinkSettings; - } - - /** Returns the builder for the settings used for calls to batchDeleteUserLinks. */ - public UnaryCallSettings.Builder - batchDeleteUserLinksSettings() { - return batchDeleteUserLinksSettings; - } - - /** Returns the builder for the settings used for calls to createFirebaseLink. */ - public UnaryCallSettings.Builder - createFirebaseLinkSettings() { - return createFirebaseLinkSettings; - } - - /** Returns the builder for the settings used for calls to deleteFirebaseLink. */ - public UnaryCallSettings.Builder - deleteFirebaseLinkSettings() { - return deleteFirebaseLinkSettings; - } - - /** Returns the builder for the settings used for calls to listFirebaseLinks. */ - public PagedCallSettings.Builder< - ListFirebaseLinksRequest, ListFirebaseLinksResponse, ListFirebaseLinksPagedResponse> - listFirebaseLinksSettings() { - return listFirebaseLinksSettings; - } - - /** Returns the builder for the settings used for calls to getGlobalSiteTag. */ - public UnaryCallSettings.Builder - getGlobalSiteTagSettings() { - return getGlobalSiteTagSettings; - } - - /** Returns the builder for the settings used for calls to createGoogleAdsLink. */ - public UnaryCallSettings.Builder - createGoogleAdsLinkSettings() { - return createGoogleAdsLinkSettings; - } - - /** Returns the builder for the settings used for calls to updateGoogleAdsLink. */ - public UnaryCallSettings.Builder - updateGoogleAdsLinkSettings() { - return updateGoogleAdsLinkSettings; - } - - /** Returns the builder for the settings used for calls to deleteGoogleAdsLink. */ - public UnaryCallSettings.Builder - deleteGoogleAdsLinkSettings() { - return deleteGoogleAdsLinkSettings; - } - - /** Returns the builder for the settings used for calls to listGoogleAdsLinks. */ - public PagedCallSettings.Builder< - ListGoogleAdsLinksRequest, ListGoogleAdsLinksResponse, ListGoogleAdsLinksPagedResponse> - listGoogleAdsLinksSettings() { - return listGoogleAdsLinksSettings; - } - - /** Returns the builder for the settings used for calls to getDataSharingSettings. */ - public UnaryCallSettings.Builder - getDataSharingSettingsSettings() { - return getDataSharingSettingsSettings; - } - - /** Returns the builder for the settings used for calls to getMeasurementProtocolSecret. */ - public UnaryCallSettings.Builder - getMeasurementProtocolSecretSettings() { - return getMeasurementProtocolSecretSettings; - } - - /** Returns the builder for the settings used for calls to listMeasurementProtocolSecrets. */ - public PagedCallSettings.Builder< - ListMeasurementProtocolSecretsRequest, - ListMeasurementProtocolSecretsResponse, - ListMeasurementProtocolSecretsPagedResponse> - listMeasurementProtocolSecretsSettings() { - return listMeasurementProtocolSecretsSettings; - } - - /** Returns the builder for the settings used for calls to createMeasurementProtocolSecret. */ - public UnaryCallSettings.Builder< - CreateMeasurementProtocolSecretRequest, MeasurementProtocolSecret> - createMeasurementProtocolSecretSettings() { - return createMeasurementProtocolSecretSettings; - } - - /** Returns the builder for the settings used for calls to deleteMeasurementProtocolSecret. */ - public UnaryCallSettings.Builder - deleteMeasurementProtocolSecretSettings() { - return deleteMeasurementProtocolSecretSettings; - } - - /** Returns the builder for the settings used for calls to updateMeasurementProtocolSecret. */ - public UnaryCallSettings.Builder< - UpdateMeasurementProtocolSecretRequest, MeasurementProtocolSecret> - updateMeasurementProtocolSecretSettings() { - return updateMeasurementProtocolSecretSettings; - } - - /** Returns the builder for the settings used for calls to acknowledgeUserDataCollection. */ - public UnaryCallSettings.Builder< - AcknowledgeUserDataCollectionRequest, AcknowledgeUserDataCollectionResponse> - acknowledgeUserDataCollectionSettings() { - return acknowledgeUserDataCollectionSettings; - } - - /** Returns the builder for the settings used for calls to searchChangeHistoryEvents. */ - public PagedCallSettings.Builder< - SearchChangeHistoryEventsRequest, - SearchChangeHistoryEventsResponse, - SearchChangeHistoryEventsPagedResponse> - searchChangeHistoryEventsSettings() { - return searchChangeHistoryEventsSettings; - } - - /** Returns the builder for the settings used for calls to getGoogleSignalsSettings. */ - public UnaryCallSettings.Builder - getGoogleSignalsSettingsSettings() { - return getGoogleSignalsSettingsSettings; - } - - /** Returns the builder for the settings used for calls to updateGoogleSignalsSettings. */ - public UnaryCallSettings.Builder - updateGoogleSignalsSettingsSettings() { - return updateGoogleSignalsSettingsSettings; - } - - /** Returns the builder for the settings used for calls to createConversionEvent. */ - public UnaryCallSettings.Builder - createConversionEventSettings() { - return createConversionEventSettings; - } - - /** Returns the builder for the settings used for calls to getConversionEvent. */ - public UnaryCallSettings.Builder - getConversionEventSettings() { - return getConversionEventSettings; - } - - /** Returns the builder for the settings used for calls to deleteConversionEvent. */ - public UnaryCallSettings.Builder - deleteConversionEventSettings() { - return deleteConversionEventSettings; - } - - /** Returns the builder for the settings used for calls to listConversionEvents. */ - public PagedCallSettings.Builder< - ListConversionEventsRequest, - ListConversionEventsResponse, - ListConversionEventsPagedResponse> - listConversionEventsSettings() { - return listConversionEventsSettings; - } - - /** Returns the builder for the settings used for calls to getDisplayVideo360AdvertiserLink. */ - public UnaryCallSettings.Builder< - GetDisplayVideo360AdvertiserLinkRequest, DisplayVideo360AdvertiserLink> - getDisplayVideo360AdvertiserLinkSettings() { - return getDisplayVideo360AdvertiserLinkSettings; - } - - /** - * Returns the builder for the settings used for calls to listDisplayVideo360AdvertiserLinks. - */ - public PagedCallSettings.Builder< - ListDisplayVideo360AdvertiserLinksRequest, - ListDisplayVideo360AdvertiserLinksResponse, - ListDisplayVideo360AdvertiserLinksPagedResponse> - listDisplayVideo360AdvertiserLinksSettings() { - return listDisplayVideo360AdvertiserLinksSettings; - } - - /** - * Returns the builder for the settings used for calls to createDisplayVideo360AdvertiserLink. - */ - public UnaryCallSettings.Builder< - CreateDisplayVideo360AdvertiserLinkRequest, DisplayVideo360AdvertiserLink> - createDisplayVideo360AdvertiserLinkSettings() { - return createDisplayVideo360AdvertiserLinkSettings; - } - - /** - * Returns the builder for the settings used for calls to deleteDisplayVideo360AdvertiserLink. - */ - public UnaryCallSettings.Builder - deleteDisplayVideo360AdvertiserLinkSettings() { - return deleteDisplayVideo360AdvertiserLinkSettings; - } - - /** - * Returns the builder for the settings used for calls to updateDisplayVideo360AdvertiserLink. - */ - public UnaryCallSettings.Builder< - UpdateDisplayVideo360AdvertiserLinkRequest, DisplayVideo360AdvertiserLink> - updateDisplayVideo360AdvertiserLinkSettings() { - return updateDisplayVideo360AdvertiserLinkSettings; - } - - /** - * Returns the builder for the settings used for calls to - * getDisplayVideo360AdvertiserLinkProposal. - */ - public UnaryCallSettings.Builder< - GetDisplayVideo360AdvertiserLinkProposalRequest, DisplayVideo360AdvertiserLinkProposal> - getDisplayVideo360AdvertiserLinkProposalSettings() { - return getDisplayVideo360AdvertiserLinkProposalSettings; - } - - /** - * Returns the builder for the settings used for calls to - * listDisplayVideo360AdvertiserLinkProposals. - */ - public PagedCallSettings.Builder< - ListDisplayVideo360AdvertiserLinkProposalsRequest, - ListDisplayVideo360AdvertiserLinkProposalsResponse, - ListDisplayVideo360AdvertiserLinkProposalsPagedResponse> - listDisplayVideo360AdvertiserLinkProposalsSettings() { - return listDisplayVideo360AdvertiserLinkProposalsSettings; - } - - /** - * Returns the builder for the settings used for calls to - * createDisplayVideo360AdvertiserLinkProposal. - */ - public UnaryCallSettings.Builder< - CreateDisplayVideo360AdvertiserLinkProposalRequest, - DisplayVideo360AdvertiserLinkProposal> - createDisplayVideo360AdvertiserLinkProposalSettings() { - return createDisplayVideo360AdvertiserLinkProposalSettings; - } - - /** - * Returns the builder for the settings used for calls to - * deleteDisplayVideo360AdvertiserLinkProposal. - */ - public UnaryCallSettings.Builder - deleteDisplayVideo360AdvertiserLinkProposalSettings() { - return deleteDisplayVideo360AdvertiserLinkProposalSettings; - } - - /** - * Returns the builder for the settings used for calls to - * approveDisplayVideo360AdvertiserLinkProposal. - */ - public UnaryCallSettings.Builder< - ApproveDisplayVideo360AdvertiserLinkProposalRequest, - ApproveDisplayVideo360AdvertiserLinkProposalResponse> - approveDisplayVideo360AdvertiserLinkProposalSettings() { - return approveDisplayVideo360AdvertiserLinkProposalSettings; - } - - /** - * Returns the builder for the settings used for calls to - * cancelDisplayVideo360AdvertiserLinkProposal. - */ - public UnaryCallSettings.Builder< - CancelDisplayVideo360AdvertiserLinkProposalRequest, - DisplayVideo360AdvertiserLinkProposal> - cancelDisplayVideo360AdvertiserLinkProposalSettings() { - return cancelDisplayVideo360AdvertiserLinkProposalSettings; - } - - /** Returns the builder for the settings used for calls to createCustomDimension. */ - public UnaryCallSettings.Builder - createCustomDimensionSettings() { - return createCustomDimensionSettings; - } - - /** Returns the builder for the settings used for calls to updateCustomDimension. */ - public UnaryCallSettings.Builder - updateCustomDimensionSettings() { - return updateCustomDimensionSettings; - } - - /** Returns the builder for the settings used for calls to listCustomDimensions. */ - public PagedCallSettings.Builder< - ListCustomDimensionsRequest, - ListCustomDimensionsResponse, - ListCustomDimensionsPagedResponse> - listCustomDimensionsSettings() { - return listCustomDimensionsSettings; - } - - /** Returns the builder for the settings used for calls to archiveCustomDimension. */ - public UnaryCallSettings.Builder - archiveCustomDimensionSettings() { - return archiveCustomDimensionSettings; - } - - /** Returns the builder for the settings used for calls to getCustomDimension. */ - public UnaryCallSettings.Builder - getCustomDimensionSettings() { - return getCustomDimensionSettings; - } - - /** Returns the builder for the settings used for calls to createCustomMetric. */ - public UnaryCallSettings.Builder - createCustomMetricSettings() { - return createCustomMetricSettings; - } - - /** Returns the builder for the settings used for calls to updateCustomMetric. */ - public UnaryCallSettings.Builder - updateCustomMetricSettings() { - return updateCustomMetricSettings; - } - - /** Returns the builder for the settings used for calls to listCustomMetrics. */ - public PagedCallSettings.Builder< - ListCustomMetricsRequest, ListCustomMetricsResponse, ListCustomMetricsPagedResponse> - listCustomMetricsSettings() { - return listCustomMetricsSettings; - } - - /** Returns the builder for the settings used for calls to archiveCustomMetric. */ - public UnaryCallSettings.Builder - archiveCustomMetricSettings() { - return archiveCustomMetricSettings; - } - - /** Returns the builder for the settings used for calls to getCustomMetric. */ - public UnaryCallSettings.Builder - getCustomMetricSettings() { - return getCustomMetricSettings; - } - - /** Returns the builder for the settings used for calls to getDataRetentionSettings. */ - public UnaryCallSettings.Builder - getDataRetentionSettingsSettings() { - return getDataRetentionSettingsSettings; - } - - /** Returns the builder for the settings used for calls to updateDataRetentionSettings. */ - public UnaryCallSettings.Builder - updateDataRetentionSettingsSettings() { - return updateDataRetentionSettingsSettings; - } - - /** Returns the builder for the settings used for calls to createDataStream. */ - public UnaryCallSettings.Builder - createDataStreamSettings() { - return createDataStreamSettings; - } - - /** Returns the builder for the settings used for calls to deleteDataStream. */ - public UnaryCallSettings.Builder deleteDataStreamSettings() { - return deleteDataStreamSettings; - } - - /** Returns the builder for the settings used for calls to updateDataStream. */ - public UnaryCallSettings.Builder - updateDataStreamSettings() { - return updateDataStreamSettings; - } - - /** Returns the builder for the settings used for calls to listDataStreams. */ - public PagedCallSettings.Builder< - ListDataStreamsRequest, ListDataStreamsResponse, ListDataStreamsPagedResponse> - listDataStreamsSettings() { - return listDataStreamsSettings; - } - - /** Returns the builder for the settings used for calls to getDataStream. */ - public UnaryCallSettings.Builder getDataStreamSettings() { - return getDataStreamSettings; - } - - /** Returns the builder for the settings used for calls to getAudience. */ - public UnaryCallSettings.Builder getAudienceSettings() { - return getAudienceSettings; - } - - /** Returns the builder for the settings used for calls to listAudiences. */ - public PagedCallSettings.Builder< - ListAudiencesRequest, ListAudiencesResponse, ListAudiencesPagedResponse> - listAudiencesSettings() { - return listAudiencesSettings; - } - - /** Returns the builder for the settings used for calls to createAudience. */ - public UnaryCallSettings.Builder createAudienceSettings() { - return createAudienceSettings; - } - - /** Returns the builder for the settings used for calls to updateAudience. */ - public UnaryCallSettings.Builder updateAudienceSettings() { - return updateAudienceSettings; - } - - /** Returns the builder for the settings used for calls to archiveAudience. */ - public UnaryCallSettings.Builder archiveAudienceSettings() { - return archiveAudienceSettings; - } - - /** Returns the builder for the settings used for calls to getAttributionSettings. */ - public UnaryCallSettings.Builder - getAttributionSettingsSettings() { - return getAttributionSettingsSettings; - } - - /** Returns the builder for the settings used for calls to updateAttributionSettings. */ - public UnaryCallSettings.Builder - updateAttributionSettingsSettings() { - return updateAttributionSettingsSettings; - } - - /** Returns the builder for the settings used for calls to runAccessReport. */ - public UnaryCallSettings.Builder - runAccessReportSettings() { - return runAccessReportSettings; - } - - @Override - public AnalyticsAdminServiceStubSettings build() throws IOException { - return new AnalyticsAdminServiceStubSettings(this); - } - } -} diff --git a/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/GrpcAnalyticsAdminServiceCallableFactory.java b/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/GrpcAnalyticsAdminServiceCallableFactory.java deleted file mode 100644 index 0061137c..00000000 --- a/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/GrpcAnalyticsAdminServiceCallableFactory.java +++ /dev/null @@ -1,115 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 com.google.api.core.BetaApi; -import com.google.api.gax.grpc.GrpcCallSettings; -import com.google.api.gax.grpc.GrpcCallableFactory; -import com.google.api.gax.grpc.GrpcStubCallableFactory; -import com.google.api.gax.rpc.BatchingCallSettings; -import com.google.api.gax.rpc.BidiStreamingCallable; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.ClientStreamingCallable; -import com.google.api.gax.rpc.OperationCallSettings; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.ServerStreamingCallSettings; -import com.google.api.gax.rpc.ServerStreamingCallable; -import com.google.api.gax.rpc.StreamingCallSettings; -import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.longrunning.Operation; -import com.google.longrunning.stub.OperationsStub; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * gRPC callable factory implementation for the AnalyticsAdminService service API. - * - *

This class is for advanced usage. - */ -@BetaApi -@Generated("by gapic-generator-java") -public class GrpcAnalyticsAdminServiceCallableFactory implements GrpcStubCallableFactory { - - @Override - public UnaryCallable createUnaryCallable( - GrpcCallSettings grpcCallSettings, - UnaryCallSettings callSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); - } - - @Override - public - UnaryCallable createPagedCallable( - GrpcCallSettings grpcCallSettings, - PagedCallSettings callSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext); - } - - @Override - public UnaryCallable createBatchingCallable( - GrpcCallSettings grpcCallSettings, - BatchingCallSettings callSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createBatchingCallable( - grpcCallSettings, callSettings, clientContext); - } - - @Override - public - OperationCallable createOperationCallable( - GrpcCallSettings grpcCallSettings, - OperationCallSettings callSettings, - ClientContext clientContext, - OperationsStub operationsStub) { - return GrpcCallableFactory.createOperationCallable( - grpcCallSettings, callSettings, clientContext, operationsStub); - } - - @Override - public - BidiStreamingCallable createBidiStreamingCallable( - GrpcCallSettings grpcCallSettings, - StreamingCallSettings callSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createBidiStreamingCallable( - grpcCallSettings, callSettings, clientContext); - } - - @Override - public - ServerStreamingCallable createServerStreamingCallable( - GrpcCallSettings grpcCallSettings, - ServerStreamingCallSettings callSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createServerStreamingCallable( - grpcCallSettings, callSettings, clientContext); - } - - @Override - public - ClientStreamingCallable createClientStreamingCallable( - GrpcCallSettings grpcCallSettings, - StreamingCallSettings callSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createClientStreamingCallable( - grpcCallSettings, callSettings, clientContext); - } -} diff --git a/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/GrpcAnalyticsAdminServiceStub.java b/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/GrpcAnalyticsAdminServiceStub.java deleted file mode 100644 index 79439a36..00000000 --- a/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/GrpcAnalyticsAdminServiceStub.java +++ /dev/null @@ -1,3218 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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.AuditUserLinksPagedResponse; -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.ListAudiencesPagedResponse; -import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListConversionEventsPagedResponse; -import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListCustomDimensionsPagedResponse; -import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListCustomMetricsPagedResponse; -import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListDataStreamsPagedResponse; -import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListDisplayVideo360AdvertiserLinkProposalsPagedResponse; -import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListDisplayVideo360AdvertiserLinksPagedResponse; -import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListFirebaseLinksPagedResponse; -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.ListUserLinksPagedResponse; -import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.SearchChangeHistoryEventsPagedResponse; - -import com.google.analytics.admin.v1alpha.Account; -import com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest; -import com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse; -import com.google.analytics.admin.v1alpha.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.AuditUserLinksRequest; -import com.google.analytics.admin.v1alpha.AuditUserLinksResponse; -import com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest; -import com.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse; -import com.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest; -import com.google.analytics.admin.v1alpha.BatchGetUserLinksRequest; -import com.google.analytics.admin.v1alpha.BatchGetUserLinksResponse; -import com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest; -import com.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse; -import com.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest; -import com.google.analytics.admin.v1alpha.ConversionEvent; -import com.google.analytics.admin.v1alpha.CreateAudienceRequest; -import com.google.analytics.admin.v1alpha.CreateConversionEventRequest; -import com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest; -import com.google.analytics.admin.v1alpha.CreateCustomMetricRequest; -import com.google.analytics.admin.v1alpha.CreateDataStreamRequest; -import com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest; -import com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest; -import com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest; -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.CreateUserLinkRequest; -import com.google.analytics.admin.v1alpha.CustomDimension; -import com.google.analytics.admin.v1alpha.CustomMetric; -import com.google.analytics.admin.v1alpha.DataRetentionSettings; -import com.google.analytics.admin.v1alpha.DataSharingSettings; -import com.google.analytics.admin.v1alpha.DataStream; -import com.google.analytics.admin.v1alpha.DeleteAccountRequest; -import com.google.analytics.admin.v1alpha.DeleteConversionEventRequest; -import com.google.analytics.admin.v1alpha.DeleteDataStreamRequest; -import com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest; -import com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest; -import com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest; -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.DeleteUserLinkRequest; -import com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink; -import com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal; -import com.google.analytics.admin.v1alpha.FirebaseLink; -import com.google.analytics.admin.v1alpha.GetAccountRequest; -import com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest; -import com.google.analytics.admin.v1alpha.GetAudienceRequest; -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.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.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.GetUserLinkRequest; -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.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.ListAudiencesRequest; -import com.google.analytics.admin.v1alpha.ListAudiencesResponse; -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.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.ListUserLinksRequest; -import com.google.analytics.admin.v1alpha.ListUserLinksResponse; -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.RunAccessReportRequest; -import com.google.analytics.admin.v1alpha.RunAccessReportResponse; -import com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest; -import com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse; -import com.google.analytics.admin.v1alpha.UpdateAccountRequest; -import com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest; -import com.google.analytics.admin.v1alpha.UpdateAudienceRequest; -import com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest; -import com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest; -import com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest; -import com.google.analytics.admin.v1alpha.UpdateDataStreamRequest; -import com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest; -import com.google.analytics.admin.v1alpha.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.UpdateUserLinkRequest; -import com.google.analytics.admin.v1alpha.UserLink; -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.UnaryCallable; -import com.google.common.collect.ImmutableMap; -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 getUserLinkMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.analytics.admin.v1alpha.AnalyticsAdminService/GetUserLink") - .setRequestMarshaller(ProtoUtils.marshaller(GetUserLinkRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(UserLink.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - batchGetUserLinksMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/BatchGetUserLinks") - .setRequestMarshaller( - ProtoUtils.marshaller(BatchGetUserLinksRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(BatchGetUserLinksResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - listUserLinksMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/ListUserLinks") - .setRequestMarshaller( - ProtoUtils.marshaller(ListUserLinksRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(ListUserLinksResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - auditUserLinksMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/AuditUserLinks") - .setRequestMarshaller( - ProtoUtils.marshaller(AuditUserLinksRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(AuditUserLinksResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - createUserLinkMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/CreateUserLink") - .setRequestMarshaller( - ProtoUtils.marshaller(CreateUserLinkRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(UserLink.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - batchCreateUserLinksMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/BatchCreateUserLinks") - .setRequestMarshaller( - ProtoUtils.marshaller(BatchCreateUserLinksRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(BatchCreateUserLinksResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - updateUserLinkMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateUserLink") - .setRequestMarshaller( - ProtoUtils.marshaller(UpdateUserLinkRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(UserLink.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - batchUpdateUserLinksMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/BatchUpdateUserLinks") - .setRequestMarshaller( - ProtoUtils.marshaller(BatchUpdateUserLinksRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(BatchUpdateUserLinksResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - deleteUserLinkMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteUserLink") - .setRequestMarshaller( - ProtoUtils.marshaller(DeleteUserLinkRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - batchDeleteUserLinksMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/BatchDeleteUserLinks") - .setRequestMarshaller( - ProtoUtils.marshaller(BatchDeleteUserLinksRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Empty.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< - 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 - 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 - 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 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 getUserLinkCallable; - private final UnaryCallable - batchGetUserLinksCallable; - private final UnaryCallable listUserLinksCallable; - private final UnaryCallable - listUserLinksPagedCallable; - private final UnaryCallable auditUserLinksCallable; - private final UnaryCallable - auditUserLinksPagedCallable; - private final UnaryCallable createUserLinkCallable; - private final UnaryCallable - batchCreateUserLinksCallable; - private final UnaryCallable updateUserLinkCallable; - private final UnaryCallable - batchUpdateUserLinksCallable; - private final UnaryCallable deleteUserLinkCallable; - private final UnaryCallable batchDeleteUserLinksCallable; - 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 - searchChangeHistoryEventsCallable; - private final UnaryCallable< - SearchChangeHistoryEventsRequest, SearchChangeHistoryEventsPagedResponse> - searchChangeHistoryEventsPagedCallable; - private final UnaryCallable - getGoogleSignalsSettingsCallable; - private final UnaryCallable - updateGoogleSignalsSettingsCallable; - private final UnaryCallable - createConversionEventCallable; - 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 - getAttributionSettingsCallable; - private final UnaryCallable - updateAttributionSettingsCallable; - 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 -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings listAccountsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(listAccountsMethodDescriptor) - .build(); - GrpcCallSettings deleteAccountTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deleteAccountMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings updateAccountTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(updateAccountMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("account.name", String.valueOf(request.getAccount().getName())); - return params.build(); - }) - .build(); - GrpcCallSettings - provisionAccountTicketTransportSettings = - GrpcCallSettings - .newBuilder() - .setMethodDescriptor(provisionAccountTicketMethodDescriptor) - .build(); - GrpcCallSettings - listAccountSummariesTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(listAccountSummariesMethodDescriptor) - .build(); - GrpcCallSettings getPropertyTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getPropertyMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings - listPropertiesTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(listPropertiesMethodDescriptor) - .build(); - GrpcCallSettings createPropertyTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createPropertyMethodDescriptor) - .build(); - GrpcCallSettings deletePropertyTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deletePropertyMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings updatePropertyTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(updatePropertyMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("property.name", String.valueOf(request.getProperty().getName())); - return params.build(); - }) - .build(); - GrpcCallSettings getUserLinkTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getUserLinkMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings - batchGetUserLinksTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(batchGetUserLinksMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - }) - .build(); - GrpcCallSettings listUserLinksTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(listUserLinksMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - }) - .build(); - GrpcCallSettings - auditUserLinksTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(auditUserLinksMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - }) - .build(); - GrpcCallSettings createUserLinkTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createUserLinkMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - }) - .build(); - GrpcCallSettings - batchCreateUserLinksTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(batchCreateUserLinksMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - }) - .build(); - GrpcCallSettings updateUserLinkTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(updateUserLinkMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("user_link.name", String.valueOf(request.getUserLink().getName())); - return params.build(); - }) - .build(); - GrpcCallSettings - batchUpdateUserLinksTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(batchUpdateUserLinksMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - }) - .build(); - GrpcCallSettings deleteUserLinkTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deleteUserLinkMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings batchDeleteUserLinksTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(batchDeleteUserLinksMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - }) - .build(); - GrpcCallSettings createFirebaseLinkTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createFirebaseLinkMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - }) - .build(); - GrpcCallSettings deleteFirebaseLinkTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deleteFirebaseLinkMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings - listFirebaseLinksTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(listFirebaseLinksMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - }) - .build(); - GrpcCallSettings getGlobalSiteTagTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getGlobalSiteTagMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings - createGoogleAdsLinkTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createGoogleAdsLinkMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - }) - .build(); - GrpcCallSettings - updateGoogleAdsLinkTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(updateGoogleAdsLinkMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put( - "google_ads_link.name", - String.valueOf(request.getGoogleAdsLink().getName())); - return params.build(); - }) - .build(); - GrpcCallSettings deleteGoogleAdsLinkTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deleteGoogleAdsLinkMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings - listGoogleAdsLinksTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(listGoogleAdsLinksMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - }) - .build(); - GrpcCallSettings - getDataSharingSettingsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getDataSharingSettingsMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings - getMeasurementProtocolSecretTransportSettings = - GrpcCallSettings - .newBuilder() - .setMethodDescriptor(getMeasurementProtocolSecretMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings - listMeasurementProtocolSecretsTransportSettings = - GrpcCallSettings - . - newBuilder() - .setMethodDescriptor(listMeasurementProtocolSecretsMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - }) - .build(); - GrpcCallSettings - createMeasurementProtocolSecretTransportSettings = - GrpcCallSettings - .newBuilder() - .setMethodDescriptor(createMeasurementProtocolSecretMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - }) - .build(); - GrpcCallSettings - deleteMeasurementProtocolSecretTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deleteMeasurementProtocolSecretMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings - updateMeasurementProtocolSecretTransportSettings = - GrpcCallSettings - .newBuilder() - .setMethodDescriptor(updateMeasurementProtocolSecretMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put( - "measurement_protocol_secret.name", - String.valueOf(request.getMeasurementProtocolSecret().getName())); - return params.build(); - }) - .build(); - GrpcCallSettings - acknowledgeUserDataCollectionTransportSettings = - GrpcCallSettings - . - newBuilder() - .setMethodDescriptor(acknowledgeUserDataCollectionMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("property", String.valueOf(request.getProperty())); - return params.build(); - }) - .build(); - GrpcCallSettings - searchChangeHistoryEventsTransportSettings = - GrpcCallSettings - .newBuilder() - .setMethodDescriptor(searchChangeHistoryEventsMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("account", String.valueOf(request.getAccount())); - return params.build(); - }) - .build(); - GrpcCallSettings - getGoogleSignalsSettingsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getGoogleSignalsSettingsMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings - updateGoogleSignalsSettingsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(updateGoogleSignalsSettingsMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put( - "google_signals_settings.name", - String.valueOf(request.getGoogleSignalsSettings().getName())); - return params.build(); - }) - .build(); - GrpcCallSettings - createConversionEventTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createConversionEventMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - }) - .build(); - GrpcCallSettings - getConversionEventTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getConversionEventMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings deleteConversionEventTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deleteConversionEventMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings - listConversionEventsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(listConversionEventsMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - }) - .build(); - GrpcCallSettings - getDisplayVideo360AdvertiserLinkTransportSettings = - GrpcCallSettings - . - newBuilder() - .setMethodDescriptor(getDisplayVideo360AdvertiserLinkMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings< - ListDisplayVideo360AdvertiserLinksRequest, ListDisplayVideo360AdvertiserLinksResponse> - listDisplayVideo360AdvertiserLinksTransportSettings = - GrpcCallSettings - . - newBuilder() - .setMethodDescriptor(listDisplayVideo360AdvertiserLinksMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - }) - .build(); - GrpcCallSettings - createDisplayVideo360AdvertiserLinkTransportSettings = - GrpcCallSettings - . - newBuilder() - .setMethodDescriptor(createDisplayVideo360AdvertiserLinkMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - }) - .build(); - GrpcCallSettings - deleteDisplayVideo360AdvertiserLinkTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deleteDisplayVideo360AdvertiserLinkMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings - updateDisplayVideo360AdvertiserLinkTransportSettings = - GrpcCallSettings - . - newBuilder() - .setMethodDescriptor(updateDisplayVideo360AdvertiserLinkMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put( - "display_video_360_advertiser_link.name", - String.valueOf(request.getDisplayVideo360AdvertiserLink().getName())); - return params.build(); - }) - .build(); - GrpcCallSettings< - GetDisplayVideo360AdvertiserLinkProposalRequest, DisplayVideo360AdvertiserLinkProposal> - getDisplayVideo360AdvertiserLinkProposalTransportSettings = - GrpcCallSettings - . - newBuilder() - .setMethodDescriptor(getDisplayVideo360AdvertiserLinkProposalMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings< - ListDisplayVideo360AdvertiserLinkProposalsRequest, - ListDisplayVideo360AdvertiserLinkProposalsResponse> - listDisplayVideo360AdvertiserLinkProposalsTransportSettings = - GrpcCallSettings - . - newBuilder() - .setMethodDescriptor(listDisplayVideo360AdvertiserLinkProposalsMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - }) - .build(); - GrpcCallSettings< - CreateDisplayVideo360AdvertiserLinkProposalRequest, - DisplayVideo360AdvertiserLinkProposal> - createDisplayVideo360AdvertiserLinkProposalTransportSettings = - GrpcCallSettings - . - newBuilder() - .setMethodDescriptor(createDisplayVideo360AdvertiserLinkProposalMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - }) - .build(); - GrpcCallSettings - deleteDisplayVideo360AdvertiserLinkProposalTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deleteDisplayVideo360AdvertiserLinkProposalMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings< - ApproveDisplayVideo360AdvertiserLinkProposalRequest, - ApproveDisplayVideo360AdvertiserLinkProposalResponse> - approveDisplayVideo360AdvertiserLinkProposalTransportSettings = - GrpcCallSettings - . - newBuilder() - .setMethodDescriptor(approveDisplayVideo360AdvertiserLinkProposalMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings< - CancelDisplayVideo360AdvertiserLinkProposalRequest, - DisplayVideo360AdvertiserLinkProposal> - cancelDisplayVideo360AdvertiserLinkProposalTransportSettings = - GrpcCallSettings - . - newBuilder() - .setMethodDescriptor(cancelDisplayVideo360AdvertiserLinkProposalMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings - createCustomDimensionTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createCustomDimensionMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - }) - .build(); - GrpcCallSettings - updateCustomDimensionTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(updateCustomDimensionMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put( - "custom_dimension.name", - String.valueOf(request.getCustomDimension().getName())); - return params.build(); - }) - .build(); - GrpcCallSettings - listCustomDimensionsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(listCustomDimensionsMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - }) - .build(); - GrpcCallSettings archiveCustomDimensionTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(archiveCustomDimensionMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings - getCustomDimensionTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getCustomDimensionMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings createCustomMetricTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createCustomMetricMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - }) - .build(); - GrpcCallSettings updateCustomMetricTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(updateCustomMetricMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put( - "custom_metric.name", String.valueOf(request.getCustomMetric().getName())); - return params.build(); - }) - .build(); - GrpcCallSettings - listCustomMetricsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(listCustomMetricsMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - }) - .build(); - GrpcCallSettings archiveCustomMetricTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(archiveCustomMetricMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings getCustomMetricTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getCustomMetricMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings - getDataRetentionSettingsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getDataRetentionSettingsMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings - updateDataRetentionSettingsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(updateDataRetentionSettingsMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put( - "data_retention_settings.name", - String.valueOf(request.getDataRetentionSettings().getName())); - return params.build(); - }) - .build(); - GrpcCallSettings createDataStreamTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createDataStreamMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - }) - .build(); - GrpcCallSettings deleteDataStreamTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deleteDataStreamMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings updateDataStreamTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(updateDataStreamMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("data_stream.name", String.valueOf(request.getDataStream().getName())); - return params.build(); - }) - .build(); - GrpcCallSettings - listDataStreamsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(listDataStreamsMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - }) - .build(); - GrpcCallSettings getDataStreamTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getDataStreamMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings getAudienceTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getAudienceMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings listAudiencesTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(listAudiencesMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - }) - .build(); - GrpcCallSettings createAudienceTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createAudienceMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - }) - .build(); - GrpcCallSettings updateAudienceTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(updateAudienceMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("audience.name", String.valueOf(request.getAudience().getName())); - return params.build(); - }) - .build(); - GrpcCallSettings archiveAudienceTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(archiveAudienceMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings - getAttributionSettingsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getAttributionSettingsMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings - updateAttributionSettingsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(updateAttributionSettingsMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put( - "attribution_settings.name", - String.valueOf(request.getAttributionSettings().getName())); - return params.build(); - }) - .build(); - GrpcCallSettings - runAccessReportTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(runAccessReportMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("entity", String.valueOf(request.getEntity())); - return params.build(); - }) - .build(); - - this.getAccountCallable = - callableFactory.createUnaryCallable( - 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.getUserLinkCallable = - callableFactory.createUnaryCallable( - getUserLinkTransportSettings, settings.getUserLinkSettings(), clientContext); - this.batchGetUserLinksCallable = - callableFactory.createUnaryCallable( - batchGetUserLinksTransportSettings, - settings.batchGetUserLinksSettings(), - clientContext); - this.listUserLinksCallable = - callableFactory.createUnaryCallable( - listUserLinksTransportSettings, settings.listUserLinksSettings(), clientContext); - this.listUserLinksPagedCallable = - callableFactory.createPagedCallable( - listUserLinksTransportSettings, settings.listUserLinksSettings(), clientContext); - this.auditUserLinksCallable = - callableFactory.createUnaryCallable( - auditUserLinksTransportSettings, settings.auditUserLinksSettings(), clientContext); - this.auditUserLinksPagedCallable = - callableFactory.createPagedCallable( - auditUserLinksTransportSettings, settings.auditUserLinksSettings(), clientContext); - this.createUserLinkCallable = - callableFactory.createUnaryCallable( - createUserLinkTransportSettings, settings.createUserLinkSettings(), clientContext); - this.batchCreateUserLinksCallable = - callableFactory.createUnaryCallable( - batchCreateUserLinksTransportSettings, - settings.batchCreateUserLinksSettings(), - clientContext); - this.updateUserLinkCallable = - callableFactory.createUnaryCallable( - updateUserLinkTransportSettings, settings.updateUserLinkSettings(), clientContext); - this.batchUpdateUserLinksCallable = - callableFactory.createUnaryCallable( - batchUpdateUserLinksTransportSettings, - settings.batchUpdateUserLinksSettings(), - clientContext); - this.deleteUserLinkCallable = - callableFactory.createUnaryCallable( - deleteUserLinkTransportSettings, settings.deleteUserLinkSettings(), clientContext); - this.batchDeleteUserLinksCallable = - callableFactory.createUnaryCallable( - batchDeleteUserLinksTransportSettings, - settings.batchDeleteUserLinksSettings(), - 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.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.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.getAttributionSettingsCallable = - callableFactory.createUnaryCallable( - getAttributionSettingsTransportSettings, - settings.getAttributionSettingsSettings(), - clientContext); - this.updateAttributionSettingsCallable = - callableFactory.createUnaryCallable( - updateAttributionSettingsTransportSettings, - settings.updateAttributionSettingsSettings(), - 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 getUserLinkCallable() { - return getUserLinkCallable; - } - - @Override - public UnaryCallable - batchGetUserLinksCallable() { - return batchGetUserLinksCallable; - } - - @Override - public UnaryCallable listUserLinksCallable() { - return listUserLinksCallable; - } - - @Override - public UnaryCallable - listUserLinksPagedCallable() { - return listUserLinksPagedCallable; - } - - @Override - public UnaryCallable auditUserLinksCallable() { - return auditUserLinksCallable; - } - - @Override - public UnaryCallable - auditUserLinksPagedCallable() { - return auditUserLinksPagedCallable; - } - - @Override - public UnaryCallable createUserLinkCallable() { - return createUserLinkCallable; - } - - @Override - public UnaryCallable - batchCreateUserLinksCallable() { - return batchCreateUserLinksCallable; - } - - @Override - public UnaryCallable updateUserLinkCallable() { - return updateUserLinkCallable; - } - - @Override - public UnaryCallable - batchUpdateUserLinksCallable() { - return batchUpdateUserLinksCallable; - } - - @Override - public UnaryCallable deleteUserLinkCallable() { - return deleteUserLinkCallable; - } - - @Override - public UnaryCallable batchDeleteUserLinksCallable() { - return batchDeleteUserLinksCallable; - } - - @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 - 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 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 - getAttributionSettingsCallable() { - return getAttributionSettingsCallable; - } - - @Override - public UnaryCallable - updateAttributionSettingsCallable() { - return updateAttributionSettingsCallable; - } - - @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/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/HttpJsonAnalyticsAdminServiceCallableFactory.java b/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/HttpJsonAnalyticsAdminServiceCallableFactory.java deleted file mode 100644 index 6a28742c..00000000 --- a/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/HttpJsonAnalyticsAdminServiceCallableFactory.java +++ /dev/null @@ -1,105 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 com.google.api.core.BetaApi; -import com.google.api.gax.httpjson.HttpJsonCallSettings; -import com.google.api.gax.httpjson.HttpJsonCallableFactory; -import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; -import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; -import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; -import com.google.api.gax.rpc.BatchingCallSettings; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.OperationCallSettings; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.ServerStreamingCallSettings; -import com.google.api.gax.rpc.ServerStreamingCallable; -import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.longrunning.Operation; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * REST callable factory implementation for the AnalyticsAdminService service API. - * - *

This class is for advanced usage. - */ -@BetaApi -@Generated("by gapic-generator-java") -public class HttpJsonAnalyticsAdminServiceCallableFactory - implements HttpJsonStubCallableFactory { - - @Override - public UnaryCallable createUnaryCallable( - HttpJsonCallSettings httpJsonCallSettings, - UnaryCallSettings callSettings, - ClientContext clientContext) { - return HttpJsonCallableFactory.createUnaryCallable( - httpJsonCallSettings, callSettings, clientContext); - } - - @Override - public - UnaryCallable createPagedCallable( - HttpJsonCallSettings httpJsonCallSettings, - PagedCallSettings callSettings, - ClientContext clientContext) { - return HttpJsonCallableFactory.createPagedCallable( - httpJsonCallSettings, callSettings, clientContext); - } - - @Override - public UnaryCallable createBatchingCallable( - HttpJsonCallSettings httpJsonCallSettings, - BatchingCallSettings callSettings, - ClientContext clientContext) { - return HttpJsonCallableFactory.createBatchingCallable( - httpJsonCallSettings, callSettings, clientContext); - } - - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - @Override - public - OperationCallable createOperationCallable( - HttpJsonCallSettings httpJsonCallSettings, - OperationCallSettings callSettings, - ClientContext clientContext, - OperationsStub operationsStub) { - UnaryCallable innerCallable = - HttpJsonCallableFactory.createBaseUnaryCallable( - httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); - HttpJsonOperationSnapshotCallable initialCallable = - new HttpJsonOperationSnapshotCallable( - innerCallable, - httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); - return HttpJsonCallableFactory.createOperationCallable( - callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); - } - - @Override - public - ServerStreamingCallable createServerStreamingCallable( - HttpJsonCallSettings httpJsonCallSettings, - ServerStreamingCallSettings callSettings, - ClientContext clientContext) { - return HttpJsonCallableFactory.createServerStreamingCallable( - httpJsonCallSettings, callSettings, clientContext); - } -} diff --git a/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/HttpJsonAnalyticsAdminServiceStub.java b/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/HttpJsonAnalyticsAdminServiceStub.java deleted file mode 100644 index 2f541a27..00000000 --- a/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/HttpJsonAnalyticsAdminServiceStub.java +++ /dev/null @@ -1,4970 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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.AuditUserLinksPagedResponse; -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.ListAudiencesPagedResponse; -import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListConversionEventsPagedResponse; -import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListCustomDimensionsPagedResponse; -import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListCustomMetricsPagedResponse; -import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListDataStreamsPagedResponse; -import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListDisplayVideo360AdvertiserLinkProposalsPagedResponse; -import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListDisplayVideo360AdvertiserLinksPagedResponse; -import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListFirebaseLinksPagedResponse; -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.ListUserLinksPagedResponse; -import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.SearchChangeHistoryEventsPagedResponse; - -import com.google.analytics.admin.v1alpha.Account; -import com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest; -import com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse; -import com.google.analytics.admin.v1alpha.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.AuditUserLinksRequest; -import com.google.analytics.admin.v1alpha.AuditUserLinksResponse; -import com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest; -import com.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse; -import com.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest; -import com.google.analytics.admin.v1alpha.BatchGetUserLinksRequest; -import com.google.analytics.admin.v1alpha.BatchGetUserLinksResponse; -import com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest; -import com.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse; -import com.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest; -import com.google.analytics.admin.v1alpha.ConversionEvent; -import com.google.analytics.admin.v1alpha.CreateAudienceRequest; -import com.google.analytics.admin.v1alpha.CreateConversionEventRequest; -import com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest; -import com.google.analytics.admin.v1alpha.CreateCustomMetricRequest; -import com.google.analytics.admin.v1alpha.CreateDataStreamRequest; -import com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest; -import com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest; -import com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest; -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.CreateUserLinkRequest; -import com.google.analytics.admin.v1alpha.CustomDimension; -import com.google.analytics.admin.v1alpha.CustomMetric; -import com.google.analytics.admin.v1alpha.DataRetentionSettings; -import com.google.analytics.admin.v1alpha.DataSharingSettings; -import com.google.analytics.admin.v1alpha.DataStream; -import com.google.analytics.admin.v1alpha.DeleteAccountRequest; -import com.google.analytics.admin.v1alpha.DeleteConversionEventRequest; -import com.google.analytics.admin.v1alpha.DeleteDataStreamRequest; -import com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest; -import com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest; -import com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest; -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.DeleteUserLinkRequest; -import com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink; -import com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal; -import com.google.analytics.admin.v1alpha.FirebaseLink; -import com.google.analytics.admin.v1alpha.GetAccountRequest; -import com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest; -import com.google.analytics.admin.v1alpha.GetAudienceRequest; -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.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.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.GetUserLinkRequest; -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.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.ListAudiencesRequest; -import com.google.analytics.admin.v1alpha.ListAudiencesResponse; -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.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.ListUserLinksRequest; -import com.google.analytics.admin.v1alpha.ListUserLinksResponse; -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.RunAccessReportRequest; -import com.google.analytics.admin.v1alpha.RunAccessReportResponse; -import com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest; -import com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse; -import com.google.analytics.admin.v1alpha.UpdateAccountRequest; -import com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest; -import com.google.analytics.admin.v1alpha.UpdateAudienceRequest; -import com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest; -import com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest; -import com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest; -import com.google.analytics.admin.v1alpha.UpdateDataStreamRequest; -import com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest; -import com.google.analytics.admin.v1alpha.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.UpdateUserLinkRequest; -import com.google.analytics.admin.v1alpha.UserLink; -import com.google.api.core.BetaApi; -import com.google.api.core.InternalApi; -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.core.BackgroundResourceAggregation; -import com.google.api.gax.httpjson.ApiMethodDescriptor; -import com.google.api.gax.httpjson.HttpJsonCallSettings; -import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; -import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; -import com.google.api.gax.httpjson.ProtoMessageResponseParser; -import com.google.api.gax.httpjson.ProtoRestSerializer; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.protobuf.Empty; -import com.google.protobuf.TypeRegistry; -import java.io.IOException; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.concurrent.TimeUnit; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * REST 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 HttpJsonAnalyticsAdminServiceStub extends AnalyticsAdminServiceStub { - private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); - - private static final ApiMethodDescriptor getAccountMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.analytics.admin.v1alpha.AnalyticsAdminService/GetAccount") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1alpha/{name=accounts/*}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Account.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - listAccountsMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/ListAccounts") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1alpha/accounts", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "pageSize", request.getPageSize()); - serializer.putQueryParam(fields, "pageToken", request.getPageToken()); - serializer.putQueryParam( - fields, "showDeleted", request.getShowDeleted()); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(ListAccountsResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - deleteAccountMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteAccount") - .setHttpMethod("DELETE") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1alpha/{name=accounts/*}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Empty.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - updateAccountMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateAccount") - .setHttpMethod("PATCH") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1alpha/{account.name=accounts/*}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam( - fields, "account.name", request.getAccount().getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("account", request.getAccount(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Account.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor< - ProvisionAccountTicketRequest, ProvisionAccountTicketResponse> - provisionAccountTicketMethodDescriptor = - ApiMethodDescriptor - .newBuilder() - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/ProvisionAccountTicket") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1alpha/accounts:provisionAccountTicket", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().build(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(ProvisionAccountTicketResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor< - ListAccountSummariesRequest, ListAccountSummariesResponse> - listAccountSummariesMethodDescriptor = - ApiMethodDescriptor - .newBuilder() - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/ListAccountSummaries") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1alpha/accountSummaries", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "pageSize", request.getPageSize()); - serializer.putQueryParam(fields, "pageToken", request.getPageToken()); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(ListAccountSummariesResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - getPropertyMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.analytics.admin.v1alpha.AnalyticsAdminService/GetProperty") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1alpha/{name=properties/*}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Property.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - listPropertiesMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/ListProperties") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1alpha/properties", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "filter", request.getFilter()); - serializer.putQueryParam(fields, "pageSize", request.getPageSize()); - serializer.putQueryParam(fields, "pageToken", request.getPageToken()); - serializer.putQueryParam( - fields, "showDeleted", request.getShowDeleted()); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(ListPropertiesResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - createPropertyMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/CreateProperty") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1alpha/properties", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("property", request.getProperty(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Property.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - deletePropertyMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteProperty") - .setHttpMethod("DELETE") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1alpha/{name=properties/*}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Property.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - updatePropertyMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateProperty") - .setHttpMethod("PATCH") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1alpha/{property.name=properties/*}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam( - fields, "property.name", request.getProperty().getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("property", request.getProperty(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Property.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - getUserLinkMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.analytics.admin.v1alpha.AnalyticsAdminService/GetUserLink") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1alpha/{name=accounts/*/userLinks/*}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setAdditionalPaths("/v1alpha/{name=properties/*/userLinks/*}") - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(UserLink.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - batchGetUserLinksMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/BatchGetUserLinks") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1alpha/{parent=accounts/*}/userLinks:batchGet", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); - return fields; - }) - .setAdditionalPaths("/v1alpha/{parent=properties/*}/userLinks:batchGet") - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "names", request.getNamesList()); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(BatchGetUserLinksResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - listUserLinksMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/ListUserLinks") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1alpha/{parent=accounts/*}/userLinks", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); - return fields; - }) - .setAdditionalPaths("/v1alpha/{parent=properties/*}/userLinks") - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "pageSize", request.getPageSize()); - serializer.putQueryParam(fields, "pageToken", request.getPageToken()); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(ListUserLinksResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - auditUserLinksMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/AuditUserLinks") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1alpha/{parent=accounts/*}/userLinks:audit", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); - return fields; - }) - .setAdditionalPaths("/v1alpha/{parent=properties/*}/userLinks:audit") - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearParent().build(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(AuditUserLinksResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - createUserLinkMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/CreateUserLink") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1alpha/{parent=accounts/*}/userLinks", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); - return fields; - }) - .setAdditionalPaths("/v1alpha/{parent=properties/*}/userLinks") - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam( - fields, "notifyNewUser", request.getNotifyNewUser()); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("userLink", request.getUserLink(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(UserLink.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor< - BatchCreateUserLinksRequest, BatchCreateUserLinksResponse> - batchCreateUserLinksMethodDescriptor = - ApiMethodDescriptor - .newBuilder() - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/BatchCreateUserLinks") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1alpha/{parent=accounts/*}/userLinks:batchCreate", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); - return fields; - }) - .setAdditionalPaths("/v1alpha/{parent=properties/*}/userLinks:batchCreate") - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearParent().build(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(BatchCreateUserLinksResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - updateUserLinkMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateUserLink") - .setHttpMethod("PATCH") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1alpha/{userLink.name=accounts/*/userLinks/*}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam( - fields, "userLink.name", request.getUserLink().getName()); - return fields; - }) - .setAdditionalPaths("/v1alpha/{userLink.name=properties/*/userLinks/*}") - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("userLink", request.getUserLink(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(UserLink.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor< - BatchUpdateUserLinksRequest, BatchUpdateUserLinksResponse> - batchUpdateUserLinksMethodDescriptor = - ApiMethodDescriptor - .newBuilder() - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/BatchUpdateUserLinks") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1alpha/{parent=accounts/*}/userLinks:batchUpdate", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); - return fields; - }) - .setAdditionalPaths("/v1alpha/{parent=properties/*}/userLinks:batchUpdate") - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearParent().build(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(BatchUpdateUserLinksResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - deleteUserLinkMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteUserLink") - .setHttpMethod("DELETE") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1alpha/{name=accounts/*/userLinks/*}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setAdditionalPaths("/v1alpha/{name=properties/*/userLinks/*}") - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Empty.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - batchDeleteUserLinksMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/BatchDeleteUserLinks") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1alpha/{parent=accounts/*}/userLinks:batchDelete", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); - return fields; - }) - .setAdditionalPaths("/v1alpha/{parent=properties/*}/userLinks:batchDelete") - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearParent().build(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Empty.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - createFirebaseLinkMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/CreateFirebaseLink") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1alpha/{parent=properties/*}/firebaseLinks", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("firebaseLink", request.getFirebaseLink(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(FirebaseLink.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - deleteFirebaseLinkMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteFirebaseLink") - .setHttpMethod("DELETE") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1alpha/{name=properties/*/firebaseLinks/*}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Empty.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - listFirebaseLinksMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/ListFirebaseLinks") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1alpha/{parent=properties/*}/firebaseLinks", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "pageSize", request.getPageSize()); - serializer.putQueryParam(fields, "pageToken", request.getPageToken()); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(ListFirebaseLinksResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - getGlobalSiteTagMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/GetGlobalSiteTag") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1alpha/{name=properties/*/dataStreams/*/globalSiteTag}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(GlobalSiteTag.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - createGoogleAdsLinkMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/CreateGoogleAdsLink") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1alpha/{parent=properties/*}/googleAdsLinks", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("googleAdsLink", request.getGoogleAdsLink(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(GoogleAdsLink.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - updateGoogleAdsLinkMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateGoogleAdsLink") - .setHttpMethod("PATCH") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1alpha/{googleAdsLink.name=properties/*/googleAdsLinks/*}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam( - fields, "googleAdsLink.name", request.getGoogleAdsLink().getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("googleAdsLink", request.getGoogleAdsLink(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(GoogleAdsLink.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - deleteGoogleAdsLinkMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteGoogleAdsLink") - .setHttpMethod("DELETE") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1alpha/{name=properties/*/googleAdsLinks/*}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Empty.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - listGoogleAdsLinksMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/ListGoogleAdsLinks") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1alpha/{parent=properties/*}/googleAdsLinks", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "pageSize", request.getPageSize()); - serializer.putQueryParam(fields, "pageToken", request.getPageToken()); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(ListGoogleAdsLinksResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - getDataSharingSettingsMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/GetDataSharingSettings") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1alpha/{name=accounts/*/dataSharingSettings}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(DataSharingSettings.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor< - GetMeasurementProtocolSecretRequest, MeasurementProtocolSecret> - getMeasurementProtocolSecretMethodDescriptor = - ApiMethodDescriptor - .newBuilder() - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/GetMeasurementProtocolSecret") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1alpha/{name=properties/*/dataStreams/*/measurementProtocolSecrets/*}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(MeasurementProtocolSecret.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor< - ListMeasurementProtocolSecretsRequest, ListMeasurementProtocolSecretsResponse> - listMeasurementProtocolSecretsMethodDescriptor = - ApiMethodDescriptor - . - newBuilder() - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/ListMeasurementProtocolSecrets") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1alpha/{parent=properties/*/dataStreams/*}/measurementProtocolSecrets", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "pageSize", request.getPageSize()); - serializer.putQueryParam(fields, "pageToken", request.getPageToken()); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance( - ListMeasurementProtocolSecretsResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor< - CreateMeasurementProtocolSecretRequest, MeasurementProtocolSecret> - createMeasurementProtocolSecretMethodDescriptor = - ApiMethodDescriptor - .newBuilder() - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/CreateMeasurementProtocolSecret") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1alpha/{parent=properties/*/dataStreams/*}/measurementProtocolSecrets", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody( - "measurementProtocolSecret", - request.getMeasurementProtocolSecret(), - false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(MeasurementProtocolSecret.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - deleteMeasurementProtocolSecretMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteMeasurementProtocolSecret") - .setHttpMethod("DELETE") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1alpha/{name=properties/*/dataStreams/*/measurementProtocolSecrets/*}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Empty.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor< - UpdateMeasurementProtocolSecretRequest, MeasurementProtocolSecret> - updateMeasurementProtocolSecretMethodDescriptor = - ApiMethodDescriptor - .newBuilder() - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateMeasurementProtocolSecret") - .setHttpMethod("PATCH") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1alpha/{measurementProtocolSecret.name=properties/*/dataStreams/*/measurementProtocolSecrets/*}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam( - fields, - "measurementProtocolSecret.name", - request.getMeasurementProtocolSecret().getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody( - "measurementProtocolSecret", - request.getMeasurementProtocolSecret(), - false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(MeasurementProtocolSecret.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor< - AcknowledgeUserDataCollectionRequest, AcknowledgeUserDataCollectionResponse> - acknowledgeUserDataCollectionMethodDescriptor = - ApiMethodDescriptor - . - newBuilder() - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/AcknowledgeUserDataCollection") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1alpha/{property=properties/*}:acknowledgeUserDataCollection", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "property", request.getProperty()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearProperty().build(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance( - AcknowledgeUserDataCollectionResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor< - SearchChangeHistoryEventsRequest, SearchChangeHistoryEventsResponse> - searchChangeHistoryEventsMethodDescriptor = - ApiMethodDescriptor - .newBuilder() - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/SearchChangeHistoryEvents") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1alpha/{account=accounts/*}:searchChangeHistoryEvents", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "account", request.getAccount()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearAccount().build(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(SearchChangeHistoryEventsResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - getGoogleSignalsSettingsMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/GetGoogleSignalsSettings") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1alpha/{name=properties/*/googleSignalsSettings}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(GoogleSignalsSettings.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor< - UpdateGoogleSignalsSettingsRequest, GoogleSignalsSettings> - updateGoogleSignalsSettingsMethodDescriptor = - ApiMethodDescriptor - .newBuilder() - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateGoogleSignalsSettings") - .setHttpMethod("PATCH") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1alpha/{googleSignalsSettings.name=properties/*/googleSignalsSettings}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam( - fields, - "googleSignalsSettings.name", - request.getGoogleSignalsSettings().getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody( - "googleSignalsSettings", - request.getGoogleSignalsSettings(), - false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(GoogleSignalsSettings.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - createConversionEventMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/CreateConversionEvent") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1alpha/{parent=properties/*}/conversionEvents", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("conversionEvent", request.getConversionEvent(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(ConversionEvent.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - getConversionEventMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/GetConversionEvent") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1alpha/{name=properties/*/conversionEvents/*}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(ConversionEvent.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - deleteConversionEventMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteConversionEvent") - .setHttpMethod("DELETE") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1alpha/{name=properties/*/conversionEvents/*}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Empty.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor< - ListConversionEventsRequest, ListConversionEventsResponse> - listConversionEventsMethodDescriptor = - ApiMethodDescriptor - .newBuilder() - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/ListConversionEvents") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1alpha/{parent=properties/*}/conversionEvents", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "pageSize", request.getPageSize()); - serializer.putQueryParam(fields, "pageToken", request.getPageToken()); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(ListConversionEventsResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor< - GetDisplayVideo360AdvertiserLinkRequest, DisplayVideo360AdvertiserLink> - getDisplayVideo360AdvertiserLinkMethodDescriptor = - ApiMethodDescriptor - .newBuilder() - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/GetDisplayVideo360AdvertiserLink") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1alpha/{name=properties/*/displayVideo360AdvertiserLinks/*}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer - serializer = ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer - serializer = ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(DisplayVideo360AdvertiserLink.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor< - ListDisplayVideo360AdvertiserLinksRequest, ListDisplayVideo360AdvertiserLinksResponse> - listDisplayVideo360AdvertiserLinksMethodDescriptor = - ApiMethodDescriptor - . - newBuilder() - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/ListDisplayVideo360AdvertiserLinks") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter - .newBuilder() - .setPath( - "/v1alpha/{parent=properties/*}/displayVideo360AdvertiserLinks", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer - serializer = ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer - serializer = ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "pageSize", request.getPageSize()); - serializer.putQueryParam(fields, "pageToken", request.getPageToken()); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser - .newBuilder() - .setDefaultInstance( - ListDisplayVideo360AdvertiserLinksResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor< - CreateDisplayVideo360AdvertiserLinkRequest, DisplayVideo360AdvertiserLink> - createDisplayVideo360AdvertiserLinkMethodDescriptor = - ApiMethodDescriptor - . - newBuilder() - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/CreateDisplayVideo360AdvertiserLink") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter - .newBuilder() - .setPath( - "/v1alpha/{parent=properties/*}/displayVideo360AdvertiserLinks", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer - serializer = ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer - serializer = ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody( - "displayVideo360AdvertiserLink", - request.getDisplayVideo360AdvertiserLink(), - false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(DisplayVideo360AdvertiserLink.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - deleteDisplayVideo360AdvertiserLinkMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteDisplayVideo360AdvertiserLink") - .setHttpMethod("DELETE") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter - .newBuilder() - .setPath( - "/v1alpha/{name=properties/*/displayVideo360AdvertiserLinks/*}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer - serializer = ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer - serializer = ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Empty.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor< - UpdateDisplayVideo360AdvertiserLinkRequest, DisplayVideo360AdvertiserLink> - updateDisplayVideo360AdvertiserLinkMethodDescriptor = - ApiMethodDescriptor - . - newBuilder() - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateDisplayVideo360AdvertiserLink") - .setHttpMethod("PATCH") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter - .newBuilder() - .setPath( - "/v1alpha/{displayVideo360AdvertiserLink.name=properties/*/displayVideo360AdvertiserLinks/*}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer - serializer = ProtoRestSerializer.create(); - serializer.putPathParam( - fields, - "displayVideo360AdvertiserLink.name", - request.getDisplayVideo360AdvertiserLink().getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer - serializer = ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody( - "displayVideo360AdvertiserLink", - request.getDisplayVideo360AdvertiserLink(), - false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(DisplayVideo360AdvertiserLink.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor< - GetDisplayVideo360AdvertiserLinkProposalRequest, DisplayVideo360AdvertiserLinkProposal> - getDisplayVideo360AdvertiserLinkProposalMethodDescriptor = - ApiMethodDescriptor - . - newBuilder() - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/GetDisplayVideo360AdvertiserLinkProposal") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter - .newBuilder() - .setPath( - "/v1alpha/{name=properties/*/displayVideo360AdvertiserLinkProposals/*}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer - serializer = ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer - serializer = ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance( - DisplayVideo360AdvertiserLinkProposal.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor< - ListDisplayVideo360AdvertiserLinkProposalsRequest, - ListDisplayVideo360AdvertiserLinkProposalsResponse> - listDisplayVideo360AdvertiserLinkProposalsMethodDescriptor = - ApiMethodDescriptor - . - newBuilder() - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/ListDisplayVideo360AdvertiserLinkProposals") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter - .newBuilder() - .setPath( - "/v1alpha/{parent=properties/*}/displayVideo360AdvertiserLinkProposals", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer - serializer = ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer - serializer = ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "pageSize", request.getPageSize()); - serializer.putQueryParam(fields, "pageToken", request.getPageToken()); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser - .newBuilder() - .setDefaultInstance( - ListDisplayVideo360AdvertiserLinkProposalsResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor< - CreateDisplayVideo360AdvertiserLinkProposalRequest, DisplayVideo360AdvertiserLinkProposal> - createDisplayVideo360AdvertiserLinkProposalMethodDescriptor = - ApiMethodDescriptor - . - newBuilder() - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/CreateDisplayVideo360AdvertiserLinkProposal") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter - .newBuilder() - .setPath( - "/v1alpha/{parent=properties/*}/displayVideo360AdvertiserLinkProposals", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer - serializer = ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer - serializer = ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody( - "displayVideo360AdvertiserLinkProposal", - request.getDisplayVideo360AdvertiserLinkProposal(), - false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance( - DisplayVideo360AdvertiserLinkProposal.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor< - DeleteDisplayVideo360AdvertiserLinkProposalRequest, Empty> - deleteDisplayVideo360AdvertiserLinkProposalMethodDescriptor = - ApiMethodDescriptor - .newBuilder() - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteDisplayVideo360AdvertiserLinkProposal") - .setHttpMethod("DELETE") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter - .newBuilder() - .setPath( - "/v1alpha/{name=properties/*/displayVideo360AdvertiserLinkProposals/*}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer - serializer = ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer - serializer = ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Empty.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor< - ApproveDisplayVideo360AdvertiserLinkProposalRequest, - ApproveDisplayVideo360AdvertiserLinkProposalResponse> - approveDisplayVideo360AdvertiserLinkProposalMethodDescriptor = - ApiMethodDescriptor - . - newBuilder() - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/ApproveDisplayVideo360AdvertiserLinkProposal") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter - .newBuilder() - .setPath( - "/v1alpha/{name=properties/*/displayVideo360AdvertiserLinkProposals/*}:approve", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer - serializer = ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer - serializer = ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearName().build(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser - .newBuilder() - .setDefaultInstance( - ApproveDisplayVideo360AdvertiserLinkProposalResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor< - CancelDisplayVideo360AdvertiserLinkProposalRequest, DisplayVideo360AdvertiserLinkProposal> - cancelDisplayVideo360AdvertiserLinkProposalMethodDescriptor = - ApiMethodDescriptor - . - newBuilder() - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/CancelDisplayVideo360AdvertiserLinkProposal") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter - .newBuilder() - .setPath( - "/v1alpha/{name=properties/*/displayVideo360AdvertiserLinkProposals/*}:cancel", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer - serializer = ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer - serializer = ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearName().build(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance( - DisplayVideo360AdvertiserLinkProposal.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - createCustomDimensionMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/CreateCustomDimension") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1alpha/{parent=properties/*}/customDimensions", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("customDimension", request.getCustomDimension(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(CustomDimension.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - updateCustomDimensionMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateCustomDimension") - .setHttpMethod("PATCH") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1alpha/{customDimension.name=properties/*/customDimensions/*}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam( - fields, - "customDimension.name", - request.getCustomDimension().getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("customDimension", request.getCustomDimension(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(CustomDimension.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor< - ListCustomDimensionsRequest, ListCustomDimensionsResponse> - listCustomDimensionsMethodDescriptor = - ApiMethodDescriptor - .newBuilder() - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/ListCustomDimensions") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1alpha/{parent=properties/*}/customDimensions", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "pageSize", request.getPageSize()); - serializer.putQueryParam(fields, "pageToken", request.getPageToken()); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(ListCustomDimensionsResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - archiveCustomDimensionMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/ArchiveCustomDimension") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1alpha/{name=properties/*/customDimensions/*}:archive", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearName().build(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Empty.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - getCustomDimensionMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/GetCustomDimension") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1alpha/{name=properties/*/customDimensions/*}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(CustomDimension.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - createCustomMetricMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/CreateCustomMetric") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1alpha/{parent=properties/*}/customMetrics", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("customMetric", request.getCustomMetric(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(CustomMetric.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - updateCustomMetricMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateCustomMetric") - .setHttpMethod("PATCH") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1alpha/{customMetric.name=properties/*/customMetrics/*}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam( - fields, "customMetric.name", request.getCustomMetric().getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("customMetric", request.getCustomMetric(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(CustomMetric.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - listCustomMetricsMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/ListCustomMetrics") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1alpha/{parent=properties/*}/customMetrics", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "pageSize", request.getPageSize()); - serializer.putQueryParam(fields, "pageToken", request.getPageToken()); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(ListCustomMetricsResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - archiveCustomMetricMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/ArchiveCustomMetric") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1alpha/{name=properties/*/customMetrics/*}:archive", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearName().build(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Empty.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - getCustomMetricMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/GetCustomMetric") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1alpha/{name=properties/*/customMetrics/*}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(CustomMetric.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - getDataRetentionSettingsMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/GetDataRetentionSettings") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1alpha/{name=properties/*/dataRetentionSettings}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(DataRetentionSettings.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor< - UpdateDataRetentionSettingsRequest, DataRetentionSettings> - updateDataRetentionSettingsMethodDescriptor = - ApiMethodDescriptor - .newBuilder() - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateDataRetentionSettings") - .setHttpMethod("PATCH") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1alpha/{dataRetentionSettings.name=properties/*/dataRetentionSettings}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam( - fields, - "dataRetentionSettings.name", - request.getDataRetentionSettings().getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody( - "dataRetentionSettings", - request.getDataRetentionSettings(), - false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(DataRetentionSettings.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - createDataStreamMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/CreateDataStream") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1alpha/{parent=properties/*}/dataStreams", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("dataStream", request.getDataStream(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(DataStream.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - deleteDataStreamMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteDataStream") - .setHttpMethod("DELETE") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1alpha/{name=properties/*/dataStreams/*}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Empty.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - updateDataStreamMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateDataStream") - .setHttpMethod("PATCH") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1alpha/{dataStream.name=properties/*/dataStreams/*}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam( - fields, "dataStream.name", request.getDataStream().getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("dataStream", request.getDataStream(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(DataStream.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - listDataStreamsMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/ListDataStreams") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1alpha/{parent=properties/*}/dataStreams", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "pageSize", request.getPageSize()); - serializer.putQueryParam(fields, "pageToken", request.getPageToken()); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(ListDataStreamsResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - getDataStreamMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/GetDataStream") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1alpha/{name=properties/*/dataStreams/*}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(DataStream.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - getAudienceMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.analytics.admin.v1alpha.AnalyticsAdminService/GetAudience") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1alpha/{name=properties/*/audiences/*}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Audience.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - listAudiencesMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/ListAudiences") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1alpha/{parent=properties/*}/audiences", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "pageSize", request.getPageSize()); - serializer.putQueryParam(fields, "pageToken", request.getPageToken()); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(ListAudiencesResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - createAudienceMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/CreateAudience") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1alpha/{parent=properties/*}/audiences", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("audience", request.getAudience(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Audience.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - updateAudienceMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateAudience") - .setHttpMethod("PATCH") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1alpha/{audience.name=properties/*/audiences/*}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam( - fields, "audience.name", request.getAudience().getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("audience", request.getAudience(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Audience.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - archiveAudienceMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/ArchiveAudience") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1alpha/{name=properties/*/audiences/*}:archive", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearName().build(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Empty.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - getAttributionSettingsMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/GetAttributionSettings") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1alpha/{name=properties/*/attributionSettings}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(AttributionSettings.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - updateAttributionSettingsMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateAttributionSettings") - .setHttpMethod("PATCH") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1alpha/{attributionSettings.name=properties/*/attributionSettings}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam( - fields, - "attributionSettings.name", - request.getAttributionSettings().getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody( - "attributionSettings", - request.getAttributionSettings(), - false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(AttributionSettings.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - runAccessReportMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/RunAccessReport") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1alpha/{entity=properties/*}:runAccessReport", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "entity", request.getEntity()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearEntity().build(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(RunAccessReportResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .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 getUserLinkCallable; - private final UnaryCallable - batchGetUserLinksCallable; - private final UnaryCallable listUserLinksCallable; - private final UnaryCallable - listUserLinksPagedCallable; - private final UnaryCallable auditUserLinksCallable; - private final UnaryCallable - auditUserLinksPagedCallable; - private final UnaryCallable createUserLinkCallable; - private final UnaryCallable - batchCreateUserLinksCallable; - private final UnaryCallable updateUserLinkCallable; - private final UnaryCallable - batchUpdateUserLinksCallable; - private final UnaryCallable deleteUserLinkCallable; - private final UnaryCallable batchDeleteUserLinksCallable; - 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 - searchChangeHistoryEventsCallable; - private final UnaryCallable< - SearchChangeHistoryEventsRequest, SearchChangeHistoryEventsPagedResponse> - searchChangeHistoryEventsPagedCallable; - private final UnaryCallable - getGoogleSignalsSettingsCallable; - private final UnaryCallable - updateGoogleSignalsSettingsCallable; - private final UnaryCallable - createConversionEventCallable; - 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 - getAttributionSettingsCallable; - private final UnaryCallable - updateAttributionSettingsCallable; - private final UnaryCallable - runAccessReportCallable; - - private final BackgroundResource backgroundResources; - private final HttpJsonStubCallableFactory callableFactory; - - public static final HttpJsonAnalyticsAdminServiceStub create( - AnalyticsAdminServiceStubSettings settings) throws IOException { - return new HttpJsonAnalyticsAdminServiceStub(settings, ClientContext.create(settings)); - } - - public static final HttpJsonAnalyticsAdminServiceStub create(ClientContext clientContext) - throws IOException { - return new HttpJsonAnalyticsAdminServiceStub( - AnalyticsAdminServiceStubSettings.newHttpJsonBuilder().build(), clientContext); - } - - public static final HttpJsonAnalyticsAdminServiceStub create( - ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { - return new HttpJsonAnalyticsAdminServiceStub( - AnalyticsAdminServiceStubSettings.newHttpJsonBuilder().build(), - clientContext, - callableFactory); - } - - /** - * Constructs an instance of HttpJsonAnalyticsAdminServiceStub, 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 HttpJsonAnalyticsAdminServiceStub( - AnalyticsAdminServiceStubSettings settings, ClientContext clientContext) throws IOException { - this(settings, clientContext, new HttpJsonAnalyticsAdminServiceCallableFactory()); - } - - /** - * Constructs an instance of HttpJsonAnalyticsAdminServiceStub, 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 HttpJsonAnalyticsAdminServiceStub( - AnalyticsAdminServiceStubSettings settings, - ClientContext clientContext, - HttpJsonStubCallableFactory callableFactory) - throws IOException { - this.callableFactory = callableFactory; - - HttpJsonCallSettings getAccountTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(getAccountMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings listAccountsTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(listAccountsMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings deleteAccountTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(deleteAccountMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings updateAccountTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(updateAccountMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings - provisionAccountTicketTransportSettings = - HttpJsonCallSettings - .newBuilder() - .setMethodDescriptor(provisionAccountTicketMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings - listAccountSummariesTransportSettings = - HttpJsonCallSettings - .newBuilder() - .setMethodDescriptor(listAccountSummariesMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings getPropertyTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(getPropertyMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings - listPropertiesTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(listPropertiesMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings createPropertyTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(createPropertyMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings deletePropertyTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(deletePropertyMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings updatePropertyTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(updatePropertyMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings getUserLinkTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(getUserLinkMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings - batchGetUserLinksTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(batchGetUserLinksMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings - listUserLinksTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(listUserLinksMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings - auditUserLinksTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(auditUserLinksMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings createUserLinkTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(createUserLinkMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings - batchCreateUserLinksTransportSettings = - HttpJsonCallSettings - .newBuilder() - .setMethodDescriptor(batchCreateUserLinksMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings updateUserLinkTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(updateUserLinkMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings - batchUpdateUserLinksTransportSettings = - HttpJsonCallSettings - .newBuilder() - .setMethodDescriptor(batchUpdateUserLinksMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings deleteUserLinkTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(deleteUserLinkMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings batchDeleteUserLinksTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(batchDeleteUserLinksMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings - createFirebaseLinkTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(createFirebaseLinkMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings deleteFirebaseLinkTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(deleteFirebaseLinkMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings - listFirebaseLinksTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(listFirebaseLinksMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings getGlobalSiteTagTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(getGlobalSiteTagMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings - createGoogleAdsLinkTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(createGoogleAdsLinkMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings - updateGoogleAdsLinkTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(updateGoogleAdsLinkMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings deleteGoogleAdsLinkTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(deleteGoogleAdsLinkMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings - listGoogleAdsLinksTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(listGoogleAdsLinksMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings - getDataSharingSettingsTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(getDataSharingSettingsMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings - getMeasurementProtocolSecretTransportSettings = - HttpJsonCallSettings - .newBuilder() - .setMethodDescriptor(getMeasurementProtocolSecretMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings< - ListMeasurementProtocolSecretsRequest, ListMeasurementProtocolSecretsResponse> - listMeasurementProtocolSecretsTransportSettings = - HttpJsonCallSettings - . - newBuilder() - .setMethodDescriptor(listMeasurementProtocolSecretsMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings - createMeasurementProtocolSecretTransportSettings = - HttpJsonCallSettings - .newBuilder() - .setMethodDescriptor(createMeasurementProtocolSecretMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings - deleteMeasurementProtocolSecretTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(deleteMeasurementProtocolSecretMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings - updateMeasurementProtocolSecretTransportSettings = - HttpJsonCallSettings - .newBuilder() - .setMethodDescriptor(updateMeasurementProtocolSecretMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings< - AcknowledgeUserDataCollectionRequest, AcknowledgeUserDataCollectionResponse> - acknowledgeUserDataCollectionTransportSettings = - HttpJsonCallSettings - . - newBuilder() - .setMethodDescriptor(acknowledgeUserDataCollectionMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings - searchChangeHistoryEventsTransportSettings = - HttpJsonCallSettings - .newBuilder() - .setMethodDescriptor(searchChangeHistoryEventsMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings - getGoogleSignalsSettingsTransportSettings = - HttpJsonCallSettings - .newBuilder() - .setMethodDescriptor(getGoogleSignalsSettingsMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings - updateGoogleSignalsSettingsTransportSettings = - HttpJsonCallSettings - .newBuilder() - .setMethodDescriptor(updateGoogleSignalsSettingsMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings - createConversionEventTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(createConversionEventMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings - getConversionEventTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(getConversionEventMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings - deleteConversionEventTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(deleteConversionEventMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings - listConversionEventsTransportSettings = - HttpJsonCallSettings - .newBuilder() - .setMethodDescriptor(listConversionEventsMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings - getDisplayVideo360AdvertiserLinkTransportSettings = - HttpJsonCallSettings - . - newBuilder() - .setMethodDescriptor(getDisplayVideo360AdvertiserLinkMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings< - ListDisplayVideo360AdvertiserLinksRequest, ListDisplayVideo360AdvertiserLinksResponse> - listDisplayVideo360AdvertiserLinksTransportSettings = - HttpJsonCallSettings - . - newBuilder() - .setMethodDescriptor(listDisplayVideo360AdvertiserLinksMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings - createDisplayVideo360AdvertiserLinkTransportSettings = - HttpJsonCallSettings - . - newBuilder() - .setMethodDescriptor(createDisplayVideo360AdvertiserLinkMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings - deleteDisplayVideo360AdvertiserLinkTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(deleteDisplayVideo360AdvertiserLinkMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings - updateDisplayVideo360AdvertiserLinkTransportSettings = - HttpJsonCallSettings - . - newBuilder() - .setMethodDescriptor(updateDisplayVideo360AdvertiserLinkMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings< - GetDisplayVideo360AdvertiserLinkProposalRequest, DisplayVideo360AdvertiserLinkProposal> - getDisplayVideo360AdvertiserLinkProposalTransportSettings = - HttpJsonCallSettings - . - newBuilder() - .setMethodDescriptor(getDisplayVideo360AdvertiserLinkProposalMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings< - ListDisplayVideo360AdvertiserLinkProposalsRequest, - ListDisplayVideo360AdvertiserLinkProposalsResponse> - listDisplayVideo360AdvertiserLinkProposalsTransportSettings = - HttpJsonCallSettings - . - newBuilder() - .setMethodDescriptor(listDisplayVideo360AdvertiserLinkProposalsMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings< - CreateDisplayVideo360AdvertiserLinkProposalRequest, - DisplayVideo360AdvertiserLinkProposal> - createDisplayVideo360AdvertiserLinkProposalTransportSettings = - HttpJsonCallSettings - . - newBuilder() - .setMethodDescriptor(createDisplayVideo360AdvertiserLinkProposalMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings - deleteDisplayVideo360AdvertiserLinkProposalTransportSettings = - HttpJsonCallSettings - .newBuilder() - .setMethodDescriptor(deleteDisplayVideo360AdvertiserLinkProposalMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings< - ApproveDisplayVideo360AdvertiserLinkProposalRequest, - ApproveDisplayVideo360AdvertiserLinkProposalResponse> - approveDisplayVideo360AdvertiserLinkProposalTransportSettings = - HttpJsonCallSettings - . - newBuilder() - .setMethodDescriptor(approveDisplayVideo360AdvertiserLinkProposalMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings< - CancelDisplayVideo360AdvertiserLinkProposalRequest, - DisplayVideo360AdvertiserLinkProposal> - cancelDisplayVideo360AdvertiserLinkProposalTransportSettings = - HttpJsonCallSettings - . - newBuilder() - .setMethodDescriptor(cancelDisplayVideo360AdvertiserLinkProposalMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings - createCustomDimensionTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(createCustomDimensionMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings - updateCustomDimensionTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(updateCustomDimensionMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings - listCustomDimensionsTransportSettings = - HttpJsonCallSettings - .newBuilder() - .setMethodDescriptor(listCustomDimensionsMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings - archiveCustomDimensionTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(archiveCustomDimensionMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings - getCustomDimensionTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(getCustomDimensionMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings - createCustomMetricTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(createCustomMetricMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings - updateCustomMetricTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(updateCustomMetricMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings - listCustomMetricsTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(listCustomMetricsMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings archiveCustomMetricTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(archiveCustomMetricMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings getCustomMetricTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(getCustomMetricMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings - getDataRetentionSettingsTransportSettings = - HttpJsonCallSettings - .newBuilder() - .setMethodDescriptor(getDataRetentionSettingsMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings - updateDataRetentionSettingsTransportSettings = - HttpJsonCallSettings - .newBuilder() - .setMethodDescriptor(updateDataRetentionSettingsMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings createDataStreamTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(createDataStreamMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings deleteDataStreamTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(deleteDataStreamMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings updateDataStreamTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(updateDataStreamMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings - listDataStreamsTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(listDataStreamsMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings getDataStreamTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(getDataStreamMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings getAudienceTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(getAudienceMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings - listAudiencesTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(listAudiencesMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings createAudienceTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(createAudienceMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings updateAudienceTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(updateAudienceMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings archiveAudienceTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(archiveAudienceMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings - getAttributionSettingsTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(getAttributionSettingsMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings - updateAttributionSettingsTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(updateAttributionSettingsMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings - runAccessReportTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(runAccessReportMethodDescriptor) - .setTypeRegistry(typeRegistry) - .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.getUserLinkCallable = - callableFactory.createUnaryCallable( - getUserLinkTransportSettings, settings.getUserLinkSettings(), clientContext); - this.batchGetUserLinksCallable = - callableFactory.createUnaryCallable( - batchGetUserLinksTransportSettings, - settings.batchGetUserLinksSettings(), - clientContext); - this.listUserLinksCallable = - callableFactory.createUnaryCallable( - listUserLinksTransportSettings, settings.listUserLinksSettings(), clientContext); - this.listUserLinksPagedCallable = - callableFactory.createPagedCallable( - listUserLinksTransportSettings, settings.listUserLinksSettings(), clientContext); - this.auditUserLinksCallable = - callableFactory.createUnaryCallable( - auditUserLinksTransportSettings, settings.auditUserLinksSettings(), clientContext); - this.auditUserLinksPagedCallable = - callableFactory.createPagedCallable( - auditUserLinksTransportSettings, settings.auditUserLinksSettings(), clientContext); - this.createUserLinkCallable = - callableFactory.createUnaryCallable( - createUserLinkTransportSettings, settings.createUserLinkSettings(), clientContext); - this.batchCreateUserLinksCallable = - callableFactory.createUnaryCallable( - batchCreateUserLinksTransportSettings, - settings.batchCreateUserLinksSettings(), - clientContext); - this.updateUserLinkCallable = - callableFactory.createUnaryCallable( - updateUserLinkTransportSettings, settings.updateUserLinkSettings(), clientContext); - this.batchUpdateUserLinksCallable = - callableFactory.createUnaryCallable( - batchUpdateUserLinksTransportSettings, - settings.batchUpdateUserLinksSettings(), - clientContext); - this.deleteUserLinkCallable = - callableFactory.createUnaryCallable( - deleteUserLinkTransportSettings, settings.deleteUserLinkSettings(), clientContext); - this.batchDeleteUserLinksCallable = - callableFactory.createUnaryCallable( - batchDeleteUserLinksTransportSettings, - settings.batchDeleteUserLinksSettings(), - 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.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.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.getAttributionSettingsCallable = - callableFactory.createUnaryCallable( - getAttributionSettingsTransportSettings, - settings.getAttributionSettingsSettings(), - clientContext); - this.updateAttributionSettingsCallable = - callableFactory.createUnaryCallable( - updateAttributionSettingsTransportSettings, - settings.updateAttributionSettingsSettings(), - clientContext); - this.runAccessReportCallable = - callableFactory.createUnaryCallable( - runAccessReportTransportSettings, settings.runAccessReportSettings(), clientContext); - - this.backgroundResources = - new BackgroundResourceAggregation(clientContext.getBackgroundResources()); - } - - @InternalApi - public static List getMethodDescriptors() { - List methodDescriptors = new ArrayList<>(); - methodDescriptors.add(getAccountMethodDescriptor); - methodDescriptors.add(listAccountsMethodDescriptor); - methodDescriptors.add(deleteAccountMethodDescriptor); - methodDescriptors.add(updateAccountMethodDescriptor); - methodDescriptors.add(provisionAccountTicketMethodDescriptor); - methodDescriptors.add(listAccountSummariesMethodDescriptor); - methodDescriptors.add(getPropertyMethodDescriptor); - methodDescriptors.add(listPropertiesMethodDescriptor); - methodDescriptors.add(createPropertyMethodDescriptor); - methodDescriptors.add(deletePropertyMethodDescriptor); - methodDescriptors.add(updatePropertyMethodDescriptor); - methodDescriptors.add(getUserLinkMethodDescriptor); - methodDescriptors.add(batchGetUserLinksMethodDescriptor); - methodDescriptors.add(listUserLinksMethodDescriptor); - methodDescriptors.add(auditUserLinksMethodDescriptor); - methodDescriptors.add(createUserLinkMethodDescriptor); - methodDescriptors.add(batchCreateUserLinksMethodDescriptor); - methodDescriptors.add(updateUserLinkMethodDescriptor); - methodDescriptors.add(batchUpdateUserLinksMethodDescriptor); - methodDescriptors.add(deleteUserLinkMethodDescriptor); - methodDescriptors.add(batchDeleteUserLinksMethodDescriptor); - methodDescriptors.add(createFirebaseLinkMethodDescriptor); - methodDescriptors.add(deleteFirebaseLinkMethodDescriptor); - methodDescriptors.add(listFirebaseLinksMethodDescriptor); - methodDescriptors.add(getGlobalSiteTagMethodDescriptor); - methodDescriptors.add(createGoogleAdsLinkMethodDescriptor); - methodDescriptors.add(updateGoogleAdsLinkMethodDescriptor); - methodDescriptors.add(deleteGoogleAdsLinkMethodDescriptor); - methodDescriptors.add(listGoogleAdsLinksMethodDescriptor); - methodDescriptors.add(getDataSharingSettingsMethodDescriptor); - methodDescriptors.add(getMeasurementProtocolSecretMethodDescriptor); - methodDescriptors.add(listMeasurementProtocolSecretsMethodDescriptor); - methodDescriptors.add(createMeasurementProtocolSecretMethodDescriptor); - methodDescriptors.add(deleteMeasurementProtocolSecretMethodDescriptor); - methodDescriptors.add(updateMeasurementProtocolSecretMethodDescriptor); - methodDescriptors.add(acknowledgeUserDataCollectionMethodDescriptor); - methodDescriptors.add(searchChangeHistoryEventsMethodDescriptor); - methodDescriptors.add(getGoogleSignalsSettingsMethodDescriptor); - methodDescriptors.add(updateGoogleSignalsSettingsMethodDescriptor); - methodDescriptors.add(createConversionEventMethodDescriptor); - methodDescriptors.add(getConversionEventMethodDescriptor); - methodDescriptors.add(deleteConversionEventMethodDescriptor); - methodDescriptors.add(listConversionEventsMethodDescriptor); - methodDescriptors.add(getDisplayVideo360AdvertiserLinkMethodDescriptor); - methodDescriptors.add(listDisplayVideo360AdvertiserLinksMethodDescriptor); - methodDescriptors.add(createDisplayVideo360AdvertiserLinkMethodDescriptor); - methodDescriptors.add(deleteDisplayVideo360AdvertiserLinkMethodDescriptor); - methodDescriptors.add(updateDisplayVideo360AdvertiserLinkMethodDescriptor); - methodDescriptors.add(getDisplayVideo360AdvertiserLinkProposalMethodDescriptor); - methodDescriptors.add(listDisplayVideo360AdvertiserLinkProposalsMethodDescriptor); - methodDescriptors.add(createDisplayVideo360AdvertiserLinkProposalMethodDescriptor); - methodDescriptors.add(deleteDisplayVideo360AdvertiserLinkProposalMethodDescriptor); - methodDescriptors.add(approveDisplayVideo360AdvertiserLinkProposalMethodDescriptor); - methodDescriptors.add(cancelDisplayVideo360AdvertiserLinkProposalMethodDescriptor); - methodDescriptors.add(createCustomDimensionMethodDescriptor); - methodDescriptors.add(updateCustomDimensionMethodDescriptor); - methodDescriptors.add(listCustomDimensionsMethodDescriptor); - methodDescriptors.add(archiveCustomDimensionMethodDescriptor); - methodDescriptors.add(getCustomDimensionMethodDescriptor); - methodDescriptors.add(createCustomMetricMethodDescriptor); - methodDescriptors.add(updateCustomMetricMethodDescriptor); - methodDescriptors.add(listCustomMetricsMethodDescriptor); - methodDescriptors.add(archiveCustomMetricMethodDescriptor); - methodDescriptors.add(getCustomMetricMethodDescriptor); - methodDescriptors.add(getDataRetentionSettingsMethodDescriptor); - methodDescriptors.add(updateDataRetentionSettingsMethodDescriptor); - methodDescriptors.add(createDataStreamMethodDescriptor); - methodDescriptors.add(deleteDataStreamMethodDescriptor); - methodDescriptors.add(updateDataStreamMethodDescriptor); - methodDescriptors.add(listDataStreamsMethodDescriptor); - methodDescriptors.add(getDataStreamMethodDescriptor); - methodDescriptors.add(getAudienceMethodDescriptor); - methodDescriptors.add(listAudiencesMethodDescriptor); - methodDescriptors.add(createAudienceMethodDescriptor); - methodDescriptors.add(updateAudienceMethodDescriptor); - methodDescriptors.add(archiveAudienceMethodDescriptor); - methodDescriptors.add(getAttributionSettingsMethodDescriptor); - methodDescriptors.add(updateAttributionSettingsMethodDescriptor); - methodDescriptors.add(runAccessReportMethodDescriptor); - return methodDescriptors; - } - - @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 getUserLinkCallable() { - return getUserLinkCallable; - } - - @Override - public UnaryCallable - batchGetUserLinksCallable() { - return batchGetUserLinksCallable; - } - - @Override - public UnaryCallable listUserLinksCallable() { - return listUserLinksCallable; - } - - @Override - public UnaryCallable - listUserLinksPagedCallable() { - return listUserLinksPagedCallable; - } - - @Override - public UnaryCallable auditUserLinksCallable() { - return auditUserLinksCallable; - } - - @Override - public UnaryCallable - auditUserLinksPagedCallable() { - return auditUserLinksPagedCallable; - } - - @Override - public UnaryCallable createUserLinkCallable() { - return createUserLinkCallable; - } - - @Override - public UnaryCallable - batchCreateUserLinksCallable() { - return batchCreateUserLinksCallable; - } - - @Override - public UnaryCallable updateUserLinkCallable() { - return updateUserLinkCallable; - } - - @Override - public UnaryCallable - batchUpdateUserLinksCallable() { - return batchUpdateUserLinksCallable; - } - - @Override - public UnaryCallable deleteUserLinkCallable() { - return deleteUserLinkCallable; - } - - @Override - public UnaryCallable batchDeleteUserLinksCallable() { - return batchDeleteUserLinksCallable; - } - - @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 - 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 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 - getAttributionSettingsCallable() { - return getAttributionSettingsCallable; - } - - @Override - public UnaryCallable - updateAttributionSettingsCallable() { - return updateAttributionSettingsCallable; - } - - @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/google-analytics-admin/src/main/java/com/google/analytics/admin/v1beta/AnalyticsAdminServiceClient.java b/google-analytics-admin/src/main/java/com/google/analytics/admin/v1beta/AnalyticsAdminServiceClient.java deleted file mode 100644 index 3fa1624b..00000000 --- a/google-analytics-admin/src/main/java/com/google/analytics/admin/v1beta/AnalyticsAdminServiceClient.java +++ /dev/null @@ -1,6942 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 com.google.analytics.admin.v1beta.stub.AnalyticsAdminServiceStub; -import com.google.analytics.admin.v1beta.stub.AnalyticsAdminServiceStubSettings; -import com.google.api.core.ApiFuture; -import com.google.api.core.ApiFutures; -import com.google.api.core.BetaApi; -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.paging.AbstractFixedSizeCollection; -import com.google.api.gax.paging.AbstractPage; -import com.google.api.gax.paging.AbstractPagedListResponse; -import com.google.api.gax.rpc.PageContext; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.common.util.concurrent.MoreExecutors; -import com.google.protobuf.Empty; -import com.google.protobuf.FieldMask; -import java.io.IOException; -import java.util.List; -import java.util.concurrent.TimeUnit; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Service Description: Service Interface for the Analytics Admin API (GA4). - * - *

This class provides the ability to make remote calls to the backing service through method - * calls that map to API methods. Sample code to get started: - * - *

{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
- *     AnalyticsAdminServiceClient.create()) {
- *   AccountName name = AccountName.of("[ACCOUNT]");
- *   Account response = analyticsAdminServiceClient.getAccount(name);
- * }
- * }
- * - *

Note: close() needs to be called on the AnalyticsAdminServiceClient object to clean up - * resources such as threads. In the example above, try-with-resources is used, which automatically - * calls close(). - * - *

The surface of this class includes several types of Java methods for each of the API's - * methods: - * - *

    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been - * converted into function parameters. It may be the case that not all fields are available as - * parameters, and not every API method will have a flattened method entry point. - *
  2. A "request object" method. This type of method only takes one parameter, a request object, - * which must be constructed before the call. Not every API method will have a request object - * method. - *
  3. A "callable" method. This type of method takes no parameters and returns an immutable API - * callable object, which can be used to initiate calls to the service. - *
- * - *

See the individual methods for example code. - * - *

Many parameters require resource names to be formatted in a particular way. To assist with - * these names, this class includes a format method for each type of name, and additionally a parse - * method to extract the individual identifiers contained within names that are returned. - * - *

This class can be customized by passing in a custom instance of AnalyticsAdminServiceSettings - * to create(). For example: - * - *

To customize credentials: - * - *

{@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 analyticsAdminServiceSettings =
- *     AnalyticsAdminServiceSettings.newBuilder()
- *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
- *         .build();
- * AnalyticsAdminServiceClient analyticsAdminServiceClient =
- *     AnalyticsAdminServiceClient.create(analyticsAdminServiceSettings);
- * }
- * - *

To customize the endpoint: - * - *

{@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 analyticsAdminServiceSettings =
- *     AnalyticsAdminServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
- * AnalyticsAdminServiceClient analyticsAdminServiceClient =
- *     AnalyticsAdminServiceClient.create(analyticsAdminServiceSettings);
- * }
- * - *

To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over - * the wire: - * - *

{@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 analyticsAdminServiceSettings =
- *     AnalyticsAdminServiceSettings.newHttpJsonBuilder().build();
- * AnalyticsAdminServiceClient analyticsAdminServiceClient =
- *     AnalyticsAdminServiceClient.create(analyticsAdminServiceSettings);
- * }
- * - *

Please refer to the GitHub repository's samples for more quickstart code snippets. - */ -@BetaApi -@Generated("by gapic-generator-java") -public class AnalyticsAdminServiceClient implements BackgroundResource { - private final AnalyticsAdminServiceSettings settings; - private final AnalyticsAdminServiceStub stub; - - /** Constructs an instance of AnalyticsAdminServiceClient with default settings. */ - public static final AnalyticsAdminServiceClient create() throws IOException { - return create(AnalyticsAdminServiceSettings.newBuilder().build()); - } - - /** - * Constructs an instance of AnalyticsAdminServiceClient, using the given settings. The channels - * are created based on the settings passed in, or defaults for any settings that are not set. - */ - public static final AnalyticsAdminServiceClient create(AnalyticsAdminServiceSettings settings) - throws IOException { - return new AnalyticsAdminServiceClient(settings); - } - - /** - * Constructs an instance of AnalyticsAdminServiceClient, using the given stub for making calls. - * This is for advanced usage - prefer using create(AnalyticsAdminServiceSettings). - */ - public static final AnalyticsAdminServiceClient create(AnalyticsAdminServiceStub stub) { - return new AnalyticsAdminServiceClient(stub); - } - - /** - * Constructs an instance of AnalyticsAdminServiceClient, 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 AnalyticsAdminServiceClient(AnalyticsAdminServiceSettings settings) throws IOException { - this.settings = settings; - this.stub = ((AnalyticsAdminServiceStubSettings) settings.getStubSettings()).createStub(); - } - - protected AnalyticsAdminServiceClient(AnalyticsAdminServiceStub stub) { - this.settings = null; - this.stub = stub; - } - - public final AnalyticsAdminServiceSettings getSettings() { - return settings; - } - - public AnalyticsAdminServiceStub getStub() { - return stub; - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lookup for a single Account. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   AccountName name = AccountName.of("[ACCOUNT]");
-   *   Account response = analyticsAdminServiceClient.getAccount(name);
-   * }
-   * }
- * - * @param name Required. The name of the account to lookup. Format: accounts/{account} Example: - * "accounts/100" - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Account getAccount(AccountName name) { - GetAccountRequest request = - GetAccountRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - return getAccount(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lookup for a single Account. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   String name = AccountName.of("[ACCOUNT]").toString();
-   *   Account response = analyticsAdminServiceClient.getAccount(name);
-   * }
-   * }
- * - * @param name Required. The name of the account to lookup. Format: accounts/{account} Example: - * "accounts/100" - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Account getAccount(String name) { - GetAccountRequest request = GetAccountRequest.newBuilder().setName(name).build(); - return getAccount(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lookup for a single Account. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   GetAccountRequest request =
-   *       GetAccountRequest.newBuilder().setName(AccountName.of("[ACCOUNT]").toString()).build();
-   *   Account response = analyticsAdminServiceClient.getAccount(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Account getAccount(GetAccountRequest request) { - return getAccountCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lookup for a single Account. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   GetAccountRequest request =
-   *       GetAccountRequest.newBuilder().setName(AccountName.of("[ACCOUNT]").toString()).build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient.getAccountCallable().futureCall(request);
-   *   // Do something.
-   *   Account response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable getAccountCallable() { - return stub.getAccountCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * 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. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   ListAccountsRequest request =
-   *       ListAccountsRequest.newBuilder()
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .setShowDeleted(true)
-   *           .build();
-   *   for (Account element : analyticsAdminServiceClient.listAccounts(request).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListAccountsPagedResponse listAccounts(ListAccountsRequest request) { - return listAccountsPagedCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * 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. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   ListAccountsRequest request =
-   *       ListAccountsRequest.newBuilder()
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .setShowDeleted(true)
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient.listAccountsPagedCallable().futureCall(request);
-   *   // Do something.
-   *   for (Account element : future.get().iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable - listAccountsPagedCallable() { - return stub.listAccountsPagedCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * 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. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   ListAccountsRequest request =
-   *       ListAccountsRequest.newBuilder()
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .setShowDeleted(true)
-   *           .build();
-   *   while (true) {
-   *     ListAccountsResponse response =
-   *         analyticsAdminServiceClient.listAccountsCallable().call(request);
-   *     for (Account element : response.getAccountsList()) {
-   *       // doThingsWith(element);
-   *     }
-   *     String nextPageToken = response.getNextPageToken();
-   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
-   *       request = request.toBuilder().setPageToken(nextPageToken).build();
-   *     } else {
-   *       break;
-   *     }
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable listAccountsCallable() { - return stub.listAccountsCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * 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. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   AccountName name = AccountName.of("[ACCOUNT]");
-   *   analyticsAdminServiceClient.deleteAccount(name);
-   * }
-   * }
- * - * @param name Required. The name of the Account to soft-delete. Format: accounts/{account} - * Example: "accounts/100" - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void deleteAccount(AccountName name) { - DeleteAccountRequest request = - DeleteAccountRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - deleteAccount(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * 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. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   String name = AccountName.of("[ACCOUNT]").toString();
-   *   analyticsAdminServiceClient.deleteAccount(name);
-   * }
-   * }
- * - * @param name Required. The name of the Account to soft-delete. Format: accounts/{account} - * Example: "accounts/100" - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void deleteAccount(String name) { - DeleteAccountRequest request = DeleteAccountRequest.newBuilder().setName(name).build(); - deleteAccount(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * 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. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   DeleteAccountRequest request =
-   *       DeleteAccountRequest.newBuilder().setName(AccountName.of("[ACCOUNT]").toString()).build();
-   *   analyticsAdminServiceClient.deleteAccount(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void deleteAccount(DeleteAccountRequest request) { - deleteAccountCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * 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. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   DeleteAccountRequest request =
-   *       DeleteAccountRequest.newBuilder().setName(AccountName.of("[ACCOUNT]").toString()).build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient.deleteAccountCallable().futureCall(request);
-   *   // Do something.
-   *   future.get();
-   * }
-   * }
- */ - public final UnaryCallable deleteAccountCallable() { - return stub.deleteAccountCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates an account. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   Account account = Account.newBuilder().build();
-   *   FieldMask updateMask = FieldMask.newBuilder().build();
-   *   Account response = analyticsAdminServiceClient.updateAccount(account, updateMask);
-   * }
-   * }
- * - * @param account Required. The account to update. The account's `name` field is used to identify - * the account. - * @param updateMask Required. The list of fields to be updated. Field names must be in snake case - * (e.g., "field_to_update"). Omitted fields will not be updated. To replace the entire - * entity, use one path with the string "*" to match all fields. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Account updateAccount(Account account, FieldMask updateMask) { - UpdateAccountRequest request = - UpdateAccountRequest.newBuilder().setAccount(account).setUpdateMask(updateMask).build(); - return updateAccount(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates an account. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   UpdateAccountRequest request =
-   *       UpdateAccountRequest.newBuilder()
-   *           .setAccount(Account.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   Account response = analyticsAdminServiceClient.updateAccount(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Account updateAccount(UpdateAccountRequest request) { - return updateAccountCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates an account. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   UpdateAccountRequest request =
-   *       UpdateAccountRequest.newBuilder()
-   *           .setAccount(Account.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient.updateAccountCallable().futureCall(request);
-   *   // Do something.
-   *   Account response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable updateAccountCallable() { - return stub.updateAccountCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Requests a ticket for creating an account. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   ProvisionAccountTicketRequest request =
-   *       ProvisionAccountTicketRequest.newBuilder()
-   *           .setAccount(Account.newBuilder().build())
-   *           .setRedirectUri("redirectUri1970337776")
-   *           .build();
-   *   ProvisionAccountTicketResponse response =
-   *       analyticsAdminServiceClient.provisionAccountTicket(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ProvisionAccountTicketResponse provisionAccountTicket( - ProvisionAccountTicketRequest request) { - return provisionAccountTicketCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Requests a ticket for creating an account. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   ProvisionAccountTicketRequest request =
-   *       ProvisionAccountTicketRequest.newBuilder()
-   *           .setAccount(Account.newBuilder().build())
-   *           .setRedirectUri("redirectUri1970337776")
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient.provisionAccountTicketCallable().futureCall(request);
-   *   // Do something.
-   *   ProvisionAccountTicketResponse response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable - provisionAccountTicketCallable() { - return stub.provisionAccountTicketCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Returns summaries of all accounts accessible by the caller. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   ListAccountSummariesRequest request =
-   *       ListAccountSummariesRequest.newBuilder()
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   for (AccountSummary element :
-   *       analyticsAdminServiceClient.listAccountSummaries(request).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListAccountSummariesPagedResponse listAccountSummaries( - ListAccountSummariesRequest request) { - return listAccountSummariesPagedCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Returns summaries of all accounts accessible by the caller. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   ListAccountSummariesRequest request =
-   *       ListAccountSummariesRequest.newBuilder()
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient.listAccountSummariesPagedCallable().futureCall(request);
-   *   // Do something.
-   *   for (AccountSummary element : future.get().iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable - listAccountSummariesPagedCallable() { - return stub.listAccountSummariesPagedCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Returns summaries of all accounts accessible by the caller. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   ListAccountSummariesRequest request =
-   *       ListAccountSummariesRequest.newBuilder()
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   while (true) {
-   *     ListAccountSummariesResponse response =
-   *         analyticsAdminServiceClient.listAccountSummariesCallable().call(request);
-   *     for (AccountSummary element : response.getAccountSummariesList()) {
-   *       // doThingsWith(element);
-   *     }
-   *     String nextPageToken = response.getNextPageToken();
-   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
-   *       request = request.toBuilder().setPageToken(nextPageToken).build();
-   *     } else {
-   *       break;
-   *     }
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable - listAccountSummariesCallable() { - return stub.listAccountSummariesCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lookup for a single "GA4" Property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   PropertyName name = PropertyName.of("[PROPERTY]");
-   *   Property response = analyticsAdminServiceClient.getProperty(name);
-   * }
-   * }
- * - * @param name Required. The name of the property to lookup. Format: properties/{property_id} - * Example: "properties/1000" - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Property getProperty(PropertyName name) { - GetPropertyRequest request = - GetPropertyRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - return getProperty(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lookup for a single "GA4" Property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   String name = PropertyName.of("[PROPERTY]").toString();
-   *   Property response = analyticsAdminServiceClient.getProperty(name);
-   * }
-   * }
- * - * @param name Required. The name of the property to lookup. Format: properties/{property_id} - * Example: "properties/1000" - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Property getProperty(String name) { - GetPropertyRequest request = GetPropertyRequest.newBuilder().setName(name).build(); - return getProperty(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lookup for a single "GA4" Property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   GetPropertyRequest request =
-   *       GetPropertyRequest.newBuilder().setName(PropertyName.of("[PROPERTY]").toString()).build();
-   *   Property response = analyticsAdminServiceClient.getProperty(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Property getProperty(GetPropertyRequest request) { - return getPropertyCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lookup for a single "GA4" Property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   GetPropertyRequest request =
-   *       GetPropertyRequest.newBuilder().setName(PropertyName.of("[PROPERTY]").toString()).build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient.getPropertyCallable().futureCall(request);
-   *   // Do something.
-   *   Property response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable getPropertyCallable() { - return stub.getPropertyCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * 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. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   ListPropertiesRequest request =
-   *       ListPropertiesRequest.newBuilder()
-   *           .setFilter("filter-1274492040")
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .setShowDeleted(true)
-   *           .build();
-   *   for (Property element : analyticsAdminServiceClient.listProperties(request).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListPropertiesPagedResponse listProperties(ListPropertiesRequest request) { - return listPropertiesPagedCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * 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. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   ListPropertiesRequest request =
-   *       ListPropertiesRequest.newBuilder()
-   *           .setFilter("filter-1274492040")
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .setShowDeleted(true)
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient.listPropertiesPagedCallable().futureCall(request);
-   *   // Do something.
-   *   for (Property element : future.get().iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable - listPropertiesPagedCallable() { - return stub.listPropertiesPagedCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * 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. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   ListPropertiesRequest request =
-   *       ListPropertiesRequest.newBuilder()
-   *           .setFilter("filter-1274492040")
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .setShowDeleted(true)
-   *           .build();
-   *   while (true) {
-   *     ListPropertiesResponse response =
-   *         analyticsAdminServiceClient.listPropertiesCallable().call(request);
-   *     for (Property element : response.getPropertiesList()) {
-   *       // doThingsWith(element);
-   *     }
-   *     String nextPageToken = response.getNextPageToken();
-   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
-   *       request = request.toBuilder().setPageToken(nextPageToken).build();
-   *     } else {
-   *       break;
-   *     }
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable - listPropertiesCallable() { - return stub.listPropertiesCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates an "GA4" property with the specified location and attributes. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   Property property = Property.newBuilder().build();
-   *   Property response = analyticsAdminServiceClient.createProperty(property);
-   * }
-   * }
- * - * @param property Required. The property to create. Note: the supplied property must specify its - * parent. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Property createProperty(Property property) { - CreatePropertyRequest request = - CreatePropertyRequest.newBuilder().setProperty(property).build(); - return createProperty(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates an "GA4" property with the specified location and attributes. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   CreatePropertyRequest request =
-   *       CreatePropertyRequest.newBuilder().setProperty(Property.newBuilder().build()).build();
-   *   Property response = analyticsAdminServiceClient.createProperty(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Property createProperty(CreatePropertyRequest request) { - return createPropertyCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates an "GA4" property with the specified location and attributes. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   CreatePropertyRequest request =
-   *       CreatePropertyRequest.newBuilder().setProperty(Property.newBuilder().build()).build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient.createPropertyCallable().futureCall(request);
-   *   // Do something.
-   *   Property response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable createPropertyCallable() { - return stub.createPropertyCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * 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 an GA4 Property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   PropertyName name = PropertyName.of("[PROPERTY]");
-   *   Property response = analyticsAdminServiceClient.deleteProperty(name);
-   * }
-   * }
- * - * @param name Required. The name of the Property to soft-delete. Format: properties/{property_id} - * Example: "properties/1000" - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Property deleteProperty(PropertyName name) { - DeletePropertyRequest request = - DeletePropertyRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - return deleteProperty(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * 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 an GA4 Property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   String name = PropertyName.of("[PROPERTY]").toString();
-   *   Property response = analyticsAdminServiceClient.deleteProperty(name);
-   * }
-   * }
- * - * @param name Required. The name of the Property to soft-delete. Format: properties/{property_id} - * Example: "properties/1000" - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Property deleteProperty(String name) { - DeletePropertyRequest request = DeletePropertyRequest.newBuilder().setName(name).build(); - return deleteProperty(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * 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 an GA4 Property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   DeletePropertyRequest request =
-   *       DeletePropertyRequest.newBuilder()
-   *           .setName(PropertyName.of("[PROPERTY]").toString())
-   *           .build();
-   *   Property response = analyticsAdminServiceClient.deleteProperty(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Property deleteProperty(DeletePropertyRequest request) { - return deletePropertyCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * 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 an GA4 Property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   DeletePropertyRequest request =
-   *       DeletePropertyRequest.newBuilder()
-   *           .setName(PropertyName.of("[PROPERTY]").toString())
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient.deletePropertyCallable().futureCall(request);
-   *   // Do something.
-   *   Property response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable deletePropertyCallable() { - return stub.deletePropertyCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   Property property = Property.newBuilder().build();
-   *   FieldMask updateMask = FieldMask.newBuilder().build();
-   *   Property response = analyticsAdminServiceClient.updateProperty(property, updateMask);
-   * }
-   * }
- * - * @param property Required. The property to update. The property's `name` field is used to - * identify the property to be updated. - * @param updateMask Required. The list of fields to be updated. Field names must be in snake case - * (e.g., "field_to_update"). Omitted fields will not be updated. To replace the entire - * entity, use one path with the string "*" to match all fields. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Property updateProperty(Property property, FieldMask updateMask) { - UpdatePropertyRequest request = - UpdatePropertyRequest.newBuilder().setProperty(property).setUpdateMask(updateMask).build(); - return updateProperty(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   UpdatePropertyRequest request =
-   *       UpdatePropertyRequest.newBuilder()
-   *           .setProperty(Property.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   Property response = analyticsAdminServiceClient.updateProperty(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Property updateProperty(UpdatePropertyRequest request) { - return updatePropertyCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   UpdatePropertyRequest request =
-   *       UpdatePropertyRequest.newBuilder()
-   *           .setProperty(Property.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient.updatePropertyCallable().futureCall(request);
-   *   // Do something.
-   *   Property response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable updatePropertyCallable() { - return stub.updatePropertyCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a FirebaseLink. - * - *

Properties can have at most one FirebaseLink. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   PropertyName parent = PropertyName.of("[PROPERTY]");
-   *   FirebaseLink firebaseLink = FirebaseLink.newBuilder().build();
-   *   FirebaseLink response = analyticsAdminServiceClient.createFirebaseLink(parent, firebaseLink);
-   * }
-   * }
- * - * @param parent Required. Format: properties/{property_id} Example: properties/1234 - * @param firebaseLink Required. The Firebase link to create. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final FirebaseLink createFirebaseLink(PropertyName parent, FirebaseLink firebaseLink) { - CreateFirebaseLinkRequest request = - CreateFirebaseLinkRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setFirebaseLink(firebaseLink) - .build(); - return createFirebaseLink(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a FirebaseLink. - * - *

Properties can have at most one FirebaseLink. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   String parent = PropertyName.of("[PROPERTY]").toString();
-   *   FirebaseLink firebaseLink = FirebaseLink.newBuilder().build();
-   *   FirebaseLink response = analyticsAdminServiceClient.createFirebaseLink(parent, firebaseLink);
-   * }
-   * }
- * - * @param parent Required. Format: properties/{property_id} Example: properties/1234 - * @param firebaseLink Required. The Firebase link to create. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final FirebaseLink createFirebaseLink(String parent, FirebaseLink firebaseLink) { - CreateFirebaseLinkRequest request = - CreateFirebaseLinkRequest.newBuilder() - .setParent(parent) - .setFirebaseLink(firebaseLink) - .build(); - return createFirebaseLink(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a FirebaseLink. - * - *

Properties can have at most one FirebaseLink. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   CreateFirebaseLinkRequest request =
-   *       CreateFirebaseLinkRequest.newBuilder()
-   *           .setParent(PropertyName.of("[PROPERTY]").toString())
-   *           .setFirebaseLink(FirebaseLink.newBuilder().build())
-   *           .build();
-   *   FirebaseLink response = analyticsAdminServiceClient.createFirebaseLink(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final FirebaseLink createFirebaseLink(CreateFirebaseLinkRequest request) { - return createFirebaseLinkCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a FirebaseLink. - * - *

Properties can have at most one FirebaseLink. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   CreateFirebaseLinkRequest request =
-   *       CreateFirebaseLinkRequest.newBuilder()
-   *           .setParent(PropertyName.of("[PROPERTY]").toString())
-   *           .setFirebaseLink(FirebaseLink.newBuilder().build())
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient.createFirebaseLinkCallable().futureCall(request);
-   *   // Do something.
-   *   FirebaseLink response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable createFirebaseLinkCallable() { - return stub.createFirebaseLinkCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a FirebaseLink on a property - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   FirebaseLinkName name = FirebaseLinkName.of("[PROPERTY]", "[FIREBASE_LINK]");
-   *   analyticsAdminServiceClient.deleteFirebaseLink(name);
-   * }
-   * }
- * - * @param name Required. Format: properties/{property_id}/firebaseLinks/{firebase_link_id} - * Example: properties/1234/firebaseLinks/5678 - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void deleteFirebaseLink(FirebaseLinkName name) { - DeleteFirebaseLinkRequest request = - DeleteFirebaseLinkRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .build(); - deleteFirebaseLink(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a FirebaseLink on a property - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   String name = FirebaseLinkName.of("[PROPERTY]", "[FIREBASE_LINK]").toString();
-   *   analyticsAdminServiceClient.deleteFirebaseLink(name);
-   * }
-   * }
- * - * @param name Required. Format: properties/{property_id}/firebaseLinks/{firebase_link_id} - * Example: properties/1234/firebaseLinks/5678 - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void deleteFirebaseLink(String name) { - DeleteFirebaseLinkRequest request = - DeleteFirebaseLinkRequest.newBuilder().setName(name).build(); - deleteFirebaseLink(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a FirebaseLink on a property - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   DeleteFirebaseLinkRequest request =
-   *       DeleteFirebaseLinkRequest.newBuilder()
-   *           .setName(FirebaseLinkName.of("[PROPERTY]", "[FIREBASE_LINK]").toString())
-   *           .build();
-   *   analyticsAdminServiceClient.deleteFirebaseLink(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void deleteFirebaseLink(DeleteFirebaseLinkRequest request) { - deleteFirebaseLinkCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a FirebaseLink on a property - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   DeleteFirebaseLinkRequest request =
-   *       DeleteFirebaseLinkRequest.newBuilder()
-   *           .setName(FirebaseLinkName.of("[PROPERTY]", "[FIREBASE_LINK]").toString())
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient.deleteFirebaseLinkCallable().futureCall(request);
-   *   // Do something.
-   *   future.get();
-   * }
-   * }
- */ - public final UnaryCallable deleteFirebaseLinkCallable() { - return stub.deleteFirebaseLinkCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists FirebaseLinks on a property. Properties can have at most one FirebaseLink. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   PropertyName parent = PropertyName.of("[PROPERTY]");
-   *   for (FirebaseLink element :
-   *       analyticsAdminServiceClient.listFirebaseLinks(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. Format: properties/{property_id} Example: properties/1234 - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListFirebaseLinksPagedResponse listFirebaseLinks(PropertyName parent) { - ListFirebaseLinksRequest request = - ListFirebaseLinksRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .build(); - return listFirebaseLinks(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists FirebaseLinks on a property. Properties can have at most one FirebaseLink. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   String parent = PropertyName.of("[PROPERTY]").toString();
-   *   for (FirebaseLink element :
-   *       analyticsAdminServiceClient.listFirebaseLinks(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. Format: properties/{property_id} Example: properties/1234 - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListFirebaseLinksPagedResponse listFirebaseLinks(String parent) { - ListFirebaseLinksRequest request = - ListFirebaseLinksRequest.newBuilder().setParent(parent).build(); - return listFirebaseLinks(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists FirebaseLinks on a property. Properties can have at most one FirebaseLink. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   ListFirebaseLinksRequest request =
-   *       ListFirebaseLinksRequest.newBuilder()
-   *           .setParent(PropertyName.of("[PROPERTY]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   for (FirebaseLink element :
-   *       analyticsAdminServiceClient.listFirebaseLinks(request).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListFirebaseLinksPagedResponse listFirebaseLinks(ListFirebaseLinksRequest request) { - return listFirebaseLinksPagedCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists FirebaseLinks on a property. Properties can have at most one FirebaseLink. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   ListFirebaseLinksRequest request =
-   *       ListFirebaseLinksRequest.newBuilder()
-   *           .setParent(PropertyName.of("[PROPERTY]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient.listFirebaseLinksPagedCallable().futureCall(request);
-   *   // Do something.
-   *   for (FirebaseLink element : future.get().iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable - listFirebaseLinksPagedCallable() { - return stub.listFirebaseLinksPagedCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists FirebaseLinks on a property. Properties can have at most one FirebaseLink. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   ListFirebaseLinksRequest request =
-   *       ListFirebaseLinksRequest.newBuilder()
-   *           .setParent(PropertyName.of("[PROPERTY]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   while (true) {
-   *     ListFirebaseLinksResponse response =
-   *         analyticsAdminServiceClient.listFirebaseLinksCallable().call(request);
-   *     for (FirebaseLink element : response.getFirebaseLinksList()) {
-   *       // doThingsWith(element);
-   *     }
-   *     String nextPageToken = response.getNextPageToken();
-   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
-   *       request = request.toBuilder().setPageToken(nextPageToken).build();
-   *     } else {
-   *       break;
-   *     }
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable - listFirebaseLinksCallable() { - return stub.listFirebaseLinksCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a GoogleAdsLink. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   PropertyName parent = PropertyName.of("[PROPERTY]");
-   *   GoogleAdsLink googleAdsLink = GoogleAdsLink.newBuilder().build();
-   *   GoogleAdsLink response =
-   *       analyticsAdminServiceClient.createGoogleAdsLink(parent, googleAdsLink);
-   * }
-   * }
- * - * @param parent Required. Example format: properties/1234 - * @param googleAdsLink Required. The GoogleAdsLink to create. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final GoogleAdsLink createGoogleAdsLink(PropertyName parent, GoogleAdsLink googleAdsLink) { - CreateGoogleAdsLinkRequest request = - CreateGoogleAdsLinkRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setGoogleAdsLink(googleAdsLink) - .build(); - return createGoogleAdsLink(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a GoogleAdsLink. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   String parent = PropertyName.of("[PROPERTY]").toString();
-   *   GoogleAdsLink googleAdsLink = GoogleAdsLink.newBuilder().build();
-   *   GoogleAdsLink response =
-   *       analyticsAdminServiceClient.createGoogleAdsLink(parent, googleAdsLink);
-   * }
-   * }
- * - * @param parent Required. Example format: properties/1234 - * @param googleAdsLink Required. The GoogleAdsLink to create. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final GoogleAdsLink createGoogleAdsLink(String parent, GoogleAdsLink googleAdsLink) { - CreateGoogleAdsLinkRequest request = - CreateGoogleAdsLinkRequest.newBuilder() - .setParent(parent) - .setGoogleAdsLink(googleAdsLink) - .build(); - return createGoogleAdsLink(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a GoogleAdsLink. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   CreateGoogleAdsLinkRequest request =
-   *       CreateGoogleAdsLinkRequest.newBuilder()
-   *           .setParent(PropertyName.of("[PROPERTY]").toString())
-   *           .setGoogleAdsLink(GoogleAdsLink.newBuilder().build())
-   *           .build();
-   *   GoogleAdsLink response = analyticsAdminServiceClient.createGoogleAdsLink(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final GoogleAdsLink createGoogleAdsLink(CreateGoogleAdsLinkRequest request) { - return createGoogleAdsLinkCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a GoogleAdsLink. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   CreateGoogleAdsLinkRequest request =
-   *       CreateGoogleAdsLinkRequest.newBuilder()
-   *           .setParent(PropertyName.of("[PROPERTY]").toString())
-   *           .setGoogleAdsLink(GoogleAdsLink.newBuilder().build())
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient.createGoogleAdsLinkCallable().futureCall(request);
-   *   // Do something.
-   *   GoogleAdsLink response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable - createGoogleAdsLinkCallable() { - return stub.createGoogleAdsLinkCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a GoogleAdsLink on a property - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   GoogleAdsLink googleAdsLink = GoogleAdsLink.newBuilder().build();
-   *   FieldMask updateMask = FieldMask.newBuilder().build();
-   *   GoogleAdsLink response =
-   *       analyticsAdminServiceClient.updateGoogleAdsLink(googleAdsLink, updateMask);
-   * }
-   * }
- * - * @param googleAdsLink The GoogleAdsLink to update - * @param updateMask Required. The list of fields to be updated. Field names must be in snake case - * (e.g., "field_to_update"). Omitted fields will not be updated. To replace the entire - * entity, use one path with the string "*" to match all fields. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final GoogleAdsLink updateGoogleAdsLink( - GoogleAdsLink googleAdsLink, FieldMask updateMask) { - UpdateGoogleAdsLinkRequest request = - UpdateGoogleAdsLinkRequest.newBuilder() - .setGoogleAdsLink(googleAdsLink) - .setUpdateMask(updateMask) - .build(); - return updateGoogleAdsLink(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a GoogleAdsLink on a property - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   UpdateGoogleAdsLinkRequest request =
-   *       UpdateGoogleAdsLinkRequest.newBuilder()
-   *           .setGoogleAdsLink(GoogleAdsLink.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   GoogleAdsLink response = analyticsAdminServiceClient.updateGoogleAdsLink(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final GoogleAdsLink updateGoogleAdsLink(UpdateGoogleAdsLinkRequest request) { - return updateGoogleAdsLinkCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a GoogleAdsLink on a property - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   UpdateGoogleAdsLinkRequest request =
-   *       UpdateGoogleAdsLinkRequest.newBuilder()
-   *           .setGoogleAdsLink(GoogleAdsLink.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient.updateGoogleAdsLinkCallable().futureCall(request);
-   *   // Do something.
-   *   GoogleAdsLink response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable - updateGoogleAdsLinkCallable() { - return stub.updateGoogleAdsLinkCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a GoogleAdsLink on a property - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   GoogleAdsLinkName name = GoogleAdsLinkName.of("[PROPERTY]", "[GOOGLE_ADS_LINK]");
-   *   analyticsAdminServiceClient.deleteGoogleAdsLink(name);
-   * }
-   * }
- * - * @param name Required. Example format: properties/1234/googleAdsLinks/5678 - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void deleteGoogleAdsLink(GoogleAdsLinkName name) { - DeleteGoogleAdsLinkRequest request = - DeleteGoogleAdsLinkRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .build(); - deleteGoogleAdsLink(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a GoogleAdsLink on a property - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   String name = GoogleAdsLinkName.of("[PROPERTY]", "[GOOGLE_ADS_LINK]").toString();
-   *   analyticsAdminServiceClient.deleteGoogleAdsLink(name);
-   * }
-   * }
- * - * @param name Required. Example format: properties/1234/googleAdsLinks/5678 - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void deleteGoogleAdsLink(String name) { - DeleteGoogleAdsLinkRequest request = - DeleteGoogleAdsLinkRequest.newBuilder().setName(name).build(); - deleteGoogleAdsLink(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a GoogleAdsLink on a property - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   DeleteGoogleAdsLinkRequest request =
-   *       DeleteGoogleAdsLinkRequest.newBuilder()
-   *           .setName(GoogleAdsLinkName.of("[PROPERTY]", "[GOOGLE_ADS_LINK]").toString())
-   *           .build();
-   *   analyticsAdminServiceClient.deleteGoogleAdsLink(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void deleteGoogleAdsLink(DeleteGoogleAdsLinkRequest request) { - deleteGoogleAdsLinkCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a GoogleAdsLink on a property - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   DeleteGoogleAdsLinkRequest request =
-   *       DeleteGoogleAdsLinkRequest.newBuilder()
-   *           .setName(GoogleAdsLinkName.of("[PROPERTY]", "[GOOGLE_ADS_LINK]").toString())
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient.deleteGoogleAdsLinkCallable().futureCall(request);
-   *   // Do something.
-   *   future.get();
-   * }
-   * }
- */ - public final UnaryCallable deleteGoogleAdsLinkCallable() { - return stub.deleteGoogleAdsLinkCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists GoogleAdsLinks on a property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   PropertyName parent = PropertyName.of("[PROPERTY]");
-   *   for (GoogleAdsLink element :
-   *       analyticsAdminServiceClient.listGoogleAdsLinks(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. Example format: properties/1234 - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListGoogleAdsLinksPagedResponse listGoogleAdsLinks(PropertyName parent) { - ListGoogleAdsLinksRequest request = - ListGoogleAdsLinksRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .build(); - return listGoogleAdsLinks(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists GoogleAdsLinks on a property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   String parent = PropertyName.of("[PROPERTY]").toString();
-   *   for (GoogleAdsLink element :
-   *       analyticsAdminServiceClient.listGoogleAdsLinks(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. Example format: properties/1234 - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListGoogleAdsLinksPagedResponse listGoogleAdsLinks(String parent) { - ListGoogleAdsLinksRequest request = - ListGoogleAdsLinksRequest.newBuilder().setParent(parent).build(); - return listGoogleAdsLinks(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists GoogleAdsLinks on a property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   ListGoogleAdsLinksRequest request =
-   *       ListGoogleAdsLinksRequest.newBuilder()
-   *           .setParent(PropertyName.of("[PROPERTY]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   for (GoogleAdsLink element :
-   *       analyticsAdminServiceClient.listGoogleAdsLinks(request).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListGoogleAdsLinksPagedResponse listGoogleAdsLinks( - ListGoogleAdsLinksRequest request) { - return listGoogleAdsLinksPagedCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists GoogleAdsLinks on a property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   ListGoogleAdsLinksRequest request =
-   *       ListGoogleAdsLinksRequest.newBuilder()
-   *           .setParent(PropertyName.of("[PROPERTY]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient.listGoogleAdsLinksPagedCallable().futureCall(request);
-   *   // Do something.
-   *   for (GoogleAdsLink element : future.get().iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable - listGoogleAdsLinksPagedCallable() { - return stub.listGoogleAdsLinksPagedCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists GoogleAdsLinks on a property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   ListGoogleAdsLinksRequest request =
-   *       ListGoogleAdsLinksRequest.newBuilder()
-   *           .setParent(PropertyName.of("[PROPERTY]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   while (true) {
-   *     ListGoogleAdsLinksResponse response =
-   *         analyticsAdminServiceClient.listGoogleAdsLinksCallable().call(request);
-   *     for (GoogleAdsLink element : response.getGoogleAdsLinksList()) {
-   *       // doThingsWith(element);
-   *     }
-   *     String nextPageToken = response.getNextPageToken();
-   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
-   *       request = request.toBuilder().setPageToken(nextPageToken).build();
-   *     } else {
-   *       break;
-   *     }
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable - listGoogleAdsLinksCallable() { - return stub.listGoogleAdsLinksCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Get data sharing settings on an account. Data sharing settings are singletons. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   DataSharingSettingsName name = DataSharingSettingsName.of("[ACCOUNT]");
-   *   DataSharingSettings response = analyticsAdminServiceClient.getDataSharingSettings(name);
-   * }
-   * }
- * - * @param name Required. The name of the settings to lookup. Format: - * accounts/{account}/dataSharingSettings Example: "accounts/1000/dataSharingSettings" - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final DataSharingSettings getDataSharingSettings(DataSharingSettingsName name) { - GetDataSharingSettingsRequest request = - GetDataSharingSettingsRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .build(); - return getDataSharingSettings(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Get data sharing settings on an account. Data sharing settings are singletons. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   String name = DataSharingSettingsName.of("[ACCOUNT]").toString();
-   *   DataSharingSettings response = analyticsAdminServiceClient.getDataSharingSettings(name);
-   * }
-   * }
- * - * @param name Required. The name of the settings to lookup. Format: - * accounts/{account}/dataSharingSettings Example: "accounts/1000/dataSharingSettings" - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final DataSharingSettings getDataSharingSettings(String name) { - GetDataSharingSettingsRequest request = - GetDataSharingSettingsRequest.newBuilder().setName(name).build(); - return getDataSharingSettings(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Get data sharing settings on an account. Data sharing settings are singletons. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   GetDataSharingSettingsRequest request =
-   *       GetDataSharingSettingsRequest.newBuilder()
-   *           .setName(DataSharingSettingsName.of("[ACCOUNT]").toString())
-   *           .build();
-   *   DataSharingSettings response = analyticsAdminServiceClient.getDataSharingSettings(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final DataSharingSettings getDataSharingSettings(GetDataSharingSettingsRequest request) { - return getDataSharingSettingsCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Get data sharing settings on an account. Data sharing settings are singletons. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   GetDataSharingSettingsRequest request =
-   *       GetDataSharingSettingsRequest.newBuilder()
-   *           .setName(DataSharingSettingsName.of("[ACCOUNT]").toString())
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient.getDataSharingSettingsCallable().futureCall(request);
-   *   // Do something.
-   *   DataSharingSettings response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable - getDataSharingSettingsCallable() { - return stub.getDataSharingSettingsCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lookup for a single "GA4" MeasurementProtocolSecret. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   MeasurementProtocolSecretName name =
-   *       MeasurementProtocolSecretName.of(
-   *           "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]");
-   *   MeasurementProtocolSecret response =
-   *       analyticsAdminServiceClient.getMeasurementProtocolSecret(name);
-   * }
-   * }
- * - * @param name Required. The name of the measurement protocol secret to lookup. Format: - * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final MeasurementProtocolSecret getMeasurementProtocolSecret( - MeasurementProtocolSecretName name) { - GetMeasurementProtocolSecretRequest request = - GetMeasurementProtocolSecretRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .build(); - return getMeasurementProtocolSecret(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lookup for a single "GA4" MeasurementProtocolSecret. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   String name =
-   *       MeasurementProtocolSecretName.of(
-   *               "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]")
-   *           .toString();
-   *   MeasurementProtocolSecret response =
-   *       analyticsAdminServiceClient.getMeasurementProtocolSecret(name);
-   * }
-   * }
- * - * @param name Required. The name of the measurement protocol secret to lookup. Format: - * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final MeasurementProtocolSecret getMeasurementProtocolSecret(String name) { - GetMeasurementProtocolSecretRequest request = - GetMeasurementProtocolSecretRequest.newBuilder().setName(name).build(); - return getMeasurementProtocolSecret(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lookup for a single "GA4" MeasurementProtocolSecret. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   GetMeasurementProtocolSecretRequest request =
-   *       GetMeasurementProtocolSecretRequest.newBuilder()
-   *           .setName(
-   *               MeasurementProtocolSecretName.of(
-   *                       "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]")
-   *                   .toString())
-   *           .build();
-   *   MeasurementProtocolSecret response =
-   *       analyticsAdminServiceClient.getMeasurementProtocolSecret(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final MeasurementProtocolSecret getMeasurementProtocolSecret( - GetMeasurementProtocolSecretRequest request) { - return getMeasurementProtocolSecretCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lookup for a single "GA4" MeasurementProtocolSecret. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   GetMeasurementProtocolSecretRequest request =
-   *       GetMeasurementProtocolSecretRequest.newBuilder()
-   *           .setName(
-   *               MeasurementProtocolSecretName.of(
-   *                       "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]")
-   *                   .toString())
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient.getMeasurementProtocolSecretCallable().futureCall(request);
-   *   // Do something.
-   *   MeasurementProtocolSecret response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable - getMeasurementProtocolSecretCallable() { - return stub.getMeasurementProtocolSecretCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Returns child MeasurementProtocolSecrets under the specified parent Property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   DataStreamName parent = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]");
-   *   for (MeasurementProtocolSecret element :
-   *       analyticsAdminServiceClient.listMeasurementProtocolSecrets(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. The resource name of the parent stream. Format: - * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListMeasurementProtocolSecretsPagedResponse listMeasurementProtocolSecrets( - DataStreamName parent) { - ListMeasurementProtocolSecretsRequest request = - ListMeasurementProtocolSecretsRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .build(); - return listMeasurementProtocolSecrets(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Returns child MeasurementProtocolSecrets under the specified parent Property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   String parent = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString();
-   *   for (MeasurementProtocolSecret element :
-   *       analyticsAdminServiceClient.listMeasurementProtocolSecrets(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. The resource name of the parent stream. Format: - * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListMeasurementProtocolSecretsPagedResponse listMeasurementProtocolSecrets( - String parent) { - ListMeasurementProtocolSecretsRequest request = - ListMeasurementProtocolSecretsRequest.newBuilder().setParent(parent).build(); - return listMeasurementProtocolSecrets(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Returns child MeasurementProtocolSecrets under the specified parent Property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   ListMeasurementProtocolSecretsRequest request =
-   *       ListMeasurementProtocolSecretsRequest.newBuilder()
-   *           .setParent(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   for (MeasurementProtocolSecret element :
-   *       analyticsAdminServiceClient.listMeasurementProtocolSecrets(request).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListMeasurementProtocolSecretsPagedResponse listMeasurementProtocolSecrets( - ListMeasurementProtocolSecretsRequest request) { - return listMeasurementProtocolSecretsPagedCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Returns child MeasurementProtocolSecrets under the specified parent Property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   ListMeasurementProtocolSecretsRequest request =
-   *       ListMeasurementProtocolSecretsRequest.newBuilder()
-   *           .setParent(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient
-   *           .listMeasurementProtocolSecretsPagedCallable()
-   *           .futureCall(request);
-   *   // Do something.
-   *   for (MeasurementProtocolSecret element : future.get().iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable< - ListMeasurementProtocolSecretsRequest, ListMeasurementProtocolSecretsPagedResponse> - listMeasurementProtocolSecretsPagedCallable() { - return stub.listMeasurementProtocolSecretsPagedCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Returns child MeasurementProtocolSecrets under the specified parent Property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   ListMeasurementProtocolSecretsRequest request =
-   *       ListMeasurementProtocolSecretsRequest.newBuilder()
-   *           .setParent(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   while (true) {
-   *     ListMeasurementProtocolSecretsResponse response =
-   *         analyticsAdminServiceClient.listMeasurementProtocolSecretsCallable().call(request);
-   *     for (MeasurementProtocolSecret element : response.getMeasurementProtocolSecretsList()) {
-   *       // doThingsWith(element);
-   *     }
-   *     String nextPageToken = response.getNextPageToken();
-   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
-   *       request = request.toBuilder().setPageToken(nextPageToken).build();
-   *     } else {
-   *       break;
-   *     }
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable< - ListMeasurementProtocolSecretsRequest, ListMeasurementProtocolSecretsResponse> - listMeasurementProtocolSecretsCallable() { - return stub.listMeasurementProtocolSecretsCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a measurement protocol secret. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   DataStreamName parent = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]");
-   *   MeasurementProtocolSecret measurementProtocolSecret =
-   *       MeasurementProtocolSecret.newBuilder().build();
-   *   MeasurementProtocolSecret response =
-   *       analyticsAdminServiceClient.createMeasurementProtocolSecret(
-   *           parent, measurementProtocolSecret);
-   * }
-   * }
- * - * @param parent Required. The parent resource where this secret will be created. Format: - * properties/{property}/dataStreams/{dataStream} - * @param measurementProtocolSecret Required. The measurement protocol secret to create. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final MeasurementProtocolSecret createMeasurementProtocolSecret( - DataStreamName parent, MeasurementProtocolSecret measurementProtocolSecret) { - CreateMeasurementProtocolSecretRequest request = - CreateMeasurementProtocolSecretRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setMeasurementProtocolSecret(measurementProtocolSecret) - .build(); - return createMeasurementProtocolSecret(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a measurement protocol secret. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   String parent = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString();
-   *   MeasurementProtocolSecret measurementProtocolSecret =
-   *       MeasurementProtocolSecret.newBuilder().build();
-   *   MeasurementProtocolSecret response =
-   *       analyticsAdminServiceClient.createMeasurementProtocolSecret(
-   *           parent, measurementProtocolSecret);
-   * }
-   * }
- * - * @param parent Required. The parent resource where this secret will be created. Format: - * properties/{property}/dataStreams/{dataStream} - * @param measurementProtocolSecret Required. The measurement protocol secret to create. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final MeasurementProtocolSecret createMeasurementProtocolSecret( - String parent, MeasurementProtocolSecret measurementProtocolSecret) { - CreateMeasurementProtocolSecretRequest request = - CreateMeasurementProtocolSecretRequest.newBuilder() - .setParent(parent) - .setMeasurementProtocolSecret(measurementProtocolSecret) - .build(); - return createMeasurementProtocolSecret(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a measurement protocol secret. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   CreateMeasurementProtocolSecretRequest request =
-   *       CreateMeasurementProtocolSecretRequest.newBuilder()
-   *           .setParent(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString())
-   *           .setMeasurementProtocolSecret(MeasurementProtocolSecret.newBuilder().build())
-   *           .build();
-   *   MeasurementProtocolSecret response =
-   *       analyticsAdminServiceClient.createMeasurementProtocolSecret(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final MeasurementProtocolSecret createMeasurementProtocolSecret( - CreateMeasurementProtocolSecretRequest request) { - return createMeasurementProtocolSecretCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a measurement protocol secret. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   CreateMeasurementProtocolSecretRequest request =
-   *       CreateMeasurementProtocolSecretRequest.newBuilder()
-   *           .setParent(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString())
-   *           .setMeasurementProtocolSecret(MeasurementProtocolSecret.newBuilder().build())
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient.createMeasurementProtocolSecretCallable().futureCall(request);
-   *   // Do something.
-   *   MeasurementProtocolSecret response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable - createMeasurementProtocolSecretCallable() { - return stub.createMeasurementProtocolSecretCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes target MeasurementProtocolSecret. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   MeasurementProtocolSecretName name =
-   *       MeasurementProtocolSecretName.of(
-   *           "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]");
-   *   analyticsAdminServiceClient.deleteMeasurementProtocolSecret(name);
-   * }
-   * }
- * - * @param name Required. The name of the MeasurementProtocolSecret to delete. Format: - * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void deleteMeasurementProtocolSecret(MeasurementProtocolSecretName name) { - DeleteMeasurementProtocolSecretRequest request = - DeleteMeasurementProtocolSecretRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .build(); - deleteMeasurementProtocolSecret(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes target MeasurementProtocolSecret. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   String name =
-   *       MeasurementProtocolSecretName.of(
-   *               "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]")
-   *           .toString();
-   *   analyticsAdminServiceClient.deleteMeasurementProtocolSecret(name);
-   * }
-   * }
- * - * @param name Required. The name of the MeasurementProtocolSecret to delete. Format: - * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void deleteMeasurementProtocolSecret(String name) { - DeleteMeasurementProtocolSecretRequest request = - DeleteMeasurementProtocolSecretRequest.newBuilder().setName(name).build(); - deleteMeasurementProtocolSecret(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes target MeasurementProtocolSecret. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   DeleteMeasurementProtocolSecretRequest request =
-   *       DeleteMeasurementProtocolSecretRequest.newBuilder()
-   *           .setName(
-   *               MeasurementProtocolSecretName.of(
-   *                       "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]")
-   *                   .toString())
-   *           .build();
-   *   analyticsAdminServiceClient.deleteMeasurementProtocolSecret(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void deleteMeasurementProtocolSecret( - DeleteMeasurementProtocolSecretRequest request) { - deleteMeasurementProtocolSecretCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes target MeasurementProtocolSecret. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   DeleteMeasurementProtocolSecretRequest request =
-   *       DeleteMeasurementProtocolSecretRequest.newBuilder()
-   *           .setName(
-   *               MeasurementProtocolSecretName.of(
-   *                       "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]")
-   *                   .toString())
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient.deleteMeasurementProtocolSecretCallable().futureCall(request);
-   *   // Do something.
-   *   future.get();
-   * }
-   * }
- */ - public final UnaryCallable - deleteMeasurementProtocolSecretCallable() { - return stub.deleteMeasurementProtocolSecretCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a measurement protocol secret. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   MeasurementProtocolSecret measurementProtocolSecret =
-   *       MeasurementProtocolSecret.newBuilder().build();
-   *   FieldMask updateMask = FieldMask.newBuilder().build();
-   *   MeasurementProtocolSecret response =
-   *       analyticsAdminServiceClient.updateMeasurementProtocolSecret(
-   *           measurementProtocolSecret, updateMask);
-   * }
-   * }
- * - * @param measurementProtocolSecret Required. The measurement protocol secret to update. - * @param updateMask The list of fields to be updated. Omitted fields will not be updated. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final MeasurementProtocolSecret updateMeasurementProtocolSecret( - MeasurementProtocolSecret measurementProtocolSecret, FieldMask updateMask) { - UpdateMeasurementProtocolSecretRequest request = - UpdateMeasurementProtocolSecretRequest.newBuilder() - .setMeasurementProtocolSecret(measurementProtocolSecret) - .setUpdateMask(updateMask) - .build(); - return updateMeasurementProtocolSecret(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a measurement protocol secret. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   UpdateMeasurementProtocolSecretRequest request =
-   *       UpdateMeasurementProtocolSecretRequest.newBuilder()
-   *           .setMeasurementProtocolSecret(MeasurementProtocolSecret.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   MeasurementProtocolSecret response =
-   *       analyticsAdminServiceClient.updateMeasurementProtocolSecret(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final MeasurementProtocolSecret updateMeasurementProtocolSecret( - UpdateMeasurementProtocolSecretRequest request) { - return updateMeasurementProtocolSecretCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a measurement protocol secret. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   UpdateMeasurementProtocolSecretRequest request =
-   *       UpdateMeasurementProtocolSecretRequest.newBuilder()
-   *           .setMeasurementProtocolSecret(MeasurementProtocolSecret.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient.updateMeasurementProtocolSecretCallable().futureCall(request);
-   *   // Do something.
-   *   MeasurementProtocolSecret response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable - updateMeasurementProtocolSecretCallable() { - return stub.updateMeasurementProtocolSecretCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Acknowledges the terms of user data collection for the specified property. - * - *

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

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   AcknowledgeUserDataCollectionRequest request =
-   *       AcknowledgeUserDataCollectionRequest.newBuilder()
-   *           .setProperty(PropertyName.of("[PROPERTY]").toString())
-   *           .setAcknowledgement("acknowledgement1769490938")
-   *           .build();
-   *   AcknowledgeUserDataCollectionResponse response =
-   *       analyticsAdminServiceClient.acknowledgeUserDataCollection(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final AcknowledgeUserDataCollectionResponse acknowledgeUserDataCollection( - AcknowledgeUserDataCollectionRequest request) { - return acknowledgeUserDataCollectionCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Acknowledges the terms of user data collection for the specified property. - * - *

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

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   AcknowledgeUserDataCollectionRequest request =
-   *       AcknowledgeUserDataCollectionRequest.newBuilder()
-   *           .setProperty(PropertyName.of("[PROPERTY]").toString())
-   *           .setAcknowledgement("acknowledgement1769490938")
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient.acknowledgeUserDataCollectionCallable().futureCall(request);
-   *   // Do something.
-   *   AcknowledgeUserDataCollectionResponse response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable< - AcknowledgeUserDataCollectionRequest, AcknowledgeUserDataCollectionResponse> - acknowledgeUserDataCollectionCallable() { - return stub.acknowledgeUserDataCollectionCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Searches through all changes to an account or its children given the specified set of filters. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   SearchChangeHistoryEventsRequest request =
-   *       SearchChangeHistoryEventsRequest.newBuilder()
-   *           .setAccount(AccountName.of("[ACCOUNT]").toString())
-   *           .setProperty(PropertyName.of("[PROPERTY]").toString())
-   *           .addAllResourceType(new ArrayList())
-   *           .addAllAction(new ArrayList())
-   *           .addAllActorEmail(new ArrayList())
-   *           .setEarliestChangeTime(Timestamp.newBuilder().build())
-   *           .setLatestChangeTime(Timestamp.newBuilder().build())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   for (ChangeHistoryEvent element :
-   *       analyticsAdminServiceClient.searchChangeHistoryEvents(request).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final SearchChangeHistoryEventsPagedResponse searchChangeHistoryEvents( - SearchChangeHistoryEventsRequest request) { - return searchChangeHistoryEventsPagedCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Searches through all changes to an account or its children given the specified set of filters. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   SearchChangeHistoryEventsRequest request =
-   *       SearchChangeHistoryEventsRequest.newBuilder()
-   *           .setAccount(AccountName.of("[ACCOUNT]").toString())
-   *           .setProperty(PropertyName.of("[PROPERTY]").toString())
-   *           .addAllResourceType(new ArrayList())
-   *           .addAllAction(new ArrayList())
-   *           .addAllActorEmail(new ArrayList())
-   *           .setEarliestChangeTime(Timestamp.newBuilder().build())
-   *           .setLatestChangeTime(Timestamp.newBuilder().build())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient.searchChangeHistoryEventsPagedCallable().futureCall(request);
-   *   // Do something.
-   *   for (ChangeHistoryEvent element : future.get().iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable< - SearchChangeHistoryEventsRequest, SearchChangeHistoryEventsPagedResponse> - searchChangeHistoryEventsPagedCallable() { - return stub.searchChangeHistoryEventsPagedCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Searches through all changes to an account or its children given the specified set of filters. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   SearchChangeHistoryEventsRequest request =
-   *       SearchChangeHistoryEventsRequest.newBuilder()
-   *           .setAccount(AccountName.of("[ACCOUNT]").toString())
-   *           .setProperty(PropertyName.of("[PROPERTY]").toString())
-   *           .addAllResourceType(new ArrayList())
-   *           .addAllAction(new ArrayList())
-   *           .addAllActorEmail(new ArrayList())
-   *           .setEarliestChangeTime(Timestamp.newBuilder().build())
-   *           .setLatestChangeTime(Timestamp.newBuilder().build())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   while (true) {
-   *     SearchChangeHistoryEventsResponse response =
-   *         analyticsAdminServiceClient.searchChangeHistoryEventsCallable().call(request);
-   *     for (ChangeHistoryEvent element : response.getChangeHistoryEventsList()) {
-   *       // doThingsWith(element);
-   *     }
-   *     String nextPageToken = response.getNextPageToken();
-   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
-   *       request = request.toBuilder().setPageToken(nextPageToken).build();
-   *     } else {
-   *       break;
-   *     }
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable - searchChangeHistoryEventsCallable() { - return stub.searchChangeHistoryEventsCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a conversion event with the specified attributes. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   PropertyName parent = PropertyName.of("[PROPERTY]");
-   *   ConversionEvent conversionEvent = ConversionEvent.newBuilder().build();
-   *   ConversionEvent response =
-   *       analyticsAdminServiceClient.createConversionEvent(parent, conversionEvent);
-   * }
-   * }
- * - * @param parent Required. The resource name of the parent property where this conversion event - * will be created. Format: properties/123 - * @param conversionEvent Required. The conversion event to create. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ConversionEvent createConversionEvent( - PropertyName parent, ConversionEvent conversionEvent) { - CreateConversionEventRequest request = - CreateConversionEventRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setConversionEvent(conversionEvent) - .build(); - return createConversionEvent(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a conversion event with the specified attributes. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   String parent = PropertyName.of("[PROPERTY]").toString();
-   *   ConversionEvent conversionEvent = ConversionEvent.newBuilder().build();
-   *   ConversionEvent response =
-   *       analyticsAdminServiceClient.createConversionEvent(parent, conversionEvent);
-   * }
-   * }
- * - * @param parent Required. The resource name of the parent property where this conversion event - * will be created. Format: properties/123 - * @param conversionEvent Required. The conversion event to create. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ConversionEvent createConversionEvent( - String parent, ConversionEvent conversionEvent) { - CreateConversionEventRequest request = - CreateConversionEventRequest.newBuilder() - .setParent(parent) - .setConversionEvent(conversionEvent) - .build(); - return createConversionEvent(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a conversion event with the specified attributes. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   CreateConversionEventRequest request =
-   *       CreateConversionEventRequest.newBuilder()
-   *           .setConversionEvent(ConversionEvent.newBuilder().build())
-   *           .setParent(PropertyName.of("[PROPERTY]").toString())
-   *           .build();
-   *   ConversionEvent response = analyticsAdminServiceClient.createConversionEvent(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ConversionEvent createConversionEvent(CreateConversionEventRequest request) { - return createConversionEventCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a conversion event with the specified attributes. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   CreateConversionEventRequest request =
-   *       CreateConversionEventRequest.newBuilder()
-   *           .setConversionEvent(ConversionEvent.newBuilder().build())
-   *           .setParent(PropertyName.of("[PROPERTY]").toString())
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient.createConversionEventCallable().futureCall(request);
-   *   // Do something.
-   *   ConversionEvent response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable - createConversionEventCallable() { - return stub.createConversionEventCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Retrieve a single conversion event. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   ConversionEventName name = ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]");
-   *   ConversionEvent response = analyticsAdminServiceClient.getConversionEvent(name);
-   * }
-   * }
- * - * @param name Required. The resource name of the conversion event to retrieve. Format: - * properties/{property}/conversionEvents/{conversion_event} Example: - * "properties/123/conversionEvents/456" - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ConversionEvent getConversionEvent(ConversionEventName name) { - GetConversionEventRequest request = - GetConversionEventRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .build(); - return getConversionEvent(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Retrieve a single conversion event. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   String name = ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]").toString();
-   *   ConversionEvent response = analyticsAdminServiceClient.getConversionEvent(name);
-   * }
-   * }
- * - * @param name Required. The resource name of the conversion event to retrieve. Format: - * properties/{property}/conversionEvents/{conversion_event} Example: - * "properties/123/conversionEvents/456" - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ConversionEvent getConversionEvent(String name) { - GetConversionEventRequest request = - GetConversionEventRequest.newBuilder().setName(name).build(); - return getConversionEvent(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Retrieve a single conversion event. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   GetConversionEventRequest request =
-   *       GetConversionEventRequest.newBuilder()
-   *           .setName(ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]").toString())
-   *           .build();
-   *   ConversionEvent response = analyticsAdminServiceClient.getConversionEvent(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ConversionEvent getConversionEvent(GetConversionEventRequest request) { - return getConversionEventCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Retrieve a single conversion event. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   GetConversionEventRequest request =
-   *       GetConversionEventRequest.newBuilder()
-   *           .setName(ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]").toString())
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient.getConversionEventCallable().futureCall(request);
-   *   // Do something.
-   *   ConversionEvent response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable - getConversionEventCallable() { - return stub.getConversionEventCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a conversion event in a property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   ConversionEventName name = ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]");
-   *   analyticsAdminServiceClient.deleteConversionEvent(name);
-   * }
-   * }
- * - * @param name Required. The resource name of the conversion event to delete. Format: - * properties/{property}/conversionEvents/{conversion_event} Example: - * "properties/123/conversionEvents/456" - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void deleteConversionEvent(ConversionEventName name) { - DeleteConversionEventRequest request = - DeleteConversionEventRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .build(); - deleteConversionEvent(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a conversion event in a property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   String name = ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]").toString();
-   *   analyticsAdminServiceClient.deleteConversionEvent(name);
-   * }
-   * }
- * - * @param name Required. The resource name of the conversion event to delete. Format: - * properties/{property}/conversionEvents/{conversion_event} Example: - * "properties/123/conversionEvents/456" - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void deleteConversionEvent(String name) { - DeleteConversionEventRequest request = - DeleteConversionEventRequest.newBuilder().setName(name).build(); - deleteConversionEvent(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a conversion event in a property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   DeleteConversionEventRequest request =
-   *       DeleteConversionEventRequest.newBuilder()
-   *           .setName(ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]").toString())
-   *           .build();
-   *   analyticsAdminServiceClient.deleteConversionEvent(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void deleteConversionEvent(DeleteConversionEventRequest request) { - deleteConversionEventCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a conversion event in a property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   DeleteConversionEventRequest request =
-   *       DeleteConversionEventRequest.newBuilder()
-   *           .setName(ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]").toString())
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient.deleteConversionEventCallable().futureCall(request);
-   *   // Do something.
-   *   future.get();
-   * }
-   * }
- */ - public final UnaryCallable deleteConversionEventCallable() { - return stub.deleteConversionEventCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Returns a list of conversion events in the specified parent property. - * - *

Returns an empty list if no conversion events are found. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   PropertyName parent = PropertyName.of("[PROPERTY]");
-   *   for (ConversionEvent element :
-   *       analyticsAdminServiceClient.listConversionEvents(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. The resource name of the parent property. Example: 'properties/123' - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListConversionEventsPagedResponse listConversionEvents(PropertyName parent) { - ListConversionEventsRequest request = - ListConversionEventsRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .build(); - return listConversionEvents(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Returns a list of conversion events in the specified parent property. - * - *

Returns an empty list if no conversion events are found. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   String parent = PropertyName.of("[PROPERTY]").toString();
-   *   for (ConversionEvent element :
-   *       analyticsAdminServiceClient.listConversionEvents(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. The resource name of the parent property. Example: 'properties/123' - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListConversionEventsPagedResponse listConversionEvents(String parent) { - ListConversionEventsRequest request = - ListConversionEventsRequest.newBuilder().setParent(parent).build(); - return listConversionEvents(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Returns a list of conversion events in the specified parent property. - * - *

Returns an empty list if no conversion events are found. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   ListConversionEventsRequest request =
-   *       ListConversionEventsRequest.newBuilder()
-   *           .setParent(PropertyName.of("[PROPERTY]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   for (ConversionEvent element :
-   *       analyticsAdminServiceClient.listConversionEvents(request).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListConversionEventsPagedResponse listConversionEvents( - ListConversionEventsRequest request) { - return listConversionEventsPagedCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Returns a list of conversion events in the specified parent property. - * - *

Returns an empty list if no conversion events are found. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   ListConversionEventsRequest request =
-   *       ListConversionEventsRequest.newBuilder()
-   *           .setParent(PropertyName.of("[PROPERTY]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient.listConversionEventsPagedCallable().futureCall(request);
-   *   // Do something.
-   *   for (ConversionEvent element : future.get().iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable - listConversionEventsPagedCallable() { - return stub.listConversionEventsPagedCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Returns a list of conversion events in the specified parent property. - * - *

Returns an empty list if no conversion events are found. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   ListConversionEventsRequest request =
-   *       ListConversionEventsRequest.newBuilder()
-   *           .setParent(PropertyName.of("[PROPERTY]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   while (true) {
-   *     ListConversionEventsResponse response =
-   *         analyticsAdminServiceClient.listConversionEventsCallable().call(request);
-   *     for (ConversionEvent element : response.getConversionEventsList()) {
-   *       // doThingsWith(element);
-   *     }
-   *     String nextPageToken = response.getNextPageToken();
-   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
-   *       request = request.toBuilder().setPageToken(nextPageToken).build();
-   *     } else {
-   *       break;
-   *     }
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable - listConversionEventsCallable() { - return stub.listConversionEventsCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a CustomDimension. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   PropertyName parent = PropertyName.of("[PROPERTY]");
-   *   CustomDimension customDimension = CustomDimension.newBuilder().build();
-   *   CustomDimension response =
-   *       analyticsAdminServiceClient.createCustomDimension(parent, customDimension);
-   * }
-   * }
- * - * @param parent Required. Example format: properties/1234 - * @param customDimension Required. The CustomDimension to create. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final CustomDimension createCustomDimension( - PropertyName parent, CustomDimension customDimension) { - CreateCustomDimensionRequest request = - CreateCustomDimensionRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setCustomDimension(customDimension) - .build(); - return createCustomDimension(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a CustomDimension. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   String parent = PropertyName.of("[PROPERTY]").toString();
-   *   CustomDimension customDimension = CustomDimension.newBuilder().build();
-   *   CustomDimension response =
-   *       analyticsAdminServiceClient.createCustomDimension(parent, customDimension);
-   * }
-   * }
- * - * @param parent Required. Example format: properties/1234 - * @param customDimension Required. The CustomDimension to create. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final CustomDimension createCustomDimension( - String parent, CustomDimension customDimension) { - CreateCustomDimensionRequest request = - CreateCustomDimensionRequest.newBuilder() - .setParent(parent) - .setCustomDimension(customDimension) - .build(); - return createCustomDimension(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a CustomDimension. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   CreateCustomDimensionRequest request =
-   *       CreateCustomDimensionRequest.newBuilder()
-   *           .setParent(PropertyName.of("[PROPERTY]").toString())
-   *           .setCustomDimension(CustomDimension.newBuilder().build())
-   *           .build();
-   *   CustomDimension response = analyticsAdminServiceClient.createCustomDimension(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final CustomDimension createCustomDimension(CreateCustomDimensionRequest request) { - return createCustomDimensionCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a CustomDimension. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   CreateCustomDimensionRequest request =
-   *       CreateCustomDimensionRequest.newBuilder()
-   *           .setParent(PropertyName.of("[PROPERTY]").toString())
-   *           .setCustomDimension(CustomDimension.newBuilder().build())
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient.createCustomDimensionCallable().futureCall(request);
-   *   // Do something.
-   *   CustomDimension response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable - createCustomDimensionCallable() { - return stub.createCustomDimensionCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a CustomDimension on a property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   CustomDimension customDimension = CustomDimension.newBuilder().build();
-   *   FieldMask updateMask = FieldMask.newBuilder().build();
-   *   CustomDimension response =
-   *       analyticsAdminServiceClient.updateCustomDimension(customDimension, updateMask);
-   * }
-   * }
- * - * @param customDimension The CustomDimension to update - * @param updateMask Required. The list of fields to be updated. Omitted fields will not be - * updated. To replace the entire entity, use one path with the string "*" to match all - * fields. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final CustomDimension updateCustomDimension( - CustomDimension customDimension, FieldMask updateMask) { - UpdateCustomDimensionRequest request = - UpdateCustomDimensionRequest.newBuilder() - .setCustomDimension(customDimension) - .setUpdateMask(updateMask) - .build(); - return updateCustomDimension(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a CustomDimension on a property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   UpdateCustomDimensionRequest request =
-   *       UpdateCustomDimensionRequest.newBuilder()
-   *           .setCustomDimension(CustomDimension.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   CustomDimension response = analyticsAdminServiceClient.updateCustomDimension(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final CustomDimension updateCustomDimension(UpdateCustomDimensionRequest request) { - return updateCustomDimensionCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a CustomDimension on a property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   UpdateCustomDimensionRequest request =
-   *       UpdateCustomDimensionRequest.newBuilder()
-   *           .setCustomDimension(CustomDimension.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient.updateCustomDimensionCallable().futureCall(request);
-   *   // Do something.
-   *   CustomDimension response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable - updateCustomDimensionCallable() { - return stub.updateCustomDimensionCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists CustomDimensions on a property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   PropertyName parent = PropertyName.of("[PROPERTY]");
-   *   for (CustomDimension element :
-   *       analyticsAdminServiceClient.listCustomDimensions(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. Example format: properties/1234 - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListCustomDimensionsPagedResponse listCustomDimensions(PropertyName parent) { - ListCustomDimensionsRequest request = - ListCustomDimensionsRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .build(); - return listCustomDimensions(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists CustomDimensions on a property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   String parent = PropertyName.of("[PROPERTY]").toString();
-   *   for (CustomDimension element :
-   *       analyticsAdminServiceClient.listCustomDimensions(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. Example format: properties/1234 - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListCustomDimensionsPagedResponse listCustomDimensions(String parent) { - ListCustomDimensionsRequest request = - ListCustomDimensionsRequest.newBuilder().setParent(parent).build(); - return listCustomDimensions(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists CustomDimensions on a property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   ListCustomDimensionsRequest request =
-   *       ListCustomDimensionsRequest.newBuilder()
-   *           .setParent(PropertyName.of("[PROPERTY]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   for (CustomDimension element :
-   *       analyticsAdminServiceClient.listCustomDimensions(request).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListCustomDimensionsPagedResponse listCustomDimensions( - ListCustomDimensionsRequest request) { - return listCustomDimensionsPagedCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists CustomDimensions on a property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   ListCustomDimensionsRequest request =
-   *       ListCustomDimensionsRequest.newBuilder()
-   *           .setParent(PropertyName.of("[PROPERTY]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient.listCustomDimensionsPagedCallable().futureCall(request);
-   *   // Do something.
-   *   for (CustomDimension element : future.get().iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable - listCustomDimensionsPagedCallable() { - return stub.listCustomDimensionsPagedCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists CustomDimensions on a property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   ListCustomDimensionsRequest request =
-   *       ListCustomDimensionsRequest.newBuilder()
-   *           .setParent(PropertyName.of("[PROPERTY]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   while (true) {
-   *     ListCustomDimensionsResponse response =
-   *         analyticsAdminServiceClient.listCustomDimensionsCallable().call(request);
-   *     for (CustomDimension element : response.getCustomDimensionsList()) {
-   *       // doThingsWith(element);
-   *     }
-   *     String nextPageToken = response.getNextPageToken();
-   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
-   *       request = request.toBuilder().setPageToken(nextPageToken).build();
-   *     } else {
-   *       break;
-   *     }
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable - listCustomDimensionsCallable() { - return stub.listCustomDimensionsCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Archives a CustomDimension on a property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   CustomDimensionName name = CustomDimensionName.of("[PROPERTY]", "[CUSTOM_DIMENSION]");
-   *   analyticsAdminServiceClient.archiveCustomDimension(name);
-   * }
-   * }
- * - * @param name Required. The name of the CustomDimension to archive. Example format: - * properties/1234/customDimensions/5678 - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void archiveCustomDimension(CustomDimensionName name) { - ArchiveCustomDimensionRequest request = - ArchiveCustomDimensionRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .build(); - archiveCustomDimension(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Archives a CustomDimension on a property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   String name = CustomDimensionName.of("[PROPERTY]", "[CUSTOM_DIMENSION]").toString();
-   *   analyticsAdminServiceClient.archiveCustomDimension(name);
-   * }
-   * }
- * - * @param name Required. The name of the CustomDimension to archive. Example format: - * properties/1234/customDimensions/5678 - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void archiveCustomDimension(String name) { - ArchiveCustomDimensionRequest request = - ArchiveCustomDimensionRequest.newBuilder().setName(name).build(); - archiveCustomDimension(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Archives a CustomDimension on a property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   ArchiveCustomDimensionRequest request =
-   *       ArchiveCustomDimensionRequest.newBuilder()
-   *           .setName(CustomDimensionName.of("[PROPERTY]", "[CUSTOM_DIMENSION]").toString())
-   *           .build();
-   *   analyticsAdminServiceClient.archiveCustomDimension(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void archiveCustomDimension(ArchiveCustomDimensionRequest request) { - archiveCustomDimensionCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Archives a CustomDimension on a property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   ArchiveCustomDimensionRequest request =
-   *       ArchiveCustomDimensionRequest.newBuilder()
-   *           .setName(CustomDimensionName.of("[PROPERTY]", "[CUSTOM_DIMENSION]").toString())
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient.archiveCustomDimensionCallable().futureCall(request);
-   *   // Do something.
-   *   future.get();
-   * }
-   * }
- */ - public final UnaryCallable - archiveCustomDimensionCallable() { - return stub.archiveCustomDimensionCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lookup for a single CustomDimension. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   CustomDimensionName name = CustomDimensionName.of("[PROPERTY]", "[CUSTOM_DIMENSION]");
-   *   CustomDimension response = analyticsAdminServiceClient.getCustomDimension(name);
-   * }
-   * }
- * - * @param name Required. The name of the CustomDimension to get. Example format: - * properties/1234/customDimensions/5678 - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final CustomDimension getCustomDimension(CustomDimensionName name) { - GetCustomDimensionRequest request = - GetCustomDimensionRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .build(); - return getCustomDimension(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lookup for a single CustomDimension. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   String name = CustomDimensionName.of("[PROPERTY]", "[CUSTOM_DIMENSION]").toString();
-   *   CustomDimension response = analyticsAdminServiceClient.getCustomDimension(name);
-   * }
-   * }
- * - * @param name Required. The name of the CustomDimension to get. Example format: - * properties/1234/customDimensions/5678 - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final CustomDimension getCustomDimension(String name) { - GetCustomDimensionRequest request = - GetCustomDimensionRequest.newBuilder().setName(name).build(); - return getCustomDimension(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lookup for a single CustomDimension. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   GetCustomDimensionRequest request =
-   *       GetCustomDimensionRequest.newBuilder()
-   *           .setName(CustomDimensionName.of("[PROPERTY]", "[CUSTOM_DIMENSION]").toString())
-   *           .build();
-   *   CustomDimension response = analyticsAdminServiceClient.getCustomDimension(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final CustomDimension getCustomDimension(GetCustomDimensionRequest request) { - return getCustomDimensionCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lookup for a single CustomDimension. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   GetCustomDimensionRequest request =
-   *       GetCustomDimensionRequest.newBuilder()
-   *           .setName(CustomDimensionName.of("[PROPERTY]", "[CUSTOM_DIMENSION]").toString())
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient.getCustomDimensionCallable().futureCall(request);
-   *   // Do something.
-   *   CustomDimension response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable - getCustomDimensionCallable() { - return stub.getCustomDimensionCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a CustomMetric. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   PropertyName parent = PropertyName.of("[PROPERTY]");
-   *   CustomMetric customMetric = CustomMetric.newBuilder().build();
-   *   CustomMetric response = analyticsAdminServiceClient.createCustomMetric(parent, customMetric);
-   * }
-   * }
- * - * @param parent Required. Example format: properties/1234 - * @param customMetric Required. The CustomMetric to create. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final CustomMetric createCustomMetric(PropertyName parent, CustomMetric customMetric) { - CreateCustomMetricRequest request = - CreateCustomMetricRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setCustomMetric(customMetric) - .build(); - return createCustomMetric(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a CustomMetric. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   String parent = PropertyName.of("[PROPERTY]").toString();
-   *   CustomMetric customMetric = CustomMetric.newBuilder().build();
-   *   CustomMetric response = analyticsAdminServiceClient.createCustomMetric(parent, customMetric);
-   * }
-   * }
- * - * @param parent Required. Example format: properties/1234 - * @param customMetric Required. The CustomMetric to create. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final CustomMetric createCustomMetric(String parent, CustomMetric customMetric) { - CreateCustomMetricRequest request = - CreateCustomMetricRequest.newBuilder() - .setParent(parent) - .setCustomMetric(customMetric) - .build(); - return createCustomMetric(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a CustomMetric. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   CreateCustomMetricRequest request =
-   *       CreateCustomMetricRequest.newBuilder()
-   *           .setParent(PropertyName.of("[PROPERTY]").toString())
-   *           .setCustomMetric(CustomMetric.newBuilder().build())
-   *           .build();
-   *   CustomMetric response = analyticsAdminServiceClient.createCustomMetric(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final CustomMetric createCustomMetric(CreateCustomMetricRequest request) { - return createCustomMetricCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a CustomMetric. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   CreateCustomMetricRequest request =
-   *       CreateCustomMetricRequest.newBuilder()
-   *           .setParent(PropertyName.of("[PROPERTY]").toString())
-   *           .setCustomMetric(CustomMetric.newBuilder().build())
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient.createCustomMetricCallable().futureCall(request);
-   *   // Do something.
-   *   CustomMetric response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable createCustomMetricCallable() { - return stub.createCustomMetricCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a CustomMetric on a property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   CustomMetric customMetric = CustomMetric.newBuilder().build();
-   *   FieldMask updateMask = FieldMask.newBuilder().build();
-   *   CustomMetric response =
-   *       analyticsAdminServiceClient.updateCustomMetric(customMetric, updateMask);
-   * }
-   * }
- * - * @param customMetric The CustomMetric to update - * @param updateMask Required. The list of fields to be updated. Omitted fields will not be - * updated. To replace the entire entity, use one path with the string "*" to match all - * fields. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final CustomMetric updateCustomMetric(CustomMetric customMetric, FieldMask updateMask) { - UpdateCustomMetricRequest request = - UpdateCustomMetricRequest.newBuilder() - .setCustomMetric(customMetric) - .setUpdateMask(updateMask) - .build(); - return updateCustomMetric(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a CustomMetric on a property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   UpdateCustomMetricRequest request =
-   *       UpdateCustomMetricRequest.newBuilder()
-   *           .setCustomMetric(CustomMetric.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   CustomMetric response = analyticsAdminServiceClient.updateCustomMetric(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final CustomMetric updateCustomMetric(UpdateCustomMetricRequest request) { - return updateCustomMetricCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a CustomMetric on a property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   UpdateCustomMetricRequest request =
-   *       UpdateCustomMetricRequest.newBuilder()
-   *           .setCustomMetric(CustomMetric.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient.updateCustomMetricCallable().futureCall(request);
-   *   // Do something.
-   *   CustomMetric response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable updateCustomMetricCallable() { - return stub.updateCustomMetricCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists CustomMetrics on a property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   PropertyName parent = PropertyName.of("[PROPERTY]");
-   *   for (CustomMetric element :
-   *       analyticsAdminServiceClient.listCustomMetrics(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. Example format: properties/1234 - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListCustomMetricsPagedResponse listCustomMetrics(PropertyName parent) { - ListCustomMetricsRequest request = - ListCustomMetricsRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .build(); - return listCustomMetrics(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists CustomMetrics on a property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   String parent = PropertyName.of("[PROPERTY]").toString();
-   *   for (CustomMetric element :
-   *       analyticsAdminServiceClient.listCustomMetrics(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. Example format: properties/1234 - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListCustomMetricsPagedResponse listCustomMetrics(String parent) { - ListCustomMetricsRequest request = - ListCustomMetricsRequest.newBuilder().setParent(parent).build(); - return listCustomMetrics(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists CustomMetrics on a property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   ListCustomMetricsRequest request =
-   *       ListCustomMetricsRequest.newBuilder()
-   *           .setParent(PropertyName.of("[PROPERTY]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   for (CustomMetric element :
-   *       analyticsAdminServiceClient.listCustomMetrics(request).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListCustomMetricsPagedResponse listCustomMetrics(ListCustomMetricsRequest request) { - return listCustomMetricsPagedCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists CustomMetrics on a property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   ListCustomMetricsRequest request =
-   *       ListCustomMetricsRequest.newBuilder()
-   *           .setParent(PropertyName.of("[PROPERTY]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient.listCustomMetricsPagedCallable().futureCall(request);
-   *   // Do something.
-   *   for (CustomMetric element : future.get().iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable - listCustomMetricsPagedCallable() { - return stub.listCustomMetricsPagedCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists CustomMetrics on a property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   ListCustomMetricsRequest request =
-   *       ListCustomMetricsRequest.newBuilder()
-   *           .setParent(PropertyName.of("[PROPERTY]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   while (true) {
-   *     ListCustomMetricsResponse response =
-   *         analyticsAdminServiceClient.listCustomMetricsCallable().call(request);
-   *     for (CustomMetric element : response.getCustomMetricsList()) {
-   *       // doThingsWith(element);
-   *     }
-   *     String nextPageToken = response.getNextPageToken();
-   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
-   *       request = request.toBuilder().setPageToken(nextPageToken).build();
-   *     } else {
-   *       break;
-   *     }
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable - listCustomMetricsCallable() { - return stub.listCustomMetricsCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Archives a CustomMetric on a property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   CustomMetricName name = CustomMetricName.of("[PROPERTY]", "[CUSTOM_METRIC]");
-   *   analyticsAdminServiceClient.archiveCustomMetric(name);
-   * }
-   * }
- * - * @param name Required. The name of the CustomMetric to archive. Example format: - * properties/1234/customMetrics/5678 - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void archiveCustomMetric(CustomMetricName name) { - ArchiveCustomMetricRequest request = - ArchiveCustomMetricRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .build(); - archiveCustomMetric(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Archives a CustomMetric on a property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   String name = CustomMetricName.of("[PROPERTY]", "[CUSTOM_METRIC]").toString();
-   *   analyticsAdminServiceClient.archiveCustomMetric(name);
-   * }
-   * }
- * - * @param name Required. The name of the CustomMetric to archive. Example format: - * properties/1234/customMetrics/5678 - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void archiveCustomMetric(String name) { - ArchiveCustomMetricRequest request = - ArchiveCustomMetricRequest.newBuilder().setName(name).build(); - archiveCustomMetric(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Archives a CustomMetric on a property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   ArchiveCustomMetricRequest request =
-   *       ArchiveCustomMetricRequest.newBuilder()
-   *           .setName(CustomMetricName.of("[PROPERTY]", "[CUSTOM_METRIC]").toString())
-   *           .build();
-   *   analyticsAdminServiceClient.archiveCustomMetric(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void archiveCustomMetric(ArchiveCustomMetricRequest request) { - archiveCustomMetricCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Archives a CustomMetric on a property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   ArchiveCustomMetricRequest request =
-   *       ArchiveCustomMetricRequest.newBuilder()
-   *           .setName(CustomMetricName.of("[PROPERTY]", "[CUSTOM_METRIC]").toString())
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient.archiveCustomMetricCallable().futureCall(request);
-   *   // Do something.
-   *   future.get();
-   * }
-   * }
- */ - public final UnaryCallable archiveCustomMetricCallable() { - return stub.archiveCustomMetricCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lookup for a single CustomMetric. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   CustomMetricName name = CustomMetricName.of("[PROPERTY]", "[CUSTOM_METRIC]");
-   *   CustomMetric response = analyticsAdminServiceClient.getCustomMetric(name);
-   * }
-   * }
- * - * @param name Required. The name of the CustomMetric to get. Example format: - * properties/1234/customMetrics/5678 - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final CustomMetric getCustomMetric(CustomMetricName name) { - GetCustomMetricRequest request = - GetCustomMetricRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - return getCustomMetric(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lookup for a single CustomMetric. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   String name = CustomMetricName.of("[PROPERTY]", "[CUSTOM_METRIC]").toString();
-   *   CustomMetric response = analyticsAdminServiceClient.getCustomMetric(name);
-   * }
-   * }
- * - * @param name Required. The name of the CustomMetric to get. Example format: - * properties/1234/customMetrics/5678 - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final CustomMetric getCustomMetric(String name) { - GetCustomMetricRequest request = GetCustomMetricRequest.newBuilder().setName(name).build(); - return getCustomMetric(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lookup for a single CustomMetric. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   GetCustomMetricRequest request =
-   *       GetCustomMetricRequest.newBuilder()
-   *           .setName(CustomMetricName.of("[PROPERTY]", "[CUSTOM_METRIC]").toString())
-   *           .build();
-   *   CustomMetric response = analyticsAdminServiceClient.getCustomMetric(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final CustomMetric getCustomMetric(GetCustomMetricRequest request) { - return getCustomMetricCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lookup for a single CustomMetric. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   GetCustomMetricRequest request =
-   *       GetCustomMetricRequest.newBuilder()
-   *           .setName(CustomMetricName.of("[PROPERTY]", "[CUSTOM_METRIC]").toString())
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient.getCustomMetricCallable().futureCall(request);
-   *   // Do something.
-   *   CustomMetric response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable getCustomMetricCallable() { - return stub.getCustomMetricCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Returns the singleton data retention settings for this property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   DataRetentionSettingsName name = DataRetentionSettingsName.of("[PROPERTY]");
-   *   DataRetentionSettings response = analyticsAdminServiceClient.getDataRetentionSettings(name);
-   * }
-   * }
- * - * @param name Required. The name of the settings to lookup. Format: - * properties/{property}/dataRetentionSettings Example: - * "properties/1000/dataRetentionSettings" - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final DataRetentionSettings getDataRetentionSettings(DataRetentionSettingsName name) { - GetDataRetentionSettingsRequest request = - GetDataRetentionSettingsRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .build(); - return getDataRetentionSettings(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Returns the singleton data retention settings for this property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   String name = DataRetentionSettingsName.of("[PROPERTY]").toString();
-   *   DataRetentionSettings response = analyticsAdminServiceClient.getDataRetentionSettings(name);
-   * }
-   * }
- * - * @param name Required. The name of the settings to lookup. Format: - * properties/{property}/dataRetentionSettings Example: - * "properties/1000/dataRetentionSettings" - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final DataRetentionSettings getDataRetentionSettings(String name) { - GetDataRetentionSettingsRequest request = - GetDataRetentionSettingsRequest.newBuilder().setName(name).build(); - return getDataRetentionSettings(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Returns the singleton data retention settings for this property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   GetDataRetentionSettingsRequest request =
-   *       GetDataRetentionSettingsRequest.newBuilder()
-   *           .setName(DataRetentionSettingsName.of("[PROPERTY]").toString())
-   *           .build();
-   *   DataRetentionSettings response =
-   *       analyticsAdminServiceClient.getDataRetentionSettings(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final DataRetentionSettings getDataRetentionSettings( - GetDataRetentionSettingsRequest request) { - return getDataRetentionSettingsCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Returns the singleton data retention settings for this property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   GetDataRetentionSettingsRequest request =
-   *       GetDataRetentionSettingsRequest.newBuilder()
-   *           .setName(DataRetentionSettingsName.of("[PROPERTY]").toString())
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient.getDataRetentionSettingsCallable().futureCall(request);
-   *   // Do something.
-   *   DataRetentionSettings response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable - getDataRetentionSettingsCallable() { - return stub.getDataRetentionSettingsCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates the singleton data retention settings for this property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   DataRetentionSettings dataRetentionSettings = DataRetentionSettings.newBuilder().build();
-   *   FieldMask updateMask = FieldMask.newBuilder().build();
-   *   DataRetentionSettings response =
-   *       analyticsAdminServiceClient.updateDataRetentionSettings(
-   *           dataRetentionSettings, updateMask);
-   * }
-   * }
- * - * @param dataRetentionSettings Required. The settings to update. The `name` field is used to - * identify the settings to be updated. - * @param updateMask Required. The list of fields to be updated. Field names must be in snake case - * (e.g., "field_to_update"). Omitted fields will not be updated. To replace the entire - * entity, use one path with the string "*" to match all fields. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final DataRetentionSettings updateDataRetentionSettings( - DataRetentionSettings dataRetentionSettings, FieldMask updateMask) { - UpdateDataRetentionSettingsRequest request = - UpdateDataRetentionSettingsRequest.newBuilder() - .setDataRetentionSettings(dataRetentionSettings) - .setUpdateMask(updateMask) - .build(); - return updateDataRetentionSettings(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates the singleton data retention settings for this property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   UpdateDataRetentionSettingsRequest request =
-   *       UpdateDataRetentionSettingsRequest.newBuilder()
-   *           .setDataRetentionSettings(DataRetentionSettings.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   DataRetentionSettings response =
-   *       analyticsAdminServiceClient.updateDataRetentionSettings(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final DataRetentionSettings updateDataRetentionSettings( - UpdateDataRetentionSettingsRequest request) { - return updateDataRetentionSettingsCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates the singleton data retention settings for this property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   UpdateDataRetentionSettingsRequest request =
-   *       UpdateDataRetentionSettingsRequest.newBuilder()
-   *           .setDataRetentionSettings(DataRetentionSettings.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient.updateDataRetentionSettingsCallable().futureCall(request);
-   *   // Do something.
-   *   DataRetentionSettings response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable - updateDataRetentionSettingsCallable() { - return stub.updateDataRetentionSettingsCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a DataStream. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   PropertyName parent = PropertyName.of("[PROPERTY]");
-   *   DataStream dataStream = DataStream.newBuilder().build();
-   *   DataStream response = analyticsAdminServiceClient.createDataStream(parent, dataStream);
-   * }
-   * }
- * - * @param parent Required. Example format: properties/1234 - * @param dataStream Required. The DataStream to create. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final DataStream createDataStream(PropertyName parent, DataStream dataStream) { - CreateDataStreamRequest request = - CreateDataStreamRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setDataStream(dataStream) - .build(); - return createDataStream(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a DataStream. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   String parent = PropertyName.of("[PROPERTY]").toString();
-   *   DataStream dataStream = DataStream.newBuilder().build();
-   *   DataStream response = analyticsAdminServiceClient.createDataStream(parent, dataStream);
-   * }
-   * }
- * - * @param parent Required. Example format: properties/1234 - * @param dataStream Required. The DataStream to create. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final DataStream createDataStream(String parent, DataStream dataStream) { - CreateDataStreamRequest request = - CreateDataStreamRequest.newBuilder().setParent(parent).setDataStream(dataStream).build(); - return createDataStream(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a DataStream. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   CreateDataStreamRequest request =
-   *       CreateDataStreamRequest.newBuilder()
-   *           .setParent(PropertyName.of("[PROPERTY]").toString())
-   *           .setDataStream(DataStream.newBuilder().build())
-   *           .build();
-   *   DataStream response = analyticsAdminServiceClient.createDataStream(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final DataStream createDataStream(CreateDataStreamRequest request) { - return createDataStreamCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a DataStream. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   CreateDataStreamRequest request =
-   *       CreateDataStreamRequest.newBuilder()
-   *           .setParent(PropertyName.of("[PROPERTY]").toString())
-   *           .setDataStream(DataStream.newBuilder().build())
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient.createDataStreamCallable().futureCall(request);
-   *   // Do something.
-   *   DataStream response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable createDataStreamCallable() { - return stub.createDataStreamCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a DataStream on a property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   DataStreamName name = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]");
-   *   analyticsAdminServiceClient.deleteDataStream(name);
-   * }
-   * }
- * - * @param name Required. The name of the DataStream to delete. Example format: - * properties/1234/dataStreams/5678 - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void deleteDataStream(DataStreamName name) { - DeleteDataStreamRequest request = - DeleteDataStreamRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - deleteDataStream(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a DataStream on a property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   String name = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString();
-   *   analyticsAdminServiceClient.deleteDataStream(name);
-   * }
-   * }
- * - * @param name Required. The name of the DataStream to delete. Example format: - * properties/1234/dataStreams/5678 - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void deleteDataStream(String name) { - DeleteDataStreamRequest request = DeleteDataStreamRequest.newBuilder().setName(name).build(); - deleteDataStream(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a DataStream on a property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   DeleteDataStreamRequest request =
-   *       DeleteDataStreamRequest.newBuilder()
-   *           .setName(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString())
-   *           .build();
-   *   analyticsAdminServiceClient.deleteDataStream(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void deleteDataStream(DeleteDataStreamRequest request) { - deleteDataStreamCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a DataStream on a property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   DeleteDataStreamRequest request =
-   *       DeleteDataStreamRequest.newBuilder()
-   *           .setName(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString())
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient.deleteDataStreamCallable().futureCall(request);
-   *   // Do something.
-   *   future.get();
-   * }
-   * }
- */ - public final UnaryCallable deleteDataStreamCallable() { - return stub.deleteDataStreamCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a DataStream on a property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   DataStream dataStream = DataStream.newBuilder().build();
-   *   FieldMask updateMask = FieldMask.newBuilder().build();
-   *   DataStream response = analyticsAdminServiceClient.updateDataStream(dataStream, updateMask);
-   * }
-   * }
- * - * @param dataStream The DataStream to update - * @param updateMask Required. The list of fields to be updated. Omitted fields will not be - * updated. To replace the entire entity, use one path with the string "*" to match all - * fields. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final DataStream updateDataStream(DataStream dataStream, FieldMask updateMask) { - UpdateDataStreamRequest request = - UpdateDataStreamRequest.newBuilder() - .setDataStream(dataStream) - .setUpdateMask(updateMask) - .build(); - return updateDataStream(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a DataStream on a property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   UpdateDataStreamRequest request =
-   *       UpdateDataStreamRequest.newBuilder()
-   *           .setDataStream(DataStream.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   DataStream response = analyticsAdminServiceClient.updateDataStream(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final DataStream updateDataStream(UpdateDataStreamRequest request) { - return updateDataStreamCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a DataStream on a property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   UpdateDataStreamRequest request =
-   *       UpdateDataStreamRequest.newBuilder()
-   *           .setDataStream(DataStream.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient.updateDataStreamCallable().futureCall(request);
-   *   // Do something.
-   *   DataStream response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable updateDataStreamCallable() { - return stub.updateDataStreamCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists DataStreams on a property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   PropertyName parent = PropertyName.of("[PROPERTY]");
-   *   for (DataStream element : analyticsAdminServiceClient.listDataStreams(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. Example format: properties/1234 - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListDataStreamsPagedResponse listDataStreams(PropertyName parent) { - ListDataStreamsRequest request = - ListDataStreamsRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .build(); - return listDataStreams(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists DataStreams on a property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   String parent = PropertyName.of("[PROPERTY]").toString();
-   *   for (DataStream element : analyticsAdminServiceClient.listDataStreams(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. Example format: properties/1234 - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListDataStreamsPagedResponse listDataStreams(String parent) { - ListDataStreamsRequest request = ListDataStreamsRequest.newBuilder().setParent(parent).build(); - return listDataStreams(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists DataStreams on a property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   ListDataStreamsRequest request =
-   *       ListDataStreamsRequest.newBuilder()
-   *           .setParent(PropertyName.of("[PROPERTY]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   for (DataStream element : analyticsAdminServiceClient.listDataStreams(request).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListDataStreamsPagedResponse listDataStreams(ListDataStreamsRequest request) { - return listDataStreamsPagedCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists DataStreams on a property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   ListDataStreamsRequest request =
-   *       ListDataStreamsRequest.newBuilder()
-   *           .setParent(PropertyName.of("[PROPERTY]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient.listDataStreamsPagedCallable().futureCall(request);
-   *   // Do something.
-   *   for (DataStream element : future.get().iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable - listDataStreamsPagedCallable() { - return stub.listDataStreamsPagedCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists DataStreams on a property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   ListDataStreamsRequest request =
-   *       ListDataStreamsRequest.newBuilder()
-   *           .setParent(PropertyName.of("[PROPERTY]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   while (true) {
-   *     ListDataStreamsResponse response =
-   *         analyticsAdminServiceClient.listDataStreamsCallable().call(request);
-   *     for (DataStream element : response.getDataStreamsList()) {
-   *       // doThingsWith(element);
-   *     }
-   *     String nextPageToken = response.getNextPageToken();
-   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
-   *       request = request.toBuilder().setPageToken(nextPageToken).build();
-   *     } else {
-   *       break;
-   *     }
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable - listDataStreamsCallable() { - return stub.listDataStreamsCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lookup for a single DataStream. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   DataStreamName name = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]");
-   *   DataStream response = analyticsAdminServiceClient.getDataStream(name);
-   * }
-   * }
- * - * @param name Required. The name of the DataStream to get. Example format: - * properties/1234/dataStreams/5678 - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final DataStream getDataStream(DataStreamName name) { - GetDataStreamRequest request = - GetDataStreamRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - return getDataStream(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lookup for a single DataStream. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   String name = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString();
-   *   DataStream response = analyticsAdminServiceClient.getDataStream(name);
-   * }
-   * }
- * - * @param name Required. The name of the DataStream to get. Example format: - * properties/1234/dataStreams/5678 - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final DataStream getDataStream(String name) { - GetDataStreamRequest request = GetDataStreamRequest.newBuilder().setName(name).build(); - return getDataStream(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lookup for a single DataStream. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   GetDataStreamRequest request =
-   *       GetDataStreamRequest.newBuilder()
-   *           .setName(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString())
-   *           .build();
-   *   DataStream response = analyticsAdminServiceClient.getDataStream(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final DataStream getDataStream(GetDataStreamRequest request) { - return getDataStreamCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lookup for a single DataStream. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   GetDataStreamRequest request =
-   *       GetDataStreamRequest.newBuilder()
-   *           .setName(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString())
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient.getDataStreamCallable().futureCall(request);
-   *   // Do something.
-   *   DataStream response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable getDataStreamCallable() { - return stub.getDataStreamCallable(); - } - - @Override - public final void close() { - stub.close(); - } - - @Override - public void shutdown() { - stub.shutdown(); - } - - @Override - public boolean isShutdown() { - return stub.isShutdown(); - } - - @Override - public boolean isTerminated() { - return stub.isTerminated(); - } - - @Override - public void shutdownNow() { - stub.shutdownNow(); - } - - @Override - public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { - return stub.awaitTermination(duration, unit); - } - - public static class ListAccountsPagedResponse - extends AbstractPagedListResponse< - ListAccountsRequest, - ListAccountsResponse, - Account, - ListAccountsPage, - ListAccountsFixedSizeCollection> { - - public static ApiFuture createAsync( - PageContext context, - ApiFuture futureResponse) { - ApiFuture futurePage = - ListAccountsPage.createEmptyPage().createPageAsync(context, futureResponse); - return ApiFutures.transform( - futurePage, - input -> new ListAccountsPagedResponse(input), - MoreExecutors.directExecutor()); - } - - private ListAccountsPagedResponse(ListAccountsPage page) { - super(page, ListAccountsFixedSizeCollection.createEmptyCollection()); - } - } - - public static class ListAccountsPage - extends AbstractPage { - - private ListAccountsPage( - PageContext context, - ListAccountsResponse response) { - super(context, response); - } - - private static ListAccountsPage createEmptyPage() { - return new ListAccountsPage(null, null); - } - - @Override - protected ListAccountsPage createPage( - PageContext context, - ListAccountsResponse response) { - return new ListAccountsPage(context, response); - } - - @Override - public ApiFuture createPageAsync( - PageContext context, - ApiFuture futureResponse) { - return super.createPageAsync(context, futureResponse); - } - } - - public static class ListAccountsFixedSizeCollection - extends AbstractFixedSizeCollection< - ListAccountsRequest, - ListAccountsResponse, - Account, - ListAccountsPage, - ListAccountsFixedSizeCollection> { - - private ListAccountsFixedSizeCollection(List pages, int collectionSize) { - super(pages, collectionSize); - } - - private static ListAccountsFixedSizeCollection createEmptyCollection() { - return new ListAccountsFixedSizeCollection(null, 0); - } - - @Override - protected ListAccountsFixedSizeCollection createCollection( - List pages, int collectionSize) { - return new ListAccountsFixedSizeCollection(pages, collectionSize); - } - } - - public static class ListAccountSummariesPagedResponse - extends AbstractPagedListResponse< - ListAccountSummariesRequest, - ListAccountSummariesResponse, - AccountSummary, - ListAccountSummariesPage, - ListAccountSummariesFixedSizeCollection> { - - public static ApiFuture createAsync( - PageContext - context, - ApiFuture futureResponse) { - ApiFuture futurePage = - ListAccountSummariesPage.createEmptyPage().createPageAsync(context, futureResponse); - return ApiFutures.transform( - futurePage, - input -> new ListAccountSummariesPagedResponse(input), - MoreExecutors.directExecutor()); - } - - private ListAccountSummariesPagedResponse(ListAccountSummariesPage page) { - super(page, ListAccountSummariesFixedSizeCollection.createEmptyCollection()); - } - } - - public static class ListAccountSummariesPage - extends AbstractPage< - ListAccountSummariesRequest, - ListAccountSummariesResponse, - AccountSummary, - ListAccountSummariesPage> { - - private ListAccountSummariesPage( - PageContext - context, - ListAccountSummariesResponse response) { - super(context, response); - } - - private static ListAccountSummariesPage createEmptyPage() { - return new ListAccountSummariesPage(null, null); - } - - @Override - protected ListAccountSummariesPage createPage( - PageContext - context, - ListAccountSummariesResponse response) { - return new ListAccountSummariesPage(context, response); - } - - @Override - public ApiFuture createPageAsync( - PageContext - context, - ApiFuture futureResponse) { - return super.createPageAsync(context, futureResponse); - } - } - - public static class ListAccountSummariesFixedSizeCollection - extends AbstractFixedSizeCollection< - ListAccountSummariesRequest, - ListAccountSummariesResponse, - AccountSummary, - ListAccountSummariesPage, - ListAccountSummariesFixedSizeCollection> { - - private ListAccountSummariesFixedSizeCollection( - List pages, int collectionSize) { - super(pages, collectionSize); - } - - private static ListAccountSummariesFixedSizeCollection createEmptyCollection() { - return new ListAccountSummariesFixedSizeCollection(null, 0); - } - - @Override - protected ListAccountSummariesFixedSizeCollection createCollection( - List pages, int collectionSize) { - return new ListAccountSummariesFixedSizeCollection(pages, collectionSize); - } - } - - public static class ListPropertiesPagedResponse - extends AbstractPagedListResponse< - ListPropertiesRequest, - ListPropertiesResponse, - Property, - ListPropertiesPage, - ListPropertiesFixedSizeCollection> { - - public static ApiFuture createAsync( - PageContext context, - ApiFuture futureResponse) { - ApiFuture futurePage = - ListPropertiesPage.createEmptyPage().createPageAsync(context, futureResponse); - return ApiFutures.transform( - futurePage, - input -> new ListPropertiesPagedResponse(input), - MoreExecutors.directExecutor()); - } - - private ListPropertiesPagedResponse(ListPropertiesPage page) { - super(page, ListPropertiesFixedSizeCollection.createEmptyCollection()); - } - } - - public static class ListPropertiesPage - extends AbstractPage< - ListPropertiesRequest, ListPropertiesResponse, Property, ListPropertiesPage> { - - private ListPropertiesPage( - PageContext context, - ListPropertiesResponse response) { - super(context, response); - } - - private static ListPropertiesPage createEmptyPage() { - return new ListPropertiesPage(null, null); - } - - @Override - protected ListPropertiesPage createPage( - PageContext context, - ListPropertiesResponse response) { - return new ListPropertiesPage(context, response); - } - - @Override - public ApiFuture createPageAsync( - PageContext context, - ApiFuture futureResponse) { - return super.createPageAsync(context, futureResponse); - } - } - - public static class ListPropertiesFixedSizeCollection - extends AbstractFixedSizeCollection< - ListPropertiesRequest, - ListPropertiesResponse, - Property, - ListPropertiesPage, - ListPropertiesFixedSizeCollection> { - - private ListPropertiesFixedSizeCollection(List pages, int collectionSize) { - super(pages, collectionSize); - } - - private static ListPropertiesFixedSizeCollection createEmptyCollection() { - return new ListPropertiesFixedSizeCollection(null, 0); - } - - @Override - protected ListPropertiesFixedSizeCollection createCollection( - List pages, int collectionSize) { - return new ListPropertiesFixedSizeCollection(pages, collectionSize); - } - } - - public static class ListFirebaseLinksPagedResponse - extends AbstractPagedListResponse< - ListFirebaseLinksRequest, - ListFirebaseLinksResponse, - FirebaseLink, - ListFirebaseLinksPage, - ListFirebaseLinksFixedSizeCollection> { - - public static ApiFuture createAsync( - PageContext context, - ApiFuture futureResponse) { - ApiFuture futurePage = - ListFirebaseLinksPage.createEmptyPage().createPageAsync(context, futureResponse); - return ApiFutures.transform( - futurePage, - input -> new ListFirebaseLinksPagedResponse(input), - MoreExecutors.directExecutor()); - } - - private ListFirebaseLinksPagedResponse(ListFirebaseLinksPage page) { - super(page, ListFirebaseLinksFixedSizeCollection.createEmptyCollection()); - } - } - - public static class ListFirebaseLinksPage - extends AbstractPage< - ListFirebaseLinksRequest, - ListFirebaseLinksResponse, - FirebaseLink, - ListFirebaseLinksPage> { - - private ListFirebaseLinksPage( - PageContext context, - ListFirebaseLinksResponse response) { - super(context, response); - } - - private static ListFirebaseLinksPage createEmptyPage() { - return new ListFirebaseLinksPage(null, null); - } - - @Override - protected ListFirebaseLinksPage createPage( - PageContext context, - ListFirebaseLinksResponse response) { - return new ListFirebaseLinksPage(context, response); - } - - @Override - public ApiFuture createPageAsync( - PageContext context, - ApiFuture futureResponse) { - return super.createPageAsync(context, futureResponse); - } - } - - public static class ListFirebaseLinksFixedSizeCollection - extends AbstractFixedSizeCollection< - ListFirebaseLinksRequest, - ListFirebaseLinksResponse, - FirebaseLink, - ListFirebaseLinksPage, - ListFirebaseLinksFixedSizeCollection> { - - private ListFirebaseLinksFixedSizeCollection( - List pages, int collectionSize) { - super(pages, collectionSize); - } - - private static ListFirebaseLinksFixedSizeCollection createEmptyCollection() { - return new ListFirebaseLinksFixedSizeCollection(null, 0); - } - - @Override - protected ListFirebaseLinksFixedSizeCollection createCollection( - List pages, int collectionSize) { - return new ListFirebaseLinksFixedSizeCollection(pages, collectionSize); - } - } - - public static class ListGoogleAdsLinksPagedResponse - extends AbstractPagedListResponse< - ListGoogleAdsLinksRequest, - ListGoogleAdsLinksResponse, - GoogleAdsLink, - ListGoogleAdsLinksPage, - ListGoogleAdsLinksFixedSizeCollection> { - - public static ApiFuture createAsync( - PageContext context, - ApiFuture futureResponse) { - ApiFuture futurePage = - ListGoogleAdsLinksPage.createEmptyPage().createPageAsync(context, futureResponse); - return ApiFutures.transform( - futurePage, - input -> new ListGoogleAdsLinksPagedResponse(input), - MoreExecutors.directExecutor()); - } - - private ListGoogleAdsLinksPagedResponse(ListGoogleAdsLinksPage page) { - super(page, ListGoogleAdsLinksFixedSizeCollection.createEmptyCollection()); - } - } - - public static class ListGoogleAdsLinksPage - extends AbstractPage< - ListGoogleAdsLinksRequest, - ListGoogleAdsLinksResponse, - GoogleAdsLink, - ListGoogleAdsLinksPage> { - - private ListGoogleAdsLinksPage( - PageContext context, - ListGoogleAdsLinksResponse response) { - super(context, response); - } - - private static ListGoogleAdsLinksPage createEmptyPage() { - return new ListGoogleAdsLinksPage(null, null); - } - - @Override - protected ListGoogleAdsLinksPage createPage( - PageContext context, - ListGoogleAdsLinksResponse response) { - return new ListGoogleAdsLinksPage(context, response); - } - - @Override - public ApiFuture createPageAsync( - PageContext context, - ApiFuture futureResponse) { - return super.createPageAsync(context, futureResponse); - } - } - - public static class ListGoogleAdsLinksFixedSizeCollection - extends AbstractFixedSizeCollection< - ListGoogleAdsLinksRequest, - ListGoogleAdsLinksResponse, - GoogleAdsLink, - ListGoogleAdsLinksPage, - ListGoogleAdsLinksFixedSizeCollection> { - - private ListGoogleAdsLinksFixedSizeCollection( - List pages, int collectionSize) { - super(pages, collectionSize); - } - - private static ListGoogleAdsLinksFixedSizeCollection createEmptyCollection() { - return new ListGoogleAdsLinksFixedSizeCollection(null, 0); - } - - @Override - protected ListGoogleAdsLinksFixedSizeCollection createCollection( - List pages, int collectionSize) { - return new ListGoogleAdsLinksFixedSizeCollection(pages, collectionSize); - } - } - - public static class ListMeasurementProtocolSecretsPagedResponse - extends AbstractPagedListResponse< - ListMeasurementProtocolSecretsRequest, - ListMeasurementProtocolSecretsResponse, - MeasurementProtocolSecret, - ListMeasurementProtocolSecretsPage, - ListMeasurementProtocolSecretsFixedSizeCollection> { - - public static ApiFuture createAsync( - PageContext< - ListMeasurementProtocolSecretsRequest, - ListMeasurementProtocolSecretsResponse, - MeasurementProtocolSecret> - context, - ApiFuture futureResponse) { - ApiFuture futurePage = - ListMeasurementProtocolSecretsPage.createEmptyPage() - .createPageAsync(context, futureResponse); - return ApiFutures.transform( - futurePage, - input -> new ListMeasurementProtocolSecretsPagedResponse(input), - MoreExecutors.directExecutor()); - } - - private ListMeasurementProtocolSecretsPagedResponse(ListMeasurementProtocolSecretsPage page) { - super(page, ListMeasurementProtocolSecretsFixedSizeCollection.createEmptyCollection()); - } - } - - public static class ListMeasurementProtocolSecretsPage - extends AbstractPage< - ListMeasurementProtocolSecretsRequest, - ListMeasurementProtocolSecretsResponse, - MeasurementProtocolSecret, - ListMeasurementProtocolSecretsPage> { - - private ListMeasurementProtocolSecretsPage( - PageContext< - ListMeasurementProtocolSecretsRequest, - ListMeasurementProtocolSecretsResponse, - MeasurementProtocolSecret> - context, - ListMeasurementProtocolSecretsResponse response) { - super(context, response); - } - - private static ListMeasurementProtocolSecretsPage createEmptyPage() { - return new ListMeasurementProtocolSecretsPage(null, null); - } - - @Override - protected ListMeasurementProtocolSecretsPage createPage( - PageContext< - ListMeasurementProtocolSecretsRequest, - ListMeasurementProtocolSecretsResponse, - MeasurementProtocolSecret> - context, - ListMeasurementProtocolSecretsResponse response) { - return new ListMeasurementProtocolSecretsPage(context, response); - } - - @Override - public ApiFuture createPageAsync( - PageContext< - ListMeasurementProtocolSecretsRequest, - ListMeasurementProtocolSecretsResponse, - MeasurementProtocolSecret> - context, - ApiFuture futureResponse) { - return super.createPageAsync(context, futureResponse); - } - } - - public static class ListMeasurementProtocolSecretsFixedSizeCollection - extends AbstractFixedSizeCollection< - ListMeasurementProtocolSecretsRequest, - ListMeasurementProtocolSecretsResponse, - MeasurementProtocolSecret, - ListMeasurementProtocolSecretsPage, - ListMeasurementProtocolSecretsFixedSizeCollection> { - - private ListMeasurementProtocolSecretsFixedSizeCollection( - List pages, int collectionSize) { - super(pages, collectionSize); - } - - private static ListMeasurementProtocolSecretsFixedSizeCollection createEmptyCollection() { - return new ListMeasurementProtocolSecretsFixedSizeCollection(null, 0); - } - - @Override - protected ListMeasurementProtocolSecretsFixedSizeCollection createCollection( - List pages, int collectionSize) { - return new ListMeasurementProtocolSecretsFixedSizeCollection(pages, collectionSize); - } - } - - public static class SearchChangeHistoryEventsPagedResponse - extends AbstractPagedListResponse< - SearchChangeHistoryEventsRequest, - SearchChangeHistoryEventsResponse, - ChangeHistoryEvent, - SearchChangeHistoryEventsPage, - SearchChangeHistoryEventsFixedSizeCollection> { - - public static ApiFuture createAsync( - PageContext< - SearchChangeHistoryEventsRequest, - SearchChangeHistoryEventsResponse, - ChangeHistoryEvent> - context, - ApiFuture futureResponse) { - ApiFuture futurePage = - SearchChangeHistoryEventsPage.createEmptyPage().createPageAsync(context, futureResponse); - return ApiFutures.transform( - futurePage, - input -> new SearchChangeHistoryEventsPagedResponse(input), - MoreExecutors.directExecutor()); - } - - private SearchChangeHistoryEventsPagedResponse(SearchChangeHistoryEventsPage page) { - super(page, SearchChangeHistoryEventsFixedSizeCollection.createEmptyCollection()); - } - } - - public static class SearchChangeHistoryEventsPage - extends AbstractPage< - SearchChangeHistoryEventsRequest, - SearchChangeHistoryEventsResponse, - ChangeHistoryEvent, - SearchChangeHistoryEventsPage> { - - private SearchChangeHistoryEventsPage( - PageContext< - SearchChangeHistoryEventsRequest, - SearchChangeHistoryEventsResponse, - ChangeHistoryEvent> - context, - SearchChangeHistoryEventsResponse response) { - super(context, response); - } - - private static SearchChangeHistoryEventsPage createEmptyPage() { - return new SearchChangeHistoryEventsPage(null, null); - } - - @Override - protected SearchChangeHistoryEventsPage createPage( - PageContext< - SearchChangeHistoryEventsRequest, - SearchChangeHistoryEventsResponse, - ChangeHistoryEvent> - context, - SearchChangeHistoryEventsResponse response) { - return new SearchChangeHistoryEventsPage(context, response); - } - - @Override - public ApiFuture createPageAsync( - PageContext< - SearchChangeHistoryEventsRequest, - SearchChangeHistoryEventsResponse, - ChangeHistoryEvent> - context, - ApiFuture futureResponse) { - return super.createPageAsync(context, futureResponse); - } - } - - public static class SearchChangeHistoryEventsFixedSizeCollection - extends AbstractFixedSizeCollection< - SearchChangeHistoryEventsRequest, - SearchChangeHistoryEventsResponse, - ChangeHistoryEvent, - SearchChangeHistoryEventsPage, - SearchChangeHistoryEventsFixedSizeCollection> { - - private SearchChangeHistoryEventsFixedSizeCollection( - List pages, int collectionSize) { - super(pages, collectionSize); - } - - private static SearchChangeHistoryEventsFixedSizeCollection createEmptyCollection() { - return new SearchChangeHistoryEventsFixedSizeCollection(null, 0); - } - - @Override - protected SearchChangeHistoryEventsFixedSizeCollection createCollection( - List pages, int collectionSize) { - return new SearchChangeHistoryEventsFixedSizeCollection(pages, collectionSize); - } - } - - public static class ListConversionEventsPagedResponse - extends AbstractPagedListResponse< - ListConversionEventsRequest, - ListConversionEventsResponse, - ConversionEvent, - ListConversionEventsPage, - ListConversionEventsFixedSizeCollection> { - - public static ApiFuture createAsync( - PageContext - context, - ApiFuture futureResponse) { - ApiFuture futurePage = - ListConversionEventsPage.createEmptyPage().createPageAsync(context, futureResponse); - return ApiFutures.transform( - futurePage, - input -> new ListConversionEventsPagedResponse(input), - MoreExecutors.directExecutor()); - } - - private ListConversionEventsPagedResponse(ListConversionEventsPage page) { - super(page, ListConversionEventsFixedSizeCollection.createEmptyCollection()); - } - } - - public static class ListConversionEventsPage - extends AbstractPage< - ListConversionEventsRequest, - ListConversionEventsResponse, - ConversionEvent, - ListConversionEventsPage> { - - private ListConversionEventsPage( - PageContext - context, - ListConversionEventsResponse response) { - super(context, response); - } - - private static ListConversionEventsPage createEmptyPage() { - return new ListConversionEventsPage(null, null); - } - - @Override - protected ListConversionEventsPage createPage( - PageContext - context, - ListConversionEventsResponse response) { - return new ListConversionEventsPage(context, response); - } - - @Override - public ApiFuture createPageAsync( - PageContext - context, - ApiFuture futureResponse) { - return super.createPageAsync(context, futureResponse); - } - } - - public static class ListConversionEventsFixedSizeCollection - extends AbstractFixedSizeCollection< - ListConversionEventsRequest, - ListConversionEventsResponse, - ConversionEvent, - ListConversionEventsPage, - ListConversionEventsFixedSizeCollection> { - - private ListConversionEventsFixedSizeCollection( - List pages, int collectionSize) { - super(pages, collectionSize); - } - - private static ListConversionEventsFixedSizeCollection createEmptyCollection() { - return new ListConversionEventsFixedSizeCollection(null, 0); - } - - @Override - protected ListConversionEventsFixedSizeCollection createCollection( - List pages, int collectionSize) { - return new ListConversionEventsFixedSizeCollection(pages, collectionSize); - } - } - - public static class ListCustomDimensionsPagedResponse - extends AbstractPagedListResponse< - ListCustomDimensionsRequest, - ListCustomDimensionsResponse, - CustomDimension, - ListCustomDimensionsPage, - ListCustomDimensionsFixedSizeCollection> { - - public static ApiFuture createAsync( - PageContext - context, - ApiFuture futureResponse) { - ApiFuture futurePage = - ListCustomDimensionsPage.createEmptyPage().createPageAsync(context, futureResponse); - return ApiFutures.transform( - futurePage, - input -> new ListCustomDimensionsPagedResponse(input), - MoreExecutors.directExecutor()); - } - - private ListCustomDimensionsPagedResponse(ListCustomDimensionsPage page) { - super(page, ListCustomDimensionsFixedSizeCollection.createEmptyCollection()); - } - } - - public static class ListCustomDimensionsPage - extends AbstractPage< - ListCustomDimensionsRequest, - ListCustomDimensionsResponse, - CustomDimension, - ListCustomDimensionsPage> { - - private ListCustomDimensionsPage( - PageContext - context, - ListCustomDimensionsResponse response) { - super(context, response); - } - - private static ListCustomDimensionsPage createEmptyPage() { - return new ListCustomDimensionsPage(null, null); - } - - @Override - protected ListCustomDimensionsPage createPage( - PageContext - context, - ListCustomDimensionsResponse response) { - return new ListCustomDimensionsPage(context, response); - } - - @Override - public ApiFuture createPageAsync( - PageContext - context, - ApiFuture futureResponse) { - return super.createPageAsync(context, futureResponse); - } - } - - public static class ListCustomDimensionsFixedSizeCollection - extends AbstractFixedSizeCollection< - ListCustomDimensionsRequest, - ListCustomDimensionsResponse, - CustomDimension, - ListCustomDimensionsPage, - ListCustomDimensionsFixedSizeCollection> { - - private ListCustomDimensionsFixedSizeCollection( - List pages, int collectionSize) { - super(pages, collectionSize); - } - - private static ListCustomDimensionsFixedSizeCollection createEmptyCollection() { - return new ListCustomDimensionsFixedSizeCollection(null, 0); - } - - @Override - protected ListCustomDimensionsFixedSizeCollection createCollection( - List pages, int collectionSize) { - return new ListCustomDimensionsFixedSizeCollection(pages, collectionSize); - } - } - - public static class ListCustomMetricsPagedResponse - extends AbstractPagedListResponse< - ListCustomMetricsRequest, - ListCustomMetricsResponse, - CustomMetric, - ListCustomMetricsPage, - ListCustomMetricsFixedSizeCollection> { - - public static ApiFuture createAsync( - PageContext context, - ApiFuture futureResponse) { - ApiFuture futurePage = - ListCustomMetricsPage.createEmptyPage().createPageAsync(context, futureResponse); - return ApiFutures.transform( - futurePage, - input -> new ListCustomMetricsPagedResponse(input), - MoreExecutors.directExecutor()); - } - - private ListCustomMetricsPagedResponse(ListCustomMetricsPage page) { - super(page, ListCustomMetricsFixedSizeCollection.createEmptyCollection()); - } - } - - public static class ListCustomMetricsPage - extends AbstractPage< - ListCustomMetricsRequest, - ListCustomMetricsResponse, - CustomMetric, - ListCustomMetricsPage> { - - private ListCustomMetricsPage( - PageContext context, - ListCustomMetricsResponse response) { - super(context, response); - } - - private static ListCustomMetricsPage createEmptyPage() { - return new ListCustomMetricsPage(null, null); - } - - @Override - protected ListCustomMetricsPage createPage( - PageContext context, - ListCustomMetricsResponse response) { - return new ListCustomMetricsPage(context, response); - } - - @Override - public ApiFuture createPageAsync( - PageContext context, - ApiFuture futureResponse) { - return super.createPageAsync(context, futureResponse); - } - } - - public static class ListCustomMetricsFixedSizeCollection - extends AbstractFixedSizeCollection< - ListCustomMetricsRequest, - ListCustomMetricsResponse, - CustomMetric, - ListCustomMetricsPage, - ListCustomMetricsFixedSizeCollection> { - - private ListCustomMetricsFixedSizeCollection( - List pages, int collectionSize) { - super(pages, collectionSize); - } - - private static ListCustomMetricsFixedSizeCollection createEmptyCollection() { - return new ListCustomMetricsFixedSizeCollection(null, 0); - } - - @Override - protected ListCustomMetricsFixedSizeCollection createCollection( - List pages, int collectionSize) { - return new ListCustomMetricsFixedSizeCollection(pages, collectionSize); - } - } - - public static class ListDataStreamsPagedResponse - extends AbstractPagedListResponse< - ListDataStreamsRequest, - ListDataStreamsResponse, - DataStream, - ListDataStreamsPage, - ListDataStreamsFixedSizeCollection> { - - public static ApiFuture createAsync( - PageContext context, - ApiFuture futureResponse) { - ApiFuture futurePage = - ListDataStreamsPage.createEmptyPage().createPageAsync(context, futureResponse); - return ApiFutures.transform( - futurePage, - input -> new ListDataStreamsPagedResponse(input), - MoreExecutors.directExecutor()); - } - - private ListDataStreamsPagedResponse(ListDataStreamsPage page) { - super(page, ListDataStreamsFixedSizeCollection.createEmptyCollection()); - } - } - - public static class ListDataStreamsPage - extends AbstractPage< - ListDataStreamsRequest, ListDataStreamsResponse, DataStream, ListDataStreamsPage> { - - private ListDataStreamsPage( - PageContext context, - ListDataStreamsResponse response) { - super(context, response); - } - - private static ListDataStreamsPage createEmptyPage() { - return new ListDataStreamsPage(null, null); - } - - @Override - protected ListDataStreamsPage createPage( - PageContext context, - ListDataStreamsResponse response) { - return new ListDataStreamsPage(context, response); - } - - @Override - public ApiFuture createPageAsync( - PageContext context, - ApiFuture futureResponse) { - return super.createPageAsync(context, futureResponse); - } - } - - public static class ListDataStreamsFixedSizeCollection - extends AbstractFixedSizeCollection< - ListDataStreamsRequest, - ListDataStreamsResponse, - DataStream, - ListDataStreamsPage, - ListDataStreamsFixedSizeCollection> { - - private ListDataStreamsFixedSizeCollection( - List pages, int collectionSize) { - super(pages, collectionSize); - } - - private static ListDataStreamsFixedSizeCollection createEmptyCollection() { - return new ListDataStreamsFixedSizeCollection(null, 0); - } - - @Override - protected ListDataStreamsFixedSizeCollection createCollection( - List pages, int collectionSize) { - return new ListDataStreamsFixedSizeCollection(pages, collectionSize); - } - } -} diff --git a/google-analytics-admin/src/main/java/com/google/analytics/admin/v1beta/AnalyticsAdminServiceSettings.java b/google-analytics-admin/src/main/java/com/google/analytics/admin/v1beta/AnalyticsAdminServiceSettings.java deleted file mode 100644 index c9eb9446..00000000 --- a/google-analytics-admin/src/main/java/com/google/analytics/admin/v1beta/AnalyticsAdminServiceSettings.java +++ /dev/null @@ -1,799 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 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(); - } - - 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 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(); - } - - @Override - public AnalyticsAdminServiceSettings build() throws IOException { - return new AnalyticsAdminServiceSettings(this); - } - } -} diff --git a/google-analytics-admin/src/main/java/com/google/analytics/admin/v1beta/gapic_metadata.json b/google-analytics-admin/src/main/java/com/google/analytics/admin/v1beta/gapic_metadata.json deleted file mode 100644 index 4b0e9b0c..00000000 --- a/google-analytics-admin/src/main/java/com/google/analytics/admin/v1beta/gapic_metadata.json +++ /dev/null @@ -1,159 +0,0 @@ -{ - "schema": "1.0", - "comment": "This file maps proto services/RPCs to the corresponding library clients/methods", - "language": "java", - "protoPackage": "google.analytics.admin.v1beta", - "libraryPackage": "com.google.analytics.admin.v1beta", - "services": { - "AnalyticsAdminService": { - "clients": { - "grpc": { - "libraryClient": "AnalyticsAdminServiceClient", - "rpcs": { - "AcknowledgeUserDataCollection": { - "methods": ["acknowledgeUserDataCollection", "acknowledgeUserDataCollectionCallable"] - }, - "ArchiveCustomDimension": { - "methods": ["archiveCustomDimension", "archiveCustomDimension", "archiveCustomDimension", "archiveCustomDimensionCallable"] - }, - "ArchiveCustomMetric": { - "methods": ["archiveCustomMetric", "archiveCustomMetric", "archiveCustomMetric", "archiveCustomMetricCallable"] - }, - "CreateConversionEvent": { - "methods": ["createConversionEvent", "createConversionEvent", "createConversionEvent", "createConversionEventCallable"] - }, - "CreateCustomDimension": { - "methods": ["createCustomDimension", "createCustomDimension", "createCustomDimension", "createCustomDimensionCallable"] - }, - "CreateCustomMetric": { - "methods": ["createCustomMetric", "createCustomMetric", "createCustomMetric", "createCustomMetricCallable"] - }, - "CreateDataStream": { - "methods": ["createDataStream", "createDataStream", "createDataStream", "createDataStreamCallable"] - }, - "CreateFirebaseLink": { - "methods": ["createFirebaseLink", "createFirebaseLink", "createFirebaseLink", "createFirebaseLinkCallable"] - }, - "CreateGoogleAdsLink": { - "methods": ["createGoogleAdsLink", "createGoogleAdsLink", "createGoogleAdsLink", "createGoogleAdsLinkCallable"] - }, - "CreateMeasurementProtocolSecret": { - "methods": ["createMeasurementProtocolSecret", "createMeasurementProtocolSecret", "createMeasurementProtocolSecret", "createMeasurementProtocolSecretCallable"] - }, - "CreateProperty": { - "methods": ["createProperty", "createProperty", "createPropertyCallable"] - }, - "DeleteAccount": { - "methods": ["deleteAccount", "deleteAccount", "deleteAccount", "deleteAccountCallable"] - }, - "DeleteConversionEvent": { - "methods": ["deleteConversionEvent", "deleteConversionEvent", "deleteConversionEvent", "deleteConversionEventCallable"] - }, - "DeleteDataStream": { - "methods": ["deleteDataStream", "deleteDataStream", "deleteDataStream", "deleteDataStreamCallable"] - }, - "DeleteFirebaseLink": { - "methods": ["deleteFirebaseLink", "deleteFirebaseLink", "deleteFirebaseLink", "deleteFirebaseLinkCallable"] - }, - "DeleteGoogleAdsLink": { - "methods": ["deleteGoogleAdsLink", "deleteGoogleAdsLink", "deleteGoogleAdsLink", "deleteGoogleAdsLinkCallable"] - }, - "DeleteMeasurementProtocolSecret": { - "methods": ["deleteMeasurementProtocolSecret", "deleteMeasurementProtocolSecret", "deleteMeasurementProtocolSecret", "deleteMeasurementProtocolSecretCallable"] - }, - "DeleteProperty": { - "methods": ["deleteProperty", "deleteProperty", "deleteProperty", "deletePropertyCallable"] - }, - "GetAccount": { - "methods": ["getAccount", "getAccount", "getAccount", "getAccountCallable"] - }, - "GetConversionEvent": { - "methods": ["getConversionEvent", "getConversionEvent", "getConversionEvent", "getConversionEventCallable"] - }, - "GetCustomDimension": { - "methods": ["getCustomDimension", "getCustomDimension", "getCustomDimension", "getCustomDimensionCallable"] - }, - "GetCustomMetric": { - "methods": ["getCustomMetric", "getCustomMetric", "getCustomMetric", "getCustomMetricCallable"] - }, - "GetDataRetentionSettings": { - "methods": ["getDataRetentionSettings", "getDataRetentionSettings", "getDataRetentionSettings", "getDataRetentionSettingsCallable"] - }, - "GetDataSharingSettings": { - "methods": ["getDataSharingSettings", "getDataSharingSettings", "getDataSharingSettings", "getDataSharingSettingsCallable"] - }, - "GetDataStream": { - "methods": ["getDataStream", "getDataStream", "getDataStream", "getDataStreamCallable"] - }, - "GetMeasurementProtocolSecret": { - "methods": ["getMeasurementProtocolSecret", "getMeasurementProtocolSecret", "getMeasurementProtocolSecret", "getMeasurementProtocolSecretCallable"] - }, - "GetProperty": { - "methods": ["getProperty", "getProperty", "getProperty", "getPropertyCallable"] - }, - "ListAccountSummaries": { - "methods": ["listAccountSummaries", "listAccountSummariesPagedCallable", "listAccountSummariesCallable"] - }, - "ListAccounts": { - "methods": ["listAccounts", "listAccountsPagedCallable", "listAccountsCallable"] - }, - "ListConversionEvents": { - "methods": ["listConversionEvents", "listConversionEvents", "listConversionEvents", "listConversionEventsPagedCallable", "listConversionEventsCallable"] - }, - "ListCustomDimensions": { - "methods": ["listCustomDimensions", "listCustomDimensions", "listCustomDimensions", "listCustomDimensionsPagedCallable", "listCustomDimensionsCallable"] - }, - "ListCustomMetrics": { - "methods": ["listCustomMetrics", "listCustomMetrics", "listCustomMetrics", "listCustomMetricsPagedCallable", "listCustomMetricsCallable"] - }, - "ListDataStreams": { - "methods": ["listDataStreams", "listDataStreams", "listDataStreams", "listDataStreamsPagedCallable", "listDataStreamsCallable"] - }, - "ListFirebaseLinks": { - "methods": ["listFirebaseLinks", "listFirebaseLinks", "listFirebaseLinks", "listFirebaseLinksPagedCallable", "listFirebaseLinksCallable"] - }, - "ListGoogleAdsLinks": { - "methods": ["listGoogleAdsLinks", "listGoogleAdsLinks", "listGoogleAdsLinks", "listGoogleAdsLinksPagedCallable", "listGoogleAdsLinksCallable"] - }, - "ListMeasurementProtocolSecrets": { - "methods": ["listMeasurementProtocolSecrets", "listMeasurementProtocolSecrets", "listMeasurementProtocolSecrets", "listMeasurementProtocolSecretsPagedCallable", "listMeasurementProtocolSecretsCallable"] - }, - "ListProperties": { - "methods": ["listProperties", "listPropertiesPagedCallable", "listPropertiesCallable"] - }, - "ProvisionAccountTicket": { - "methods": ["provisionAccountTicket", "provisionAccountTicketCallable"] - }, - "SearchChangeHistoryEvents": { - "methods": ["searchChangeHistoryEvents", "searchChangeHistoryEventsPagedCallable", "searchChangeHistoryEventsCallable"] - }, - "UpdateAccount": { - "methods": ["updateAccount", "updateAccount", "updateAccountCallable"] - }, - "UpdateCustomDimension": { - "methods": ["updateCustomDimension", "updateCustomDimension", "updateCustomDimensionCallable"] - }, - "UpdateCustomMetric": { - "methods": ["updateCustomMetric", "updateCustomMetric", "updateCustomMetricCallable"] - }, - "UpdateDataRetentionSettings": { - "methods": ["updateDataRetentionSettings", "updateDataRetentionSettings", "updateDataRetentionSettingsCallable"] - }, - "UpdateDataStream": { - "methods": ["updateDataStream", "updateDataStream", "updateDataStreamCallable"] - }, - "UpdateGoogleAdsLink": { - "methods": ["updateGoogleAdsLink", "updateGoogleAdsLink", "updateGoogleAdsLinkCallable"] - }, - "UpdateMeasurementProtocolSecret": { - "methods": ["updateMeasurementProtocolSecret", "updateMeasurementProtocolSecret", "updateMeasurementProtocolSecretCallable"] - }, - "UpdateProperty": { - "methods": ["updateProperty", "updateProperty", "updatePropertyCallable"] - } - } - } - } - } - } -} \ No newline at end of file diff --git a/google-analytics-admin/src/main/java/com/google/analytics/admin/v1beta/package-info.java b/google-analytics-admin/src/main/java/com/google/analytics/admin/v1beta/package-info.java deleted file mode 100644 index 1cecf124..00000000 --- a/google-analytics-admin/src/main/java/com/google/analytics/admin/v1beta/package-info.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -/** - * A client to Google Analytics Admin API - * - *

The interfaces provided are listed below, along with usage samples. - * - *

======================= AnalyticsAdminServiceClient ======================= - * - *

Service Description: Service Interface for the Analytics Admin API (GA4). - * - *

Sample for AnalyticsAdminServiceClient: - * - *

{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
- *     AnalyticsAdminServiceClient.create()) {
- *   AccountName name = AccountName.of("[ACCOUNT]");
- *   Account response = analyticsAdminServiceClient.getAccount(name);
- * }
- * }
- */ -@Generated("by gapic-generator-java") -package com.google.analytics.admin.v1beta; - -import javax.annotation.Generated; diff --git a/google-analytics-admin/src/main/java/com/google/analytics/admin/v1beta/stub/AnalyticsAdminServiceStub.java b/google-analytics-admin/src/main/java/com/google/analytics/admin/v1beta/stub/AnalyticsAdminServiceStub.java deleted file mode 100644 index 382435fd..00000000 --- a/google-analytics-admin/src/main/java/com/google/analytics/admin/v1beta/stub/AnalyticsAdminServiceStub.java +++ /dev/null @@ -1,393 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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.SearchChangeHistoryEventsRequest; -import com.google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse; -import com.google.analytics.admin.v1beta.UpdateAccountRequest; -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.rpc.UnaryCallable; -import com.google.protobuf.Empty; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Base stub class for the AnalyticsAdminService service API. - * - *

This class is for advanced usage and reflects the underlying API directly. - */ -@BetaApi -@Generated("by gapic-generator-java") -public abstract class AnalyticsAdminServiceStub implements BackgroundResource { - - public UnaryCallable getAccountCallable() { - throw new UnsupportedOperationException("Not implemented: getAccountCallable()"); - } - - public UnaryCallable listAccountsPagedCallable() { - throw new UnsupportedOperationException("Not implemented: listAccountsPagedCallable()"); - } - - public UnaryCallable listAccountsCallable() { - throw new UnsupportedOperationException("Not implemented: listAccountsCallable()"); - } - - public UnaryCallable deleteAccountCallable() { - throw new UnsupportedOperationException("Not implemented: deleteAccountCallable()"); - } - - public UnaryCallable updateAccountCallable() { - throw new UnsupportedOperationException("Not implemented: updateAccountCallable()"); - } - - public UnaryCallable - provisionAccountTicketCallable() { - throw new UnsupportedOperationException("Not implemented: provisionAccountTicketCallable()"); - } - - public UnaryCallable - listAccountSummariesPagedCallable() { - throw new UnsupportedOperationException("Not implemented: listAccountSummariesPagedCallable()"); - } - - public UnaryCallable - listAccountSummariesCallable() { - throw new UnsupportedOperationException("Not implemented: listAccountSummariesCallable()"); - } - - public UnaryCallable getPropertyCallable() { - throw new UnsupportedOperationException("Not implemented: getPropertyCallable()"); - } - - public UnaryCallable - listPropertiesPagedCallable() { - throw new UnsupportedOperationException("Not implemented: listPropertiesPagedCallable()"); - } - - public UnaryCallable listPropertiesCallable() { - throw new UnsupportedOperationException("Not implemented: listPropertiesCallable()"); - } - - public UnaryCallable createPropertyCallable() { - throw new UnsupportedOperationException("Not implemented: createPropertyCallable()"); - } - - public UnaryCallable deletePropertyCallable() { - throw new UnsupportedOperationException("Not implemented: deletePropertyCallable()"); - } - - public UnaryCallable updatePropertyCallable() { - throw new UnsupportedOperationException("Not implemented: updatePropertyCallable()"); - } - - public UnaryCallable createFirebaseLinkCallable() { - throw new UnsupportedOperationException("Not implemented: createFirebaseLinkCallable()"); - } - - public UnaryCallable deleteFirebaseLinkCallable() { - throw new UnsupportedOperationException("Not implemented: deleteFirebaseLinkCallable()"); - } - - public UnaryCallable - listFirebaseLinksPagedCallable() { - throw new UnsupportedOperationException("Not implemented: listFirebaseLinksPagedCallable()"); - } - - public UnaryCallable - listFirebaseLinksCallable() { - throw new UnsupportedOperationException("Not implemented: listFirebaseLinksCallable()"); - } - - public UnaryCallable createGoogleAdsLinkCallable() { - throw new UnsupportedOperationException("Not implemented: createGoogleAdsLinkCallable()"); - } - - public UnaryCallable updateGoogleAdsLinkCallable() { - throw new UnsupportedOperationException("Not implemented: updateGoogleAdsLinkCallable()"); - } - - public UnaryCallable deleteGoogleAdsLinkCallable() { - throw new UnsupportedOperationException("Not implemented: deleteGoogleAdsLinkCallable()"); - } - - public UnaryCallable - listGoogleAdsLinksPagedCallable() { - throw new UnsupportedOperationException("Not implemented: listGoogleAdsLinksPagedCallable()"); - } - - public UnaryCallable - listGoogleAdsLinksCallable() { - throw new UnsupportedOperationException("Not implemented: listGoogleAdsLinksCallable()"); - } - - public UnaryCallable - getDataSharingSettingsCallable() { - throw new UnsupportedOperationException("Not implemented: getDataSharingSettingsCallable()"); - } - - public UnaryCallable - getMeasurementProtocolSecretCallable() { - throw new UnsupportedOperationException( - "Not implemented: getMeasurementProtocolSecretCallable()"); - } - - public UnaryCallable< - ListMeasurementProtocolSecretsRequest, ListMeasurementProtocolSecretsPagedResponse> - listMeasurementProtocolSecretsPagedCallable() { - throw new UnsupportedOperationException( - "Not implemented: listMeasurementProtocolSecretsPagedCallable()"); - } - - public UnaryCallable< - ListMeasurementProtocolSecretsRequest, ListMeasurementProtocolSecretsResponse> - listMeasurementProtocolSecretsCallable() { - throw new UnsupportedOperationException( - "Not implemented: listMeasurementProtocolSecretsCallable()"); - } - - public UnaryCallable - createMeasurementProtocolSecretCallable() { - throw new UnsupportedOperationException( - "Not implemented: createMeasurementProtocolSecretCallable()"); - } - - public UnaryCallable - deleteMeasurementProtocolSecretCallable() { - throw new UnsupportedOperationException( - "Not implemented: deleteMeasurementProtocolSecretCallable()"); - } - - public UnaryCallable - updateMeasurementProtocolSecretCallable() { - throw new UnsupportedOperationException( - "Not implemented: updateMeasurementProtocolSecretCallable()"); - } - - public UnaryCallable - acknowledgeUserDataCollectionCallable() { - throw new UnsupportedOperationException( - "Not implemented: acknowledgeUserDataCollectionCallable()"); - } - - public UnaryCallable - searchChangeHistoryEventsPagedCallable() { - throw new UnsupportedOperationException( - "Not implemented: searchChangeHistoryEventsPagedCallable()"); - } - - public UnaryCallable - searchChangeHistoryEventsCallable() { - throw new UnsupportedOperationException("Not implemented: searchChangeHistoryEventsCallable()"); - } - - public UnaryCallable - createConversionEventCallable() { - throw new UnsupportedOperationException("Not implemented: createConversionEventCallable()"); - } - - public UnaryCallable getConversionEventCallable() { - throw new UnsupportedOperationException("Not implemented: getConversionEventCallable()"); - } - - public UnaryCallable deleteConversionEventCallable() { - throw new UnsupportedOperationException("Not implemented: deleteConversionEventCallable()"); - } - - public UnaryCallable - listConversionEventsPagedCallable() { - throw new UnsupportedOperationException("Not implemented: listConversionEventsPagedCallable()"); - } - - public UnaryCallable - listConversionEventsCallable() { - throw new UnsupportedOperationException("Not implemented: listConversionEventsCallable()"); - } - - public UnaryCallable - createCustomDimensionCallable() { - throw new UnsupportedOperationException("Not implemented: createCustomDimensionCallable()"); - } - - public UnaryCallable - updateCustomDimensionCallable() { - throw new UnsupportedOperationException("Not implemented: updateCustomDimensionCallable()"); - } - - public UnaryCallable - listCustomDimensionsPagedCallable() { - throw new UnsupportedOperationException("Not implemented: listCustomDimensionsPagedCallable()"); - } - - public UnaryCallable - listCustomDimensionsCallable() { - throw new UnsupportedOperationException("Not implemented: listCustomDimensionsCallable()"); - } - - public UnaryCallable archiveCustomDimensionCallable() { - throw new UnsupportedOperationException("Not implemented: archiveCustomDimensionCallable()"); - } - - public UnaryCallable getCustomDimensionCallable() { - throw new UnsupportedOperationException("Not implemented: getCustomDimensionCallable()"); - } - - public UnaryCallable createCustomMetricCallable() { - throw new UnsupportedOperationException("Not implemented: createCustomMetricCallable()"); - } - - public UnaryCallable updateCustomMetricCallable() { - throw new UnsupportedOperationException("Not implemented: updateCustomMetricCallable()"); - } - - public UnaryCallable - listCustomMetricsPagedCallable() { - throw new UnsupportedOperationException("Not implemented: listCustomMetricsPagedCallable()"); - } - - public UnaryCallable - listCustomMetricsCallable() { - throw new UnsupportedOperationException("Not implemented: listCustomMetricsCallable()"); - } - - public UnaryCallable archiveCustomMetricCallable() { - throw new UnsupportedOperationException("Not implemented: archiveCustomMetricCallable()"); - } - - public UnaryCallable getCustomMetricCallable() { - throw new UnsupportedOperationException("Not implemented: getCustomMetricCallable()"); - } - - public UnaryCallable - getDataRetentionSettingsCallable() { - throw new UnsupportedOperationException("Not implemented: getDataRetentionSettingsCallable()"); - } - - public UnaryCallable - updateDataRetentionSettingsCallable() { - throw new UnsupportedOperationException( - "Not implemented: updateDataRetentionSettingsCallable()"); - } - - public UnaryCallable createDataStreamCallable() { - throw new UnsupportedOperationException("Not implemented: createDataStreamCallable()"); - } - - public UnaryCallable deleteDataStreamCallable() { - throw new UnsupportedOperationException("Not implemented: deleteDataStreamCallable()"); - } - - public UnaryCallable updateDataStreamCallable() { - throw new UnsupportedOperationException("Not implemented: updateDataStreamCallable()"); - } - - public UnaryCallable - listDataStreamsPagedCallable() { - throw new UnsupportedOperationException("Not implemented: listDataStreamsPagedCallable()"); - } - - public UnaryCallable listDataStreamsCallable() { - throw new UnsupportedOperationException("Not implemented: listDataStreamsCallable()"); - } - - public UnaryCallable getDataStreamCallable() { - throw new UnsupportedOperationException("Not implemented: getDataStreamCallable()"); - } - - @Override - public abstract void close(); -} diff --git a/google-analytics-admin/src/main/java/com/google/analytics/admin/v1beta/stub/AnalyticsAdminServiceStubSettings.java b/google-analytics-admin/src/main/java/com/google/analytics/admin/v1beta/stub/AnalyticsAdminServiceStubSettings.java deleted file mode 100644 index fb388057..00000000 --- a/google-analytics-admin/src/main/java/com/google/analytics/admin/v1beta/stub/AnalyticsAdminServiceStubSettings.java +++ /dev/null @@ -1,2393 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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.AccountSummary; -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.ChangeHistoryEvent; -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.SearchChangeHistoryEventsRequest; -import com.google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse; -import com.google.analytics.admin.v1beta.UpdateAccountRequest; -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.ApiFunction; -import com.google.api.core.ApiFuture; -import com.google.api.core.BetaApi; -import com.google.api.gax.core.GaxProperties; -import com.google.api.gax.core.GoogleCredentialsProvider; -import com.google.api.gax.core.InstantiatingExecutorProvider; -import com.google.api.gax.grpc.GaxGrpcProperties; -import com.google.api.gax.grpc.GrpcTransportChannel; -import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; -import com.google.api.gax.httpjson.GaxHttpJsonProperties; -import com.google.api.gax.httpjson.HttpJsonTransportChannel; -import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; -import com.google.api.gax.retrying.RetrySettings; -import com.google.api.gax.rpc.ApiCallContext; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.PageContext; -import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.PagedListDescriptor; -import com.google.api.gax.rpc.PagedListResponseFactory; -import com.google.api.gax.rpc.StatusCode; -import com.google.api.gax.rpc.StubSettings; -import com.google.api.gax.rpc.TransportChannelProvider; -import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.common.collect.ImmutableList; -import com.google.common.collect.ImmutableMap; -import com.google.common.collect.ImmutableSet; -import com.google.common.collect.Lists; -import com.google.protobuf.Empty; -import java.io.IOException; -import java.util.List; -import javax.annotation.Generated; -import org.threeten.bp.Duration; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Settings class to configure an instance of {@link AnalyticsAdminServiceStub}. - * - *

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
- * AnalyticsAdminServiceStubSettings.Builder analyticsAdminServiceSettingsBuilder =
- *     AnalyticsAdminServiceStubSettings.newBuilder();
- * analyticsAdminServiceSettingsBuilder
- *     .getAccountSettings()
- *     .setRetrySettings(
- *         analyticsAdminServiceSettingsBuilder.getAccountSettings().getRetrySettings().toBuilder()
- *             .setTotalTimeout(Duration.ofSeconds(30))
- *             .build());
- * AnalyticsAdminServiceStubSettings analyticsAdminServiceSettings =
- *     analyticsAdminServiceSettingsBuilder.build();
- * }
- */ -@BetaApi -@Generated("by gapic-generator-java") -public class AnalyticsAdminServiceStubSettings - extends StubSettings { - /** The default scopes of the service. */ - private static final ImmutableList DEFAULT_SERVICE_SCOPES = - ImmutableList.builder() - .add("https://www.googleapis.com/auth/analytics.edit") - .add("https://www.googleapis.com/auth/analytics.readonly") - .build(); - - private final UnaryCallSettings getAccountSettings; - private final PagedCallSettings< - ListAccountsRequest, ListAccountsResponse, ListAccountsPagedResponse> - listAccountsSettings; - private final UnaryCallSettings deleteAccountSettings; - private final UnaryCallSettings updateAccountSettings; - private final UnaryCallSettings - provisionAccountTicketSettings; - private final PagedCallSettings< - ListAccountSummariesRequest, - ListAccountSummariesResponse, - ListAccountSummariesPagedResponse> - listAccountSummariesSettings; - private final UnaryCallSettings getPropertySettings; - private final PagedCallSettings< - ListPropertiesRequest, ListPropertiesResponse, ListPropertiesPagedResponse> - listPropertiesSettings; - private final UnaryCallSettings createPropertySettings; - private final UnaryCallSettings deletePropertySettings; - private final UnaryCallSettings updatePropertySettings; - private final UnaryCallSettings - createFirebaseLinkSettings; - private final UnaryCallSettings deleteFirebaseLinkSettings; - private final PagedCallSettings< - ListFirebaseLinksRequest, ListFirebaseLinksResponse, ListFirebaseLinksPagedResponse> - listFirebaseLinksSettings; - private final UnaryCallSettings - createGoogleAdsLinkSettings; - private final UnaryCallSettings - updateGoogleAdsLinkSettings; - private final UnaryCallSettings deleteGoogleAdsLinkSettings; - private final PagedCallSettings< - ListGoogleAdsLinksRequest, ListGoogleAdsLinksResponse, ListGoogleAdsLinksPagedResponse> - listGoogleAdsLinksSettings; - private final UnaryCallSettings - getDataSharingSettingsSettings; - private final UnaryCallSettings - getMeasurementProtocolSecretSettings; - private final PagedCallSettings< - ListMeasurementProtocolSecretsRequest, - ListMeasurementProtocolSecretsResponse, - ListMeasurementProtocolSecretsPagedResponse> - listMeasurementProtocolSecretsSettings; - private final UnaryCallSettings - createMeasurementProtocolSecretSettings; - private final UnaryCallSettings - deleteMeasurementProtocolSecretSettings; - private final UnaryCallSettings - updateMeasurementProtocolSecretSettings; - private final UnaryCallSettings< - AcknowledgeUserDataCollectionRequest, AcknowledgeUserDataCollectionResponse> - acknowledgeUserDataCollectionSettings; - private final PagedCallSettings< - SearchChangeHistoryEventsRequest, - SearchChangeHistoryEventsResponse, - SearchChangeHistoryEventsPagedResponse> - searchChangeHistoryEventsSettings; - private final UnaryCallSettings - createConversionEventSettings; - private final UnaryCallSettings - getConversionEventSettings; - private final UnaryCallSettings - deleteConversionEventSettings; - private final PagedCallSettings< - ListConversionEventsRequest, - ListConversionEventsResponse, - ListConversionEventsPagedResponse> - listConversionEventsSettings; - private final UnaryCallSettings - createCustomDimensionSettings; - private final UnaryCallSettings - updateCustomDimensionSettings; - private final PagedCallSettings< - ListCustomDimensionsRequest, - ListCustomDimensionsResponse, - ListCustomDimensionsPagedResponse> - listCustomDimensionsSettings; - private final UnaryCallSettings - archiveCustomDimensionSettings; - private final UnaryCallSettings - getCustomDimensionSettings; - private final UnaryCallSettings - createCustomMetricSettings; - private final UnaryCallSettings - updateCustomMetricSettings; - private final PagedCallSettings< - ListCustomMetricsRequest, ListCustomMetricsResponse, ListCustomMetricsPagedResponse> - listCustomMetricsSettings; - private final UnaryCallSettings archiveCustomMetricSettings; - private final UnaryCallSettings getCustomMetricSettings; - private final UnaryCallSettings - getDataRetentionSettingsSettings; - private final UnaryCallSettings - updateDataRetentionSettingsSettings; - private final UnaryCallSettings createDataStreamSettings; - private final UnaryCallSettings deleteDataStreamSettings; - private final UnaryCallSettings updateDataStreamSettings; - private final PagedCallSettings< - ListDataStreamsRequest, ListDataStreamsResponse, ListDataStreamsPagedResponse> - listDataStreamsSettings; - private final UnaryCallSettings getDataStreamSettings; - - private static final PagedListDescriptor - LIST_ACCOUNTS_PAGE_STR_DESC = - new PagedListDescriptor() { - @Override - public String emptyToken() { - return ""; - } - - @Override - public ListAccountsRequest injectToken(ListAccountsRequest payload, String token) { - return ListAccountsRequest.newBuilder(payload).setPageToken(token).build(); - } - - @Override - public ListAccountsRequest injectPageSize(ListAccountsRequest payload, int pageSize) { - return ListAccountsRequest.newBuilder(payload).setPageSize(pageSize).build(); - } - - @Override - public Integer extractPageSize(ListAccountsRequest payload) { - return payload.getPageSize(); - } - - @Override - public String extractNextToken(ListAccountsResponse payload) { - return payload.getNextPageToken(); - } - - @Override - public Iterable extractResources(ListAccountsResponse payload) { - return payload.getAccountsList() == null - ? ImmutableList.of() - : payload.getAccountsList(); - } - }; - - private static final PagedListDescriptor< - ListAccountSummariesRequest, ListAccountSummariesResponse, AccountSummary> - LIST_ACCOUNT_SUMMARIES_PAGE_STR_DESC = - new PagedListDescriptor< - ListAccountSummariesRequest, ListAccountSummariesResponse, AccountSummary>() { - @Override - public String emptyToken() { - return ""; - } - - @Override - public ListAccountSummariesRequest injectToken( - ListAccountSummariesRequest payload, String token) { - return ListAccountSummariesRequest.newBuilder(payload).setPageToken(token).build(); - } - - @Override - public ListAccountSummariesRequest injectPageSize( - ListAccountSummariesRequest payload, int pageSize) { - return ListAccountSummariesRequest.newBuilder(payload).setPageSize(pageSize).build(); - } - - @Override - public Integer extractPageSize(ListAccountSummariesRequest payload) { - return payload.getPageSize(); - } - - @Override - public String extractNextToken(ListAccountSummariesResponse payload) { - return payload.getNextPageToken(); - } - - @Override - public Iterable extractResources(ListAccountSummariesResponse payload) { - return payload.getAccountSummariesList() == null - ? ImmutableList.of() - : payload.getAccountSummariesList(); - } - }; - - private static final PagedListDescriptor - LIST_PROPERTIES_PAGE_STR_DESC = - new PagedListDescriptor() { - @Override - public String emptyToken() { - return ""; - } - - @Override - public ListPropertiesRequest injectToken(ListPropertiesRequest payload, String token) { - return ListPropertiesRequest.newBuilder(payload).setPageToken(token).build(); - } - - @Override - public ListPropertiesRequest injectPageSize( - ListPropertiesRequest payload, int pageSize) { - return ListPropertiesRequest.newBuilder(payload).setPageSize(pageSize).build(); - } - - @Override - public Integer extractPageSize(ListPropertiesRequest payload) { - return payload.getPageSize(); - } - - @Override - public String extractNextToken(ListPropertiesResponse payload) { - return payload.getNextPageToken(); - } - - @Override - public Iterable extractResources(ListPropertiesResponse payload) { - return payload.getPropertiesList() == null - ? ImmutableList.of() - : payload.getPropertiesList(); - } - }; - - private static final PagedListDescriptor< - ListFirebaseLinksRequest, ListFirebaseLinksResponse, FirebaseLink> - LIST_FIREBASE_LINKS_PAGE_STR_DESC = - new PagedListDescriptor< - ListFirebaseLinksRequest, ListFirebaseLinksResponse, FirebaseLink>() { - @Override - public String emptyToken() { - return ""; - } - - @Override - public ListFirebaseLinksRequest injectToken( - ListFirebaseLinksRequest payload, String token) { - return ListFirebaseLinksRequest.newBuilder(payload).setPageToken(token).build(); - } - - @Override - public ListFirebaseLinksRequest injectPageSize( - ListFirebaseLinksRequest payload, int pageSize) { - return ListFirebaseLinksRequest.newBuilder(payload).setPageSize(pageSize).build(); - } - - @Override - public Integer extractPageSize(ListFirebaseLinksRequest payload) { - return payload.getPageSize(); - } - - @Override - public String extractNextToken(ListFirebaseLinksResponse payload) { - return payload.getNextPageToken(); - } - - @Override - public Iterable extractResources(ListFirebaseLinksResponse payload) { - return payload.getFirebaseLinksList() == null - ? ImmutableList.of() - : payload.getFirebaseLinksList(); - } - }; - - private static final PagedListDescriptor< - ListGoogleAdsLinksRequest, ListGoogleAdsLinksResponse, GoogleAdsLink> - LIST_GOOGLE_ADS_LINKS_PAGE_STR_DESC = - new PagedListDescriptor< - ListGoogleAdsLinksRequest, ListGoogleAdsLinksResponse, GoogleAdsLink>() { - @Override - public String emptyToken() { - return ""; - } - - @Override - public ListGoogleAdsLinksRequest injectToken( - ListGoogleAdsLinksRequest payload, String token) { - return ListGoogleAdsLinksRequest.newBuilder(payload).setPageToken(token).build(); - } - - @Override - public ListGoogleAdsLinksRequest injectPageSize( - ListGoogleAdsLinksRequest payload, int pageSize) { - return ListGoogleAdsLinksRequest.newBuilder(payload).setPageSize(pageSize).build(); - } - - @Override - public Integer extractPageSize(ListGoogleAdsLinksRequest payload) { - return payload.getPageSize(); - } - - @Override - public String extractNextToken(ListGoogleAdsLinksResponse payload) { - return payload.getNextPageToken(); - } - - @Override - public Iterable extractResources(ListGoogleAdsLinksResponse payload) { - return payload.getGoogleAdsLinksList() == null - ? ImmutableList.of() - : payload.getGoogleAdsLinksList(); - } - }; - - private static final PagedListDescriptor< - ListMeasurementProtocolSecretsRequest, - ListMeasurementProtocolSecretsResponse, - MeasurementProtocolSecret> - LIST_MEASUREMENT_PROTOCOL_SECRETS_PAGE_STR_DESC = - new PagedListDescriptor< - ListMeasurementProtocolSecretsRequest, - ListMeasurementProtocolSecretsResponse, - MeasurementProtocolSecret>() { - @Override - public String emptyToken() { - return ""; - } - - @Override - public ListMeasurementProtocolSecretsRequest injectToken( - ListMeasurementProtocolSecretsRequest payload, String token) { - return ListMeasurementProtocolSecretsRequest.newBuilder(payload) - .setPageToken(token) - .build(); - } - - @Override - public ListMeasurementProtocolSecretsRequest injectPageSize( - ListMeasurementProtocolSecretsRequest payload, int pageSize) { - return ListMeasurementProtocolSecretsRequest.newBuilder(payload) - .setPageSize(pageSize) - .build(); - } - - @Override - public Integer extractPageSize(ListMeasurementProtocolSecretsRequest payload) { - return payload.getPageSize(); - } - - @Override - public String extractNextToken(ListMeasurementProtocolSecretsResponse payload) { - return payload.getNextPageToken(); - } - - @Override - public Iterable extractResources( - ListMeasurementProtocolSecretsResponse payload) { - return payload.getMeasurementProtocolSecretsList() == null - ? ImmutableList.of() - : payload.getMeasurementProtocolSecretsList(); - } - }; - - private static final PagedListDescriptor< - SearchChangeHistoryEventsRequest, SearchChangeHistoryEventsResponse, ChangeHistoryEvent> - SEARCH_CHANGE_HISTORY_EVENTS_PAGE_STR_DESC = - new PagedListDescriptor< - SearchChangeHistoryEventsRequest, - SearchChangeHistoryEventsResponse, - ChangeHistoryEvent>() { - @Override - public String emptyToken() { - return ""; - } - - @Override - public SearchChangeHistoryEventsRequest injectToken( - SearchChangeHistoryEventsRequest payload, String token) { - return SearchChangeHistoryEventsRequest.newBuilder(payload) - .setPageToken(token) - .build(); - } - - @Override - public SearchChangeHistoryEventsRequest injectPageSize( - SearchChangeHistoryEventsRequest payload, int pageSize) { - return SearchChangeHistoryEventsRequest.newBuilder(payload) - .setPageSize(pageSize) - .build(); - } - - @Override - public Integer extractPageSize(SearchChangeHistoryEventsRequest payload) { - return payload.getPageSize(); - } - - @Override - public String extractNextToken(SearchChangeHistoryEventsResponse payload) { - return payload.getNextPageToken(); - } - - @Override - public Iterable extractResources( - SearchChangeHistoryEventsResponse payload) { - return payload.getChangeHistoryEventsList() == null - ? ImmutableList.of() - : payload.getChangeHistoryEventsList(); - } - }; - - private static final PagedListDescriptor< - ListConversionEventsRequest, ListConversionEventsResponse, ConversionEvent> - LIST_CONVERSION_EVENTS_PAGE_STR_DESC = - new PagedListDescriptor< - ListConversionEventsRequest, ListConversionEventsResponse, ConversionEvent>() { - @Override - public String emptyToken() { - return ""; - } - - @Override - public ListConversionEventsRequest injectToken( - ListConversionEventsRequest payload, String token) { - return ListConversionEventsRequest.newBuilder(payload).setPageToken(token).build(); - } - - @Override - public ListConversionEventsRequest injectPageSize( - ListConversionEventsRequest payload, int pageSize) { - return ListConversionEventsRequest.newBuilder(payload).setPageSize(pageSize).build(); - } - - @Override - public Integer extractPageSize(ListConversionEventsRequest payload) { - return payload.getPageSize(); - } - - @Override - public String extractNextToken(ListConversionEventsResponse payload) { - return payload.getNextPageToken(); - } - - @Override - public Iterable extractResources( - ListConversionEventsResponse payload) { - return payload.getConversionEventsList() == null - ? ImmutableList.of() - : payload.getConversionEventsList(); - } - }; - - private static final PagedListDescriptor< - ListCustomDimensionsRequest, ListCustomDimensionsResponse, CustomDimension> - LIST_CUSTOM_DIMENSIONS_PAGE_STR_DESC = - new PagedListDescriptor< - ListCustomDimensionsRequest, ListCustomDimensionsResponse, CustomDimension>() { - @Override - public String emptyToken() { - return ""; - } - - @Override - public ListCustomDimensionsRequest injectToken( - ListCustomDimensionsRequest payload, String token) { - return ListCustomDimensionsRequest.newBuilder(payload).setPageToken(token).build(); - } - - @Override - public ListCustomDimensionsRequest injectPageSize( - ListCustomDimensionsRequest payload, int pageSize) { - return ListCustomDimensionsRequest.newBuilder(payload).setPageSize(pageSize).build(); - } - - @Override - public Integer extractPageSize(ListCustomDimensionsRequest payload) { - return payload.getPageSize(); - } - - @Override - public String extractNextToken(ListCustomDimensionsResponse payload) { - return payload.getNextPageToken(); - } - - @Override - public Iterable extractResources( - ListCustomDimensionsResponse payload) { - return payload.getCustomDimensionsList() == null - ? ImmutableList.of() - : payload.getCustomDimensionsList(); - } - }; - - private static final PagedListDescriptor< - ListCustomMetricsRequest, ListCustomMetricsResponse, CustomMetric> - LIST_CUSTOM_METRICS_PAGE_STR_DESC = - new PagedListDescriptor< - ListCustomMetricsRequest, ListCustomMetricsResponse, CustomMetric>() { - @Override - public String emptyToken() { - return ""; - } - - @Override - public ListCustomMetricsRequest injectToken( - ListCustomMetricsRequest payload, String token) { - return ListCustomMetricsRequest.newBuilder(payload).setPageToken(token).build(); - } - - @Override - public ListCustomMetricsRequest injectPageSize( - ListCustomMetricsRequest payload, int pageSize) { - return ListCustomMetricsRequest.newBuilder(payload).setPageSize(pageSize).build(); - } - - @Override - public Integer extractPageSize(ListCustomMetricsRequest payload) { - return payload.getPageSize(); - } - - @Override - public String extractNextToken(ListCustomMetricsResponse payload) { - return payload.getNextPageToken(); - } - - @Override - public Iterable extractResources(ListCustomMetricsResponse payload) { - return payload.getCustomMetricsList() == null - ? ImmutableList.of() - : payload.getCustomMetricsList(); - } - }; - - private static final PagedListDescriptor< - ListDataStreamsRequest, ListDataStreamsResponse, DataStream> - LIST_DATA_STREAMS_PAGE_STR_DESC = - new PagedListDescriptor() { - @Override - public String emptyToken() { - return ""; - } - - @Override - public ListDataStreamsRequest injectToken( - ListDataStreamsRequest payload, String token) { - return ListDataStreamsRequest.newBuilder(payload).setPageToken(token).build(); - } - - @Override - public ListDataStreamsRequest injectPageSize( - ListDataStreamsRequest payload, int pageSize) { - return ListDataStreamsRequest.newBuilder(payload).setPageSize(pageSize).build(); - } - - @Override - public Integer extractPageSize(ListDataStreamsRequest payload) { - return payload.getPageSize(); - } - - @Override - public String extractNextToken(ListDataStreamsResponse payload) { - return payload.getNextPageToken(); - } - - @Override - public Iterable extractResources(ListDataStreamsResponse payload) { - return payload.getDataStreamsList() == null - ? ImmutableList.of() - : payload.getDataStreamsList(); - } - }; - - private static final PagedListResponseFactory< - ListAccountsRequest, ListAccountsResponse, ListAccountsPagedResponse> - LIST_ACCOUNTS_PAGE_STR_FACT = - new PagedListResponseFactory< - ListAccountsRequest, ListAccountsResponse, ListAccountsPagedResponse>() { - @Override - public ApiFuture getFuturePagedResponse( - UnaryCallable callable, - ListAccountsRequest request, - ApiCallContext context, - ApiFuture futureResponse) { - PageContext pageContext = - PageContext.create(callable, LIST_ACCOUNTS_PAGE_STR_DESC, request, context); - return ListAccountsPagedResponse.createAsync(pageContext, futureResponse); - } - }; - - private static final PagedListResponseFactory< - ListAccountSummariesRequest, - ListAccountSummariesResponse, - ListAccountSummariesPagedResponse> - LIST_ACCOUNT_SUMMARIES_PAGE_STR_FACT = - new PagedListResponseFactory< - ListAccountSummariesRequest, - ListAccountSummariesResponse, - ListAccountSummariesPagedResponse>() { - @Override - public ApiFuture getFuturePagedResponse( - UnaryCallable callable, - ListAccountSummariesRequest request, - ApiCallContext context, - ApiFuture futureResponse) { - PageContext - pageContext = - PageContext.create( - callable, LIST_ACCOUNT_SUMMARIES_PAGE_STR_DESC, request, context); - return ListAccountSummariesPagedResponse.createAsync(pageContext, futureResponse); - } - }; - - private static final PagedListResponseFactory< - ListPropertiesRequest, ListPropertiesResponse, ListPropertiesPagedResponse> - LIST_PROPERTIES_PAGE_STR_FACT = - new PagedListResponseFactory< - ListPropertiesRequest, ListPropertiesResponse, ListPropertiesPagedResponse>() { - @Override - public ApiFuture getFuturePagedResponse( - UnaryCallable callable, - ListPropertiesRequest request, - ApiCallContext context, - ApiFuture futureResponse) { - PageContext pageContext = - PageContext.create(callable, LIST_PROPERTIES_PAGE_STR_DESC, request, context); - return ListPropertiesPagedResponse.createAsync(pageContext, futureResponse); - } - }; - - private static final PagedListResponseFactory< - ListFirebaseLinksRequest, ListFirebaseLinksResponse, ListFirebaseLinksPagedResponse> - LIST_FIREBASE_LINKS_PAGE_STR_FACT = - new PagedListResponseFactory< - ListFirebaseLinksRequest, - ListFirebaseLinksResponse, - ListFirebaseLinksPagedResponse>() { - @Override - public ApiFuture getFuturePagedResponse( - UnaryCallable callable, - ListFirebaseLinksRequest request, - ApiCallContext context, - ApiFuture futureResponse) { - PageContext - pageContext = - PageContext.create( - callable, LIST_FIREBASE_LINKS_PAGE_STR_DESC, request, context); - return ListFirebaseLinksPagedResponse.createAsync(pageContext, futureResponse); - } - }; - - private static final PagedListResponseFactory< - ListGoogleAdsLinksRequest, ListGoogleAdsLinksResponse, ListGoogleAdsLinksPagedResponse> - LIST_GOOGLE_ADS_LINKS_PAGE_STR_FACT = - new PagedListResponseFactory< - ListGoogleAdsLinksRequest, - ListGoogleAdsLinksResponse, - ListGoogleAdsLinksPagedResponse>() { - @Override - public ApiFuture getFuturePagedResponse( - UnaryCallable callable, - ListGoogleAdsLinksRequest request, - ApiCallContext context, - ApiFuture futureResponse) { - PageContext - pageContext = - PageContext.create( - callable, LIST_GOOGLE_ADS_LINKS_PAGE_STR_DESC, request, context); - return ListGoogleAdsLinksPagedResponse.createAsync(pageContext, futureResponse); - } - }; - - private static final PagedListResponseFactory< - ListMeasurementProtocolSecretsRequest, - ListMeasurementProtocolSecretsResponse, - ListMeasurementProtocolSecretsPagedResponse> - LIST_MEASUREMENT_PROTOCOL_SECRETS_PAGE_STR_FACT = - new PagedListResponseFactory< - ListMeasurementProtocolSecretsRequest, - ListMeasurementProtocolSecretsResponse, - ListMeasurementProtocolSecretsPagedResponse>() { - @Override - public ApiFuture getFuturePagedResponse( - UnaryCallable< - ListMeasurementProtocolSecretsRequest, - ListMeasurementProtocolSecretsResponse> - callable, - ListMeasurementProtocolSecretsRequest request, - ApiCallContext context, - ApiFuture futureResponse) { - PageContext< - ListMeasurementProtocolSecretsRequest, - ListMeasurementProtocolSecretsResponse, - MeasurementProtocolSecret> - pageContext = - PageContext.create( - callable, - LIST_MEASUREMENT_PROTOCOL_SECRETS_PAGE_STR_DESC, - request, - context); - return ListMeasurementProtocolSecretsPagedResponse.createAsync( - pageContext, futureResponse); - } - }; - - private static final PagedListResponseFactory< - SearchChangeHistoryEventsRequest, - SearchChangeHistoryEventsResponse, - SearchChangeHistoryEventsPagedResponse> - SEARCH_CHANGE_HISTORY_EVENTS_PAGE_STR_FACT = - new PagedListResponseFactory< - SearchChangeHistoryEventsRequest, - SearchChangeHistoryEventsResponse, - SearchChangeHistoryEventsPagedResponse>() { - @Override - public ApiFuture getFuturePagedResponse( - UnaryCallable - callable, - SearchChangeHistoryEventsRequest request, - ApiCallContext context, - ApiFuture futureResponse) { - PageContext< - SearchChangeHistoryEventsRequest, - SearchChangeHistoryEventsResponse, - ChangeHistoryEvent> - pageContext = - PageContext.create( - callable, SEARCH_CHANGE_HISTORY_EVENTS_PAGE_STR_DESC, request, context); - return SearchChangeHistoryEventsPagedResponse.createAsync( - pageContext, futureResponse); - } - }; - - private static final PagedListResponseFactory< - ListConversionEventsRequest, - ListConversionEventsResponse, - ListConversionEventsPagedResponse> - LIST_CONVERSION_EVENTS_PAGE_STR_FACT = - new PagedListResponseFactory< - ListConversionEventsRequest, - ListConversionEventsResponse, - ListConversionEventsPagedResponse>() { - @Override - public ApiFuture getFuturePagedResponse( - UnaryCallable callable, - ListConversionEventsRequest request, - ApiCallContext context, - ApiFuture futureResponse) { - PageContext< - ListConversionEventsRequest, ListConversionEventsResponse, ConversionEvent> - pageContext = - PageContext.create( - callable, LIST_CONVERSION_EVENTS_PAGE_STR_DESC, request, context); - return ListConversionEventsPagedResponse.createAsync(pageContext, futureResponse); - } - }; - - private static final PagedListResponseFactory< - ListCustomDimensionsRequest, - ListCustomDimensionsResponse, - ListCustomDimensionsPagedResponse> - LIST_CUSTOM_DIMENSIONS_PAGE_STR_FACT = - new PagedListResponseFactory< - ListCustomDimensionsRequest, - ListCustomDimensionsResponse, - ListCustomDimensionsPagedResponse>() { - @Override - public ApiFuture getFuturePagedResponse( - UnaryCallable callable, - ListCustomDimensionsRequest request, - ApiCallContext context, - ApiFuture futureResponse) { - PageContext< - ListCustomDimensionsRequest, ListCustomDimensionsResponse, CustomDimension> - pageContext = - PageContext.create( - callable, LIST_CUSTOM_DIMENSIONS_PAGE_STR_DESC, request, context); - return ListCustomDimensionsPagedResponse.createAsync(pageContext, futureResponse); - } - }; - - private static final PagedListResponseFactory< - ListCustomMetricsRequest, ListCustomMetricsResponse, ListCustomMetricsPagedResponse> - LIST_CUSTOM_METRICS_PAGE_STR_FACT = - new PagedListResponseFactory< - ListCustomMetricsRequest, - ListCustomMetricsResponse, - ListCustomMetricsPagedResponse>() { - @Override - public ApiFuture getFuturePagedResponse( - UnaryCallable callable, - ListCustomMetricsRequest request, - ApiCallContext context, - ApiFuture futureResponse) { - PageContext - pageContext = - PageContext.create( - callable, LIST_CUSTOM_METRICS_PAGE_STR_DESC, request, context); - return ListCustomMetricsPagedResponse.createAsync(pageContext, futureResponse); - } - }; - - private static final PagedListResponseFactory< - ListDataStreamsRequest, ListDataStreamsResponse, ListDataStreamsPagedResponse> - LIST_DATA_STREAMS_PAGE_STR_FACT = - new PagedListResponseFactory< - ListDataStreamsRequest, ListDataStreamsResponse, ListDataStreamsPagedResponse>() { - @Override - public ApiFuture getFuturePagedResponse( - UnaryCallable callable, - ListDataStreamsRequest request, - ApiCallContext context, - ApiFuture futureResponse) { - PageContext pageContext = - PageContext.create(callable, LIST_DATA_STREAMS_PAGE_STR_DESC, request, context); - return ListDataStreamsPagedResponse.createAsync(pageContext, futureResponse); - } - }; - - /** Returns the object with the settings used for calls to getAccount. */ - public UnaryCallSettings getAccountSettings() { - return getAccountSettings; - } - - /** Returns the object with the settings used for calls to listAccounts. */ - public PagedCallSettings - listAccountsSettings() { - return listAccountsSettings; - } - - /** Returns the object with the settings used for calls to deleteAccount. */ - public UnaryCallSettings deleteAccountSettings() { - return deleteAccountSettings; - } - - /** Returns the object with the settings used for calls to updateAccount. */ - public UnaryCallSettings updateAccountSettings() { - return updateAccountSettings; - } - - /** Returns the object with the settings used for calls to provisionAccountTicket. */ - public UnaryCallSettings - provisionAccountTicketSettings() { - return provisionAccountTicketSettings; - } - - /** Returns the object with the settings used for calls to listAccountSummaries. */ - public PagedCallSettings< - ListAccountSummariesRequest, - ListAccountSummariesResponse, - ListAccountSummariesPagedResponse> - listAccountSummariesSettings() { - return listAccountSummariesSettings; - } - - /** Returns the object with the settings used for calls to getProperty. */ - public UnaryCallSettings getPropertySettings() { - return getPropertySettings; - } - - /** Returns the object with the settings used for calls to listProperties. */ - public PagedCallSettings< - ListPropertiesRequest, ListPropertiesResponse, ListPropertiesPagedResponse> - listPropertiesSettings() { - return listPropertiesSettings; - } - - /** Returns the object with the settings used for calls to createProperty. */ - public UnaryCallSettings createPropertySettings() { - return createPropertySettings; - } - - /** Returns the object with the settings used for calls to deleteProperty. */ - public UnaryCallSettings deletePropertySettings() { - return deletePropertySettings; - } - - /** Returns the object with the settings used for calls to updateProperty. */ - public UnaryCallSettings updatePropertySettings() { - return updatePropertySettings; - } - - /** Returns the object with the settings used for calls to createFirebaseLink. */ - public UnaryCallSettings createFirebaseLinkSettings() { - return createFirebaseLinkSettings; - } - - /** Returns the object with the settings used for calls to deleteFirebaseLink. */ - public UnaryCallSettings deleteFirebaseLinkSettings() { - return deleteFirebaseLinkSettings; - } - - /** Returns the object with the settings used for calls to listFirebaseLinks. */ - public PagedCallSettings< - ListFirebaseLinksRequest, ListFirebaseLinksResponse, ListFirebaseLinksPagedResponse> - listFirebaseLinksSettings() { - return listFirebaseLinksSettings; - } - - /** Returns the object with the settings used for calls to createGoogleAdsLink. */ - public UnaryCallSettings - createGoogleAdsLinkSettings() { - return createGoogleAdsLinkSettings; - } - - /** Returns the object with the settings used for calls to updateGoogleAdsLink. */ - public UnaryCallSettings - updateGoogleAdsLinkSettings() { - return updateGoogleAdsLinkSettings; - } - - /** Returns the object with the settings used for calls to deleteGoogleAdsLink. */ - public UnaryCallSettings deleteGoogleAdsLinkSettings() { - return deleteGoogleAdsLinkSettings; - } - - /** Returns the object with the settings used for calls to listGoogleAdsLinks. */ - public PagedCallSettings< - ListGoogleAdsLinksRequest, ListGoogleAdsLinksResponse, ListGoogleAdsLinksPagedResponse> - listGoogleAdsLinksSettings() { - return listGoogleAdsLinksSettings; - } - - /** Returns the object with the settings used for calls to getDataSharingSettings. */ - public UnaryCallSettings - getDataSharingSettingsSettings() { - return getDataSharingSettingsSettings; - } - - /** Returns the object with the settings used for calls to getMeasurementProtocolSecret. */ - public UnaryCallSettings - getMeasurementProtocolSecretSettings() { - return getMeasurementProtocolSecretSettings; - } - - /** Returns the object with the settings used for calls to listMeasurementProtocolSecrets. */ - public PagedCallSettings< - ListMeasurementProtocolSecretsRequest, - ListMeasurementProtocolSecretsResponse, - ListMeasurementProtocolSecretsPagedResponse> - listMeasurementProtocolSecretsSettings() { - return listMeasurementProtocolSecretsSettings; - } - - /** Returns the object with the settings used for calls to createMeasurementProtocolSecret. */ - public UnaryCallSettings - createMeasurementProtocolSecretSettings() { - return createMeasurementProtocolSecretSettings; - } - - /** Returns the object with the settings used for calls to deleteMeasurementProtocolSecret. */ - public UnaryCallSettings - deleteMeasurementProtocolSecretSettings() { - return deleteMeasurementProtocolSecretSettings; - } - - /** Returns the object with the settings used for calls to updateMeasurementProtocolSecret. */ - public UnaryCallSettings - updateMeasurementProtocolSecretSettings() { - return updateMeasurementProtocolSecretSettings; - } - - /** Returns the object with the settings used for calls to acknowledgeUserDataCollection. */ - public UnaryCallSettings< - AcknowledgeUserDataCollectionRequest, AcknowledgeUserDataCollectionResponse> - acknowledgeUserDataCollectionSettings() { - return acknowledgeUserDataCollectionSettings; - } - - /** Returns the object with the settings used for calls to searchChangeHistoryEvents. */ - public PagedCallSettings< - SearchChangeHistoryEventsRequest, - SearchChangeHistoryEventsResponse, - SearchChangeHistoryEventsPagedResponse> - searchChangeHistoryEventsSettings() { - return searchChangeHistoryEventsSettings; - } - - /** Returns the object with the settings used for calls to createConversionEvent. */ - public UnaryCallSettings - createConversionEventSettings() { - return createConversionEventSettings; - } - - /** Returns the object with the settings used for calls to getConversionEvent. */ - public UnaryCallSettings - getConversionEventSettings() { - return getConversionEventSettings; - } - - /** Returns the object with the settings used for calls to deleteConversionEvent. */ - public UnaryCallSettings deleteConversionEventSettings() { - return deleteConversionEventSettings; - } - - /** Returns the object with the settings used for calls to listConversionEvents. */ - public PagedCallSettings< - ListConversionEventsRequest, - ListConversionEventsResponse, - ListConversionEventsPagedResponse> - listConversionEventsSettings() { - return listConversionEventsSettings; - } - - /** Returns the object with the settings used for calls to createCustomDimension. */ - public UnaryCallSettings - createCustomDimensionSettings() { - return createCustomDimensionSettings; - } - - /** Returns the object with the settings used for calls to updateCustomDimension. */ - public UnaryCallSettings - updateCustomDimensionSettings() { - return updateCustomDimensionSettings; - } - - /** Returns the object with the settings used for calls to listCustomDimensions. */ - public PagedCallSettings< - ListCustomDimensionsRequest, - ListCustomDimensionsResponse, - ListCustomDimensionsPagedResponse> - listCustomDimensionsSettings() { - return listCustomDimensionsSettings; - } - - /** Returns the object with the settings used for calls to archiveCustomDimension. */ - public UnaryCallSettings archiveCustomDimensionSettings() { - return archiveCustomDimensionSettings; - } - - /** Returns the object with the settings used for calls to getCustomDimension. */ - public UnaryCallSettings - getCustomDimensionSettings() { - return getCustomDimensionSettings; - } - - /** Returns the object with the settings used for calls to createCustomMetric. */ - public UnaryCallSettings createCustomMetricSettings() { - return createCustomMetricSettings; - } - - /** Returns the object with the settings used for calls to updateCustomMetric. */ - public UnaryCallSettings updateCustomMetricSettings() { - return updateCustomMetricSettings; - } - - /** Returns the object with the settings used for calls to listCustomMetrics. */ - public PagedCallSettings< - ListCustomMetricsRequest, ListCustomMetricsResponse, ListCustomMetricsPagedResponse> - listCustomMetricsSettings() { - return listCustomMetricsSettings; - } - - /** Returns the object with the settings used for calls to archiveCustomMetric. */ - public UnaryCallSettings archiveCustomMetricSettings() { - return archiveCustomMetricSettings; - } - - /** Returns the object with the settings used for calls to getCustomMetric. */ - public UnaryCallSettings getCustomMetricSettings() { - return getCustomMetricSettings; - } - - /** Returns the object with the settings used for calls to getDataRetentionSettings. */ - public UnaryCallSettings - getDataRetentionSettingsSettings() { - return getDataRetentionSettingsSettings; - } - - /** Returns the object with the settings used for calls to updateDataRetentionSettings. */ - public UnaryCallSettings - updateDataRetentionSettingsSettings() { - return updateDataRetentionSettingsSettings; - } - - /** Returns the object with the settings used for calls to createDataStream. */ - public UnaryCallSettings createDataStreamSettings() { - return createDataStreamSettings; - } - - /** Returns the object with the settings used for calls to deleteDataStream. */ - public UnaryCallSettings deleteDataStreamSettings() { - return deleteDataStreamSettings; - } - - /** Returns the object with the settings used for calls to updateDataStream. */ - public UnaryCallSettings updateDataStreamSettings() { - return updateDataStreamSettings; - } - - /** Returns the object with the settings used for calls to listDataStreams. */ - public PagedCallSettings< - ListDataStreamsRequest, ListDataStreamsResponse, ListDataStreamsPagedResponse> - listDataStreamsSettings() { - return listDataStreamsSettings; - } - - /** Returns the object with the settings used for calls to getDataStream. */ - public UnaryCallSettings getDataStreamSettings() { - return getDataStreamSettings; - } - - public AnalyticsAdminServiceStub createStub() throws IOException { - if (getTransportChannelProvider() - .getTransportName() - .equals(GrpcTransportChannel.getGrpcTransportName())) { - return GrpcAnalyticsAdminServiceStub.create(this); - } - if (getTransportChannelProvider() - .getTransportName() - .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { - return HttpJsonAnalyticsAdminServiceStub.create(this); - } - throw new UnsupportedOperationException( - String.format( - "Transport not supported: %s", getTransportChannelProvider().getTransportName())); - } - - /** Returns a builder for the default ExecutorProvider for this service. */ - public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { - return InstantiatingExecutorProvider.newBuilder(); - } - - /** Returns the default service endpoint. */ - public static String getDefaultEndpoint() { - return "analyticsadmin.googleapis.com:443"; - } - - /** Returns the default mTLS service endpoint. */ - public static String getDefaultMtlsEndpoint() { - return "analyticsadmin.mtls.googleapis.com:443"; - } - - /** Returns the default service scopes. */ - public static List getDefaultServiceScopes() { - return DEFAULT_SERVICE_SCOPES; - } - - /** Returns a builder for the default credentials for this service. */ - public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { - return GoogleCredentialsProvider.newBuilder() - .setScopesToApply(DEFAULT_SERVICE_SCOPES) - .setUseJwtAccessWithScope(true); - } - - /** Returns a builder for the default gRPC ChannelProvider for this service. */ - public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { - return InstantiatingGrpcChannelProvider.newBuilder() - .setMaxInboundMessageSize(Integer.MAX_VALUE); - } - - /** Returns a builder for the default REST ChannelProvider for this service. */ - @BetaApi - public static InstantiatingHttpJsonChannelProvider.Builder - defaultHttpJsonTransportProviderBuilder() { - return InstantiatingHttpJsonChannelProvider.newBuilder(); - } - - public static TransportChannelProvider defaultTransportChannelProvider() { - return defaultGrpcTransportProviderBuilder().build(); - } - - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { - return ApiClientHeaderProvider.newBuilder() - .setGeneratedLibToken( - "gapic", GaxProperties.getLibraryVersion(AnalyticsAdminServiceStubSettings.class)) - .setTransportToken( - GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); - } - - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { - return ApiClientHeaderProvider.newBuilder() - .setGeneratedLibToken( - "gapic", GaxProperties.getLibraryVersion(AnalyticsAdminServiceStubSettings.class)) - .setTransportToken( - GaxHttpJsonProperties.getHttpJsonTokenName(), - GaxHttpJsonProperties.getHttpJsonVersion()); - } - - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { - return AnalyticsAdminServiceStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); - } - - /** Returns a new gRPC builder for this class. */ - public static Builder newBuilder() { - return Builder.createDefault(); - } - - /** Returns a new REST builder for this class. */ - 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 AnalyticsAdminServiceStubSettings(Builder settingsBuilder) throws IOException { - super(settingsBuilder); - - getAccountSettings = settingsBuilder.getAccountSettings().build(); - listAccountsSettings = settingsBuilder.listAccountsSettings().build(); - deleteAccountSettings = settingsBuilder.deleteAccountSettings().build(); - updateAccountSettings = settingsBuilder.updateAccountSettings().build(); - provisionAccountTicketSettings = settingsBuilder.provisionAccountTicketSettings().build(); - listAccountSummariesSettings = settingsBuilder.listAccountSummariesSettings().build(); - getPropertySettings = settingsBuilder.getPropertySettings().build(); - listPropertiesSettings = settingsBuilder.listPropertiesSettings().build(); - createPropertySettings = settingsBuilder.createPropertySettings().build(); - deletePropertySettings = settingsBuilder.deletePropertySettings().build(); - updatePropertySettings = settingsBuilder.updatePropertySettings().build(); - createFirebaseLinkSettings = settingsBuilder.createFirebaseLinkSettings().build(); - deleteFirebaseLinkSettings = settingsBuilder.deleteFirebaseLinkSettings().build(); - listFirebaseLinksSettings = settingsBuilder.listFirebaseLinksSettings().build(); - createGoogleAdsLinkSettings = settingsBuilder.createGoogleAdsLinkSettings().build(); - updateGoogleAdsLinkSettings = settingsBuilder.updateGoogleAdsLinkSettings().build(); - deleteGoogleAdsLinkSettings = settingsBuilder.deleteGoogleAdsLinkSettings().build(); - listGoogleAdsLinksSettings = settingsBuilder.listGoogleAdsLinksSettings().build(); - getDataSharingSettingsSettings = settingsBuilder.getDataSharingSettingsSettings().build(); - getMeasurementProtocolSecretSettings = - settingsBuilder.getMeasurementProtocolSecretSettings().build(); - listMeasurementProtocolSecretsSettings = - settingsBuilder.listMeasurementProtocolSecretsSettings().build(); - createMeasurementProtocolSecretSettings = - settingsBuilder.createMeasurementProtocolSecretSettings().build(); - deleteMeasurementProtocolSecretSettings = - settingsBuilder.deleteMeasurementProtocolSecretSettings().build(); - updateMeasurementProtocolSecretSettings = - settingsBuilder.updateMeasurementProtocolSecretSettings().build(); - acknowledgeUserDataCollectionSettings = - settingsBuilder.acknowledgeUserDataCollectionSettings().build(); - searchChangeHistoryEventsSettings = settingsBuilder.searchChangeHistoryEventsSettings().build(); - createConversionEventSettings = settingsBuilder.createConversionEventSettings().build(); - getConversionEventSettings = settingsBuilder.getConversionEventSettings().build(); - deleteConversionEventSettings = settingsBuilder.deleteConversionEventSettings().build(); - listConversionEventsSettings = settingsBuilder.listConversionEventsSettings().build(); - createCustomDimensionSettings = settingsBuilder.createCustomDimensionSettings().build(); - updateCustomDimensionSettings = settingsBuilder.updateCustomDimensionSettings().build(); - listCustomDimensionsSettings = settingsBuilder.listCustomDimensionsSettings().build(); - archiveCustomDimensionSettings = settingsBuilder.archiveCustomDimensionSettings().build(); - getCustomDimensionSettings = settingsBuilder.getCustomDimensionSettings().build(); - createCustomMetricSettings = settingsBuilder.createCustomMetricSettings().build(); - updateCustomMetricSettings = settingsBuilder.updateCustomMetricSettings().build(); - listCustomMetricsSettings = settingsBuilder.listCustomMetricsSettings().build(); - archiveCustomMetricSettings = settingsBuilder.archiveCustomMetricSettings().build(); - getCustomMetricSettings = settingsBuilder.getCustomMetricSettings().build(); - getDataRetentionSettingsSettings = settingsBuilder.getDataRetentionSettingsSettings().build(); - updateDataRetentionSettingsSettings = - settingsBuilder.updateDataRetentionSettingsSettings().build(); - createDataStreamSettings = settingsBuilder.createDataStreamSettings().build(); - deleteDataStreamSettings = settingsBuilder.deleteDataStreamSettings().build(); - updateDataStreamSettings = settingsBuilder.updateDataStreamSettings().build(); - listDataStreamsSettings = settingsBuilder.listDataStreamsSettings().build(); - getDataStreamSettings = settingsBuilder.getDataStreamSettings().build(); - } - - /** Builder for AnalyticsAdminServiceStubSettings. */ - public static class Builder - extends StubSettings.Builder { - private final ImmutableList> unaryMethodSettingsBuilders; - private final UnaryCallSettings.Builder getAccountSettings; - private final PagedCallSettings.Builder< - ListAccountsRequest, ListAccountsResponse, ListAccountsPagedResponse> - listAccountsSettings; - private final UnaryCallSettings.Builder deleteAccountSettings; - private final UnaryCallSettings.Builder updateAccountSettings; - private final UnaryCallSettings.Builder< - ProvisionAccountTicketRequest, ProvisionAccountTicketResponse> - provisionAccountTicketSettings; - private final PagedCallSettings.Builder< - ListAccountSummariesRequest, - ListAccountSummariesResponse, - ListAccountSummariesPagedResponse> - listAccountSummariesSettings; - private final UnaryCallSettings.Builder getPropertySettings; - private final PagedCallSettings.Builder< - ListPropertiesRequest, ListPropertiesResponse, ListPropertiesPagedResponse> - listPropertiesSettings; - private final UnaryCallSettings.Builder createPropertySettings; - private final UnaryCallSettings.Builder deletePropertySettings; - private final UnaryCallSettings.Builder updatePropertySettings; - private final UnaryCallSettings.Builder - createFirebaseLinkSettings; - private final UnaryCallSettings.Builder - deleteFirebaseLinkSettings; - private final PagedCallSettings.Builder< - ListFirebaseLinksRequest, ListFirebaseLinksResponse, ListFirebaseLinksPagedResponse> - listFirebaseLinksSettings; - private final UnaryCallSettings.Builder - createGoogleAdsLinkSettings; - private final UnaryCallSettings.Builder - updateGoogleAdsLinkSettings; - private final UnaryCallSettings.Builder - deleteGoogleAdsLinkSettings; - private final PagedCallSettings.Builder< - ListGoogleAdsLinksRequest, ListGoogleAdsLinksResponse, ListGoogleAdsLinksPagedResponse> - listGoogleAdsLinksSettings; - private final UnaryCallSettings.Builder - getDataSharingSettingsSettings; - private final UnaryCallSettings.Builder< - GetMeasurementProtocolSecretRequest, MeasurementProtocolSecret> - getMeasurementProtocolSecretSettings; - private final PagedCallSettings.Builder< - ListMeasurementProtocolSecretsRequest, - ListMeasurementProtocolSecretsResponse, - ListMeasurementProtocolSecretsPagedResponse> - listMeasurementProtocolSecretsSettings; - private final UnaryCallSettings.Builder< - CreateMeasurementProtocolSecretRequest, MeasurementProtocolSecret> - createMeasurementProtocolSecretSettings; - private final UnaryCallSettings.Builder - deleteMeasurementProtocolSecretSettings; - private final UnaryCallSettings.Builder< - UpdateMeasurementProtocolSecretRequest, MeasurementProtocolSecret> - updateMeasurementProtocolSecretSettings; - private final UnaryCallSettings.Builder< - AcknowledgeUserDataCollectionRequest, AcknowledgeUserDataCollectionResponse> - acknowledgeUserDataCollectionSettings; - private final PagedCallSettings.Builder< - SearchChangeHistoryEventsRequest, - SearchChangeHistoryEventsResponse, - SearchChangeHistoryEventsPagedResponse> - searchChangeHistoryEventsSettings; - private final UnaryCallSettings.Builder - createConversionEventSettings; - private final UnaryCallSettings.Builder - getConversionEventSettings; - private final UnaryCallSettings.Builder - deleteConversionEventSettings; - private final PagedCallSettings.Builder< - ListConversionEventsRequest, - ListConversionEventsResponse, - ListConversionEventsPagedResponse> - listConversionEventsSettings; - private final UnaryCallSettings.Builder - createCustomDimensionSettings; - private final UnaryCallSettings.Builder - updateCustomDimensionSettings; - private final PagedCallSettings.Builder< - ListCustomDimensionsRequest, - ListCustomDimensionsResponse, - ListCustomDimensionsPagedResponse> - listCustomDimensionsSettings; - private final UnaryCallSettings.Builder - archiveCustomDimensionSettings; - private final UnaryCallSettings.Builder - getCustomDimensionSettings; - private final UnaryCallSettings.Builder - createCustomMetricSettings; - private final UnaryCallSettings.Builder - updateCustomMetricSettings; - private final PagedCallSettings.Builder< - ListCustomMetricsRequest, ListCustomMetricsResponse, ListCustomMetricsPagedResponse> - listCustomMetricsSettings; - private final UnaryCallSettings.Builder - archiveCustomMetricSettings; - private final UnaryCallSettings.Builder - getCustomMetricSettings; - private final UnaryCallSettings.Builder - getDataRetentionSettingsSettings; - private final UnaryCallSettings.Builder< - UpdateDataRetentionSettingsRequest, DataRetentionSettings> - updateDataRetentionSettingsSettings; - private final UnaryCallSettings.Builder - createDataStreamSettings; - private final UnaryCallSettings.Builder - deleteDataStreamSettings; - private final UnaryCallSettings.Builder - updateDataStreamSettings; - private final PagedCallSettings.Builder< - ListDataStreamsRequest, ListDataStreamsResponse, ListDataStreamsPagedResponse> - listDataStreamsSettings; - private final UnaryCallSettings.Builder getDataStreamSettings; - private static final ImmutableMap> - RETRYABLE_CODE_DEFINITIONS; - - static { - ImmutableMap.Builder> definitions = - ImmutableMap.builder(); - definitions.put( - "no_retry_1_codes", ImmutableSet.copyOf(Lists.newArrayList())); - definitions.put( - "retry_policy_0_codes", - ImmutableSet.copyOf( - Lists.newArrayList( - StatusCode.Code.UNAVAILABLE, StatusCode.Code.UNKNOWN))); - RETRYABLE_CODE_DEFINITIONS = definitions.build(); - } - - private static final ImmutableMap RETRY_PARAM_DEFINITIONS; - - static { - ImmutableMap.Builder definitions = ImmutableMap.builder(); - RetrySettings settings = null; - settings = - RetrySettings.newBuilder() - .setInitialRpcTimeout(Duration.ofMillis(60000L)) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ofMillis(60000L)) - .setTotalTimeout(Duration.ofMillis(60000L)) - .build(); - definitions.put("no_retry_1_params", settings); - settings = - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(1000L)) - .setRetryDelayMultiplier(1.3) - .setMaxRetryDelay(Duration.ofMillis(60000L)) - .setInitialRpcTimeout(Duration.ofMillis(60000L)) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ofMillis(60000L)) - .setTotalTimeout(Duration.ofMillis(60000L)) - .build(); - definitions.put("retry_policy_0_params", settings); - RETRY_PARAM_DEFINITIONS = definitions.build(); - } - - protected Builder() { - this(((ClientContext) null)); - } - - protected Builder(ClientContext clientContext) { - super(clientContext); - - getAccountSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - listAccountsSettings = PagedCallSettings.newBuilder(LIST_ACCOUNTS_PAGE_STR_FACT); - deleteAccountSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - updateAccountSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - provisionAccountTicketSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - listAccountSummariesSettings = - PagedCallSettings.newBuilder(LIST_ACCOUNT_SUMMARIES_PAGE_STR_FACT); - getPropertySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - listPropertiesSettings = PagedCallSettings.newBuilder(LIST_PROPERTIES_PAGE_STR_FACT); - createPropertySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - deletePropertySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - updatePropertySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - createFirebaseLinkSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - deleteFirebaseLinkSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - listFirebaseLinksSettings = PagedCallSettings.newBuilder(LIST_FIREBASE_LINKS_PAGE_STR_FACT); - createGoogleAdsLinkSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - updateGoogleAdsLinkSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - deleteGoogleAdsLinkSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - listGoogleAdsLinksSettings = - PagedCallSettings.newBuilder(LIST_GOOGLE_ADS_LINKS_PAGE_STR_FACT); - getDataSharingSettingsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - getMeasurementProtocolSecretSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - listMeasurementProtocolSecretsSettings = - PagedCallSettings.newBuilder(LIST_MEASUREMENT_PROTOCOL_SECRETS_PAGE_STR_FACT); - createMeasurementProtocolSecretSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - deleteMeasurementProtocolSecretSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - updateMeasurementProtocolSecretSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - acknowledgeUserDataCollectionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - searchChangeHistoryEventsSettings = - PagedCallSettings.newBuilder(SEARCH_CHANGE_HISTORY_EVENTS_PAGE_STR_FACT); - createConversionEventSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - getConversionEventSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - deleteConversionEventSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - listConversionEventsSettings = - PagedCallSettings.newBuilder(LIST_CONVERSION_EVENTS_PAGE_STR_FACT); - createCustomDimensionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - updateCustomDimensionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - listCustomDimensionsSettings = - PagedCallSettings.newBuilder(LIST_CUSTOM_DIMENSIONS_PAGE_STR_FACT); - archiveCustomDimensionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - getCustomDimensionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - createCustomMetricSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - updateCustomMetricSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - listCustomMetricsSettings = PagedCallSettings.newBuilder(LIST_CUSTOM_METRICS_PAGE_STR_FACT); - archiveCustomMetricSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - getCustomMetricSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - getDataRetentionSettingsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - updateDataRetentionSettingsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - createDataStreamSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - deleteDataStreamSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - updateDataStreamSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - listDataStreamsSettings = PagedCallSettings.newBuilder(LIST_DATA_STREAMS_PAGE_STR_FACT); - getDataStreamSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - - unaryMethodSettingsBuilders = - ImmutableList.>of( - getAccountSettings, - listAccountsSettings, - deleteAccountSettings, - updateAccountSettings, - provisionAccountTicketSettings, - listAccountSummariesSettings, - getPropertySettings, - listPropertiesSettings, - createPropertySettings, - deletePropertySettings, - updatePropertySettings, - createFirebaseLinkSettings, - deleteFirebaseLinkSettings, - listFirebaseLinksSettings, - createGoogleAdsLinkSettings, - updateGoogleAdsLinkSettings, - deleteGoogleAdsLinkSettings, - listGoogleAdsLinksSettings, - getDataSharingSettingsSettings, - getMeasurementProtocolSecretSettings, - listMeasurementProtocolSecretsSettings, - createMeasurementProtocolSecretSettings, - deleteMeasurementProtocolSecretSettings, - updateMeasurementProtocolSecretSettings, - acknowledgeUserDataCollectionSettings, - searchChangeHistoryEventsSettings, - createConversionEventSettings, - getConversionEventSettings, - deleteConversionEventSettings, - listConversionEventsSettings, - createCustomDimensionSettings, - updateCustomDimensionSettings, - listCustomDimensionsSettings, - archiveCustomDimensionSettings, - getCustomDimensionSettings, - createCustomMetricSettings, - updateCustomMetricSettings, - listCustomMetricsSettings, - archiveCustomMetricSettings, - getCustomMetricSettings, - getDataRetentionSettingsSettings, - updateDataRetentionSettingsSettings, - createDataStreamSettings, - deleteDataStreamSettings, - updateDataStreamSettings, - listDataStreamsSettings, - getDataStreamSettings); - initDefaults(this); - } - - protected Builder(AnalyticsAdminServiceStubSettings settings) { - super(settings); - - getAccountSettings = settings.getAccountSettings.toBuilder(); - listAccountsSettings = settings.listAccountsSettings.toBuilder(); - deleteAccountSettings = settings.deleteAccountSettings.toBuilder(); - updateAccountSettings = settings.updateAccountSettings.toBuilder(); - provisionAccountTicketSettings = settings.provisionAccountTicketSettings.toBuilder(); - listAccountSummariesSettings = settings.listAccountSummariesSettings.toBuilder(); - getPropertySettings = settings.getPropertySettings.toBuilder(); - listPropertiesSettings = settings.listPropertiesSettings.toBuilder(); - createPropertySettings = settings.createPropertySettings.toBuilder(); - deletePropertySettings = settings.deletePropertySettings.toBuilder(); - updatePropertySettings = settings.updatePropertySettings.toBuilder(); - createFirebaseLinkSettings = settings.createFirebaseLinkSettings.toBuilder(); - deleteFirebaseLinkSettings = settings.deleteFirebaseLinkSettings.toBuilder(); - listFirebaseLinksSettings = settings.listFirebaseLinksSettings.toBuilder(); - createGoogleAdsLinkSettings = settings.createGoogleAdsLinkSettings.toBuilder(); - updateGoogleAdsLinkSettings = settings.updateGoogleAdsLinkSettings.toBuilder(); - deleteGoogleAdsLinkSettings = settings.deleteGoogleAdsLinkSettings.toBuilder(); - listGoogleAdsLinksSettings = settings.listGoogleAdsLinksSettings.toBuilder(); - getDataSharingSettingsSettings = settings.getDataSharingSettingsSettings.toBuilder(); - getMeasurementProtocolSecretSettings = - settings.getMeasurementProtocolSecretSettings.toBuilder(); - listMeasurementProtocolSecretsSettings = - settings.listMeasurementProtocolSecretsSettings.toBuilder(); - createMeasurementProtocolSecretSettings = - settings.createMeasurementProtocolSecretSettings.toBuilder(); - deleteMeasurementProtocolSecretSettings = - settings.deleteMeasurementProtocolSecretSettings.toBuilder(); - updateMeasurementProtocolSecretSettings = - settings.updateMeasurementProtocolSecretSettings.toBuilder(); - acknowledgeUserDataCollectionSettings = - settings.acknowledgeUserDataCollectionSettings.toBuilder(); - searchChangeHistoryEventsSettings = settings.searchChangeHistoryEventsSettings.toBuilder(); - createConversionEventSettings = settings.createConversionEventSettings.toBuilder(); - getConversionEventSettings = settings.getConversionEventSettings.toBuilder(); - deleteConversionEventSettings = settings.deleteConversionEventSettings.toBuilder(); - listConversionEventsSettings = settings.listConversionEventsSettings.toBuilder(); - createCustomDimensionSettings = settings.createCustomDimensionSettings.toBuilder(); - updateCustomDimensionSettings = settings.updateCustomDimensionSettings.toBuilder(); - listCustomDimensionsSettings = settings.listCustomDimensionsSettings.toBuilder(); - archiveCustomDimensionSettings = settings.archiveCustomDimensionSettings.toBuilder(); - getCustomDimensionSettings = settings.getCustomDimensionSettings.toBuilder(); - createCustomMetricSettings = settings.createCustomMetricSettings.toBuilder(); - updateCustomMetricSettings = settings.updateCustomMetricSettings.toBuilder(); - listCustomMetricsSettings = settings.listCustomMetricsSettings.toBuilder(); - archiveCustomMetricSettings = settings.archiveCustomMetricSettings.toBuilder(); - getCustomMetricSettings = settings.getCustomMetricSettings.toBuilder(); - getDataRetentionSettingsSettings = settings.getDataRetentionSettingsSettings.toBuilder(); - updateDataRetentionSettingsSettings = - settings.updateDataRetentionSettingsSettings.toBuilder(); - createDataStreamSettings = settings.createDataStreamSettings.toBuilder(); - deleteDataStreamSettings = settings.deleteDataStreamSettings.toBuilder(); - updateDataStreamSettings = settings.updateDataStreamSettings.toBuilder(); - listDataStreamsSettings = settings.listDataStreamsSettings.toBuilder(); - getDataStreamSettings = settings.getDataStreamSettings.toBuilder(); - - unaryMethodSettingsBuilders = - ImmutableList.>of( - getAccountSettings, - listAccountsSettings, - deleteAccountSettings, - updateAccountSettings, - provisionAccountTicketSettings, - listAccountSummariesSettings, - getPropertySettings, - listPropertiesSettings, - createPropertySettings, - deletePropertySettings, - updatePropertySettings, - createFirebaseLinkSettings, - deleteFirebaseLinkSettings, - listFirebaseLinksSettings, - createGoogleAdsLinkSettings, - updateGoogleAdsLinkSettings, - deleteGoogleAdsLinkSettings, - listGoogleAdsLinksSettings, - getDataSharingSettingsSettings, - getMeasurementProtocolSecretSettings, - listMeasurementProtocolSecretsSettings, - createMeasurementProtocolSecretSettings, - deleteMeasurementProtocolSecretSettings, - updateMeasurementProtocolSecretSettings, - acknowledgeUserDataCollectionSettings, - searchChangeHistoryEventsSettings, - createConversionEventSettings, - getConversionEventSettings, - deleteConversionEventSettings, - listConversionEventsSettings, - createCustomDimensionSettings, - updateCustomDimensionSettings, - listCustomDimensionsSettings, - archiveCustomDimensionSettings, - getCustomDimensionSettings, - createCustomMetricSettings, - updateCustomMetricSettings, - listCustomMetricsSettings, - archiveCustomMetricSettings, - getCustomMetricSettings, - getDataRetentionSettingsSettings, - updateDataRetentionSettingsSettings, - createDataStreamSettings, - deleteDataStreamSettings, - updateDataStreamSettings, - listDataStreamsSettings, - getDataStreamSettings); - } - - private static Builder createDefault() { - Builder builder = new Builder(((ClientContext) null)); - - builder.setTransportChannelProvider(defaultTransportChannelProvider()); - builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); - builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); - builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); - builder.setSwitchToMtlsEndpointAllowed(true); - - return initDefaults(builder); - } - - private static Builder createHttpJsonDefault() { - Builder builder = new Builder(((ClientContext) null)); - - builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); - builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); - builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); - builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); - builder.setSwitchToMtlsEndpointAllowed(true); - - return initDefaults(builder); - } - - private static Builder initDefaults(Builder builder) { - builder - .getAccountSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .listAccountsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .deleteAccountSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .updateAccountSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .provisionAccountTicketSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .listAccountSummariesSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .getPropertySettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .listPropertiesSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .createPropertySettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .deletePropertySettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .updatePropertySettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .createFirebaseLinkSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .deleteFirebaseLinkSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .listFirebaseLinksSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .createGoogleAdsLinkSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .updateGoogleAdsLinkSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .deleteGoogleAdsLinkSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .listGoogleAdsLinksSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .getDataSharingSettingsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .getMeasurementProtocolSecretSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .listMeasurementProtocolSecretsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .createMeasurementProtocolSecretSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .deleteMeasurementProtocolSecretSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .updateMeasurementProtocolSecretSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .acknowledgeUserDataCollectionSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .searchChangeHistoryEventsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .createConversionEventSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .getConversionEventSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .deleteConversionEventSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .listConversionEventsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .createCustomDimensionSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .updateCustomDimensionSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .listCustomDimensionsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .archiveCustomDimensionSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .getCustomDimensionSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .createCustomMetricSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .updateCustomMetricSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .listCustomMetricsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .archiveCustomMetricSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .getCustomMetricSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .getDataRetentionSettingsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .updateDataRetentionSettingsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .createDataStreamSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .deleteDataStreamSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .updateDataStreamSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .listDataStreamsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .getDataStreamSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - return builder; - } - - /** - * 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(unaryMethodSettingsBuilders, settingsUpdater); - return this; - } - - public ImmutableList> unaryMethodSettingsBuilders() { - return unaryMethodSettingsBuilders; - } - - /** Returns the builder for the settings used for calls to getAccount. */ - public UnaryCallSettings.Builder getAccountSettings() { - return getAccountSettings; - } - - /** Returns the builder for the settings used for calls to listAccounts. */ - public PagedCallSettings.Builder< - ListAccountsRequest, ListAccountsResponse, ListAccountsPagedResponse> - listAccountsSettings() { - return listAccountsSettings; - } - - /** Returns the builder for the settings used for calls to deleteAccount. */ - public UnaryCallSettings.Builder deleteAccountSettings() { - return deleteAccountSettings; - } - - /** Returns the builder for the settings used for calls to updateAccount. */ - public UnaryCallSettings.Builder updateAccountSettings() { - return updateAccountSettings; - } - - /** Returns the builder for the settings used for calls to provisionAccountTicket. */ - public UnaryCallSettings.Builder - provisionAccountTicketSettings() { - return provisionAccountTicketSettings; - } - - /** Returns the builder for the settings used for calls to listAccountSummaries. */ - public PagedCallSettings.Builder< - ListAccountSummariesRequest, - ListAccountSummariesResponse, - ListAccountSummariesPagedResponse> - listAccountSummariesSettings() { - return listAccountSummariesSettings; - } - - /** Returns the builder for the settings used for calls to getProperty. */ - public UnaryCallSettings.Builder getPropertySettings() { - return getPropertySettings; - } - - /** Returns the builder for the settings used for calls to listProperties. */ - public PagedCallSettings.Builder< - ListPropertiesRequest, ListPropertiesResponse, ListPropertiesPagedResponse> - listPropertiesSettings() { - return listPropertiesSettings; - } - - /** Returns the builder for the settings used for calls to createProperty. */ - public UnaryCallSettings.Builder createPropertySettings() { - return createPropertySettings; - } - - /** Returns the builder for the settings used for calls to deleteProperty. */ - public UnaryCallSettings.Builder deletePropertySettings() { - return deletePropertySettings; - } - - /** Returns the builder for the settings used for calls to updateProperty. */ - public UnaryCallSettings.Builder updatePropertySettings() { - return updatePropertySettings; - } - - /** Returns the builder for the settings used for calls to createFirebaseLink. */ - public UnaryCallSettings.Builder - createFirebaseLinkSettings() { - return createFirebaseLinkSettings; - } - - /** Returns the builder for the settings used for calls to deleteFirebaseLink. */ - public UnaryCallSettings.Builder - deleteFirebaseLinkSettings() { - return deleteFirebaseLinkSettings; - } - - /** Returns the builder for the settings used for calls to listFirebaseLinks. */ - public PagedCallSettings.Builder< - ListFirebaseLinksRequest, ListFirebaseLinksResponse, ListFirebaseLinksPagedResponse> - listFirebaseLinksSettings() { - return listFirebaseLinksSettings; - } - - /** Returns the builder for the settings used for calls to createGoogleAdsLink. */ - public UnaryCallSettings.Builder - createGoogleAdsLinkSettings() { - return createGoogleAdsLinkSettings; - } - - /** Returns the builder for the settings used for calls to updateGoogleAdsLink. */ - public UnaryCallSettings.Builder - updateGoogleAdsLinkSettings() { - return updateGoogleAdsLinkSettings; - } - - /** Returns the builder for the settings used for calls to deleteGoogleAdsLink. */ - public UnaryCallSettings.Builder - deleteGoogleAdsLinkSettings() { - return deleteGoogleAdsLinkSettings; - } - - /** Returns the builder for the settings used for calls to listGoogleAdsLinks. */ - public PagedCallSettings.Builder< - ListGoogleAdsLinksRequest, ListGoogleAdsLinksResponse, ListGoogleAdsLinksPagedResponse> - listGoogleAdsLinksSettings() { - return listGoogleAdsLinksSettings; - } - - /** Returns the builder for the settings used for calls to getDataSharingSettings. */ - public UnaryCallSettings.Builder - getDataSharingSettingsSettings() { - return getDataSharingSettingsSettings; - } - - /** Returns the builder for the settings used for calls to getMeasurementProtocolSecret. */ - public UnaryCallSettings.Builder - getMeasurementProtocolSecretSettings() { - return getMeasurementProtocolSecretSettings; - } - - /** Returns the builder for the settings used for calls to listMeasurementProtocolSecrets. */ - public PagedCallSettings.Builder< - ListMeasurementProtocolSecretsRequest, - ListMeasurementProtocolSecretsResponse, - ListMeasurementProtocolSecretsPagedResponse> - listMeasurementProtocolSecretsSettings() { - return listMeasurementProtocolSecretsSettings; - } - - /** Returns the builder for the settings used for calls to createMeasurementProtocolSecret. */ - public UnaryCallSettings.Builder< - CreateMeasurementProtocolSecretRequest, MeasurementProtocolSecret> - createMeasurementProtocolSecretSettings() { - return createMeasurementProtocolSecretSettings; - } - - /** Returns the builder for the settings used for calls to deleteMeasurementProtocolSecret. */ - public UnaryCallSettings.Builder - deleteMeasurementProtocolSecretSettings() { - return deleteMeasurementProtocolSecretSettings; - } - - /** Returns the builder for the settings used for calls to updateMeasurementProtocolSecret. */ - public UnaryCallSettings.Builder< - UpdateMeasurementProtocolSecretRequest, MeasurementProtocolSecret> - updateMeasurementProtocolSecretSettings() { - return updateMeasurementProtocolSecretSettings; - } - - /** Returns the builder for the settings used for calls to acknowledgeUserDataCollection. */ - public UnaryCallSettings.Builder< - AcknowledgeUserDataCollectionRequest, AcknowledgeUserDataCollectionResponse> - acknowledgeUserDataCollectionSettings() { - return acknowledgeUserDataCollectionSettings; - } - - /** Returns the builder for the settings used for calls to searchChangeHistoryEvents. */ - public PagedCallSettings.Builder< - SearchChangeHistoryEventsRequest, - SearchChangeHistoryEventsResponse, - SearchChangeHistoryEventsPagedResponse> - searchChangeHistoryEventsSettings() { - return searchChangeHistoryEventsSettings; - } - - /** Returns the builder for the settings used for calls to createConversionEvent. */ - public UnaryCallSettings.Builder - createConversionEventSettings() { - return createConversionEventSettings; - } - - /** Returns the builder for the settings used for calls to getConversionEvent. */ - public UnaryCallSettings.Builder - getConversionEventSettings() { - return getConversionEventSettings; - } - - /** Returns the builder for the settings used for calls to deleteConversionEvent. */ - public UnaryCallSettings.Builder - deleteConversionEventSettings() { - return deleteConversionEventSettings; - } - - /** Returns the builder for the settings used for calls to listConversionEvents. */ - public PagedCallSettings.Builder< - ListConversionEventsRequest, - ListConversionEventsResponse, - ListConversionEventsPagedResponse> - listConversionEventsSettings() { - return listConversionEventsSettings; - } - - /** Returns the builder for the settings used for calls to createCustomDimension. */ - public UnaryCallSettings.Builder - createCustomDimensionSettings() { - return createCustomDimensionSettings; - } - - /** Returns the builder for the settings used for calls to updateCustomDimension. */ - public UnaryCallSettings.Builder - updateCustomDimensionSettings() { - return updateCustomDimensionSettings; - } - - /** Returns the builder for the settings used for calls to listCustomDimensions. */ - public PagedCallSettings.Builder< - ListCustomDimensionsRequest, - ListCustomDimensionsResponse, - ListCustomDimensionsPagedResponse> - listCustomDimensionsSettings() { - return listCustomDimensionsSettings; - } - - /** Returns the builder for the settings used for calls to archiveCustomDimension. */ - public UnaryCallSettings.Builder - archiveCustomDimensionSettings() { - return archiveCustomDimensionSettings; - } - - /** Returns the builder for the settings used for calls to getCustomDimension. */ - public UnaryCallSettings.Builder - getCustomDimensionSettings() { - return getCustomDimensionSettings; - } - - /** Returns the builder for the settings used for calls to createCustomMetric. */ - public UnaryCallSettings.Builder - createCustomMetricSettings() { - return createCustomMetricSettings; - } - - /** Returns the builder for the settings used for calls to updateCustomMetric. */ - public UnaryCallSettings.Builder - updateCustomMetricSettings() { - return updateCustomMetricSettings; - } - - /** Returns the builder for the settings used for calls to listCustomMetrics. */ - public PagedCallSettings.Builder< - ListCustomMetricsRequest, ListCustomMetricsResponse, ListCustomMetricsPagedResponse> - listCustomMetricsSettings() { - return listCustomMetricsSettings; - } - - /** Returns the builder for the settings used for calls to archiveCustomMetric. */ - public UnaryCallSettings.Builder - archiveCustomMetricSettings() { - return archiveCustomMetricSettings; - } - - /** Returns the builder for the settings used for calls to getCustomMetric. */ - public UnaryCallSettings.Builder - getCustomMetricSettings() { - return getCustomMetricSettings; - } - - /** Returns the builder for the settings used for calls to getDataRetentionSettings. */ - public UnaryCallSettings.Builder - getDataRetentionSettingsSettings() { - return getDataRetentionSettingsSettings; - } - - /** Returns the builder for the settings used for calls to updateDataRetentionSettings. */ - public UnaryCallSettings.Builder - updateDataRetentionSettingsSettings() { - return updateDataRetentionSettingsSettings; - } - - /** Returns the builder for the settings used for calls to createDataStream. */ - public UnaryCallSettings.Builder - createDataStreamSettings() { - return createDataStreamSettings; - } - - /** Returns the builder for the settings used for calls to deleteDataStream. */ - public UnaryCallSettings.Builder deleteDataStreamSettings() { - return deleteDataStreamSettings; - } - - /** Returns the builder for the settings used for calls to updateDataStream. */ - public UnaryCallSettings.Builder - updateDataStreamSettings() { - return updateDataStreamSettings; - } - - /** Returns the builder for the settings used for calls to listDataStreams. */ - public PagedCallSettings.Builder< - ListDataStreamsRequest, ListDataStreamsResponse, ListDataStreamsPagedResponse> - listDataStreamsSettings() { - return listDataStreamsSettings; - } - - /** Returns the builder for the settings used for calls to getDataStream. */ - public UnaryCallSettings.Builder getDataStreamSettings() { - return getDataStreamSettings; - } - - @Override - public AnalyticsAdminServiceStubSettings build() throws IOException { - return new AnalyticsAdminServiceStubSettings(this); - } - } -} diff --git a/google-analytics-admin/src/main/java/com/google/analytics/admin/v1beta/stub/GrpcAnalyticsAdminServiceCallableFactory.java b/google-analytics-admin/src/main/java/com/google/analytics/admin/v1beta/stub/GrpcAnalyticsAdminServiceCallableFactory.java deleted file mode 100644 index a852df02..00000000 --- a/google-analytics-admin/src/main/java/com/google/analytics/admin/v1beta/stub/GrpcAnalyticsAdminServiceCallableFactory.java +++ /dev/null @@ -1,115 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 com.google.api.core.BetaApi; -import com.google.api.gax.grpc.GrpcCallSettings; -import com.google.api.gax.grpc.GrpcCallableFactory; -import com.google.api.gax.grpc.GrpcStubCallableFactory; -import com.google.api.gax.rpc.BatchingCallSettings; -import com.google.api.gax.rpc.BidiStreamingCallable; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.ClientStreamingCallable; -import com.google.api.gax.rpc.OperationCallSettings; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.ServerStreamingCallSettings; -import com.google.api.gax.rpc.ServerStreamingCallable; -import com.google.api.gax.rpc.StreamingCallSettings; -import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.longrunning.Operation; -import com.google.longrunning.stub.OperationsStub; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * gRPC callable factory implementation for the AnalyticsAdminService service API. - * - *

This class is for advanced usage. - */ -@BetaApi -@Generated("by gapic-generator-java") -public class GrpcAnalyticsAdminServiceCallableFactory implements GrpcStubCallableFactory { - - @Override - public UnaryCallable createUnaryCallable( - GrpcCallSettings grpcCallSettings, - UnaryCallSettings callSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); - } - - @Override - public - UnaryCallable createPagedCallable( - GrpcCallSettings grpcCallSettings, - PagedCallSettings callSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext); - } - - @Override - public UnaryCallable createBatchingCallable( - GrpcCallSettings grpcCallSettings, - BatchingCallSettings callSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createBatchingCallable( - grpcCallSettings, callSettings, clientContext); - } - - @Override - public - OperationCallable createOperationCallable( - GrpcCallSettings grpcCallSettings, - OperationCallSettings callSettings, - ClientContext clientContext, - OperationsStub operationsStub) { - return GrpcCallableFactory.createOperationCallable( - grpcCallSettings, callSettings, clientContext, operationsStub); - } - - @Override - public - BidiStreamingCallable createBidiStreamingCallable( - GrpcCallSettings grpcCallSettings, - StreamingCallSettings callSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createBidiStreamingCallable( - grpcCallSettings, callSettings, clientContext); - } - - @Override - public - ServerStreamingCallable createServerStreamingCallable( - GrpcCallSettings grpcCallSettings, - ServerStreamingCallSettings callSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createServerStreamingCallable( - grpcCallSettings, callSettings, clientContext); - } - - @Override - public - ClientStreamingCallable createClientStreamingCallable( - GrpcCallSettings grpcCallSettings, - StreamingCallSettings callSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createClientStreamingCallable( - grpcCallSettings, callSettings, clientContext); - } -} diff --git a/google-analytics-admin/src/main/java/com/google/analytics/admin/v1beta/stub/GrpcAnalyticsAdminServiceStub.java b/google-analytics-admin/src/main/java/com/google/analytics/admin/v1beta/stub/GrpcAnalyticsAdminServiceStub.java deleted file mode 100644 index 47f57631..00000000 --- a/google-analytics-admin/src/main/java/com/google/analytics/admin/v1beta/stub/GrpcAnalyticsAdminServiceStub.java +++ /dev/null @@ -1,1920 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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.SearchChangeHistoryEventsRequest; -import com.google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse; -import com.google.analytics.admin.v1beta.UpdateAccountRequest; -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.UnaryCallable; -import com.google.common.collect.ImmutableMap; -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 - 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 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 - 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 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 -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings listAccountsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(listAccountsMethodDescriptor) - .build(); - GrpcCallSettings deleteAccountTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deleteAccountMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings updateAccountTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(updateAccountMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("account.name", String.valueOf(request.getAccount().getName())); - return params.build(); - }) - .build(); - GrpcCallSettings - provisionAccountTicketTransportSettings = - GrpcCallSettings - .newBuilder() - .setMethodDescriptor(provisionAccountTicketMethodDescriptor) - .build(); - GrpcCallSettings - listAccountSummariesTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(listAccountSummariesMethodDescriptor) - .build(); - GrpcCallSettings getPropertyTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getPropertyMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings - listPropertiesTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(listPropertiesMethodDescriptor) - .build(); - GrpcCallSettings createPropertyTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createPropertyMethodDescriptor) - .build(); - GrpcCallSettings deletePropertyTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deletePropertyMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings updatePropertyTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(updatePropertyMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("property.name", String.valueOf(request.getProperty().getName())); - return params.build(); - }) - .build(); - GrpcCallSettings createFirebaseLinkTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createFirebaseLinkMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - }) - .build(); - GrpcCallSettings deleteFirebaseLinkTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deleteFirebaseLinkMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings - listFirebaseLinksTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(listFirebaseLinksMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - }) - .build(); - GrpcCallSettings - createGoogleAdsLinkTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createGoogleAdsLinkMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - }) - .build(); - GrpcCallSettings - updateGoogleAdsLinkTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(updateGoogleAdsLinkMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put( - "google_ads_link.name", - String.valueOf(request.getGoogleAdsLink().getName())); - return params.build(); - }) - .build(); - GrpcCallSettings deleteGoogleAdsLinkTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deleteGoogleAdsLinkMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings - listGoogleAdsLinksTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(listGoogleAdsLinksMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - }) - .build(); - GrpcCallSettings - getDataSharingSettingsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getDataSharingSettingsMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings - getMeasurementProtocolSecretTransportSettings = - GrpcCallSettings - .newBuilder() - .setMethodDescriptor(getMeasurementProtocolSecretMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings - listMeasurementProtocolSecretsTransportSettings = - GrpcCallSettings - . - newBuilder() - .setMethodDescriptor(listMeasurementProtocolSecretsMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - }) - .build(); - GrpcCallSettings - createMeasurementProtocolSecretTransportSettings = - GrpcCallSettings - .newBuilder() - .setMethodDescriptor(createMeasurementProtocolSecretMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - }) - .build(); - GrpcCallSettings - deleteMeasurementProtocolSecretTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deleteMeasurementProtocolSecretMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings - updateMeasurementProtocolSecretTransportSettings = - GrpcCallSettings - .newBuilder() - .setMethodDescriptor(updateMeasurementProtocolSecretMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put( - "measurement_protocol_secret.name", - String.valueOf(request.getMeasurementProtocolSecret().getName())); - return params.build(); - }) - .build(); - GrpcCallSettings - acknowledgeUserDataCollectionTransportSettings = - GrpcCallSettings - . - newBuilder() - .setMethodDescriptor(acknowledgeUserDataCollectionMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("property", String.valueOf(request.getProperty())); - return params.build(); - }) - .build(); - GrpcCallSettings - searchChangeHistoryEventsTransportSettings = - GrpcCallSettings - .newBuilder() - .setMethodDescriptor(searchChangeHistoryEventsMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("account", String.valueOf(request.getAccount())); - return params.build(); - }) - .build(); - GrpcCallSettings - createConversionEventTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createConversionEventMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - }) - .build(); - GrpcCallSettings - getConversionEventTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getConversionEventMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings deleteConversionEventTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deleteConversionEventMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings - listConversionEventsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(listConversionEventsMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - }) - .build(); - GrpcCallSettings - createCustomDimensionTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createCustomDimensionMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - }) - .build(); - GrpcCallSettings - updateCustomDimensionTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(updateCustomDimensionMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put( - "custom_dimension.name", - String.valueOf(request.getCustomDimension().getName())); - return params.build(); - }) - .build(); - GrpcCallSettings - listCustomDimensionsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(listCustomDimensionsMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - }) - .build(); - GrpcCallSettings archiveCustomDimensionTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(archiveCustomDimensionMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings - getCustomDimensionTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getCustomDimensionMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings createCustomMetricTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createCustomMetricMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - }) - .build(); - GrpcCallSettings updateCustomMetricTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(updateCustomMetricMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put( - "custom_metric.name", String.valueOf(request.getCustomMetric().getName())); - return params.build(); - }) - .build(); - GrpcCallSettings - listCustomMetricsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(listCustomMetricsMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - }) - .build(); - GrpcCallSettings archiveCustomMetricTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(archiveCustomMetricMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings getCustomMetricTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getCustomMetricMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings - getDataRetentionSettingsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getDataRetentionSettingsMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings - updateDataRetentionSettingsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(updateDataRetentionSettingsMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put( - "data_retention_settings.name", - String.valueOf(request.getDataRetentionSettings().getName())); - return params.build(); - }) - .build(); - GrpcCallSettings createDataStreamTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createDataStreamMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - }) - .build(); - GrpcCallSettings deleteDataStreamTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deleteDataStreamMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings updateDataStreamTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(updateDataStreamMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("data_stream.name", String.valueOf(request.getDataStream().getName())); - return params.build(); - }) - .build(); - GrpcCallSettings - listDataStreamsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(listDataStreamsMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - }) - .build(); - GrpcCallSettings getDataStreamTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getDataStreamMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - - this.getAccountCallable = - callableFactory.createUnaryCallable( - 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.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.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 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 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/google-analytics-admin/src/main/java/com/google/analytics/admin/v1beta/stub/HttpJsonAnalyticsAdminServiceCallableFactory.java b/google-analytics-admin/src/main/java/com/google/analytics/admin/v1beta/stub/HttpJsonAnalyticsAdminServiceCallableFactory.java deleted file mode 100644 index b4534a4d..00000000 --- a/google-analytics-admin/src/main/java/com/google/analytics/admin/v1beta/stub/HttpJsonAnalyticsAdminServiceCallableFactory.java +++ /dev/null @@ -1,105 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 com.google.api.core.BetaApi; -import com.google.api.gax.httpjson.HttpJsonCallSettings; -import com.google.api.gax.httpjson.HttpJsonCallableFactory; -import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; -import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; -import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; -import com.google.api.gax.rpc.BatchingCallSettings; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.OperationCallSettings; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.ServerStreamingCallSettings; -import com.google.api.gax.rpc.ServerStreamingCallable; -import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.longrunning.Operation; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * REST callable factory implementation for the AnalyticsAdminService service API. - * - *

This class is for advanced usage. - */ -@BetaApi -@Generated("by gapic-generator-java") -public class HttpJsonAnalyticsAdminServiceCallableFactory - implements HttpJsonStubCallableFactory { - - @Override - public UnaryCallable createUnaryCallable( - HttpJsonCallSettings httpJsonCallSettings, - UnaryCallSettings callSettings, - ClientContext clientContext) { - return HttpJsonCallableFactory.createUnaryCallable( - httpJsonCallSettings, callSettings, clientContext); - } - - @Override - public - UnaryCallable createPagedCallable( - HttpJsonCallSettings httpJsonCallSettings, - PagedCallSettings callSettings, - ClientContext clientContext) { - return HttpJsonCallableFactory.createPagedCallable( - httpJsonCallSettings, callSettings, clientContext); - } - - @Override - public UnaryCallable createBatchingCallable( - HttpJsonCallSettings httpJsonCallSettings, - BatchingCallSettings callSettings, - ClientContext clientContext) { - return HttpJsonCallableFactory.createBatchingCallable( - httpJsonCallSettings, callSettings, clientContext); - } - - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - @Override - public - OperationCallable createOperationCallable( - HttpJsonCallSettings httpJsonCallSettings, - OperationCallSettings callSettings, - ClientContext clientContext, - OperationsStub operationsStub) { - UnaryCallable innerCallable = - HttpJsonCallableFactory.createBaseUnaryCallable( - httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); - HttpJsonOperationSnapshotCallable initialCallable = - new HttpJsonOperationSnapshotCallable( - innerCallable, - httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); - return HttpJsonCallableFactory.createOperationCallable( - callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); - } - - @Override - public - ServerStreamingCallable createServerStreamingCallable( - HttpJsonCallSettings httpJsonCallSettings, - ServerStreamingCallSettings callSettings, - ClientContext clientContext) { - return HttpJsonCallableFactory.createServerStreamingCallable( - httpJsonCallSettings, callSettings, clientContext); - } -} diff --git a/google-analytics-admin/src/main/java/com/google/analytics/admin/v1beta/stub/HttpJsonAnalyticsAdminServiceStub.java b/google-analytics-admin/src/main/java/com/google/analytics/admin/v1beta/stub/HttpJsonAnalyticsAdminServiceStub.java deleted file mode 100644 index 10533f08..00000000 --- a/google-analytics-admin/src/main/java/com/google/analytics/admin/v1beta/stub/HttpJsonAnalyticsAdminServiceStub.java +++ /dev/null @@ -1,2964 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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.SearchChangeHistoryEventsRequest; -import com.google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse; -import com.google.analytics.admin.v1beta.UpdateAccountRequest; -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.core.InternalApi; -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.core.BackgroundResourceAggregation; -import com.google.api.gax.httpjson.ApiMethodDescriptor; -import com.google.api.gax.httpjson.HttpJsonCallSettings; -import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; -import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; -import com.google.api.gax.httpjson.ProtoMessageResponseParser; -import com.google.api.gax.httpjson.ProtoRestSerializer; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.protobuf.Empty; -import com.google.protobuf.TypeRegistry; -import java.io.IOException; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.concurrent.TimeUnit; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * REST 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 HttpJsonAnalyticsAdminServiceStub extends AnalyticsAdminServiceStub { - private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); - - private static final ApiMethodDescriptor getAccountMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.analytics.admin.v1beta.AnalyticsAdminService/GetAccount") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1beta/{name=accounts/*}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Account.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - listAccountsMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.analytics.admin.v1beta.AnalyticsAdminService/ListAccounts") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1beta/accounts", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "pageSize", request.getPageSize()); - serializer.putQueryParam(fields, "pageToken", request.getPageToken()); - serializer.putQueryParam( - fields, "showDeleted", request.getShowDeleted()); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(ListAccountsResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - deleteAccountMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.analytics.admin.v1beta.AnalyticsAdminService/DeleteAccount") - .setHttpMethod("DELETE") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1beta/{name=accounts/*}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Empty.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - updateAccountMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.analytics.admin.v1beta.AnalyticsAdminService/UpdateAccount") - .setHttpMethod("PATCH") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1beta/{account.name=accounts/*}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam( - fields, "account.name", request.getAccount().getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("account", request.getAccount(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Account.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor< - ProvisionAccountTicketRequest, ProvisionAccountTicketResponse> - provisionAccountTicketMethodDescriptor = - ApiMethodDescriptor - .newBuilder() - .setFullMethodName( - "google.analytics.admin.v1beta.AnalyticsAdminService/ProvisionAccountTicket") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1beta/accounts:provisionAccountTicket", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().build(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(ProvisionAccountTicketResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor< - ListAccountSummariesRequest, ListAccountSummariesResponse> - listAccountSummariesMethodDescriptor = - ApiMethodDescriptor - .newBuilder() - .setFullMethodName( - "google.analytics.admin.v1beta.AnalyticsAdminService/ListAccountSummaries") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1beta/accountSummaries", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "pageSize", request.getPageSize()); - serializer.putQueryParam(fields, "pageToken", request.getPageToken()); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(ListAccountSummariesResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - getPropertyMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.analytics.admin.v1beta.AnalyticsAdminService/GetProperty") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1beta/{name=properties/*}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Property.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - listPropertiesMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.analytics.admin.v1beta.AnalyticsAdminService/ListProperties") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1beta/properties", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "filter", request.getFilter()); - serializer.putQueryParam(fields, "pageSize", request.getPageSize()); - serializer.putQueryParam(fields, "pageToken", request.getPageToken()); - serializer.putQueryParam( - fields, "showDeleted", request.getShowDeleted()); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(ListPropertiesResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - createPropertyMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.analytics.admin.v1beta.AnalyticsAdminService/CreateProperty") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1beta/properties", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("property", request.getProperty(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Property.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - deletePropertyMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.analytics.admin.v1beta.AnalyticsAdminService/DeleteProperty") - .setHttpMethod("DELETE") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1beta/{name=properties/*}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Property.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - updatePropertyMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.analytics.admin.v1beta.AnalyticsAdminService/UpdateProperty") - .setHttpMethod("PATCH") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1beta/{property.name=properties/*}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam( - fields, "property.name", request.getProperty().getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("property", request.getProperty(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Property.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - createFirebaseLinkMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.analytics.admin.v1beta.AnalyticsAdminService/CreateFirebaseLink") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1beta/{parent=properties/*}/firebaseLinks", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("firebaseLink", request.getFirebaseLink(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(FirebaseLink.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - deleteFirebaseLinkMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.analytics.admin.v1beta.AnalyticsAdminService/DeleteFirebaseLink") - .setHttpMethod("DELETE") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1beta/{name=properties/*/firebaseLinks/*}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Empty.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - listFirebaseLinksMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.analytics.admin.v1beta.AnalyticsAdminService/ListFirebaseLinks") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1beta/{parent=properties/*}/firebaseLinks", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "pageSize", request.getPageSize()); - serializer.putQueryParam(fields, "pageToken", request.getPageToken()); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(ListFirebaseLinksResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - createGoogleAdsLinkMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.analytics.admin.v1beta.AnalyticsAdminService/CreateGoogleAdsLink") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1beta/{parent=properties/*}/googleAdsLinks", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("googleAdsLink", request.getGoogleAdsLink(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(GoogleAdsLink.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - updateGoogleAdsLinkMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.analytics.admin.v1beta.AnalyticsAdminService/UpdateGoogleAdsLink") - .setHttpMethod("PATCH") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1beta/{googleAdsLink.name=properties/*/googleAdsLinks/*}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam( - fields, "googleAdsLink.name", request.getGoogleAdsLink().getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("googleAdsLink", request.getGoogleAdsLink(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(GoogleAdsLink.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - deleteGoogleAdsLinkMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.analytics.admin.v1beta.AnalyticsAdminService/DeleteGoogleAdsLink") - .setHttpMethod("DELETE") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1beta/{name=properties/*/googleAdsLinks/*}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Empty.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - listGoogleAdsLinksMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.analytics.admin.v1beta.AnalyticsAdminService/ListGoogleAdsLinks") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1beta/{parent=properties/*}/googleAdsLinks", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "pageSize", request.getPageSize()); - serializer.putQueryParam(fields, "pageToken", request.getPageToken()); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(ListGoogleAdsLinksResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - getDataSharingSettingsMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.analytics.admin.v1beta.AnalyticsAdminService/GetDataSharingSettings") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1beta/{name=accounts/*/dataSharingSettings}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(DataSharingSettings.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor< - GetMeasurementProtocolSecretRequest, MeasurementProtocolSecret> - getMeasurementProtocolSecretMethodDescriptor = - ApiMethodDescriptor - .newBuilder() - .setFullMethodName( - "google.analytics.admin.v1beta.AnalyticsAdminService/GetMeasurementProtocolSecret") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1beta/{name=properties/*/dataStreams/*/measurementProtocolSecrets/*}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(MeasurementProtocolSecret.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor< - ListMeasurementProtocolSecretsRequest, ListMeasurementProtocolSecretsResponse> - listMeasurementProtocolSecretsMethodDescriptor = - ApiMethodDescriptor - . - newBuilder() - .setFullMethodName( - "google.analytics.admin.v1beta.AnalyticsAdminService/ListMeasurementProtocolSecrets") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1beta/{parent=properties/*/dataStreams/*}/measurementProtocolSecrets", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "pageSize", request.getPageSize()); - serializer.putQueryParam(fields, "pageToken", request.getPageToken()); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance( - ListMeasurementProtocolSecretsResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor< - CreateMeasurementProtocolSecretRequest, MeasurementProtocolSecret> - createMeasurementProtocolSecretMethodDescriptor = - ApiMethodDescriptor - .newBuilder() - .setFullMethodName( - "google.analytics.admin.v1beta.AnalyticsAdminService/CreateMeasurementProtocolSecret") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1beta/{parent=properties/*/dataStreams/*}/measurementProtocolSecrets", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody( - "measurementProtocolSecret", - request.getMeasurementProtocolSecret(), - false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(MeasurementProtocolSecret.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - deleteMeasurementProtocolSecretMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.analytics.admin.v1beta.AnalyticsAdminService/DeleteMeasurementProtocolSecret") - .setHttpMethod("DELETE") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1beta/{name=properties/*/dataStreams/*/measurementProtocolSecrets/*}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Empty.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor< - UpdateMeasurementProtocolSecretRequest, MeasurementProtocolSecret> - updateMeasurementProtocolSecretMethodDescriptor = - ApiMethodDescriptor - .newBuilder() - .setFullMethodName( - "google.analytics.admin.v1beta.AnalyticsAdminService/UpdateMeasurementProtocolSecret") - .setHttpMethod("PATCH") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1beta/{measurementProtocolSecret.name=properties/*/dataStreams/*/measurementProtocolSecrets/*}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam( - fields, - "measurementProtocolSecret.name", - request.getMeasurementProtocolSecret().getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody( - "measurementProtocolSecret", - request.getMeasurementProtocolSecret(), - false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(MeasurementProtocolSecret.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor< - AcknowledgeUserDataCollectionRequest, AcknowledgeUserDataCollectionResponse> - acknowledgeUserDataCollectionMethodDescriptor = - ApiMethodDescriptor - . - newBuilder() - .setFullMethodName( - "google.analytics.admin.v1beta.AnalyticsAdminService/AcknowledgeUserDataCollection") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1beta/{property=properties/*}:acknowledgeUserDataCollection", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "property", request.getProperty()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearProperty().build(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance( - AcknowledgeUserDataCollectionResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor< - SearchChangeHistoryEventsRequest, SearchChangeHistoryEventsResponse> - searchChangeHistoryEventsMethodDescriptor = - ApiMethodDescriptor - .newBuilder() - .setFullMethodName( - "google.analytics.admin.v1beta.AnalyticsAdminService/SearchChangeHistoryEvents") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1beta/{account=accounts/*}:searchChangeHistoryEvents", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "account", request.getAccount()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearAccount().build(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(SearchChangeHistoryEventsResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - createConversionEventMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.analytics.admin.v1beta.AnalyticsAdminService/CreateConversionEvent") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1beta/{parent=properties/*}/conversionEvents", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("conversionEvent", request.getConversionEvent(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(ConversionEvent.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - getConversionEventMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.analytics.admin.v1beta.AnalyticsAdminService/GetConversionEvent") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1beta/{name=properties/*/conversionEvents/*}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(ConversionEvent.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - deleteConversionEventMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.analytics.admin.v1beta.AnalyticsAdminService/DeleteConversionEvent") - .setHttpMethod("DELETE") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1beta/{name=properties/*/conversionEvents/*}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Empty.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor< - ListConversionEventsRequest, ListConversionEventsResponse> - listConversionEventsMethodDescriptor = - ApiMethodDescriptor - .newBuilder() - .setFullMethodName( - "google.analytics.admin.v1beta.AnalyticsAdminService/ListConversionEvents") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1beta/{parent=properties/*}/conversionEvents", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "pageSize", request.getPageSize()); - serializer.putQueryParam(fields, "pageToken", request.getPageToken()); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(ListConversionEventsResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - createCustomDimensionMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.analytics.admin.v1beta.AnalyticsAdminService/CreateCustomDimension") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1beta/{parent=properties/*}/customDimensions", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("customDimension", request.getCustomDimension(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(CustomDimension.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - updateCustomDimensionMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.analytics.admin.v1beta.AnalyticsAdminService/UpdateCustomDimension") - .setHttpMethod("PATCH") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1beta/{customDimension.name=properties/*/customDimensions/*}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam( - fields, - "customDimension.name", - request.getCustomDimension().getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("customDimension", request.getCustomDimension(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(CustomDimension.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor< - ListCustomDimensionsRequest, ListCustomDimensionsResponse> - listCustomDimensionsMethodDescriptor = - ApiMethodDescriptor - .newBuilder() - .setFullMethodName( - "google.analytics.admin.v1beta.AnalyticsAdminService/ListCustomDimensions") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1beta/{parent=properties/*}/customDimensions", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "pageSize", request.getPageSize()); - serializer.putQueryParam(fields, "pageToken", request.getPageToken()); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(ListCustomDimensionsResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - archiveCustomDimensionMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.analytics.admin.v1beta.AnalyticsAdminService/ArchiveCustomDimension") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1beta/{name=properties/*/customDimensions/*}:archive", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearName().build(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Empty.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - getCustomDimensionMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.analytics.admin.v1beta.AnalyticsAdminService/GetCustomDimension") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1beta/{name=properties/*/customDimensions/*}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(CustomDimension.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - createCustomMetricMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.analytics.admin.v1beta.AnalyticsAdminService/CreateCustomMetric") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1beta/{parent=properties/*}/customMetrics", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("customMetric", request.getCustomMetric(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(CustomMetric.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - updateCustomMetricMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.analytics.admin.v1beta.AnalyticsAdminService/UpdateCustomMetric") - .setHttpMethod("PATCH") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1beta/{customMetric.name=properties/*/customMetrics/*}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam( - fields, "customMetric.name", request.getCustomMetric().getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("customMetric", request.getCustomMetric(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(CustomMetric.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - listCustomMetricsMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.analytics.admin.v1beta.AnalyticsAdminService/ListCustomMetrics") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1beta/{parent=properties/*}/customMetrics", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "pageSize", request.getPageSize()); - serializer.putQueryParam(fields, "pageToken", request.getPageToken()); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(ListCustomMetricsResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - archiveCustomMetricMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.analytics.admin.v1beta.AnalyticsAdminService/ArchiveCustomMetric") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1beta/{name=properties/*/customMetrics/*}:archive", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearName().build(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Empty.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - getCustomMetricMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.analytics.admin.v1beta.AnalyticsAdminService/GetCustomMetric") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1beta/{name=properties/*/customMetrics/*}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(CustomMetric.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - getDataRetentionSettingsMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.analytics.admin.v1beta.AnalyticsAdminService/GetDataRetentionSettings") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1beta/{name=properties/*/dataRetentionSettings}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(DataRetentionSettings.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor< - UpdateDataRetentionSettingsRequest, DataRetentionSettings> - updateDataRetentionSettingsMethodDescriptor = - ApiMethodDescriptor - .newBuilder() - .setFullMethodName( - "google.analytics.admin.v1beta.AnalyticsAdminService/UpdateDataRetentionSettings") - .setHttpMethod("PATCH") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1beta/{dataRetentionSettings.name=properties/*/dataRetentionSettings}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam( - fields, - "dataRetentionSettings.name", - request.getDataRetentionSettings().getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody( - "dataRetentionSettings", - request.getDataRetentionSettings(), - false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(DataRetentionSettings.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - createDataStreamMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.analytics.admin.v1beta.AnalyticsAdminService/CreateDataStream") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1beta/{parent=properties/*}/dataStreams", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("dataStream", request.getDataStream(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(DataStream.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - deleteDataStreamMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.analytics.admin.v1beta.AnalyticsAdminService/DeleteDataStream") - .setHttpMethod("DELETE") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1beta/{name=properties/*/dataStreams/*}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Empty.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - updateDataStreamMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.analytics.admin.v1beta.AnalyticsAdminService/UpdateDataStream") - .setHttpMethod("PATCH") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1beta/{dataStream.name=properties/*/dataStreams/*}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam( - fields, "dataStream.name", request.getDataStream().getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("dataStream", request.getDataStream(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(DataStream.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - listDataStreamsMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.analytics.admin.v1beta.AnalyticsAdminService/ListDataStreams") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1beta/{parent=properties/*}/dataStreams", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "pageSize", request.getPageSize()); - serializer.putQueryParam(fields, "pageToken", request.getPageToken()); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(ListDataStreamsResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - getDataStreamMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.analytics.admin.v1beta.AnalyticsAdminService/GetDataStream") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1beta/{name=properties/*/dataStreams/*}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(DataStream.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .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 - 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 BackgroundResource backgroundResources; - private final HttpJsonStubCallableFactory callableFactory; - - public static final HttpJsonAnalyticsAdminServiceStub create( - AnalyticsAdminServiceStubSettings settings) throws IOException { - return new HttpJsonAnalyticsAdminServiceStub(settings, ClientContext.create(settings)); - } - - public static final HttpJsonAnalyticsAdminServiceStub create(ClientContext clientContext) - throws IOException { - return new HttpJsonAnalyticsAdminServiceStub( - AnalyticsAdminServiceStubSettings.newHttpJsonBuilder().build(), clientContext); - } - - public static final HttpJsonAnalyticsAdminServiceStub create( - ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { - return new HttpJsonAnalyticsAdminServiceStub( - AnalyticsAdminServiceStubSettings.newHttpJsonBuilder().build(), - clientContext, - callableFactory); - } - - /** - * Constructs an instance of HttpJsonAnalyticsAdminServiceStub, 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 HttpJsonAnalyticsAdminServiceStub( - AnalyticsAdminServiceStubSettings settings, ClientContext clientContext) throws IOException { - this(settings, clientContext, new HttpJsonAnalyticsAdminServiceCallableFactory()); - } - - /** - * Constructs an instance of HttpJsonAnalyticsAdminServiceStub, 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 HttpJsonAnalyticsAdminServiceStub( - AnalyticsAdminServiceStubSettings settings, - ClientContext clientContext, - HttpJsonStubCallableFactory callableFactory) - throws IOException { - this.callableFactory = callableFactory; - - HttpJsonCallSettings getAccountTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(getAccountMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings listAccountsTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(listAccountsMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings deleteAccountTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(deleteAccountMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings updateAccountTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(updateAccountMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings - provisionAccountTicketTransportSettings = - HttpJsonCallSettings - .newBuilder() - .setMethodDescriptor(provisionAccountTicketMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings - listAccountSummariesTransportSettings = - HttpJsonCallSettings - .newBuilder() - .setMethodDescriptor(listAccountSummariesMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings getPropertyTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(getPropertyMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings - listPropertiesTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(listPropertiesMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings createPropertyTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(createPropertyMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings deletePropertyTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(deletePropertyMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings updatePropertyTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(updatePropertyMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings - createFirebaseLinkTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(createFirebaseLinkMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings deleteFirebaseLinkTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(deleteFirebaseLinkMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings - listFirebaseLinksTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(listFirebaseLinksMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings - createGoogleAdsLinkTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(createGoogleAdsLinkMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings - updateGoogleAdsLinkTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(updateGoogleAdsLinkMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings deleteGoogleAdsLinkTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(deleteGoogleAdsLinkMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings - listGoogleAdsLinksTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(listGoogleAdsLinksMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings - getDataSharingSettingsTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(getDataSharingSettingsMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings - getMeasurementProtocolSecretTransportSettings = - HttpJsonCallSettings - .newBuilder() - .setMethodDescriptor(getMeasurementProtocolSecretMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings< - ListMeasurementProtocolSecretsRequest, ListMeasurementProtocolSecretsResponse> - listMeasurementProtocolSecretsTransportSettings = - HttpJsonCallSettings - . - newBuilder() - .setMethodDescriptor(listMeasurementProtocolSecretsMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings - createMeasurementProtocolSecretTransportSettings = - HttpJsonCallSettings - .newBuilder() - .setMethodDescriptor(createMeasurementProtocolSecretMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings - deleteMeasurementProtocolSecretTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(deleteMeasurementProtocolSecretMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings - updateMeasurementProtocolSecretTransportSettings = - HttpJsonCallSettings - .newBuilder() - .setMethodDescriptor(updateMeasurementProtocolSecretMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings< - AcknowledgeUserDataCollectionRequest, AcknowledgeUserDataCollectionResponse> - acknowledgeUserDataCollectionTransportSettings = - HttpJsonCallSettings - . - newBuilder() - .setMethodDescriptor(acknowledgeUserDataCollectionMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings - searchChangeHistoryEventsTransportSettings = - HttpJsonCallSettings - .newBuilder() - .setMethodDescriptor(searchChangeHistoryEventsMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings - createConversionEventTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(createConversionEventMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings - getConversionEventTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(getConversionEventMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings - deleteConversionEventTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(deleteConversionEventMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings - listConversionEventsTransportSettings = - HttpJsonCallSettings - .newBuilder() - .setMethodDescriptor(listConversionEventsMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings - createCustomDimensionTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(createCustomDimensionMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings - updateCustomDimensionTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(updateCustomDimensionMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings - listCustomDimensionsTransportSettings = - HttpJsonCallSettings - .newBuilder() - .setMethodDescriptor(listCustomDimensionsMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings - archiveCustomDimensionTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(archiveCustomDimensionMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings - getCustomDimensionTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(getCustomDimensionMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings - createCustomMetricTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(createCustomMetricMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings - updateCustomMetricTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(updateCustomMetricMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings - listCustomMetricsTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(listCustomMetricsMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings archiveCustomMetricTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(archiveCustomMetricMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings getCustomMetricTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(getCustomMetricMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings - getDataRetentionSettingsTransportSettings = - HttpJsonCallSettings - .newBuilder() - .setMethodDescriptor(getDataRetentionSettingsMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings - updateDataRetentionSettingsTransportSettings = - HttpJsonCallSettings - .newBuilder() - .setMethodDescriptor(updateDataRetentionSettingsMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings createDataStreamTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(createDataStreamMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings deleteDataStreamTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(deleteDataStreamMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings updateDataStreamTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(updateDataStreamMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings - listDataStreamsTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(listDataStreamsMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings getDataStreamTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(getDataStreamMethodDescriptor) - .setTypeRegistry(typeRegistry) - .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.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.backgroundResources = - new BackgroundResourceAggregation(clientContext.getBackgroundResources()); - } - - @InternalApi - public static List getMethodDescriptors() { - List methodDescriptors = new ArrayList<>(); - methodDescriptors.add(getAccountMethodDescriptor); - methodDescriptors.add(listAccountsMethodDescriptor); - methodDescriptors.add(deleteAccountMethodDescriptor); - methodDescriptors.add(updateAccountMethodDescriptor); - methodDescriptors.add(provisionAccountTicketMethodDescriptor); - methodDescriptors.add(listAccountSummariesMethodDescriptor); - methodDescriptors.add(getPropertyMethodDescriptor); - methodDescriptors.add(listPropertiesMethodDescriptor); - methodDescriptors.add(createPropertyMethodDescriptor); - methodDescriptors.add(deletePropertyMethodDescriptor); - methodDescriptors.add(updatePropertyMethodDescriptor); - methodDescriptors.add(createFirebaseLinkMethodDescriptor); - methodDescriptors.add(deleteFirebaseLinkMethodDescriptor); - methodDescriptors.add(listFirebaseLinksMethodDescriptor); - methodDescriptors.add(createGoogleAdsLinkMethodDescriptor); - methodDescriptors.add(updateGoogleAdsLinkMethodDescriptor); - methodDescriptors.add(deleteGoogleAdsLinkMethodDescriptor); - methodDescriptors.add(listGoogleAdsLinksMethodDescriptor); - methodDescriptors.add(getDataSharingSettingsMethodDescriptor); - methodDescriptors.add(getMeasurementProtocolSecretMethodDescriptor); - methodDescriptors.add(listMeasurementProtocolSecretsMethodDescriptor); - methodDescriptors.add(createMeasurementProtocolSecretMethodDescriptor); - methodDescriptors.add(deleteMeasurementProtocolSecretMethodDescriptor); - methodDescriptors.add(updateMeasurementProtocolSecretMethodDescriptor); - methodDescriptors.add(acknowledgeUserDataCollectionMethodDescriptor); - methodDescriptors.add(searchChangeHistoryEventsMethodDescriptor); - methodDescriptors.add(createConversionEventMethodDescriptor); - methodDescriptors.add(getConversionEventMethodDescriptor); - methodDescriptors.add(deleteConversionEventMethodDescriptor); - methodDescriptors.add(listConversionEventsMethodDescriptor); - methodDescriptors.add(createCustomDimensionMethodDescriptor); - methodDescriptors.add(updateCustomDimensionMethodDescriptor); - methodDescriptors.add(listCustomDimensionsMethodDescriptor); - methodDescriptors.add(archiveCustomDimensionMethodDescriptor); - methodDescriptors.add(getCustomDimensionMethodDescriptor); - methodDescriptors.add(createCustomMetricMethodDescriptor); - methodDescriptors.add(updateCustomMetricMethodDescriptor); - methodDescriptors.add(listCustomMetricsMethodDescriptor); - methodDescriptors.add(archiveCustomMetricMethodDescriptor); - methodDescriptors.add(getCustomMetricMethodDescriptor); - methodDescriptors.add(getDataRetentionSettingsMethodDescriptor); - methodDescriptors.add(updateDataRetentionSettingsMethodDescriptor); - methodDescriptors.add(createDataStreamMethodDescriptor); - methodDescriptors.add(deleteDataStreamMethodDescriptor); - methodDescriptors.add(updateDataStreamMethodDescriptor); - methodDescriptors.add(listDataStreamsMethodDescriptor); - methodDescriptors.add(getDataStreamMethodDescriptor); - return methodDescriptors; - } - - @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 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 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/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClientHttpJsonTest.java b/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClientHttpJsonTest.java deleted file mode 100644 index 77e03a9d..00000000 --- a/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClientHttpJsonTest.java +++ /dev/null @@ -1,6808 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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.AuditUserLinksPagedResponse; -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.ListAudiencesPagedResponse; -import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListConversionEventsPagedResponse; -import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListCustomDimensionsPagedResponse; -import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListCustomMetricsPagedResponse; -import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListDataStreamsPagedResponse; -import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListDisplayVideo360AdvertiserLinkProposalsPagedResponse; -import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListDisplayVideo360AdvertiserLinksPagedResponse; -import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListFirebaseLinksPagedResponse; -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.ListUserLinksPagedResponse; -import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.SearchChangeHistoryEventsPagedResponse; - -import com.google.analytics.admin.v1alpha.stub.HttpJsonAnalyticsAdminServiceStub; -import com.google.api.gax.core.NoCredentialsProvider; -import com.google.api.gax.httpjson.GaxHttpJsonProperties; -import com.google.api.gax.httpjson.testing.MockHttpService; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.ApiException; -import com.google.api.gax.rpc.ApiExceptionFactory; -import com.google.api.gax.rpc.InvalidArgumentException; -import com.google.api.gax.rpc.StatusCode; -import com.google.api.gax.rpc.testing.FakeStatusCode; -import com.google.common.collect.Lists; -import com.google.protobuf.BoolValue; -import com.google.protobuf.Empty; -import com.google.protobuf.FieldMask; -import com.google.protobuf.Timestamp; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import javax.annotation.Generated; -import org.junit.After; -import org.junit.AfterClass; -import org.junit.Assert; -import org.junit.Before; -import org.junit.BeforeClass; -import org.junit.Test; - -@Generated("by gapic-generator-java") -public class AnalyticsAdminServiceClientHttpJsonTest { - private static MockHttpService mockService; - private static AnalyticsAdminServiceClient client; - - @BeforeClass - public static void startStaticServer() throws IOException { - mockService = - new MockHttpService( - HttpJsonAnalyticsAdminServiceStub.getMethodDescriptors(), - AnalyticsAdminServiceSettings.getDefaultEndpoint()); - AnalyticsAdminServiceSettings settings = - AnalyticsAdminServiceSettings.newHttpJsonBuilder() - .setTransportChannelProvider( - AnalyticsAdminServiceSettings.defaultHttpJsonTransportProviderBuilder() - .setHttpTransport(mockService) - .build()) - .setCredentialsProvider(NoCredentialsProvider.create()) - .build(); - client = AnalyticsAdminServiceClient.create(settings); - } - - @AfterClass - public static void stopServer() { - client.close(); - } - - @Before - public void setUp() {} - - @After - public void tearDown() throws Exception { - mockService.reset(); - } - - @Test - public void getAccountTest() throws Exception { - Account expectedResponse = - Account.newBuilder() - .setName(AccountName.of("[ACCOUNT]").toString()) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setDisplayName("displayName1714148973") - .setRegionCode("regionCode-1991004415") - .setDeleted(true) - .build(); - mockService.addResponse(expectedResponse); - - AccountName name = AccountName.of("[ACCOUNT]"); - - Account actualResponse = client.getAccount(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void getAccountExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - AccountName name = AccountName.of("[ACCOUNT]"); - client.getAccount(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getAccountTest2() throws Exception { - Account expectedResponse = - Account.newBuilder() - .setName(AccountName.of("[ACCOUNT]").toString()) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setDisplayName("displayName1714148973") - .setRegionCode("regionCode-1991004415") - .setDeleted(true) - .build(); - mockService.addResponse(expectedResponse); - - String name = "accounts/account-3500"; - - Account actualResponse = client.getAccount(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void getAccountExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = "accounts/account-3500"; - client.getAccount(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listAccountsTest() throws Exception { - Account responsesElement = Account.newBuilder().build(); - ListAccountsResponse expectedResponse = - ListAccountsResponse.newBuilder() - .setNextPageToken("") - .addAllAccounts(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - ListAccountsRequest request = - ListAccountsRequest.newBuilder() - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .setShowDeleted(true) - .build(); - - ListAccountsPagedResponse pagedListResponse = client.listAccounts(request); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getAccountsList().get(0), resources.get(0)); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void listAccountsExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - ListAccountsRequest request = - ListAccountsRequest.newBuilder() - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .setShowDeleted(true) - .build(); - client.listAccounts(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteAccountTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockService.addResponse(expectedResponse); - - AccountName name = AccountName.of("[ACCOUNT]"); - - client.deleteAccount(name); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void deleteAccountExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - AccountName name = AccountName.of("[ACCOUNT]"); - client.deleteAccount(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteAccountTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockService.addResponse(expectedResponse); - - String name = "accounts/account-3500"; - - client.deleteAccount(name); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void deleteAccountExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = "accounts/account-3500"; - client.deleteAccount(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateAccountTest() throws Exception { - Account expectedResponse = - Account.newBuilder() - .setName(AccountName.of("[ACCOUNT]").toString()) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setDisplayName("displayName1714148973") - .setRegionCode("regionCode-1991004415") - .setDeleted(true) - .build(); - mockService.addResponse(expectedResponse); - - Account account = - Account.newBuilder() - .setName(AccountName.of("[ACCOUNT]").toString()) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setDisplayName("displayName1714148973") - .setRegionCode("regionCode-1991004415") - .setDeleted(true) - .build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - Account actualResponse = client.updateAccount(account, updateMask); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void updateAccountExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - Account account = - Account.newBuilder() - .setName(AccountName.of("[ACCOUNT]").toString()) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setDisplayName("displayName1714148973") - .setRegionCode("regionCode-1991004415") - .setDeleted(true) - .build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateAccount(account, updateMask); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void provisionAccountTicketTest() throws Exception { - ProvisionAccountTicketResponse expectedResponse = - ProvisionAccountTicketResponse.newBuilder() - .setAccountTicketId("accountTicketId-1576709484") - .build(); - mockService.addResponse(expectedResponse); - - ProvisionAccountTicketRequest request = - ProvisionAccountTicketRequest.newBuilder() - .setAccount(Account.newBuilder().build()) - .setRedirectUri("redirectUri1970337776") - .build(); - - ProvisionAccountTicketResponse actualResponse = client.provisionAccountTicket(request); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void provisionAccountTicketExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - ProvisionAccountTicketRequest request = - ProvisionAccountTicketRequest.newBuilder() - .setAccount(Account.newBuilder().build()) - .setRedirectUri("redirectUri1970337776") - .build(); - client.provisionAccountTicket(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listAccountSummariesTest() throws Exception { - AccountSummary responsesElement = AccountSummary.newBuilder().build(); - ListAccountSummariesResponse expectedResponse = - ListAccountSummariesResponse.newBuilder() - .setNextPageToken("") - .addAllAccountSummaries(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - ListAccountSummariesRequest request = - ListAccountSummariesRequest.newBuilder() - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .build(); - - ListAccountSummariesPagedResponse pagedListResponse = client.listAccountSummaries(request); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getAccountSummariesList().get(0), resources.get(0)); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void listAccountSummariesExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - ListAccountSummariesRequest request = - ListAccountSummariesRequest.newBuilder() - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .build(); - client.listAccountSummaries(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getPropertyTest() throws Exception { - Property expectedResponse = - Property.newBuilder() - .setName(PropertyName.of("[PROPERTY]").toString()) - .setPropertyType(PropertyType.forNumber(0)) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setParent("parent-995424086") - .setDisplayName("displayName1714148973") - .setIndustryCategory(IndustryCategory.forNumber(0)) - .setTimeZone("timeZone-2077180903") - .setCurrencyCode("currencyCode1004773790") - .setServiceLevel(ServiceLevel.forNumber(0)) - .setDeleteTime(Timestamp.newBuilder().build()) - .setExpireTime(Timestamp.newBuilder().build()) - .setAccount(AccountName.of("[ACCOUNT]").toString()) - .build(); - mockService.addResponse(expectedResponse); - - PropertyName name = PropertyName.of("[PROPERTY]"); - - Property actualResponse = client.getProperty(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void getPropertyExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - PropertyName name = PropertyName.of("[PROPERTY]"); - client.getProperty(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getPropertyTest2() throws Exception { - Property expectedResponse = - Property.newBuilder() - .setName(PropertyName.of("[PROPERTY]").toString()) - .setPropertyType(PropertyType.forNumber(0)) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setParent("parent-995424086") - .setDisplayName("displayName1714148973") - .setIndustryCategory(IndustryCategory.forNumber(0)) - .setTimeZone("timeZone-2077180903") - .setCurrencyCode("currencyCode1004773790") - .setServiceLevel(ServiceLevel.forNumber(0)) - .setDeleteTime(Timestamp.newBuilder().build()) - .setExpireTime(Timestamp.newBuilder().build()) - .setAccount(AccountName.of("[ACCOUNT]").toString()) - .build(); - mockService.addResponse(expectedResponse); - - String name = "properties/propertie-7337"; - - Property actualResponse = client.getProperty(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void getPropertyExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = "properties/propertie-7337"; - client.getProperty(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listPropertiesTest() throws Exception { - Property responsesElement = Property.newBuilder().build(); - ListPropertiesResponse expectedResponse = - ListPropertiesResponse.newBuilder() - .setNextPageToken("") - .addAllProperties(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - ListPropertiesRequest request = - ListPropertiesRequest.newBuilder() - .setFilter("filter-1274492040") - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .setShowDeleted(true) - .build(); - - ListPropertiesPagedResponse pagedListResponse = client.listProperties(request); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getPropertiesList().get(0), resources.get(0)); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void listPropertiesExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - ListPropertiesRequest request = - ListPropertiesRequest.newBuilder() - .setFilter("filter-1274492040") - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .setShowDeleted(true) - .build(); - client.listProperties(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createPropertyTest() throws Exception { - Property expectedResponse = - Property.newBuilder() - .setName(PropertyName.of("[PROPERTY]").toString()) - .setPropertyType(PropertyType.forNumber(0)) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setParent("parent-995424086") - .setDisplayName("displayName1714148973") - .setIndustryCategory(IndustryCategory.forNumber(0)) - .setTimeZone("timeZone-2077180903") - .setCurrencyCode("currencyCode1004773790") - .setServiceLevel(ServiceLevel.forNumber(0)) - .setDeleteTime(Timestamp.newBuilder().build()) - .setExpireTime(Timestamp.newBuilder().build()) - .setAccount(AccountName.of("[ACCOUNT]").toString()) - .build(); - mockService.addResponse(expectedResponse); - - Property property = Property.newBuilder().build(); - - Property actualResponse = client.createProperty(property); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void createPropertyExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - Property property = Property.newBuilder().build(); - client.createProperty(property); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deletePropertyTest() throws Exception { - Property expectedResponse = - Property.newBuilder() - .setName(PropertyName.of("[PROPERTY]").toString()) - .setPropertyType(PropertyType.forNumber(0)) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setParent("parent-995424086") - .setDisplayName("displayName1714148973") - .setIndustryCategory(IndustryCategory.forNumber(0)) - .setTimeZone("timeZone-2077180903") - .setCurrencyCode("currencyCode1004773790") - .setServiceLevel(ServiceLevel.forNumber(0)) - .setDeleteTime(Timestamp.newBuilder().build()) - .setExpireTime(Timestamp.newBuilder().build()) - .setAccount(AccountName.of("[ACCOUNT]").toString()) - .build(); - mockService.addResponse(expectedResponse); - - PropertyName name = PropertyName.of("[PROPERTY]"); - - Property actualResponse = client.deleteProperty(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void deletePropertyExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - PropertyName name = PropertyName.of("[PROPERTY]"); - client.deleteProperty(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deletePropertyTest2() throws Exception { - Property expectedResponse = - Property.newBuilder() - .setName(PropertyName.of("[PROPERTY]").toString()) - .setPropertyType(PropertyType.forNumber(0)) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setParent("parent-995424086") - .setDisplayName("displayName1714148973") - .setIndustryCategory(IndustryCategory.forNumber(0)) - .setTimeZone("timeZone-2077180903") - .setCurrencyCode("currencyCode1004773790") - .setServiceLevel(ServiceLevel.forNumber(0)) - .setDeleteTime(Timestamp.newBuilder().build()) - .setExpireTime(Timestamp.newBuilder().build()) - .setAccount(AccountName.of("[ACCOUNT]").toString()) - .build(); - mockService.addResponse(expectedResponse); - - String name = "properties/propertie-7337"; - - Property actualResponse = client.deleteProperty(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void deletePropertyExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = "properties/propertie-7337"; - client.deleteProperty(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updatePropertyTest() throws Exception { - Property expectedResponse = - Property.newBuilder() - .setName(PropertyName.of("[PROPERTY]").toString()) - .setPropertyType(PropertyType.forNumber(0)) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setParent("parent-995424086") - .setDisplayName("displayName1714148973") - .setIndustryCategory(IndustryCategory.forNumber(0)) - .setTimeZone("timeZone-2077180903") - .setCurrencyCode("currencyCode1004773790") - .setServiceLevel(ServiceLevel.forNumber(0)) - .setDeleteTime(Timestamp.newBuilder().build()) - .setExpireTime(Timestamp.newBuilder().build()) - .setAccount(AccountName.of("[ACCOUNT]").toString()) - .build(); - mockService.addResponse(expectedResponse); - - Property property = - Property.newBuilder() - .setName(PropertyName.of("[PROPERTY]").toString()) - .setPropertyType(PropertyType.forNumber(0)) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setParent("parent-995424086") - .setDisplayName("displayName1714148973") - .setIndustryCategory(IndustryCategory.forNumber(0)) - .setTimeZone("timeZone-2077180903") - .setCurrencyCode("currencyCode1004773790") - .setServiceLevel(ServiceLevel.forNumber(0)) - .setDeleteTime(Timestamp.newBuilder().build()) - .setExpireTime(Timestamp.newBuilder().build()) - .setAccount(AccountName.of("[ACCOUNT]").toString()) - .build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - Property actualResponse = client.updateProperty(property, updateMask); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void updatePropertyExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - Property property = - Property.newBuilder() - .setName(PropertyName.of("[PROPERTY]").toString()) - .setPropertyType(PropertyType.forNumber(0)) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setParent("parent-995424086") - .setDisplayName("displayName1714148973") - .setIndustryCategory(IndustryCategory.forNumber(0)) - .setTimeZone("timeZone-2077180903") - .setCurrencyCode("currencyCode1004773790") - .setServiceLevel(ServiceLevel.forNumber(0)) - .setDeleteTime(Timestamp.newBuilder().build()) - .setExpireTime(Timestamp.newBuilder().build()) - .setAccount(AccountName.of("[ACCOUNT]").toString()) - .build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateProperty(property, updateMask); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getUserLinkTest() throws Exception { - UserLink expectedResponse = - UserLink.newBuilder() - .setName(UserLinkName.ofAccountUserLinkName("[ACCOUNT]", "[USER_LINK]").toString()) - .setEmailAddress("emailAddress-1070931784") - .addAllDirectRoles(new ArrayList()) - .build(); - mockService.addResponse(expectedResponse); - - UserLinkName name = UserLinkName.ofAccountUserLinkName("[ACCOUNT]", "[USER_LINK]"); - - UserLink actualResponse = client.getUserLink(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void getUserLinkExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - UserLinkName name = UserLinkName.ofAccountUserLinkName("[ACCOUNT]", "[USER_LINK]"); - client.getUserLink(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getUserLinkTest2() throws Exception { - UserLink expectedResponse = - UserLink.newBuilder() - .setName(UserLinkName.ofAccountUserLinkName("[ACCOUNT]", "[USER_LINK]").toString()) - .setEmailAddress("emailAddress-1070931784") - .addAllDirectRoles(new ArrayList()) - .build(); - mockService.addResponse(expectedResponse); - - String name = "accounts/account-2326/userLinks/userLink-2326"; - - UserLink actualResponse = client.getUserLink(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void getUserLinkExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = "accounts/account-2326/userLinks/userLink-2326"; - client.getUserLink(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void batchGetUserLinksTest() throws Exception { - BatchGetUserLinksResponse expectedResponse = - BatchGetUserLinksResponse.newBuilder().addAllUserLinks(new ArrayList()).build(); - mockService.addResponse(expectedResponse); - - BatchGetUserLinksRequest request = - BatchGetUserLinksRequest.newBuilder() - .setParent(AccountName.of("[ACCOUNT]").toString()) - .addAllNames(new ArrayList()) - .build(); - - BatchGetUserLinksResponse actualResponse = client.batchGetUserLinks(request); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void batchGetUserLinksExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - BatchGetUserLinksRequest request = - BatchGetUserLinksRequest.newBuilder() - .setParent(AccountName.of("[ACCOUNT]").toString()) - .addAllNames(new ArrayList()) - .build(); - client.batchGetUserLinks(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listUserLinksTest() throws Exception { - UserLink responsesElement = UserLink.newBuilder().build(); - ListUserLinksResponse expectedResponse = - ListUserLinksResponse.newBuilder() - .setNextPageToken("") - .addAllUserLinks(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - AccountName parent = AccountName.of("[ACCOUNT]"); - - ListUserLinksPagedResponse pagedListResponse = client.listUserLinks(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getUserLinksList().get(0), resources.get(0)); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void listUserLinksExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - AccountName parent = AccountName.of("[ACCOUNT]"); - client.listUserLinks(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listUserLinksTest2() throws Exception { - UserLink responsesElement = UserLink.newBuilder().build(); - ListUserLinksResponse expectedResponse = - ListUserLinksResponse.newBuilder() - .setNextPageToken("") - .addAllUserLinks(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - PropertyName parent = PropertyName.of("[PROPERTY]"); - - ListUserLinksPagedResponse pagedListResponse = client.listUserLinks(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getUserLinksList().get(0), resources.get(0)); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void listUserLinksExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - PropertyName parent = PropertyName.of("[PROPERTY]"); - client.listUserLinks(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listUserLinksTest3() throws Exception { - UserLink responsesElement = UserLink.newBuilder().build(); - ListUserLinksResponse expectedResponse = - ListUserLinksResponse.newBuilder() - .setNextPageToken("") - .addAllUserLinks(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - String parent = "accounts/account-4811"; - - ListUserLinksPagedResponse pagedListResponse = client.listUserLinks(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getUserLinksList().get(0), resources.get(0)); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void listUserLinksExceptionTest3() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String parent = "accounts/account-4811"; - client.listUserLinks(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void auditUserLinksTest() throws Exception { - AuditUserLink responsesElement = AuditUserLink.newBuilder().build(); - AuditUserLinksResponse expectedResponse = - AuditUserLinksResponse.newBuilder() - .setNextPageToken("") - .addAllUserLinks(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - AuditUserLinksRequest request = - AuditUserLinksRequest.newBuilder() - .setParent(AccountName.of("[ACCOUNT]").toString()) - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .build(); - - AuditUserLinksPagedResponse pagedListResponse = client.auditUserLinks(request); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getUserLinksList().get(0), resources.get(0)); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void auditUserLinksExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - AuditUserLinksRequest request = - AuditUserLinksRequest.newBuilder() - .setParent(AccountName.of("[ACCOUNT]").toString()) - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .build(); - client.auditUserLinks(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createUserLinkTest() throws Exception { - UserLink expectedResponse = - UserLink.newBuilder() - .setName(UserLinkName.ofAccountUserLinkName("[ACCOUNT]", "[USER_LINK]").toString()) - .setEmailAddress("emailAddress-1070931784") - .addAllDirectRoles(new ArrayList()) - .build(); - mockService.addResponse(expectedResponse); - - AccountName parent = AccountName.of("[ACCOUNT]"); - UserLink userLink = UserLink.newBuilder().build(); - - UserLink actualResponse = client.createUserLink(parent, userLink); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void createUserLinkExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - AccountName parent = AccountName.of("[ACCOUNT]"); - UserLink userLink = UserLink.newBuilder().build(); - client.createUserLink(parent, userLink); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createUserLinkTest2() throws Exception { - UserLink expectedResponse = - UserLink.newBuilder() - .setName(UserLinkName.ofAccountUserLinkName("[ACCOUNT]", "[USER_LINK]").toString()) - .setEmailAddress("emailAddress-1070931784") - .addAllDirectRoles(new ArrayList()) - .build(); - mockService.addResponse(expectedResponse); - - PropertyName parent = PropertyName.of("[PROPERTY]"); - UserLink userLink = UserLink.newBuilder().build(); - - UserLink actualResponse = client.createUserLink(parent, userLink); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void createUserLinkExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - PropertyName parent = PropertyName.of("[PROPERTY]"); - UserLink userLink = UserLink.newBuilder().build(); - client.createUserLink(parent, userLink); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createUserLinkTest3() throws Exception { - UserLink expectedResponse = - UserLink.newBuilder() - .setName(UserLinkName.ofAccountUserLinkName("[ACCOUNT]", "[USER_LINK]").toString()) - .setEmailAddress("emailAddress-1070931784") - .addAllDirectRoles(new ArrayList()) - .build(); - mockService.addResponse(expectedResponse); - - String parent = "accounts/account-4811"; - UserLink userLink = UserLink.newBuilder().build(); - - UserLink actualResponse = client.createUserLink(parent, userLink); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void createUserLinkExceptionTest3() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String parent = "accounts/account-4811"; - UserLink userLink = UserLink.newBuilder().build(); - client.createUserLink(parent, userLink); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void batchCreateUserLinksTest() throws Exception { - BatchCreateUserLinksResponse expectedResponse = - BatchCreateUserLinksResponse.newBuilder() - .addAllUserLinks(new ArrayList()) - .build(); - mockService.addResponse(expectedResponse); - - BatchCreateUserLinksRequest request = - BatchCreateUserLinksRequest.newBuilder() - .setParent(AccountName.of("[ACCOUNT]").toString()) - .setNotifyNewUsers(true) - .addAllRequests(new ArrayList()) - .build(); - - BatchCreateUserLinksResponse actualResponse = client.batchCreateUserLinks(request); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void batchCreateUserLinksExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - BatchCreateUserLinksRequest request = - BatchCreateUserLinksRequest.newBuilder() - .setParent(AccountName.of("[ACCOUNT]").toString()) - .setNotifyNewUsers(true) - .addAllRequests(new ArrayList()) - .build(); - client.batchCreateUserLinks(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateUserLinkTest() throws Exception { - UserLink expectedResponse = - UserLink.newBuilder() - .setName(UserLinkName.ofAccountUserLinkName("[ACCOUNT]", "[USER_LINK]").toString()) - .setEmailAddress("emailAddress-1070931784") - .addAllDirectRoles(new ArrayList()) - .build(); - mockService.addResponse(expectedResponse); - - UserLink userLink = - UserLink.newBuilder() - .setName(UserLinkName.ofAccountUserLinkName("[ACCOUNT]", "[USER_LINK]").toString()) - .setEmailAddress("emailAddress-1070931784") - .addAllDirectRoles(new ArrayList()) - .build(); - - UserLink actualResponse = client.updateUserLink(userLink); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void updateUserLinkExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - UserLink userLink = - UserLink.newBuilder() - .setName(UserLinkName.ofAccountUserLinkName("[ACCOUNT]", "[USER_LINK]").toString()) - .setEmailAddress("emailAddress-1070931784") - .addAllDirectRoles(new ArrayList()) - .build(); - client.updateUserLink(userLink); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void batchUpdateUserLinksTest() throws Exception { - BatchUpdateUserLinksResponse expectedResponse = - BatchUpdateUserLinksResponse.newBuilder() - .addAllUserLinks(new ArrayList()) - .build(); - mockService.addResponse(expectedResponse); - - BatchUpdateUserLinksRequest request = - BatchUpdateUserLinksRequest.newBuilder() - .setParent(AccountName.of("[ACCOUNT]").toString()) - .addAllRequests(new ArrayList()) - .build(); - - BatchUpdateUserLinksResponse actualResponse = client.batchUpdateUserLinks(request); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void batchUpdateUserLinksExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - BatchUpdateUserLinksRequest request = - BatchUpdateUserLinksRequest.newBuilder() - .setParent(AccountName.of("[ACCOUNT]").toString()) - .addAllRequests(new ArrayList()) - .build(); - client.batchUpdateUserLinks(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteUserLinkTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockService.addResponse(expectedResponse); - - UserLinkName name = UserLinkName.ofAccountUserLinkName("[ACCOUNT]", "[USER_LINK]"); - - client.deleteUserLink(name); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void deleteUserLinkExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - UserLinkName name = UserLinkName.ofAccountUserLinkName("[ACCOUNT]", "[USER_LINK]"); - client.deleteUserLink(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteUserLinkTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockService.addResponse(expectedResponse); - - String name = "accounts/account-2326/userLinks/userLink-2326"; - - client.deleteUserLink(name); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void deleteUserLinkExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = "accounts/account-2326/userLinks/userLink-2326"; - client.deleteUserLink(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void batchDeleteUserLinksTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockService.addResponse(expectedResponse); - - BatchDeleteUserLinksRequest request = - BatchDeleteUserLinksRequest.newBuilder() - .setParent(AccountName.of("[ACCOUNT]").toString()) - .addAllRequests(new ArrayList()) - .build(); - - client.batchDeleteUserLinks(request); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void batchDeleteUserLinksExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - BatchDeleteUserLinksRequest request = - BatchDeleteUserLinksRequest.newBuilder() - .setParent(AccountName.of("[ACCOUNT]").toString()) - .addAllRequests(new ArrayList()) - .build(); - client.batchDeleteUserLinks(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createFirebaseLinkTest() throws Exception { - FirebaseLink expectedResponse = - FirebaseLink.newBuilder() - .setName(FirebaseLinkName.of("[PROPERTY]", "[FIREBASE_LINK]").toString()) - .setProject("project-309310695") - .setCreateTime(Timestamp.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - PropertyName parent = PropertyName.of("[PROPERTY]"); - FirebaseLink firebaseLink = FirebaseLink.newBuilder().build(); - - FirebaseLink actualResponse = client.createFirebaseLink(parent, firebaseLink); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void createFirebaseLinkExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - PropertyName parent = PropertyName.of("[PROPERTY]"); - FirebaseLink firebaseLink = FirebaseLink.newBuilder().build(); - client.createFirebaseLink(parent, firebaseLink); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createFirebaseLinkTest2() throws Exception { - FirebaseLink expectedResponse = - FirebaseLink.newBuilder() - .setName(FirebaseLinkName.of("[PROPERTY]", "[FIREBASE_LINK]").toString()) - .setProject("project-309310695") - .setCreateTime(Timestamp.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - String parent = "properties/propertie-2024"; - FirebaseLink firebaseLink = FirebaseLink.newBuilder().build(); - - FirebaseLink actualResponse = client.createFirebaseLink(parent, firebaseLink); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void createFirebaseLinkExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String parent = "properties/propertie-2024"; - FirebaseLink firebaseLink = FirebaseLink.newBuilder().build(); - client.createFirebaseLink(parent, firebaseLink); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteFirebaseLinkTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockService.addResponse(expectedResponse); - - FirebaseLinkName name = FirebaseLinkName.of("[PROPERTY]", "[FIREBASE_LINK]"); - - client.deleteFirebaseLink(name); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void deleteFirebaseLinkExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - FirebaseLinkName name = FirebaseLinkName.of("[PROPERTY]", "[FIREBASE_LINK]"); - client.deleteFirebaseLink(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteFirebaseLinkTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockService.addResponse(expectedResponse); - - String name = "properties/propertie-2649/firebaseLinks/firebaseLink-2649"; - - client.deleteFirebaseLink(name); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void deleteFirebaseLinkExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = "properties/propertie-2649/firebaseLinks/firebaseLink-2649"; - client.deleteFirebaseLink(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listFirebaseLinksTest() throws Exception { - FirebaseLink responsesElement = FirebaseLink.newBuilder().build(); - ListFirebaseLinksResponse expectedResponse = - ListFirebaseLinksResponse.newBuilder() - .setNextPageToken("") - .addAllFirebaseLinks(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - PropertyName parent = PropertyName.of("[PROPERTY]"); - - ListFirebaseLinksPagedResponse pagedListResponse = client.listFirebaseLinks(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getFirebaseLinksList().get(0), resources.get(0)); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void listFirebaseLinksExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - PropertyName parent = PropertyName.of("[PROPERTY]"); - client.listFirebaseLinks(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listFirebaseLinksTest2() throws Exception { - FirebaseLink responsesElement = FirebaseLink.newBuilder().build(); - ListFirebaseLinksResponse expectedResponse = - ListFirebaseLinksResponse.newBuilder() - .setNextPageToken("") - .addAllFirebaseLinks(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - String parent = "properties/propertie-2024"; - - ListFirebaseLinksPagedResponse pagedListResponse = client.listFirebaseLinks(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getFirebaseLinksList().get(0), resources.get(0)); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void listFirebaseLinksExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String parent = "properties/propertie-2024"; - client.listFirebaseLinks(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getGlobalSiteTagTest() throws Exception { - GlobalSiteTag expectedResponse = - GlobalSiteTag.newBuilder() - .setName(GlobalSiteTagName.of("[PROPERTY]", "[DATA_STREAM]").toString()) - .setSnippet("snippet-2061635299") - .build(); - mockService.addResponse(expectedResponse); - - GlobalSiteTagName name = GlobalSiteTagName.of("[PROPERTY]", "[DATA_STREAM]"); - - GlobalSiteTag actualResponse = client.getGlobalSiteTag(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void getGlobalSiteTagExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - GlobalSiteTagName name = GlobalSiteTagName.of("[PROPERTY]", "[DATA_STREAM]"); - client.getGlobalSiteTag(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getGlobalSiteTagTest2() throws Exception { - GlobalSiteTag expectedResponse = - GlobalSiteTag.newBuilder() - .setName(GlobalSiteTagName.of("[PROPERTY]", "[DATA_STREAM]").toString()) - .setSnippet("snippet-2061635299") - .build(); - mockService.addResponse(expectedResponse); - - String name = "properties/propertie-1615/dataStreams/dataStream-1615/globalSiteTag"; - - GlobalSiteTag actualResponse = client.getGlobalSiteTag(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void getGlobalSiteTagExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = "properties/propertie-1615/dataStreams/dataStream-1615/globalSiteTag"; - client.getGlobalSiteTag(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createGoogleAdsLinkTest() throws Exception { - GoogleAdsLink expectedResponse = - GoogleAdsLink.newBuilder() - .setName(GoogleAdsLinkName.of("[PROPERTY]", "[GOOGLE_ADS_LINK]").toString()) - .setCustomerId("customerId-1581184615") - .setCanManageClients(true) - .setAdsPersonalizationEnabled(BoolValue.newBuilder().build()) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setCreatorEmailAddress("creatorEmailAddress67752708") - .build(); - mockService.addResponse(expectedResponse); - - PropertyName parent = PropertyName.of("[PROPERTY]"); - GoogleAdsLink googleAdsLink = GoogleAdsLink.newBuilder().build(); - - GoogleAdsLink actualResponse = client.createGoogleAdsLink(parent, googleAdsLink); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void createGoogleAdsLinkExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - PropertyName parent = PropertyName.of("[PROPERTY]"); - GoogleAdsLink googleAdsLink = GoogleAdsLink.newBuilder().build(); - client.createGoogleAdsLink(parent, googleAdsLink); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createGoogleAdsLinkTest2() throws Exception { - GoogleAdsLink expectedResponse = - GoogleAdsLink.newBuilder() - .setName(GoogleAdsLinkName.of("[PROPERTY]", "[GOOGLE_ADS_LINK]").toString()) - .setCustomerId("customerId-1581184615") - .setCanManageClients(true) - .setAdsPersonalizationEnabled(BoolValue.newBuilder().build()) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setCreatorEmailAddress("creatorEmailAddress67752708") - .build(); - mockService.addResponse(expectedResponse); - - String parent = "properties/propertie-2024"; - GoogleAdsLink googleAdsLink = GoogleAdsLink.newBuilder().build(); - - GoogleAdsLink actualResponse = client.createGoogleAdsLink(parent, googleAdsLink); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void createGoogleAdsLinkExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String parent = "properties/propertie-2024"; - GoogleAdsLink googleAdsLink = GoogleAdsLink.newBuilder().build(); - client.createGoogleAdsLink(parent, googleAdsLink); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateGoogleAdsLinkTest() throws Exception { - GoogleAdsLink expectedResponse = - GoogleAdsLink.newBuilder() - .setName(GoogleAdsLinkName.of("[PROPERTY]", "[GOOGLE_ADS_LINK]").toString()) - .setCustomerId("customerId-1581184615") - .setCanManageClients(true) - .setAdsPersonalizationEnabled(BoolValue.newBuilder().build()) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setCreatorEmailAddress("creatorEmailAddress67752708") - .build(); - mockService.addResponse(expectedResponse); - - GoogleAdsLink googleAdsLink = - GoogleAdsLink.newBuilder() - .setName(GoogleAdsLinkName.of("[PROPERTY]", "[GOOGLE_ADS_LINK]").toString()) - .setCustomerId("customerId-1581184615") - .setCanManageClients(true) - .setAdsPersonalizationEnabled(BoolValue.newBuilder().build()) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setCreatorEmailAddress("creatorEmailAddress67752708") - .build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - GoogleAdsLink actualResponse = client.updateGoogleAdsLink(googleAdsLink, updateMask); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void updateGoogleAdsLinkExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - GoogleAdsLink googleAdsLink = - GoogleAdsLink.newBuilder() - .setName(GoogleAdsLinkName.of("[PROPERTY]", "[GOOGLE_ADS_LINK]").toString()) - .setCustomerId("customerId-1581184615") - .setCanManageClients(true) - .setAdsPersonalizationEnabled(BoolValue.newBuilder().build()) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setCreatorEmailAddress("creatorEmailAddress67752708") - .build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateGoogleAdsLink(googleAdsLink, updateMask); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteGoogleAdsLinkTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockService.addResponse(expectedResponse); - - GoogleAdsLinkName name = GoogleAdsLinkName.of("[PROPERTY]", "[GOOGLE_ADS_LINK]"); - - client.deleteGoogleAdsLink(name); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void deleteGoogleAdsLinkExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - GoogleAdsLinkName name = GoogleAdsLinkName.of("[PROPERTY]", "[GOOGLE_ADS_LINK]"); - client.deleteGoogleAdsLink(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteGoogleAdsLinkTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockService.addResponse(expectedResponse); - - String name = "properties/propertie-1267/googleAdsLinks/googleAdsLink-1267"; - - client.deleteGoogleAdsLink(name); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void deleteGoogleAdsLinkExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = "properties/propertie-1267/googleAdsLinks/googleAdsLink-1267"; - client.deleteGoogleAdsLink(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listGoogleAdsLinksTest() throws Exception { - GoogleAdsLink responsesElement = GoogleAdsLink.newBuilder().build(); - ListGoogleAdsLinksResponse expectedResponse = - ListGoogleAdsLinksResponse.newBuilder() - .setNextPageToken("") - .addAllGoogleAdsLinks(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - PropertyName parent = PropertyName.of("[PROPERTY]"); - - ListGoogleAdsLinksPagedResponse pagedListResponse = client.listGoogleAdsLinks(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getGoogleAdsLinksList().get(0), resources.get(0)); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void listGoogleAdsLinksExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - PropertyName parent = PropertyName.of("[PROPERTY]"); - client.listGoogleAdsLinks(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listGoogleAdsLinksTest2() throws Exception { - GoogleAdsLink responsesElement = GoogleAdsLink.newBuilder().build(); - ListGoogleAdsLinksResponse expectedResponse = - ListGoogleAdsLinksResponse.newBuilder() - .setNextPageToken("") - .addAllGoogleAdsLinks(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - String parent = "properties/propertie-2024"; - - ListGoogleAdsLinksPagedResponse pagedListResponse = client.listGoogleAdsLinks(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getGoogleAdsLinksList().get(0), resources.get(0)); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void listGoogleAdsLinksExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String parent = "properties/propertie-2024"; - client.listGoogleAdsLinks(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getDataSharingSettingsTest() throws Exception { - DataSharingSettings expectedResponse = - DataSharingSettings.newBuilder() - .setName(DataSharingSettingsName.of("[ACCOUNT]").toString()) - .setSharingWithGoogleSupportEnabled(true) - .setSharingWithGoogleAssignedSalesEnabled(true) - .setSharingWithGoogleAnySalesEnabled(true) - .setSharingWithGoogleProductsEnabled(true) - .setSharingWithOthersEnabled(true) - .build(); - mockService.addResponse(expectedResponse); - - DataSharingSettingsName name = DataSharingSettingsName.of("[ACCOUNT]"); - - DataSharingSettings actualResponse = client.getDataSharingSettings(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void getDataSharingSettingsExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - DataSharingSettingsName name = DataSharingSettingsName.of("[ACCOUNT]"); - client.getDataSharingSettings(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getDataSharingSettingsTest2() throws Exception { - DataSharingSettings expectedResponse = - DataSharingSettings.newBuilder() - .setName(DataSharingSettingsName.of("[ACCOUNT]").toString()) - .setSharingWithGoogleSupportEnabled(true) - .setSharingWithGoogleAssignedSalesEnabled(true) - .setSharingWithGoogleAnySalesEnabled(true) - .setSharingWithGoogleProductsEnabled(true) - .setSharingWithOthersEnabled(true) - .build(); - mockService.addResponse(expectedResponse); - - String name = "accounts/account-7122/dataSharingSettings"; - - DataSharingSettings actualResponse = client.getDataSharingSettings(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void getDataSharingSettingsExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = "accounts/account-7122/dataSharingSettings"; - client.getDataSharingSettings(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getMeasurementProtocolSecretTest() throws Exception { - MeasurementProtocolSecret expectedResponse = - MeasurementProtocolSecret.newBuilder() - .setName( - MeasurementProtocolSecretName.of( - "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]") - .toString()) - .setDisplayName("displayName1714148973") - .setSecretValue("secretValue-2044460895") - .build(); - mockService.addResponse(expectedResponse); - - MeasurementProtocolSecretName name = - MeasurementProtocolSecretName.of( - "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]"); - - MeasurementProtocolSecret actualResponse = client.getMeasurementProtocolSecret(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void getMeasurementProtocolSecretExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - MeasurementProtocolSecretName name = - MeasurementProtocolSecretName.of( - "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]"); - client.getMeasurementProtocolSecret(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getMeasurementProtocolSecretTest2() throws Exception { - MeasurementProtocolSecret expectedResponse = - MeasurementProtocolSecret.newBuilder() - .setName( - MeasurementProtocolSecretName.of( - "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]") - .toString()) - .setDisplayName("displayName1714148973") - .setSecretValue("secretValue-2044460895") - .build(); - mockService.addResponse(expectedResponse); - - String name = - "properties/propertie-6357/dataStreams/dataStream-6357/measurementProtocolSecrets/measurementProtocolSecret-6357"; - - MeasurementProtocolSecret actualResponse = client.getMeasurementProtocolSecret(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void getMeasurementProtocolSecretExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = - "properties/propertie-6357/dataStreams/dataStream-6357/measurementProtocolSecrets/measurementProtocolSecret-6357"; - client.getMeasurementProtocolSecret(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listMeasurementProtocolSecretsTest() throws Exception { - MeasurementProtocolSecret responsesElement = MeasurementProtocolSecret.newBuilder().build(); - ListMeasurementProtocolSecretsResponse expectedResponse = - ListMeasurementProtocolSecretsResponse.newBuilder() - .setNextPageToken("") - .addAllMeasurementProtocolSecrets(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - DataStreamName parent = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]"); - - ListMeasurementProtocolSecretsPagedResponse pagedListResponse = - client.listMeasurementProtocolSecrets(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals( - expectedResponse.getMeasurementProtocolSecretsList().get(0), resources.get(0)); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void listMeasurementProtocolSecretsExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - DataStreamName parent = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]"); - client.listMeasurementProtocolSecrets(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listMeasurementProtocolSecretsTest2() throws Exception { - MeasurementProtocolSecret responsesElement = MeasurementProtocolSecret.newBuilder().build(); - ListMeasurementProtocolSecretsResponse expectedResponse = - ListMeasurementProtocolSecretsResponse.newBuilder() - .setNextPageToken("") - .addAllMeasurementProtocolSecrets(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - String parent = "properties/propertie-9651/dataStreams/dataStream-9651"; - - ListMeasurementProtocolSecretsPagedResponse pagedListResponse = - client.listMeasurementProtocolSecrets(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals( - expectedResponse.getMeasurementProtocolSecretsList().get(0), resources.get(0)); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void listMeasurementProtocolSecretsExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String parent = "properties/propertie-9651/dataStreams/dataStream-9651"; - client.listMeasurementProtocolSecrets(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createMeasurementProtocolSecretTest() throws Exception { - MeasurementProtocolSecret expectedResponse = - MeasurementProtocolSecret.newBuilder() - .setName( - MeasurementProtocolSecretName.of( - "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]") - .toString()) - .setDisplayName("displayName1714148973") - .setSecretValue("secretValue-2044460895") - .build(); - mockService.addResponse(expectedResponse); - - DataStreamName parent = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]"); - MeasurementProtocolSecret measurementProtocolSecret = - MeasurementProtocolSecret.newBuilder().build(); - - MeasurementProtocolSecret actualResponse = - client.createMeasurementProtocolSecret(parent, measurementProtocolSecret); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void createMeasurementProtocolSecretExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - DataStreamName parent = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]"); - MeasurementProtocolSecret measurementProtocolSecret = - MeasurementProtocolSecret.newBuilder().build(); - client.createMeasurementProtocolSecret(parent, measurementProtocolSecret); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createMeasurementProtocolSecretTest2() throws Exception { - MeasurementProtocolSecret expectedResponse = - MeasurementProtocolSecret.newBuilder() - .setName( - MeasurementProtocolSecretName.of( - "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]") - .toString()) - .setDisplayName("displayName1714148973") - .setSecretValue("secretValue-2044460895") - .build(); - mockService.addResponse(expectedResponse); - - String parent = "properties/propertie-9651/dataStreams/dataStream-9651"; - MeasurementProtocolSecret measurementProtocolSecret = - MeasurementProtocolSecret.newBuilder().build(); - - MeasurementProtocolSecret actualResponse = - client.createMeasurementProtocolSecret(parent, measurementProtocolSecret); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void createMeasurementProtocolSecretExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String parent = "properties/propertie-9651/dataStreams/dataStream-9651"; - MeasurementProtocolSecret measurementProtocolSecret = - MeasurementProtocolSecret.newBuilder().build(); - client.createMeasurementProtocolSecret(parent, measurementProtocolSecret); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteMeasurementProtocolSecretTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockService.addResponse(expectedResponse); - - MeasurementProtocolSecretName name = - MeasurementProtocolSecretName.of( - "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]"); - - client.deleteMeasurementProtocolSecret(name); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void deleteMeasurementProtocolSecretExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - MeasurementProtocolSecretName name = - MeasurementProtocolSecretName.of( - "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]"); - client.deleteMeasurementProtocolSecret(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteMeasurementProtocolSecretTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockService.addResponse(expectedResponse); - - String name = - "properties/propertie-6357/dataStreams/dataStream-6357/measurementProtocolSecrets/measurementProtocolSecret-6357"; - - client.deleteMeasurementProtocolSecret(name); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void deleteMeasurementProtocolSecretExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = - "properties/propertie-6357/dataStreams/dataStream-6357/measurementProtocolSecrets/measurementProtocolSecret-6357"; - client.deleteMeasurementProtocolSecret(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateMeasurementProtocolSecretTest() throws Exception { - MeasurementProtocolSecret expectedResponse = - MeasurementProtocolSecret.newBuilder() - .setName( - MeasurementProtocolSecretName.of( - "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]") - .toString()) - .setDisplayName("displayName1714148973") - .setSecretValue("secretValue-2044460895") - .build(); - mockService.addResponse(expectedResponse); - - MeasurementProtocolSecret measurementProtocolSecret = - MeasurementProtocolSecret.newBuilder() - .setName( - MeasurementProtocolSecretName.of( - "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]") - .toString()) - .setDisplayName("displayName1714148973") - .setSecretValue("secretValue-2044460895") - .build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - MeasurementProtocolSecret actualResponse = - client.updateMeasurementProtocolSecret(measurementProtocolSecret, updateMask); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void updateMeasurementProtocolSecretExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - MeasurementProtocolSecret measurementProtocolSecret = - MeasurementProtocolSecret.newBuilder() - .setName( - MeasurementProtocolSecretName.of( - "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]") - .toString()) - .setDisplayName("displayName1714148973") - .setSecretValue("secretValue-2044460895") - .build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateMeasurementProtocolSecret(measurementProtocolSecret, updateMask); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void acknowledgeUserDataCollectionTest() throws Exception { - AcknowledgeUserDataCollectionResponse expectedResponse = - AcknowledgeUserDataCollectionResponse.newBuilder().build(); - mockService.addResponse(expectedResponse); - - AcknowledgeUserDataCollectionRequest request = - AcknowledgeUserDataCollectionRequest.newBuilder() - .setProperty(PropertyName.of("[PROPERTY]").toString()) - .setAcknowledgement("acknowledgement1769490938") - .build(); - - AcknowledgeUserDataCollectionResponse actualResponse = - client.acknowledgeUserDataCollection(request); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void acknowledgeUserDataCollectionExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - AcknowledgeUserDataCollectionRequest request = - AcknowledgeUserDataCollectionRequest.newBuilder() - .setProperty(PropertyName.of("[PROPERTY]").toString()) - .setAcknowledgement("acknowledgement1769490938") - .build(); - client.acknowledgeUserDataCollection(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void searchChangeHistoryEventsTest() throws Exception { - ChangeHistoryEvent responsesElement = ChangeHistoryEvent.newBuilder().build(); - SearchChangeHistoryEventsResponse expectedResponse = - SearchChangeHistoryEventsResponse.newBuilder() - .setNextPageToken("") - .addAllChangeHistoryEvents(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - SearchChangeHistoryEventsRequest request = - SearchChangeHistoryEventsRequest.newBuilder() - .setAccount(AccountName.of("[ACCOUNT]").toString()) - .setProperty(PropertyName.of("[PROPERTY]").toString()) - .addAllResourceType(new ArrayList()) - .addAllAction(new ArrayList()) - .addAllActorEmail(new ArrayList()) - .setEarliestChangeTime(Timestamp.newBuilder().build()) - .setLatestChangeTime(Timestamp.newBuilder().build()) - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .build(); - - SearchChangeHistoryEventsPagedResponse pagedListResponse = - client.searchChangeHistoryEvents(request); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getChangeHistoryEventsList().get(0), resources.get(0)); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void searchChangeHistoryEventsExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - SearchChangeHistoryEventsRequest request = - SearchChangeHistoryEventsRequest.newBuilder() - .setAccount(AccountName.of("[ACCOUNT]").toString()) - .setProperty(PropertyName.of("[PROPERTY]").toString()) - .addAllResourceType(new ArrayList()) - .addAllAction(new ArrayList()) - .addAllActorEmail(new ArrayList()) - .setEarliestChangeTime(Timestamp.newBuilder().build()) - .setLatestChangeTime(Timestamp.newBuilder().build()) - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .build(); - client.searchChangeHistoryEvents(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getGoogleSignalsSettingsTest() throws Exception { - GoogleSignalsSettings expectedResponse = - GoogleSignalsSettings.newBuilder() - .setName(GoogleSignalsSettingsName.of("[PROPERTY]").toString()) - .setState(GoogleSignalsState.forNumber(0)) - .setConsent(GoogleSignalsConsent.forNumber(0)) - .build(); - mockService.addResponse(expectedResponse); - - GoogleSignalsSettingsName name = GoogleSignalsSettingsName.of("[PROPERTY]"); - - GoogleSignalsSettings actualResponse = client.getGoogleSignalsSettings(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void getGoogleSignalsSettingsExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - GoogleSignalsSettingsName name = GoogleSignalsSettingsName.of("[PROPERTY]"); - client.getGoogleSignalsSettings(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getGoogleSignalsSettingsTest2() throws Exception { - GoogleSignalsSettings expectedResponse = - GoogleSignalsSettings.newBuilder() - .setName(GoogleSignalsSettingsName.of("[PROPERTY]").toString()) - .setState(GoogleSignalsState.forNumber(0)) - .setConsent(GoogleSignalsConsent.forNumber(0)) - .build(); - mockService.addResponse(expectedResponse); - - String name = "properties/propertie-7279/googleSignalsSettings"; - - GoogleSignalsSettings actualResponse = client.getGoogleSignalsSettings(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void getGoogleSignalsSettingsExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = "properties/propertie-7279/googleSignalsSettings"; - client.getGoogleSignalsSettings(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateGoogleSignalsSettingsTest() throws Exception { - GoogleSignalsSettings expectedResponse = - GoogleSignalsSettings.newBuilder() - .setName(GoogleSignalsSettingsName.of("[PROPERTY]").toString()) - .setState(GoogleSignalsState.forNumber(0)) - .setConsent(GoogleSignalsConsent.forNumber(0)) - .build(); - mockService.addResponse(expectedResponse); - - GoogleSignalsSettings googleSignalsSettings = - GoogleSignalsSettings.newBuilder() - .setName(GoogleSignalsSettingsName.of("[PROPERTY]").toString()) - .setState(GoogleSignalsState.forNumber(0)) - .setConsent(GoogleSignalsConsent.forNumber(0)) - .build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - GoogleSignalsSettings actualResponse = - client.updateGoogleSignalsSettings(googleSignalsSettings, updateMask); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void updateGoogleSignalsSettingsExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - GoogleSignalsSettings googleSignalsSettings = - GoogleSignalsSettings.newBuilder() - .setName(GoogleSignalsSettingsName.of("[PROPERTY]").toString()) - .setState(GoogleSignalsState.forNumber(0)) - .setConsent(GoogleSignalsConsent.forNumber(0)) - .build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateGoogleSignalsSettings(googleSignalsSettings, updateMask); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createConversionEventTest() throws Exception { - ConversionEvent expectedResponse = - ConversionEvent.newBuilder() - .setName(ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]").toString()) - .setEventName("eventName31228997") - .setCreateTime(Timestamp.newBuilder().build()) - .setDeletable(true) - .setCustom(true) - .build(); - mockService.addResponse(expectedResponse); - - PropertyName parent = PropertyName.of("[PROPERTY]"); - ConversionEvent conversionEvent = ConversionEvent.newBuilder().build(); - - ConversionEvent actualResponse = client.createConversionEvent(parent, conversionEvent); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void createConversionEventExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - PropertyName parent = PropertyName.of("[PROPERTY]"); - ConversionEvent conversionEvent = ConversionEvent.newBuilder().build(); - client.createConversionEvent(parent, conversionEvent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createConversionEventTest2() throws Exception { - ConversionEvent expectedResponse = - ConversionEvent.newBuilder() - .setName(ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]").toString()) - .setEventName("eventName31228997") - .setCreateTime(Timestamp.newBuilder().build()) - .setDeletable(true) - .setCustom(true) - .build(); - mockService.addResponse(expectedResponse); - - String parent = "properties/propertie-2024"; - ConversionEvent conversionEvent = ConversionEvent.newBuilder().build(); - - ConversionEvent actualResponse = client.createConversionEvent(parent, conversionEvent); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void createConversionEventExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String parent = "properties/propertie-2024"; - ConversionEvent conversionEvent = ConversionEvent.newBuilder().build(); - client.createConversionEvent(parent, conversionEvent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getConversionEventTest() throws Exception { - ConversionEvent expectedResponse = - ConversionEvent.newBuilder() - .setName(ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]").toString()) - .setEventName("eventName31228997") - .setCreateTime(Timestamp.newBuilder().build()) - .setDeletable(true) - .setCustom(true) - .build(); - mockService.addResponse(expectedResponse); - - ConversionEventName name = ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]"); - - ConversionEvent actualResponse = client.getConversionEvent(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void getConversionEventExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - ConversionEventName name = ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]"); - client.getConversionEvent(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getConversionEventTest2() throws Exception { - ConversionEvent expectedResponse = - ConversionEvent.newBuilder() - .setName(ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]").toString()) - .setEventName("eventName31228997") - .setCreateTime(Timestamp.newBuilder().build()) - .setDeletable(true) - .setCustom(true) - .build(); - mockService.addResponse(expectedResponse); - - String name = "properties/propertie-4144/conversionEvents/conversionEvent-4144"; - - ConversionEvent actualResponse = client.getConversionEvent(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void getConversionEventExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = "properties/propertie-4144/conversionEvents/conversionEvent-4144"; - client.getConversionEvent(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteConversionEventTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockService.addResponse(expectedResponse); - - ConversionEventName name = ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]"); - - client.deleteConversionEvent(name); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void deleteConversionEventExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - ConversionEventName name = ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]"); - client.deleteConversionEvent(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteConversionEventTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockService.addResponse(expectedResponse); - - String name = "properties/propertie-4144/conversionEvents/conversionEvent-4144"; - - client.deleteConversionEvent(name); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void deleteConversionEventExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = "properties/propertie-4144/conversionEvents/conversionEvent-4144"; - client.deleteConversionEvent(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listConversionEventsTest() throws Exception { - ConversionEvent responsesElement = ConversionEvent.newBuilder().build(); - ListConversionEventsResponse expectedResponse = - ListConversionEventsResponse.newBuilder() - .setNextPageToken("") - .addAllConversionEvents(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - PropertyName parent = PropertyName.of("[PROPERTY]"); - - ListConversionEventsPagedResponse pagedListResponse = client.listConversionEvents(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getConversionEventsList().get(0), resources.get(0)); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void listConversionEventsExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - PropertyName parent = PropertyName.of("[PROPERTY]"); - client.listConversionEvents(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listConversionEventsTest2() throws Exception { - ConversionEvent responsesElement = ConversionEvent.newBuilder().build(); - ListConversionEventsResponse expectedResponse = - ListConversionEventsResponse.newBuilder() - .setNextPageToken("") - .addAllConversionEvents(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - String parent = "properties/propertie-2024"; - - ListConversionEventsPagedResponse pagedListResponse = client.listConversionEvents(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getConversionEventsList().get(0), resources.get(0)); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void listConversionEventsExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String parent = "properties/propertie-2024"; - client.listConversionEvents(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getDisplayVideo360AdvertiserLinkTest() throws Exception { - DisplayVideo360AdvertiserLink expectedResponse = - DisplayVideo360AdvertiserLink.newBuilder() - .setName( - DisplayVideo360AdvertiserLinkName.of( - "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]") - .toString()) - .setAdvertiserId("advertiserId550061990") - .setAdvertiserDisplayName("advertiserDisplayName1594116162") - .setAdsPersonalizationEnabled(BoolValue.newBuilder().build()) - .setCampaignDataSharingEnabled(BoolValue.newBuilder().build()) - .setCostDataSharingEnabled(BoolValue.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - DisplayVideo360AdvertiserLinkName name = - DisplayVideo360AdvertiserLinkName.of("[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]"); - - DisplayVideo360AdvertiserLink actualResponse = client.getDisplayVideo360AdvertiserLink(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void getDisplayVideo360AdvertiserLinkExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - DisplayVideo360AdvertiserLinkName name = - DisplayVideo360AdvertiserLinkName.of("[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]"); - client.getDisplayVideo360AdvertiserLink(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getDisplayVideo360AdvertiserLinkTest2() throws Exception { - DisplayVideo360AdvertiserLink expectedResponse = - DisplayVideo360AdvertiserLink.newBuilder() - .setName( - DisplayVideo360AdvertiserLinkName.of( - "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]") - .toString()) - .setAdvertiserId("advertiserId550061990") - .setAdvertiserDisplayName("advertiserDisplayName1594116162") - .setAdsPersonalizationEnabled(BoolValue.newBuilder().build()) - .setCampaignDataSharingEnabled(BoolValue.newBuilder().build()) - .setCostDataSharingEnabled(BoolValue.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - String name = - "properties/propertie-7275/displayVideo360AdvertiserLinks/displayVideo360AdvertiserLink-7275"; - - DisplayVideo360AdvertiserLink actualResponse = client.getDisplayVideo360AdvertiserLink(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void getDisplayVideo360AdvertiserLinkExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = - "properties/propertie-7275/displayVideo360AdvertiserLinks/displayVideo360AdvertiserLink-7275"; - client.getDisplayVideo360AdvertiserLink(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listDisplayVideo360AdvertiserLinksTest() throws Exception { - DisplayVideo360AdvertiserLink responsesElement = - DisplayVideo360AdvertiserLink.newBuilder().build(); - ListDisplayVideo360AdvertiserLinksResponse expectedResponse = - ListDisplayVideo360AdvertiserLinksResponse.newBuilder() - .setNextPageToken("") - .addAllDisplayVideo360AdvertiserLinks(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - PropertyName parent = PropertyName.of("[PROPERTY]"); - - ListDisplayVideo360AdvertiserLinksPagedResponse pagedListResponse = - client.listDisplayVideo360AdvertiserLinks(parent); - - List resources = - Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals( - expectedResponse.getDisplayVideo360AdvertiserLinksList().get(0), resources.get(0)); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void listDisplayVideo360AdvertiserLinksExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - PropertyName parent = PropertyName.of("[PROPERTY]"); - client.listDisplayVideo360AdvertiserLinks(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listDisplayVideo360AdvertiserLinksTest2() throws Exception { - DisplayVideo360AdvertiserLink responsesElement = - DisplayVideo360AdvertiserLink.newBuilder().build(); - ListDisplayVideo360AdvertiserLinksResponse expectedResponse = - ListDisplayVideo360AdvertiserLinksResponse.newBuilder() - .setNextPageToken("") - .addAllDisplayVideo360AdvertiserLinks(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - String parent = "properties/propertie-2024"; - - ListDisplayVideo360AdvertiserLinksPagedResponse pagedListResponse = - client.listDisplayVideo360AdvertiserLinks(parent); - - List resources = - Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals( - expectedResponse.getDisplayVideo360AdvertiserLinksList().get(0), resources.get(0)); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void listDisplayVideo360AdvertiserLinksExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String parent = "properties/propertie-2024"; - client.listDisplayVideo360AdvertiserLinks(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createDisplayVideo360AdvertiserLinkTest() throws Exception { - DisplayVideo360AdvertiserLink expectedResponse = - DisplayVideo360AdvertiserLink.newBuilder() - .setName( - DisplayVideo360AdvertiserLinkName.of( - "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]") - .toString()) - .setAdvertiserId("advertiserId550061990") - .setAdvertiserDisplayName("advertiserDisplayName1594116162") - .setAdsPersonalizationEnabled(BoolValue.newBuilder().build()) - .setCampaignDataSharingEnabled(BoolValue.newBuilder().build()) - .setCostDataSharingEnabled(BoolValue.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - PropertyName parent = PropertyName.of("[PROPERTY]"); - DisplayVideo360AdvertiserLink displayVideo360AdvertiserLink = - DisplayVideo360AdvertiserLink.newBuilder().build(); - - DisplayVideo360AdvertiserLink actualResponse = - client.createDisplayVideo360AdvertiserLink(parent, displayVideo360AdvertiserLink); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void createDisplayVideo360AdvertiserLinkExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - PropertyName parent = PropertyName.of("[PROPERTY]"); - DisplayVideo360AdvertiserLink displayVideo360AdvertiserLink = - DisplayVideo360AdvertiserLink.newBuilder().build(); - client.createDisplayVideo360AdvertiserLink(parent, displayVideo360AdvertiserLink); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createDisplayVideo360AdvertiserLinkTest2() throws Exception { - DisplayVideo360AdvertiserLink expectedResponse = - DisplayVideo360AdvertiserLink.newBuilder() - .setName( - DisplayVideo360AdvertiserLinkName.of( - "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]") - .toString()) - .setAdvertiserId("advertiserId550061990") - .setAdvertiserDisplayName("advertiserDisplayName1594116162") - .setAdsPersonalizationEnabled(BoolValue.newBuilder().build()) - .setCampaignDataSharingEnabled(BoolValue.newBuilder().build()) - .setCostDataSharingEnabled(BoolValue.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - String parent = "properties/propertie-2024"; - DisplayVideo360AdvertiserLink displayVideo360AdvertiserLink = - DisplayVideo360AdvertiserLink.newBuilder().build(); - - DisplayVideo360AdvertiserLink actualResponse = - client.createDisplayVideo360AdvertiserLink(parent, displayVideo360AdvertiserLink); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void createDisplayVideo360AdvertiserLinkExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String parent = "properties/propertie-2024"; - DisplayVideo360AdvertiserLink displayVideo360AdvertiserLink = - DisplayVideo360AdvertiserLink.newBuilder().build(); - client.createDisplayVideo360AdvertiserLink(parent, displayVideo360AdvertiserLink); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteDisplayVideo360AdvertiserLinkTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockService.addResponse(expectedResponse); - - DisplayVideo360AdvertiserLinkName name = - DisplayVideo360AdvertiserLinkName.of("[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]"); - - client.deleteDisplayVideo360AdvertiserLink(name); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void deleteDisplayVideo360AdvertiserLinkExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - DisplayVideo360AdvertiserLinkName name = - DisplayVideo360AdvertiserLinkName.of("[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]"); - client.deleteDisplayVideo360AdvertiserLink(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteDisplayVideo360AdvertiserLinkTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockService.addResponse(expectedResponse); - - String name = - "properties/propertie-7275/displayVideo360AdvertiserLinks/displayVideo360AdvertiserLink-7275"; - - client.deleteDisplayVideo360AdvertiserLink(name); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void deleteDisplayVideo360AdvertiserLinkExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = - "properties/propertie-7275/displayVideo360AdvertiserLinks/displayVideo360AdvertiserLink-7275"; - client.deleteDisplayVideo360AdvertiserLink(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateDisplayVideo360AdvertiserLinkTest() throws Exception { - DisplayVideo360AdvertiserLink expectedResponse = - DisplayVideo360AdvertiserLink.newBuilder() - .setName( - DisplayVideo360AdvertiserLinkName.of( - "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]") - .toString()) - .setAdvertiserId("advertiserId550061990") - .setAdvertiserDisplayName("advertiserDisplayName1594116162") - .setAdsPersonalizationEnabled(BoolValue.newBuilder().build()) - .setCampaignDataSharingEnabled(BoolValue.newBuilder().build()) - .setCostDataSharingEnabled(BoolValue.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - DisplayVideo360AdvertiserLink displayVideo360AdvertiserLink = - DisplayVideo360AdvertiserLink.newBuilder() - .setName( - DisplayVideo360AdvertiserLinkName.of( - "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]") - .toString()) - .setAdvertiserId("advertiserId550061990") - .setAdvertiserDisplayName("advertiserDisplayName1594116162") - .setAdsPersonalizationEnabled(BoolValue.newBuilder().build()) - .setCampaignDataSharingEnabled(BoolValue.newBuilder().build()) - .setCostDataSharingEnabled(BoolValue.newBuilder().build()) - .build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - DisplayVideo360AdvertiserLink actualResponse = - client.updateDisplayVideo360AdvertiserLink(displayVideo360AdvertiserLink, updateMask); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void updateDisplayVideo360AdvertiserLinkExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - DisplayVideo360AdvertiserLink displayVideo360AdvertiserLink = - DisplayVideo360AdvertiserLink.newBuilder() - .setName( - DisplayVideo360AdvertiserLinkName.of( - "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]") - .toString()) - .setAdvertiserId("advertiserId550061990") - .setAdvertiserDisplayName("advertiserDisplayName1594116162") - .setAdsPersonalizationEnabled(BoolValue.newBuilder().build()) - .setCampaignDataSharingEnabled(BoolValue.newBuilder().build()) - .setCostDataSharingEnabled(BoolValue.newBuilder().build()) - .build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateDisplayVideo360AdvertiserLink(displayVideo360AdvertiserLink, updateMask); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getDisplayVideo360AdvertiserLinkProposalTest() throws Exception { - DisplayVideo360AdvertiserLinkProposal expectedResponse = - DisplayVideo360AdvertiserLinkProposal.newBuilder() - .setName( - DisplayVideo360AdvertiserLinkProposalName.of( - "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]") - .toString()) - .setAdvertiserId("advertiserId550061990") - .setLinkProposalStatusDetails(LinkProposalStatusDetails.newBuilder().build()) - .setAdvertiserDisplayName("advertiserDisplayName1594116162") - .setValidationEmail("validationEmail-94407005") - .setAdsPersonalizationEnabled(BoolValue.newBuilder().build()) - .setCampaignDataSharingEnabled(BoolValue.newBuilder().build()) - .setCostDataSharingEnabled(BoolValue.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - DisplayVideo360AdvertiserLinkProposalName name = - DisplayVideo360AdvertiserLinkProposalName.of( - "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]"); - - DisplayVideo360AdvertiserLinkProposal actualResponse = - client.getDisplayVideo360AdvertiserLinkProposal(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void getDisplayVideo360AdvertiserLinkProposalExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - DisplayVideo360AdvertiserLinkProposalName name = - DisplayVideo360AdvertiserLinkProposalName.of( - "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]"); - client.getDisplayVideo360AdvertiserLinkProposal(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getDisplayVideo360AdvertiserLinkProposalTest2() throws Exception { - DisplayVideo360AdvertiserLinkProposal expectedResponse = - DisplayVideo360AdvertiserLinkProposal.newBuilder() - .setName( - DisplayVideo360AdvertiserLinkProposalName.of( - "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]") - .toString()) - .setAdvertiserId("advertiserId550061990") - .setLinkProposalStatusDetails(LinkProposalStatusDetails.newBuilder().build()) - .setAdvertiserDisplayName("advertiserDisplayName1594116162") - .setValidationEmail("validationEmail-94407005") - .setAdsPersonalizationEnabled(BoolValue.newBuilder().build()) - .setCampaignDataSharingEnabled(BoolValue.newBuilder().build()) - .setCostDataSharingEnabled(BoolValue.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - String name = - "properties/propertie-8473/displayVideo360AdvertiserLinkProposals/displayVideo360AdvertiserLinkProposal-8473"; - - DisplayVideo360AdvertiserLinkProposal actualResponse = - client.getDisplayVideo360AdvertiserLinkProposal(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void getDisplayVideo360AdvertiserLinkProposalExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = - "properties/propertie-8473/displayVideo360AdvertiserLinkProposals/displayVideo360AdvertiserLinkProposal-8473"; - client.getDisplayVideo360AdvertiserLinkProposal(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listDisplayVideo360AdvertiserLinkProposalsTest() throws Exception { - DisplayVideo360AdvertiserLinkProposal responsesElement = - DisplayVideo360AdvertiserLinkProposal.newBuilder().build(); - ListDisplayVideo360AdvertiserLinkProposalsResponse expectedResponse = - ListDisplayVideo360AdvertiserLinkProposalsResponse.newBuilder() - .setNextPageToken("") - .addAllDisplayVideo360AdvertiserLinkProposals(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - PropertyName parent = PropertyName.of("[PROPERTY]"); - - ListDisplayVideo360AdvertiserLinkProposalsPagedResponse pagedListResponse = - client.listDisplayVideo360AdvertiserLinkProposals(parent); - - List resources = - Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals( - expectedResponse.getDisplayVideo360AdvertiserLinkProposalsList().get(0), resources.get(0)); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void listDisplayVideo360AdvertiserLinkProposalsExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - PropertyName parent = PropertyName.of("[PROPERTY]"); - client.listDisplayVideo360AdvertiserLinkProposals(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listDisplayVideo360AdvertiserLinkProposalsTest2() throws Exception { - DisplayVideo360AdvertiserLinkProposal responsesElement = - DisplayVideo360AdvertiserLinkProposal.newBuilder().build(); - ListDisplayVideo360AdvertiserLinkProposalsResponse expectedResponse = - ListDisplayVideo360AdvertiserLinkProposalsResponse.newBuilder() - .setNextPageToken("") - .addAllDisplayVideo360AdvertiserLinkProposals(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - String parent = "properties/propertie-2024"; - - ListDisplayVideo360AdvertiserLinkProposalsPagedResponse pagedListResponse = - client.listDisplayVideo360AdvertiserLinkProposals(parent); - - List resources = - Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals( - expectedResponse.getDisplayVideo360AdvertiserLinkProposalsList().get(0), resources.get(0)); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void listDisplayVideo360AdvertiserLinkProposalsExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String parent = "properties/propertie-2024"; - client.listDisplayVideo360AdvertiserLinkProposals(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createDisplayVideo360AdvertiserLinkProposalTest() throws Exception { - DisplayVideo360AdvertiserLinkProposal expectedResponse = - DisplayVideo360AdvertiserLinkProposal.newBuilder() - .setName( - DisplayVideo360AdvertiserLinkProposalName.of( - "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]") - .toString()) - .setAdvertiserId("advertiserId550061990") - .setLinkProposalStatusDetails(LinkProposalStatusDetails.newBuilder().build()) - .setAdvertiserDisplayName("advertiserDisplayName1594116162") - .setValidationEmail("validationEmail-94407005") - .setAdsPersonalizationEnabled(BoolValue.newBuilder().build()) - .setCampaignDataSharingEnabled(BoolValue.newBuilder().build()) - .setCostDataSharingEnabled(BoolValue.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - PropertyName parent = PropertyName.of("[PROPERTY]"); - DisplayVideo360AdvertiserLinkProposal displayVideo360AdvertiserLinkProposal = - DisplayVideo360AdvertiserLinkProposal.newBuilder().build(); - - DisplayVideo360AdvertiserLinkProposal actualResponse = - client.createDisplayVideo360AdvertiserLinkProposal( - parent, displayVideo360AdvertiserLinkProposal); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void createDisplayVideo360AdvertiserLinkProposalExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - PropertyName parent = PropertyName.of("[PROPERTY]"); - DisplayVideo360AdvertiserLinkProposal displayVideo360AdvertiserLinkProposal = - DisplayVideo360AdvertiserLinkProposal.newBuilder().build(); - client.createDisplayVideo360AdvertiserLinkProposal( - parent, displayVideo360AdvertiserLinkProposal); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createDisplayVideo360AdvertiserLinkProposalTest2() throws Exception { - DisplayVideo360AdvertiserLinkProposal expectedResponse = - DisplayVideo360AdvertiserLinkProposal.newBuilder() - .setName( - DisplayVideo360AdvertiserLinkProposalName.of( - "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]") - .toString()) - .setAdvertiserId("advertiserId550061990") - .setLinkProposalStatusDetails(LinkProposalStatusDetails.newBuilder().build()) - .setAdvertiserDisplayName("advertiserDisplayName1594116162") - .setValidationEmail("validationEmail-94407005") - .setAdsPersonalizationEnabled(BoolValue.newBuilder().build()) - .setCampaignDataSharingEnabled(BoolValue.newBuilder().build()) - .setCostDataSharingEnabled(BoolValue.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - String parent = "properties/propertie-2024"; - DisplayVideo360AdvertiserLinkProposal displayVideo360AdvertiserLinkProposal = - DisplayVideo360AdvertiserLinkProposal.newBuilder().build(); - - DisplayVideo360AdvertiserLinkProposal actualResponse = - client.createDisplayVideo360AdvertiserLinkProposal( - parent, displayVideo360AdvertiserLinkProposal); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void createDisplayVideo360AdvertiserLinkProposalExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String parent = "properties/propertie-2024"; - DisplayVideo360AdvertiserLinkProposal displayVideo360AdvertiserLinkProposal = - DisplayVideo360AdvertiserLinkProposal.newBuilder().build(); - client.createDisplayVideo360AdvertiserLinkProposal( - parent, displayVideo360AdvertiserLinkProposal); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteDisplayVideo360AdvertiserLinkProposalTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockService.addResponse(expectedResponse); - - DisplayVideo360AdvertiserLinkProposalName name = - DisplayVideo360AdvertiserLinkProposalName.of( - "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]"); - - client.deleteDisplayVideo360AdvertiserLinkProposal(name); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void deleteDisplayVideo360AdvertiserLinkProposalExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - DisplayVideo360AdvertiserLinkProposalName name = - DisplayVideo360AdvertiserLinkProposalName.of( - "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]"); - client.deleteDisplayVideo360AdvertiserLinkProposal(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteDisplayVideo360AdvertiserLinkProposalTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockService.addResponse(expectedResponse); - - String name = - "properties/propertie-8473/displayVideo360AdvertiserLinkProposals/displayVideo360AdvertiserLinkProposal-8473"; - - client.deleteDisplayVideo360AdvertiserLinkProposal(name); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void deleteDisplayVideo360AdvertiserLinkProposalExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = - "properties/propertie-8473/displayVideo360AdvertiserLinkProposals/displayVideo360AdvertiserLinkProposal-8473"; - client.deleteDisplayVideo360AdvertiserLinkProposal(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void approveDisplayVideo360AdvertiserLinkProposalTest() throws Exception { - ApproveDisplayVideo360AdvertiserLinkProposalResponse expectedResponse = - ApproveDisplayVideo360AdvertiserLinkProposalResponse.newBuilder() - .setDisplayVideo360AdvertiserLink(DisplayVideo360AdvertiserLink.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - ApproveDisplayVideo360AdvertiserLinkProposalRequest request = - ApproveDisplayVideo360AdvertiserLinkProposalRequest.newBuilder() - .setName( - DisplayVideo360AdvertiserLinkProposalName.of( - "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]") - .toString()) - .build(); - - ApproveDisplayVideo360AdvertiserLinkProposalResponse actualResponse = - client.approveDisplayVideo360AdvertiserLinkProposal(request); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void approveDisplayVideo360AdvertiserLinkProposalExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - ApproveDisplayVideo360AdvertiserLinkProposalRequest request = - ApproveDisplayVideo360AdvertiserLinkProposalRequest.newBuilder() - .setName( - DisplayVideo360AdvertiserLinkProposalName.of( - "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]") - .toString()) - .build(); - client.approveDisplayVideo360AdvertiserLinkProposal(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void cancelDisplayVideo360AdvertiserLinkProposalTest() throws Exception { - DisplayVideo360AdvertiserLinkProposal expectedResponse = - DisplayVideo360AdvertiserLinkProposal.newBuilder() - .setName( - DisplayVideo360AdvertiserLinkProposalName.of( - "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]") - .toString()) - .setAdvertiserId("advertiserId550061990") - .setLinkProposalStatusDetails(LinkProposalStatusDetails.newBuilder().build()) - .setAdvertiserDisplayName("advertiserDisplayName1594116162") - .setValidationEmail("validationEmail-94407005") - .setAdsPersonalizationEnabled(BoolValue.newBuilder().build()) - .setCampaignDataSharingEnabled(BoolValue.newBuilder().build()) - .setCostDataSharingEnabled(BoolValue.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - CancelDisplayVideo360AdvertiserLinkProposalRequest request = - CancelDisplayVideo360AdvertiserLinkProposalRequest.newBuilder() - .setName( - DisplayVideo360AdvertiserLinkProposalName.of( - "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]") - .toString()) - .build(); - - DisplayVideo360AdvertiserLinkProposal actualResponse = - client.cancelDisplayVideo360AdvertiserLinkProposal(request); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void cancelDisplayVideo360AdvertiserLinkProposalExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - CancelDisplayVideo360AdvertiserLinkProposalRequest request = - CancelDisplayVideo360AdvertiserLinkProposalRequest.newBuilder() - .setName( - DisplayVideo360AdvertiserLinkProposalName.of( - "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]") - .toString()) - .build(); - client.cancelDisplayVideo360AdvertiserLinkProposal(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createCustomDimensionTest() throws Exception { - CustomDimension expectedResponse = - CustomDimension.newBuilder() - .setName(CustomDimensionName.of("[PROPERTY]", "[CUSTOM_DIMENSION]").toString()) - .setParameterName("parameterName-379607596") - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setDisallowAdsPersonalization(true) - .build(); - mockService.addResponse(expectedResponse); - - PropertyName parent = PropertyName.of("[PROPERTY]"); - CustomDimension customDimension = CustomDimension.newBuilder().build(); - - CustomDimension actualResponse = client.createCustomDimension(parent, customDimension); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void createCustomDimensionExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - PropertyName parent = PropertyName.of("[PROPERTY]"); - CustomDimension customDimension = CustomDimension.newBuilder().build(); - client.createCustomDimension(parent, customDimension); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createCustomDimensionTest2() throws Exception { - CustomDimension expectedResponse = - CustomDimension.newBuilder() - .setName(CustomDimensionName.of("[PROPERTY]", "[CUSTOM_DIMENSION]").toString()) - .setParameterName("parameterName-379607596") - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setDisallowAdsPersonalization(true) - .build(); - mockService.addResponse(expectedResponse); - - String parent = "properties/propertie-2024"; - CustomDimension customDimension = CustomDimension.newBuilder().build(); - - CustomDimension actualResponse = client.createCustomDimension(parent, customDimension); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void createCustomDimensionExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String parent = "properties/propertie-2024"; - CustomDimension customDimension = CustomDimension.newBuilder().build(); - client.createCustomDimension(parent, customDimension); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateCustomDimensionTest() throws Exception { - CustomDimension expectedResponse = - CustomDimension.newBuilder() - .setName(CustomDimensionName.of("[PROPERTY]", "[CUSTOM_DIMENSION]").toString()) - .setParameterName("parameterName-379607596") - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setDisallowAdsPersonalization(true) - .build(); - mockService.addResponse(expectedResponse); - - CustomDimension customDimension = - CustomDimension.newBuilder() - .setName(CustomDimensionName.of("[PROPERTY]", "[CUSTOM_DIMENSION]").toString()) - .setParameterName("parameterName-379607596") - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setDisallowAdsPersonalization(true) - .build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - CustomDimension actualResponse = client.updateCustomDimension(customDimension, updateMask); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void updateCustomDimensionExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - CustomDimension customDimension = - CustomDimension.newBuilder() - .setName(CustomDimensionName.of("[PROPERTY]", "[CUSTOM_DIMENSION]").toString()) - .setParameterName("parameterName-379607596") - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setDisallowAdsPersonalization(true) - .build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateCustomDimension(customDimension, updateMask); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listCustomDimensionsTest() throws Exception { - CustomDimension responsesElement = CustomDimension.newBuilder().build(); - ListCustomDimensionsResponse expectedResponse = - ListCustomDimensionsResponse.newBuilder() - .setNextPageToken("") - .addAllCustomDimensions(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - PropertyName parent = PropertyName.of("[PROPERTY]"); - - ListCustomDimensionsPagedResponse pagedListResponse = client.listCustomDimensions(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getCustomDimensionsList().get(0), resources.get(0)); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void listCustomDimensionsExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - PropertyName parent = PropertyName.of("[PROPERTY]"); - client.listCustomDimensions(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listCustomDimensionsTest2() throws Exception { - CustomDimension responsesElement = CustomDimension.newBuilder().build(); - ListCustomDimensionsResponse expectedResponse = - ListCustomDimensionsResponse.newBuilder() - .setNextPageToken("") - .addAllCustomDimensions(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - String parent = "properties/propertie-2024"; - - ListCustomDimensionsPagedResponse pagedListResponse = client.listCustomDimensions(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getCustomDimensionsList().get(0), resources.get(0)); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void listCustomDimensionsExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String parent = "properties/propertie-2024"; - client.listCustomDimensions(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void archiveCustomDimensionTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockService.addResponse(expectedResponse); - - CustomDimensionName name = CustomDimensionName.of("[PROPERTY]", "[CUSTOM_DIMENSION]"); - - client.archiveCustomDimension(name); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void archiveCustomDimensionExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - CustomDimensionName name = CustomDimensionName.of("[PROPERTY]", "[CUSTOM_DIMENSION]"); - client.archiveCustomDimension(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void archiveCustomDimensionTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockService.addResponse(expectedResponse); - - String name = "properties/propertie-447/customDimensions/customDimension-447"; - - client.archiveCustomDimension(name); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void archiveCustomDimensionExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = "properties/propertie-447/customDimensions/customDimension-447"; - client.archiveCustomDimension(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getCustomDimensionTest() throws Exception { - CustomDimension expectedResponse = - CustomDimension.newBuilder() - .setName(CustomDimensionName.of("[PROPERTY]", "[CUSTOM_DIMENSION]").toString()) - .setParameterName("parameterName-379607596") - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setDisallowAdsPersonalization(true) - .build(); - mockService.addResponse(expectedResponse); - - CustomDimensionName name = CustomDimensionName.of("[PROPERTY]", "[CUSTOM_DIMENSION]"); - - CustomDimension actualResponse = client.getCustomDimension(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void getCustomDimensionExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - CustomDimensionName name = CustomDimensionName.of("[PROPERTY]", "[CUSTOM_DIMENSION]"); - client.getCustomDimension(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getCustomDimensionTest2() throws Exception { - CustomDimension expectedResponse = - CustomDimension.newBuilder() - .setName(CustomDimensionName.of("[PROPERTY]", "[CUSTOM_DIMENSION]").toString()) - .setParameterName("parameterName-379607596") - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setDisallowAdsPersonalization(true) - .build(); - mockService.addResponse(expectedResponse); - - String name = "properties/propertie-447/customDimensions/customDimension-447"; - - CustomDimension actualResponse = client.getCustomDimension(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void getCustomDimensionExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = "properties/propertie-447/customDimensions/customDimension-447"; - client.getCustomDimension(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createCustomMetricTest() throws Exception { - CustomMetric expectedResponse = - CustomMetric.newBuilder() - .setName(CustomMetricName.of("[PROPERTY]", "[CUSTOM_METRIC]").toString()) - .setParameterName("parameterName-379607596") - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .addAllRestrictedMetricType(new ArrayList()) - .build(); - mockService.addResponse(expectedResponse); - - PropertyName parent = PropertyName.of("[PROPERTY]"); - CustomMetric customMetric = CustomMetric.newBuilder().build(); - - CustomMetric actualResponse = client.createCustomMetric(parent, customMetric); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void createCustomMetricExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - PropertyName parent = PropertyName.of("[PROPERTY]"); - CustomMetric customMetric = CustomMetric.newBuilder().build(); - client.createCustomMetric(parent, customMetric); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createCustomMetricTest2() throws Exception { - CustomMetric expectedResponse = - CustomMetric.newBuilder() - .setName(CustomMetricName.of("[PROPERTY]", "[CUSTOM_METRIC]").toString()) - .setParameterName("parameterName-379607596") - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .addAllRestrictedMetricType(new ArrayList()) - .build(); - mockService.addResponse(expectedResponse); - - String parent = "properties/propertie-2024"; - CustomMetric customMetric = CustomMetric.newBuilder().build(); - - CustomMetric actualResponse = client.createCustomMetric(parent, customMetric); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void createCustomMetricExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String parent = "properties/propertie-2024"; - CustomMetric customMetric = CustomMetric.newBuilder().build(); - client.createCustomMetric(parent, customMetric); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateCustomMetricTest() throws Exception { - CustomMetric expectedResponse = - CustomMetric.newBuilder() - .setName(CustomMetricName.of("[PROPERTY]", "[CUSTOM_METRIC]").toString()) - .setParameterName("parameterName-379607596") - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .addAllRestrictedMetricType(new ArrayList()) - .build(); - mockService.addResponse(expectedResponse); - - CustomMetric customMetric = - CustomMetric.newBuilder() - .setName(CustomMetricName.of("[PROPERTY]", "[CUSTOM_METRIC]").toString()) - .setParameterName("parameterName-379607596") - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .addAllRestrictedMetricType(new ArrayList()) - .build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - CustomMetric actualResponse = client.updateCustomMetric(customMetric, updateMask); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void updateCustomMetricExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - CustomMetric customMetric = - CustomMetric.newBuilder() - .setName(CustomMetricName.of("[PROPERTY]", "[CUSTOM_METRIC]").toString()) - .setParameterName("parameterName-379607596") - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .addAllRestrictedMetricType(new ArrayList()) - .build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateCustomMetric(customMetric, updateMask); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listCustomMetricsTest() throws Exception { - CustomMetric responsesElement = CustomMetric.newBuilder().build(); - ListCustomMetricsResponse expectedResponse = - ListCustomMetricsResponse.newBuilder() - .setNextPageToken("") - .addAllCustomMetrics(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - PropertyName parent = PropertyName.of("[PROPERTY]"); - - ListCustomMetricsPagedResponse pagedListResponse = client.listCustomMetrics(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getCustomMetricsList().get(0), resources.get(0)); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void listCustomMetricsExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - PropertyName parent = PropertyName.of("[PROPERTY]"); - client.listCustomMetrics(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listCustomMetricsTest2() throws Exception { - CustomMetric responsesElement = CustomMetric.newBuilder().build(); - ListCustomMetricsResponse expectedResponse = - ListCustomMetricsResponse.newBuilder() - .setNextPageToken("") - .addAllCustomMetrics(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - String parent = "properties/propertie-2024"; - - ListCustomMetricsPagedResponse pagedListResponse = client.listCustomMetrics(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getCustomMetricsList().get(0), resources.get(0)); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void listCustomMetricsExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String parent = "properties/propertie-2024"; - client.listCustomMetrics(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void archiveCustomMetricTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockService.addResponse(expectedResponse); - - CustomMetricName name = CustomMetricName.of("[PROPERTY]", "[CUSTOM_METRIC]"); - - client.archiveCustomMetric(name); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void archiveCustomMetricExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - CustomMetricName name = CustomMetricName.of("[PROPERTY]", "[CUSTOM_METRIC]"); - client.archiveCustomMetric(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void archiveCustomMetricTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockService.addResponse(expectedResponse); - - String name = "properties/propertie-2999/customMetrics/customMetric-2999"; - - client.archiveCustomMetric(name); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void archiveCustomMetricExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = "properties/propertie-2999/customMetrics/customMetric-2999"; - client.archiveCustomMetric(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getCustomMetricTest() throws Exception { - CustomMetric expectedResponse = - CustomMetric.newBuilder() - .setName(CustomMetricName.of("[PROPERTY]", "[CUSTOM_METRIC]").toString()) - .setParameterName("parameterName-379607596") - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .addAllRestrictedMetricType(new ArrayList()) - .build(); - mockService.addResponse(expectedResponse); - - CustomMetricName name = CustomMetricName.of("[PROPERTY]", "[CUSTOM_METRIC]"); - - CustomMetric actualResponse = client.getCustomMetric(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void getCustomMetricExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - CustomMetricName name = CustomMetricName.of("[PROPERTY]", "[CUSTOM_METRIC]"); - client.getCustomMetric(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getCustomMetricTest2() throws Exception { - CustomMetric expectedResponse = - CustomMetric.newBuilder() - .setName(CustomMetricName.of("[PROPERTY]", "[CUSTOM_METRIC]").toString()) - .setParameterName("parameterName-379607596") - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .addAllRestrictedMetricType(new ArrayList()) - .build(); - mockService.addResponse(expectedResponse); - - String name = "properties/propertie-2999/customMetrics/customMetric-2999"; - - CustomMetric actualResponse = client.getCustomMetric(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void getCustomMetricExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = "properties/propertie-2999/customMetrics/customMetric-2999"; - client.getCustomMetric(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getDataRetentionSettingsTest() throws Exception { - DataRetentionSettings expectedResponse = - DataRetentionSettings.newBuilder() - .setName(DataRetentionSettingsName.of("[PROPERTY]").toString()) - .setResetUserDataOnNewActivity(true) - .build(); - mockService.addResponse(expectedResponse); - - DataRetentionSettingsName name = DataRetentionSettingsName.of("[PROPERTY]"); - - DataRetentionSettings actualResponse = client.getDataRetentionSettings(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void getDataRetentionSettingsExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - DataRetentionSettingsName name = DataRetentionSettingsName.of("[PROPERTY]"); - client.getDataRetentionSettings(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getDataRetentionSettingsTest2() throws Exception { - DataRetentionSettings expectedResponse = - DataRetentionSettings.newBuilder() - .setName(DataRetentionSettingsName.of("[PROPERTY]").toString()) - .setResetUserDataOnNewActivity(true) - .build(); - mockService.addResponse(expectedResponse); - - String name = "properties/propertie-2463/dataRetentionSettings"; - - DataRetentionSettings actualResponse = client.getDataRetentionSettings(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void getDataRetentionSettingsExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = "properties/propertie-2463/dataRetentionSettings"; - client.getDataRetentionSettings(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateDataRetentionSettingsTest() throws Exception { - DataRetentionSettings expectedResponse = - DataRetentionSettings.newBuilder() - .setName(DataRetentionSettingsName.of("[PROPERTY]").toString()) - .setResetUserDataOnNewActivity(true) - .build(); - mockService.addResponse(expectedResponse); - - DataRetentionSettings dataRetentionSettings = - DataRetentionSettings.newBuilder() - .setName(DataRetentionSettingsName.of("[PROPERTY]").toString()) - .setResetUserDataOnNewActivity(true) - .build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - DataRetentionSettings actualResponse = - client.updateDataRetentionSettings(dataRetentionSettings, updateMask); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void updateDataRetentionSettingsExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - DataRetentionSettings dataRetentionSettings = - DataRetentionSettings.newBuilder() - .setName(DataRetentionSettingsName.of("[PROPERTY]").toString()) - .setResetUserDataOnNewActivity(true) - .build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateDataRetentionSettings(dataRetentionSettings, updateMask); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createDataStreamTest() throws Exception { - DataStream expectedResponse = - DataStream.newBuilder() - .setName(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString()) - .setDisplayName("displayName1714148973") - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - PropertyName parent = PropertyName.of("[PROPERTY]"); - DataStream dataStream = DataStream.newBuilder().build(); - - DataStream actualResponse = client.createDataStream(parent, dataStream); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void createDataStreamExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - PropertyName parent = PropertyName.of("[PROPERTY]"); - DataStream dataStream = DataStream.newBuilder().build(); - client.createDataStream(parent, dataStream); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createDataStreamTest2() throws Exception { - DataStream expectedResponse = - DataStream.newBuilder() - .setName(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString()) - .setDisplayName("displayName1714148973") - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - String parent = "properties/propertie-2024"; - DataStream dataStream = DataStream.newBuilder().build(); - - DataStream actualResponse = client.createDataStream(parent, dataStream); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void createDataStreamExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String parent = "properties/propertie-2024"; - DataStream dataStream = DataStream.newBuilder().build(); - client.createDataStream(parent, dataStream); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteDataStreamTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockService.addResponse(expectedResponse); - - DataStreamName name = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]"); - - client.deleteDataStream(name); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void deleteDataStreamExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - DataStreamName name = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]"); - client.deleteDataStream(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteDataStreamTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockService.addResponse(expectedResponse); - - String name = "properties/propertie-9806/dataStreams/dataStream-9806"; - - client.deleteDataStream(name); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void deleteDataStreamExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = "properties/propertie-9806/dataStreams/dataStream-9806"; - client.deleteDataStream(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateDataStreamTest() throws Exception { - DataStream expectedResponse = - DataStream.newBuilder() - .setName(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString()) - .setDisplayName("displayName1714148973") - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - DataStream dataStream = - DataStream.newBuilder() - .setName(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString()) - .setDisplayName("displayName1714148973") - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - DataStream actualResponse = client.updateDataStream(dataStream, updateMask); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void updateDataStreamExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - DataStream dataStream = - DataStream.newBuilder() - .setName(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString()) - .setDisplayName("displayName1714148973") - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateDataStream(dataStream, updateMask); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listDataStreamsTest() throws Exception { - DataStream responsesElement = DataStream.newBuilder().build(); - ListDataStreamsResponse expectedResponse = - ListDataStreamsResponse.newBuilder() - .setNextPageToken("") - .addAllDataStreams(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - PropertyName parent = PropertyName.of("[PROPERTY]"); - - ListDataStreamsPagedResponse pagedListResponse = client.listDataStreams(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getDataStreamsList().get(0), resources.get(0)); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void listDataStreamsExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - PropertyName parent = PropertyName.of("[PROPERTY]"); - client.listDataStreams(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listDataStreamsTest2() throws Exception { - DataStream responsesElement = DataStream.newBuilder().build(); - ListDataStreamsResponse expectedResponse = - ListDataStreamsResponse.newBuilder() - .setNextPageToken("") - .addAllDataStreams(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - String parent = "properties/propertie-2024"; - - ListDataStreamsPagedResponse pagedListResponse = client.listDataStreams(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getDataStreamsList().get(0), resources.get(0)); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void listDataStreamsExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String parent = "properties/propertie-2024"; - client.listDataStreams(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getDataStreamTest() throws Exception { - DataStream expectedResponse = - DataStream.newBuilder() - .setName(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString()) - .setDisplayName("displayName1714148973") - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - DataStreamName name = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]"); - - DataStream actualResponse = client.getDataStream(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void getDataStreamExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - DataStreamName name = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]"); - client.getDataStream(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getDataStreamTest2() throws Exception { - DataStream expectedResponse = - DataStream.newBuilder() - .setName(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString()) - .setDisplayName("displayName1714148973") - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - String name = "properties/propertie-9806/dataStreams/dataStream-9806"; - - DataStream actualResponse = client.getDataStream(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void getDataStreamExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = "properties/propertie-9806/dataStreams/dataStream-9806"; - client.getDataStream(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getAudienceTest() throws Exception { - Audience expectedResponse = - Audience.newBuilder() - .setName(AudienceName.of("[PROPERTY]", "[AUDIENCE]").toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setMembershipDurationDays(1702404985) - .setAdsPersonalizationEnabled(true) - .setEventTrigger(AudienceEventTrigger.newBuilder().build()) - .addAllFilterClauses(new ArrayList()) - .build(); - mockService.addResponse(expectedResponse); - - AudienceName name = AudienceName.of("[PROPERTY]", "[AUDIENCE]"); - - Audience actualResponse = client.getAudience(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void getAudienceExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - AudienceName name = AudienceName.of("[PROPERTY]", "[AUDIENCE]"); - client.getAudience(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getAudienceTest2() throws Exception { - Audience expectedResponse = - Audience.newBuilder() - .setName(AudienceName.of("[PROPERTY]", "[AUDIENCE]").toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setMembershipDurationDays(1702404985) - .setAdsPersonalizationEnabled(true) - .setEventTrigger(AudienceEventTrigger.newBuilder().build()) - .addAllFilterClauses(new ArrayList()) - .build(); - mockService.addResponse(expectedResponse); - - String name = "properties/propertie-2172/audiences/audience-2172"; - - Audience actualResponse = client.getAudience(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void getAudienceExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = "properties/propertie-2172/audiences/audience-2172"; - client.getAudience(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listAudiencesTest() throws Exception { - Audience responsesElement = Audience.newBuilder().build(); - ListAudiencesResponse expectedResponse = - ListAudiencesResponse.newBuilder() - .setNextPageToken("") - .addAllAudiences(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - PropertyName parent = PropertyName.of("[PROPERTY]"); - - ListAudiencesPagedResponse pagedListResponse = client.listAudiences(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getAudiencesList().get(0), resources.get(0)); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void listAudiencesExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - PropertyName parent = PropertyName.of("[PROPERTY]"); - client.listAudiences(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listAudiencesTest2() throws Exception { - Audience responsesElement = Audience.newBuilder().build(); - ListAudiencesResponse expectedResponse = - ListAudiencesResponse.newBuilder() - .setNextPageToken("") - .addAllAudiences(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - String parent = "properties/propertie-2024"; - - ListAudiencesPagedResponse pagedListResponse = client.listAudiences(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getAudiencesList().get(0), resources.get(0)); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void listAudiencesExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String parent = "properties/propertie-2024"; - client.listAudiences(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createAudienceTest() throws Exception { - Audience expectedResponse = - Audience.newBuilder() - .setName(AudienceName.of("[PROPERTY]", "[AUDIENCE]").toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setMembershipDurationDays(1702404985) - .setAdsPersonalizationEnabled(true) - .setEventTrigger(AudienceEventTrigger.newBuilder().build()) - .addAllFilterClauses(new ArrayList()) - .build(); - mockService.addResponse(expectedResponse); - - PropertyName parent = PropertyName.of("[PROPERTY]"); - Audience audience = Audience.newBuilder().build(); - - Audience actualResponse = client.createAudience(parent, audience); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void createAudienceExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - PropertyName parent = PropertyName.of("[PROPERTY]"); - Audience audience = Audience.newBuilder().build(); - client.createAudience(parent, audience); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createAudienceTest2() throws Exception { - Audience expectedResponse = - Audience.newBuilder() - .setName(AudienceName.of("[PROPERTY]", "[AUDIENCE]").toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setMembershipDurationDays(1702404985) - .setAdsPersonalizationEnabled(true) - .setEventTrigger(AudienceEventTrigger.newBuilder().build()) - .addAllFilterClauses(new ArrayList()) - .build(); - mockService.addResponse(expectedResponse); - - String parent = "properties/propertie-2024"; - Audience audience = Audience.newBuilder().build(); - - Audience actualResponse = client.createAudience(parent, audience); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void createAudienceExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String parent = "properties/propertie-2024"; - Audience audience = Audience.newBuilder().build(); - client.createAudience(parent, audience); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateAudienceTest() throws Exception { - Audience expectedResponse = - Audience.newBuilder() - .setName(AudienceName.of("[PROPERTY]", "[AUDIENCE]").toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setMembershipDurationDays(1702404985) - .setAdsPersonalizationEnabled(true) - .setEventTrigger(AudienceEventTrigger.newBuilder().build()) - .addAllFilterClauses(new ArrayList()) - .build(); - mockService.addResponse(expectedResponse); - - Audience audience = - Audience.newBuilder() - .setName(AudienceName.of("[PROPERTY]", "[AUDIENCE]").toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setMembershipDurationDays(1702404985) - .setAdsPersonalizationEnabled(true) - .setEventTrigger(AudienceEventTrigger.newBuilder().build()) - .addAllFilterClauses(new ArrayList()) - .build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - Audience actualResponse = client.updateAudience(audience, updateMask); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void updateAudienceExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - Audience audience = - Audience.newBuilder() - .setName(AudienceName.of("[PROPERTY]", "[AUDIENCE]").toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setMembershipDurationDays(1702404985) - .setAdsPersonalizationEnabled(true) - .setEventTrigger(AudienceEventTrigger.newBuilder().build()) - .addAllFilterClauses(new ArrayList()) - .build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateAudience(audience, updateMask); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void archiveAudienceTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockService.addResponse(expectedResponse); - - ArchiveAudienceRequest request = - ArchiveAudienceRequest.newBuilder() - .setName(PropertyName.of("[PROPERTY]").toString()) - .build(); - - client.archiveAudience(request); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void archiveAudienceExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - ArchiveAudienceRequest request = - ArchiveAudienceRequest.newBuilder() - .setName(PropertyName.of("[PROPERTY]").toString()) - .build(); - client.archiveAudience(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getAttributionSettingsTest() throws Exception { - AttributionSettings expectedResponse = - AttributionSettings.newBuilder() - .setName(AttributionSettingsName.of("[PROPERTY]").toString()) - .build(); - mockService.addResponse(expectedResponse); - - AttributionSettingsName name = AttributionSettingsName.of("[PROPERTY]"); - - AttributionSettings actualResponse = client.getAttributionSettings(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void getAttributionSettingsExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - AttributionSettingsName name = AttributionSettingsName.of("[PROPERTY]"); - client.getAttributionSettings(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getAttributionSettingsTest2() throws Exception { - AttributionSettings expectedResponse = - AttributionSettings.newBuilder() - .setName(AttributionSettingsName.of("[PROPERTY]").toString()) - .build(); - mockService.addResponse(expectedResponse); - - String name = "properties/propertie-492/attributionSettings"; - - AttributionSettings actualResponse = client.getAttributionSettings(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void getAttributionSettingsExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = "properties/propertie-492/attributionSettings"; - client.getAttributionSettings(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateAttributionSettingsTest() throws Exception { - AttributionSettings expectedResponse = - AttributionSettings.newBuilder() - .setName(AttributionSettingsName.of("[PROPERTY]").toString()) - .build(); - mockService.addResponse(expectedResponse); - - AttributionSettings attributionSettings = - AttributionSettings.newBuilder() - .setName(AttributionSettingsName.of("[PROPERTY]").toString()) - .build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - AttributionSettings actualResponse = - client.updateAttributionSettings(attributionSettings, updateMask); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void updateAttributionSettingsExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - AttributionSettings attributionSettings = - AttributionSettings.newBuilder() - .setName(AttributionSettingsName.of("[PROPERTY]").toString()) - .build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateAttributionSettings(attributionSettings, updateMask); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void runAccessReportTest() throws Exception { - RunAccessReportResponse expectedResponse = - RunAccessReportResponse.newBuilder() - .addAllDimensionHeaders(new ArrayList()) - .addAllMetricHeaders(new ArrayList()) - .addAllRows(new ArrayList()) - .setRowCount(1340416618) - .setQuota(AccessQuota.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - RunAccessReportRequest request = - RunAccessReportRequest.newBuilder() - .setEntity("properties/propertie-4993") - .addAllDimensions(new ArrayList()) - .addAllMetrics(new ArrayList()) - .addAllDateRanges(new ArrayList()) - .setDimensionFilter(AccessFilterExpression.newBuilder().build()) - .setMetricFilter(AccessFilterExpression.newBuilder().build()) - .setOffset(-1019779949) - .setLimit(102976443) - .setTimeZone("timeZone-2077180903") - .addAllOrderBys(new ArrayList()) - .setReturnEntityQuota(true) - .build(); - - RunAccessReportResponse actualResponse = client.runAccessReport(request); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void runAccessReportExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - RunAccessReportRequest request = - RunAccessReportRequest.newBuilder() - .setEntity("properties/propertie-4993") - .addAllDimensions(new ArrayList()) - .addAllMetrics(new ArrayList()) - .addAllDateRanges(new ArrayList()) - .setDimensionFilter(AccessFilterExpression.newBuilder().build()) - .setMetricFilter(AccessFilterExpression.newBuilder().build()) - .setOffset(-1019779949) - .setLimit(102976443) - .setTimeZone("timeZone-2077180903") - .addAllOrderBys(new ArrayList()) - .setReturnEntityQuota(true) - .build(); - client.runAccessReport(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } -} diff --git a/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClientTest.java b/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClientTest.java deleted file mode 100644 index bd8c352a..00000000 --- a/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClientTest.java +++ /dev/null @@ -1,5958 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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.AuditUserLinksPagedResponse; -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.ListAudiencesPagedResponse; -import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListConversionEventsPagedResponse; -import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListCustomDimensionsPagedResponse; -import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListCustomMetricsPagedResponse; -import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListDataStreamsPagedResponse; -import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListDisplayVideo360AdvertiserLinkProposalsPagedResponse; -import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListDisplayVideo360AdvertiserLinksPagedResponse; -import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListFirebaseLinksPagedResponse; -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.ListUserLinksPagedResponse; -import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.SearchChangeHistoryEventsPagedResponse; - -import com.google.api.gax.core.NoCredentialsProvider; -import com.google.api.gax.grpc.GaxGrpcProperties; -import com.google.api.gax.grpc.testing.LocalChannelProvider; -import com.google.api.gax.grpc.testing.MockGrpcService; -import com.google.api.gax.grpc.testing.MockServiceHelper; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.InvalidArgumentException; -import com.google.common.collect.Lists; -import com.google.protobuf.AbstractMessage; -import com.google.protobuf.BoolValue; -import com.google.protobuf.Empty; -import com.google.protobuf.FieldMask; -import com.google.protobuf.Timestamp; -import io.grpc.StatusRuntimeException; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import java.util.UUID; -import javax.annotation.Generated; -import org.junit.After; -import org.junit.AfterClass; -import org.junit.Assert; -import org.junit.Before; -import org.junit.BeforeClass; -import org.junit.Test; - -@Generated("by gapic-generator-java") -public class AnalyticsAdminServiceClientTest { - private static MockAnalyticsAdminService mockAnalyticsAdminService; - private static MockServiceHelper mockServiceHelper; - private LocalChannelProvider channelProvider; - private AnalyticsAdminServiceClient client; - - @BeforeClass - public static void startStaticServer() { - mockAnalyticsAdminService = new MockAnalyticsAdminService(); - mockServiceHelper = - new MockServiceHelper( - UUID.randomUUID().toString(), - Arrays.asList(mockAnalyticsAdminService)); - mockServiceHelper.start(); - } - - @AfterClass - public static void stopServer() { - mockServiceHelper.stop(); - } - - @Before - public void setUp() throws IOException { - mockServiceHelper.reset(); - channelProvider = mockServiceHelper.createChannelProvider(); - AnalyticsAdminServiceSettings settings = - AnalyticsAdminServiceSettings.newBuilder() - .setTransportChannelProvider(channelProvider) - .setCredentialsProvider(NoCredentialsProvider.create()) - .build(); - client = AnalyticsAdminServiceClient.create(settings); - } - - @After - public void tearDown() throws Exception { - client.close(); - } - - @Test - public void getAccountTest() throws Exception { - Account expectedResponse = - Account.newBuilder() - .setName(AccountName.of("[ACCOUNT]").toString()) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setDisplayName("displayName1714148973") - .setRegionCode("regionCode-1991004415") - .setDeleted(true) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - AccountName name = AccountName.of("[ACCOUNT]"); - - Account actualResponse = client.getAccount(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetAccountRequest actualRequest = ((GetAccountRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getAccountExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - AccountName name = AccountName.of("[ACCOUNT]"); - client.getAccount(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getAccountTest2() throws Exception { - Account expectedResponse = - Account.newBuilder() - .setName(AccountName.of("[ACCOUNT]").toString()) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setDisplayName("displayName1714148973") - .setRegionCode("regionCode-1991004415") - .setDeleted(true) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - String name = "name3373707"; - - Account actualResponse = client.getAccount(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetAccountRequest actualRequest = ((GetAccountRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getAccountExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - String name = "name3373707"; - client.getAccount(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listAccountsTest() throws Exception { - Account responsesElement = Account.newBuilder().build(); - ListAccountsResponse expectedResponse = - ListAccountsResponse.newBuilder() - .setNextPageToken("") - .addAllAccounts(Arrays.asList(responsesElement)) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - ListAccountsRequest request = - ListAccountsRequest.newBuilder() - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .setShowDeleted(true) - .build(); - - ListAccountsPagedResponse pagedListResponse = client.listAccounts(request); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getAccountsList().get(0), resources.get(0)); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListAccountsRequest actualRequest = ((ListAccountsRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize()); - Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken()); - Assert.assertEquals(request.getShowDeleted(), actualRequest.getShowDeleted()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listAccountsExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - ListAccountsRequest request = - ListAccountsRequest.newBuilder() - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .setShowDeleted(true) - .build(); - client.listAccounts(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteAccountTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - AccountName name = AccountName.of("[ACCOUNT]"); - - client.deleteAccount(name); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteAccountRequest actualRequest = ((DeleteAccountRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteAccountExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - AccountName name = AccountName.of("[ACCOUNT]"); - client.deleteAccount(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteAccountTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - String name = "name3373707"; - - client.deleteAccount(name); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteAccountRequest actualRequest = ((DeleteAccountRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteAccountExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - String name = "name3373707"; - client.deleteAccount(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateAccountTest() throws Exception { - Account expectedResponse = - Account.newBuilder() - .setName(AccountName.of("[ACCOUNT]").toString()) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setDisplayName("displayName1714148973") - .setRegionCode("regionCode-1991004415") - .setDeleted(true) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - Account account = Account.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - Account actualResponse = client.updateAccount(account, updateMask); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - UpdateAccountRequest actualRequest = ((UpdateAccountRequest) actualRequests.get(0)); - - Assert.assertEquals(account, actualRequest.getAccount()); - Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void updateAccountExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - Account account = Account.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateAccount(account, updateMask); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void provisionAccountTicketTest() throws Exception { - ProvisionAccountTicketResponse expectedResponse = - ProvisionAccountTicketResponse.newBuilder() - .setAccountTicketId("accountTicketId-1576709484") - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - ProvisionAccountTicketRequest request = - ProvisionAccountTicketRequest.newBuilder() - .setAccount(Account.newBuilder().build()) - .setRedirectUri("redirectUri1970337776") - .build(); - - ProvisionAccountTicketResponse actualResponse = client.provisionAccountTicket(request); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ProvisionAccountTicketRequest actualRequest = - ((ProvisionAccountTicketRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getAccount(), actualRequest.getAccount()); - Assert.assertEquals(request.getRedirectUri(), actualRequest.getRedirectUri()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void provisionAccountTicketExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - ProvisionAccountTicketRequest request = - ProvisionAccountTicketRequest.newBuilder() - .setAccount(Account.newBuilder().build()) - .setRedirectUri("redirectUri1970337776") - .build(); - client.provisionAccountTicket(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listAccountSummariesTest() throws Exception { - AccountSummary responsesElement = AccountSummary.newBuilder().build(); - ListAccountSummariesResponse expectedResponse = - ListAccountSummariesResponse.newBuilder() - .setNextPageToken("") - .addAllAccountSummaries(Arrays.asList(responsesElement)) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - ListAccountSummariesRequest request = - ListAccountSummariesRequest.newBuilder() - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .build(); - - ListAccountSummariesPagedResponse pagedListResponse = client.listAccountSummaries(request); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getAccountSummariesList().get(0), resources.get(0)); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListAccountSummariesRequest actualRequest = - ((ListAccountSummariesRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize()); - Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listAccountSummariesExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - ListAccountSummariesRequest request = - ListAccountSummariesRequest.newBuilder() - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .build(); - client.listAccountSummaries(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getPropertyTest() throws Exception { - Property expectedResponse = - Property.newBuilder() - .setName(PropertyName.of("[PROPERTY]").toString()) - .setPropertyType(PropertyType.forNumber(0)) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setParent("parent-995424086") - .setDisplayName("displayName1714148973") - .setIndustryCategory(IndustryCategory.forNumber(0)) - .setTimeZone("timeZone-2077180903") - .setCurrencyCode("currencyCode1004773790") - .setServiceLevel(ServiceLevel.forNumber(0)) - .setDeleteTime(Timestamp.newBuilder().build()) - .setExpireTime(Timestamp.newBuilder().build()) - .setAccount(AccountName.of("[ACCOUNT]").toString()) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - PropertyName name = PropertyName.of("[PROPERTY]"); - - Property actualResponse = client.getProperty(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetPropertyRequest actualRequest = ((GetPropertyRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getPropertyExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - PropertyName name = PropertyName.of("[PROPERTY]"); - client.getProperty(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getPropertyTest2() throws Exception { - Property expectedResponse = - Property.newBuilder() - .setName(PropertyName.of("[PROPERTY]").toString()) - .setPropertyType(PropertyType.forNumber(0)) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setParent("parent-995424086") - .setDisplayName("displayName1714148973") - .setIndustryCategory(IndustryCategory.forNumber(0)) - .setTimeZone("timeZone-2077180903") - .setCurrencyCode("currencyCode1004773790") - .setServiceLevel(ServiceLevel.forNumber(0)) - .setDeleteTime(Timestamp.newBuilder().build()) - .setExpireTime(Timestamp.newBuilder().build()) - .setAccount(AccountName.of("[ACCOUNT]").toString()) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - String name = "name3373707"; - - Property actualResponse = client.getProperty(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetPropertyRequest actualRequest = ((GetPropertyRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getPropertyExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - String name = "name3373707"; - client.getProperty(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listPropertiesTest() throws Exception { - Property responsesElement = Property.newBuilder().build(); - ListPropertiesResponse expectedResponse = - ListPropertiesResponse.newBuilder() - .setNextPageToken("") - .addAllProperties(Arrays.asList(responsesElement)) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - ListPropertiesRequest request = - ListPropertiesRequest.newBuilder() - .setFilter("filter-1274492040") - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .setShowDeleted(true) - .build(); - - ListPropertiesPagedResponse pagedListResponse = client.listProperties(request); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getPropertiesList().get(0), resources.get(0)); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListPropertiesRequest actualRequest = ((ListPropertiesRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getFilter(), actualRequest.getFilter()); - Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize()); - Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken()); - Assert.assertEquals(request.getShowDeleted(), actualRequest.getShowDeleted()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listPropertiesExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - ListPropertiesRequest request = - ListPropertiesRequest.newBuilder() - .setFilter("filter-1274492040") - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .setShowDeleted(true) - .build(); - client.listProperties(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createPropertyTest() throws Exception { - Property expectedResponse = - Property.newBuilder() - .setName(PropertyName.of("[PROPERTY]").toString()) - .setPropertyType(PropertyType.forNumber(0)) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setParent("parent-995424086") - .setDisplayName("displayName1714148973") - .setIndustryCategory(IndustryCategory.forNumber(0)) - .setTimeZone("timeZone-2077180903") - .setCurrencyCode("currencyCode1004773790") - .setServiceLevel(ServiceLevel.forNumber(0)) - .setDeleteTime(Timestamp.newBuilder().build()) - .setExpireTime(Timestamp.newBuilder().build()) - .setAccount(AccountName.of("[ACCOUNT]").toString()) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - Property property = Property.newBuilder().build(); - - Property actualResponse = client.createProperty(property); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreatePropertyRequest actualRequest = ((CreatePropertyRequest) actualRequests.get(0)); - - Assert.assertEquals(property, actualRequest.getProperty()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createPropertyExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - Property property = Property.newBuilder().build(); - client.createProperty(property); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deletePropertyTest() throws Exception { - Property expectedResponse = - Property.newBuilder() - .setName(PropertyName.of("[PROPERTY]").toString()) - .setPropertyType(PropertyType.forNumber(0)) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setParent("parent-995424086") - .setDisplayName("displayName1714148973") - .setIndustryCategory(IndustryCategory.forNumber(0)) - .setTimeZone("timeZone-2077180903") - .setCurrencyCode("currencyCode1004773790") - .setServiceLevel(ServiceLevel.forNumber(0)) - .setDeleteTime(Timestamp.newBuilder().build()) - .setExpireTime(Timestamp.newBuilder().build()) - .setAccount(AccountName.of("[ACCOUNT]").toString()) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - PropertyName name = PropertyName.of("[PROPERTY]"); - - Property actualResponse = client.deleteProperty(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeletePropertyRequest actualRequest = ((DeletePropertyRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deletePropertyExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - PropertyName name = PropertyName.of("[PROPERTY]"); - client.deleteProperty(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deletePropertyTest2() throws Exception { - Property expectedResponse = - Property.newBuilder() - .setName(PropertyName.of("[PROPERTY]").toString()) - .setPropertyType(PropertyType.forNumber(0)) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setParent("parent-995424086") - .setDisplayName("displayName1714148973") - .setIndustryCategory(IndustryCategory.forNumber(0)) - .setTimeZone("timeZone-2077180903") - .setCurrencyCode("currencyCode1004773790") - .setServiceLevel(ServiceLevel.forNumber(0)) - .setDeleteTime(Timestamp.newBuilder().build()) - .setExpireTime(Timestamp.newBuilder().build()) - .setAccount(AccountName.of("[ACCOUNT]").toString()) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - String name = "name3373707"; - - Property actualResponse = client.deleteProperty(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeletePropertyRequest actualRequest = ((DeletePropertyRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deletePropertyExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - String name = "name3373707"; - client.deleteProperty(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updatePropertyTest() throws Exception { - Property expectedResponse = - Property.newBuilder() - .setName(PropertyName.of("[PROPERTY]").toString()) - .setPropertyType(PropertyType.forNumber(0)) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setParent("parent-995424086") - .setDisplayName("displayName1714148973") - .setIndustryCategory(IndustryCategory.forNumber(0)) - .setTimeZone("timeZone-2077180903") - .setCurrencyCode("currencyCode1004773790") - .setServiceLevel(ServiceLevel.forNumber(0)) - .setDeleteTime(Timestamp.newBuilder().build()) - .setExpireTime(Timestamp.newBuilder().build()) - .setAccount(AccountName.of("[ACCOUNT]").toString()) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - Property property = Property.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - Property actualResponse = client.updateProperty(property, updateMask); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - UpdatePropertyRequest actualRequest = ((UpdatePropertyRequest) actualRequests.get(0)); - - Assert.assertEquals(property, actualRequest.getProperty()); - Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void updatePropertyExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - Property property = Property.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateProperty(property, updateMask); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getUserLinkTest() throws Exception { - UserLink expectedResponse = - UserLink.newBuilder() - .setName(UserLinkName.ofAccountUserLinkName("[ACCOUNT]", "[USER_LINK]").toString()) - .setEmailAddress("emailAddress-1070931784") - .addAllDirectRoles(new ArrayList()) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - UserLinkName name = UserLinkName.ofAccountUserLinkName("[ACCOUNT]", "[USER_LINK]"); - - UserLink actualResponse = client.getUserLink(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetUserLinkRequest actualRequest = ((GetUserLinkRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getUserLinkExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - UserLinkName name = UserLinkName.ofAccountUserLinkName("[ACCOUNT]", "[USER_LINK]"); - client.getUserLink(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getUserLinkTest2() throws Exception { - UserLink expectedResponse = - UserLink.newBuilder() - .setName(UserLinkName.ofAccountUserLinkName("[ACCOUNT]", "[USER_LINK]").toString()) - .setEmailAddress("emailAddress-1070931784") - .addAllDirectRoles(new ArrayList()) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - String name = "name3373707"; - - UserLink actualResponse = client.getUserLink(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetUserLinkRequest actualRequest = ((GetUserLinkRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getUserLinkExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - String name = "name3373707"; - client.getUserLink(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void batchGetUserLinksTest() throws Exception { - BatchGetUserLinksResponse expectedResponse = - BatchGetUserLinksResponse.newBuilder().addAllUserLinks(new ArrayList()).build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - BatchGetUserLinksRequest request = - BatchGetUserLinksRequest.newBuilder() - .setParent(AccountName.of("[ACCOUNT]").toString()) - .addAllNames(new ArrayList()) - .build(); - - BatchGetUserLinksResponse actualResponse = client.batchGetUserLinks(request); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - BatchGetUserLinksRequest actualRequest = ((BatchGetUserLinksRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getParent(), actualRequest.getParent()); - Assert.assertEquals(request.getNamesList(), actualRequest.getNamesList()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void batchGetUserLinksExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - BatchGetUserLinksRequest request = - BatchGetUserLinksRequest.newBuilder() - .setParent(AccountName.of("[ACCOUNT]").toString()) - .addAllNames(new ArrayList()) - .build(); - client.batchGetUserLinks(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listUserLinksTest() throws Exception { - UserLink responsesElement = UserLink.newBuilder().build(); - ListUserLinksResponse expectedResponse = - ListUserLinksResponse.newBuilder() - .setNextPageToken("") - .addAllUserLinks(Arrays.asList(responsesElement)) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - AccountName parent = AccountName.of("[ACCOUNT]"); - - ListUserLinksPagedResponse pagedListResponse = client.listUserLinks(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getUserLinksList().get(0), resources.get(0)); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListUserLinksRequest actualRequest = ((ListUserLinksRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listUserLinksExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - AccountName parent = AccountName.of("[ACCOUNT]"); - client.listUserLinks(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listUserLinksTest2() throws Exception { - UserLink responsesElement = UserLink.newBuilder().build(); - ListUserLinksResponse expectedResponse = - ListUserLinksResponse.newBuilder() - .setNextPageToken("") - .addAllUserLinks(Arrays.asList(responsesElement)) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - PropertyName parent = PropertyName.of("[PROPERTY]"); - - ListUserLinksPagedResponse pagedListResponse = client.listUserLinks(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getUserLinksList().get(0), resources.get(0)); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListUserLinksRequest actualRequest = ((ListUserLinksRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listUserLinksExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - PropertyName parent = PropertyName.of("[PROPERTY]"); - client.listUserLinks(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listUserLinksTest3() throws Exception { - UserLink responsesElement = UserLink.newBuilder().build(); - ListUserLinksResponse expectedResponse = - ListUserLinksResponse.newBuilder() - .setNextPageToken("") - .addAllUserLinks(Arrays.asList(responsesElement)) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - String parent = "parent-995424086"; - - ListUserLinksPagedResponse pagedListResponse = client.listUserLinks(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getUserLinksList().get(0), resources.get(0)); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListUserLinksRequest actualRequest = ((ListUserLinksRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listUserLinksExceptionTest3() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - String parent = "parent-995424086"; - client.listUserLinks(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void auditUserLinksTest() throws Exception { - AuditUserLink responsesElement = AuditUserLink.newBuilder().build(); - AuditUserLinksResponse expectedResponse = - AuditUserLinksResponse.newBuilder() - .setNextPageToken("") - .addAllUserLinks(Arrays.asList(responsesElement)) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - AuditUserLinksRequest request = - AuditUserLinksRequest.newBuilder() - .setParent(AccountName.of("[ACCOUNT]").toString()) - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .build(); - - AuditUserLinksPagedResponse pagedListResponse = client.auditUserLinks(request); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getUserLinksList().get(0), resources.get(0)); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - AuditUserLinksRequest actualRequest = ((AuditUserLinksRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getParent(), actualRequest.getParent()); - Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize()); - Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void auditUserLinksExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - AuditUserLinksRequest request = - AuditUserLinksRequest.newBuilder() - .setParent(AccountName.of("[ACCOUNT]").toString()) - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .build(); - client.auditUserLinks(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createUserLinkTest() throws Exception { - UserLink expectedResponse = - UserLink.newBuilder() - .setName(UserLinkName.ofAccountUserLinkName("[ACCOUNT]", "[USER_LINK]").toString()) - .setEmailAddress("emailAddress-1070931784") - .addAllDirectRoles(new ArrayList()) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - AccountName parent = AccountName.of("[ACCOUNT]"); - UserLink userLink = UserLink.newBuilder().build(); - - UserLink actualResponse = client.createUserLink(parent, userLink); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateUserLinkRequest actualRequest = ((CreateUserLinkRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(userLink, actualRequest.getUserLink()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createUserLinkExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - AccountName parent = AccountName.of("[ACCOUNT]"); - UserLink userLink = UserLink.newBuilder().build(); - client.createUserLink(parent, userLink); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createUserLinkTest2() throws Exception { - UserLink expectedResponse = - UserLink.newBuilder() - .setName(UserLinkName.ofAccountUserLinkName("[ACCOUNT]", "[USER_LINK]").toString()) - .setEmailAddress("emailAddress-1070931784") - .addAllDirectRoles(new ArrayList()) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - PropertyName parent = PropertyName.of("[PROPERTY]"); - UserLink userLink = UserLink.newBuilder().build(); - - UserLink actualResponse = client.createUserLink(parent, userLink); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateUserLinkRequest actualRequest = ((CreateUserLinkRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(userLink, actualRequest.getUserLink()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createUserLinkExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - PropertyName parent = PropertyName.of("[PROPERTY]"); - UserLink userLink = UserLink.newBuilder().build(); - client.createUserLink(parent, userLink); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createUserLinkTest3() throws Exception { - UserLink expectedResponse = - UserLink.newBuilder() - .setName(UserLinkName.ofAccountUserLinkName("[ACCOUNT]", "[USER_LINK]").toString()) - .setEmailAddress("emailAddress-1070931784") - .addAllDirectRoles(new ArrayList()) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - String parent = "parent-995424086"; - UserLink userLink = UserLink.newBuilder().build(); - - UserLink actualResponse = client.createUserLink(parent, userLink); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateUserLinkRequest actualRequest = ((CreateUserLinkRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertEquals(userLink, actualRequest.getUserLink()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createUserLinkExceptionTest3() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - String parent = "parent-995424086"; - UserLink userLink = UserLink.newBuilder().build(); - client.createUserLink(parent, userLink); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void batchCreateUserLinksTest() throws Exception { - BatchCreateUserLinksResponse expectedResponse = - BatchCreateUserLinksResponse.newBuilder() - .addAllUserLinks(new ArrayList()) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - BatchCreateUserLinksRequest request = - BatchCreateUserLinksRequest.newBuilder() - .setParent(AccountName.of("[ACCOUNT]").toString()) - .setNotifyNewUsers(true) - .addAllRequests(new ArrayList()) - .build(); - - BatchCreateUserLinksResponse actualResponse = client.batchCreateUserLinks(request); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - BatchCreateUserLinksRequest actualRequest = - ((BatchCreateUserLinksRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getParent(), actualRequest.getParent()); - Assert.assertEquals(request.getNotifyNewUsers(), actualRequest.getNotifyNewUsers()); - Assert.assertEquals(request.getRequestsList(), actualRequest.getRequestsList()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void batchCreateUserLinksExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - BatchCreateUserLinksRequest request = - BatchCreateUserLinksRequest.newBuilder() - .setParent(AccountName.of("[ACCOUNT]").toString()) - .setNotifyNewUsers(true) - .addAllRequests(new ArrayList()) - .build(); - client.batchCreateUserLinks(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateUserLinkTest() throws Exception { - UserLink expectedResponse = - UserLink.newBuilder() - .setName(UserLinkName.ofAccountUserLinkName("[ACCOUNT]", "[USER_LINK]").toString()) - .setEmailAddress("emailAddress-1070931784") - .addAllDirectRoles(new ArrayList()) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - UserLink userLink = UserLink.newBuilder().build(); - - UserLink actualResponse = client.updateUserLink(userLink); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - UpdateUserLinkRequest actualRequest = ((UpdateUserLinkRequest) actualRequests.get(0)); - - Assert.assertEquals(userLink, actualRequest.getUserLink()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void updateUserLinkExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - UserLink userLink = UserLink.newBuilder().build(); - client.updateUserLink(userLink); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void batchUpdateUserLinksTest() throws Exception { - BatchUpdateUserLinksResponse expectedResponse = - BatchUpdateUserLinksResponse.newBuilder() - .addAllUserLinks(new ArrayList()) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - BatchUpdateUserLinksRequest request = - BatchUpdateUserLinksRequest.newBuilder() - .setParent(AccountName.of("[ACCOUNT]").toString()) - .addAllRequests(new ArrayList()) - .build(); - - BatchUpdateUserLinksResponse actualResponse = client.batchUpdateUserLinks(request); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - BatchUpdateUserLinksRequest actualRequest = - ((BatchUpdateUserLinksRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getParent(), actualRequest.getParent()); - Assert.assertEquals(request.getRequestsList(), actualRequest.getRequestsList()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void batchUpdateUserLinksExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - BatchUpdateUserLinksRequest request = - BatchUpdateUserLinksRequest.newBuilder() - .setParent(AccountName.of("[ACCOUNT]").toString()) - .addAllRequests(new ArrayList()) - .build(); - client.batchUpdateUserLinks(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteUserLinkTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - UserLinkName name = UserLinkName.ofAccountUserLinkName("[ACCOUNT]", "[USER_LINK]"); - - client.deleteUserLink(name); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteUserLinkRequest actualRequest = ((DeleteUserLinkRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteUserLinkExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - UserLinkName name = UserLinkName.ofAccountUserLinkName("[ACCOUNT]", "[USER_LINK]"); - client.deleteUserLink(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteUserLinkTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - String name = "name3373707"; - - client.deleteUserLink(name); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteUserLinkRequest actualRequest = ((DeleteUserLinkRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteUserLinkExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - String name = "name3373707"; - client.deleteUserLink(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void batchDeleteUserLinksTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - BatchDeleteUserLinksRequest request = - BatchDeleteUserLinksRequest.newBuilder() - .setParent(AccountName.of("[ACCOUNT]").toString()) - .addAllRequests(new ArrayList()) - .build(); - - client.batchDeleteUserLinks(request); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - BatchDeleteUserLinksRequest actualRequest = - ((BatchDeleteUserLinksRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getParent(), actualRequest.getParent()); - Assert.assertEquals(request.getRequestsList(), actualRequest.getRequestsList()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void batchDeleteUserLinksExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - BatchDeleteUserLinksRequest request = - BatchDeleteUserLinksRequest.newBuilder() - .setParent(AccountName.of("[ACCOUNT]").toString()) - .addAllRequests(new ArrayList()) - .build(); - client.batchDeleteUserLinks(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createFirebaseLinkTest() throws Exception { - FirebaseLink expectedResponse = - FirebaseLink.newBuilder() - .setName(FirebaseLinkName.of("[PROPERTY]", "[FIREBASE_LINK]").toString()) - .setProject("project-309310695") - .setCreateTime(Timestamp.newBuilder().build()) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - PropertyName parent = PropertyName.of("[PROPERTY]"); - FirebaseLink firebaseLink = FirebaseLink.newBuilder().build(); - - FirebaseLink actualResponse = client.createFirebaseLink(parent, firebaseLink); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateFirebaseLinkRequest actualRequest = ((CreateFirebaseLinkRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(firebaseLink, actualRequest.getFirebaseLink()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createFirebaseLinkExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - PropertyName parent = PropertyName.of("[PROPERTY]"); - FirebaseLink firebaseLink = FirebaseLink.newBuilder().build(); - client.createFirebaseLink(parent, firebaseLink); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createFirebaseLinkTest2() throws Exception { - FirebaseLink expectedResponse = - FirebaseLink.newBuilder() - .setName(FirebaseLinkName.of("[PROPERTY]", "[FIREBASE_LINK]").toString()) - .setProject("project-309310695") - .setCreateTime(Timestamp.newBuilder().build()) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - String parent = "parent-995424086"; - FirebaseLink firebaseLink = FirebaseLink.newBuilder().build(); - - FirebaseLink actualResponse = client.createFirebaseLink(parent, firebaseLink); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateFirebaseLinkRequest actualRequest = ((CreateFirebaseLinkRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertEquals(firebaseLink, actualRequest.getFirebaseLink()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createFirebaseLinkExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - String parent = "parent-995424086"; - FirebaseLink firebaseLink = FirebaseLink.newBuilder().build(); - client.createFirebaseLink(parent, firebaseLink); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteFirebaseLinkTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - FirebaseLinkName name = FirebaseLinkName.of("[PROPERTY]", "[FIREBASE_LINK]"); - - client.deleteFirebaseLink(name); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteFirebaseLinkRequest actualRequest = ((DeleteFirebaseLinkRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteFirebaseLinkExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - FirebaseLinkName name = FirebaseLinkName.of("[PROPERTY]", "[FIREBASE_LINK]"); - client.deleteFirebaseLink(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteFirebaseLinkTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - String name = "name3373707"; - - client.deleteFirebaseLink(name); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteFirebaseLinkRequest actualRequest = ((DeleteFirebaseLinkRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteFirebaseLinkExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - String name = "name3373707"; - client.deleteFirebaseLink(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listFirebaseLinksTest() throws Exception { - FirebaseLink responsesElement = FirebaseLink.newBuilder().build(); - ListFirebaseLinksResponse expectedResponse = - ListFirebaseLinksResponse.newBuilder() - .setNextPageToken("") - .addAllFirebaseLinks(Arrays.asList(responsesElement)) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - PropertyName parent = PropertyName.of("[PROPERTY]"); - - ListFirebaseLinksPagedResponse pagedListResponse = client.listFirebaseLinks(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getFirebaseLinksList().get(0), resources.get(0)); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListFirebaseLinksRequest actualRequest = ((ListFirebaseLinksRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listFirebaseLinksExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - PropertyName parent = PropertyName.of("[PROPERTY]"); - client.listFirebaseLinks(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listFirebaseLinksTest2() throws Exception { - FirebaseLink responsesElement = FirebaseLink.newBuilder().build(); - ListFirebaseLinksResponse expectedResponse = - ListFirebaseLinksResponse.newBuilder() - .setNextPageToken("") - .addAllFirebaseLinks(Arrays.asList(responsesElement)) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - String parent = "parent-995424086"; - - ListFirebaseLinksPagedResponse pagedListResponse = client.listFirebaseLinks(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getFirebaseLinksList().get(0), resources.get(0)); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListFirebaseLinksRequest actualRequest = ((ListFirebaseLinksRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listFirebaseLinksExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - String parent = "parent-995424086"; - client.listFirebaseLinks(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getGlobalSiteTagTest() throws Exception { - GlobalSiteTag expectedResponse = - GlobalSiteTag.newBuilder() - .setName(GlobalSiteTagName.of("[PROPERTY]", "[DATA_STREAM]").toString()) - .setSnippet("snippet-2061635299") - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - GlobalSiteTagName name = GlobalSiteTagName.of("[PROPERTY]", "[DATA_STREAM]"); - - GlobalSiteTag actualResponse = client.getGlobalSiteTag(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetGlobalSiteTagRequest actualRequest = ((GetGlobalSiteTagRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getGlobalSiteTagExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - GlobalSiteTagName name = GlobalSiteTagName.of("[PROPERTY]", "[DATA_STREAM]"); - client.getGlobalSiteTag(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getGlobalSiteTagTest2() throws Exception { - GlobalSiteTag expectedResponse = - GlobalSiteTag.newBuilder() - .setName(GlobalSiteTagName.of("[PROPERTY]", "[DATA_STREAM]").toString()) - .setSnippet("snippet-2061635299") - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - String name = "name3373707"; - - GlobalSiteTag actualResponse = client.getGlobalSiteTag(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetGlobalSiteTagRequest actualRequest = ((GetGlobalSiteTagRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getGlobalSiteTagExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - String name = "name3373707"; - client.getGlobalSiteTag(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createGoogleAdsLinkTest() throws Exception { - GoogleAdsLink expectedResponse = - GoogleAdsLink.newBuilder() - .setName(GoogleAdsLinkName.of("[PROPERTY]", "[GOOGLE_ADS_LINK]").toString()) - .setCustomerId("customerId-1581184615") - .setCanManageClients(true) - .setAdsPersonalizationEnabled(BoolValue.newBuilder().build()) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setCreatorEmailAddress("creatorEmailAddress67752708") - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - PropertyName parent = PropertyName.of("[PROPERTY]"); - GoogleAdsLink googleAdsLink = GoogleAdsLink.newBuilder().build(); - - GoogleAdsLink actualResponse = client.createGoogleAdsLink(parent, googleAdsLink); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateGoogleAdsLinkRequest actualRequest = ((CreateGoogleAdsLinkRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(googleAdsLink, actualRequest.getGoogleAdsLink()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createGoogleAdsLinkExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - PropertyName parent = PropertyName.of("[PROPERTY]"); - GoogleAdsLink googleAdsLink = GoogleAdsLink.newBuilder().build(); - client.createGoogleAdsLink(parent, googleAdsLink); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createGoogleAdsLinkTest2() throws Exception { - GoogleAdsLink expectedResponse = - GoogleAdsLink.newBuilder() - .setName(GoogleAdsLinkName.of("[PROPERTY]", "[GOOGLE_ADS_LINK]").toString()) - .setCustomerId("customerId-1581184615") - .setCanManageClients(true) - .setAdsPersonalizationEnabled(BoolValue.newBuilder().build()) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setCreatorEmailAddress("creatorEmailAddress67752708") - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - String parent = "parent-995424086"; - GoogleAdsLink googleAdsLink = GoogleAdsLink.newBuilder().build(); - - GoogleAdsLink actualResponse = client.createGoogleAdsLink(parent, googleAdsLink); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateGoogleAdsLinkRequest actualRequest = ((CreateGoogleAdsLinkRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertEquals(googleAdsLink, actualRequest.getGoogleAdsLink()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createGoogleAdsLinkExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - String parent = "parent-995424086"; - GoogleAdsLink googleAdsLink = GoogleAdsLink.newBuilder().build(); - client.createGoogleAdsLink(parent, googleAdsLink); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateGoogleAdsLinkTest() throws Exception { - GoogleAdsLink expectedResponse = - GoogleAdsLink.newBuilder() - .setName(GoogleAdsLinkName.of("[PROPERTY]", "[GOOGLE_ADS_LINK]").toString()) - .setCustomerId("customerId-1581184615") - .setCanManageClients(true) - .setAdsPersonalizationEnabled(BoolValue.newBuilder().build()) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setCreatorEmailAddress("creatorEmailAddress67752708") - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - GoogleAdsLink googleAdsLink = GoogleAdsLink.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - GoogleAdsLink actualResponse = client.updateGoogleAdsLink(googleAdsLink, updateMask); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - UpdateGoogleAdsLinkRequest actualRequest = ((UpdateGoogleAdsLinkRequest) actualRequests.get(0)); - - Assert.assertEquals(googleAdsLink, actualRequest.getGoogleAdsLink()); - Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void updateGoogleAdsLinkExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - GoogleAdsLink googleAdsLink = GoogleAdsLink.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateGoogleAdsLink(googleAdsLink, updateMask); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteGoogleAdsLinkTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - GoogleAdsLinkName name = GoogleAdsLinkName.of("[PROPERTY]", "[GOOGLE_ADS_LINK]"); - - client.deleteGoogleAdsLink(name); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteGoogleAdsLinkRequest actualRequest = ((DeleteGoogleAdsLinkRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteGoogleAdsLinkExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - GoogleAdsLinkName name = GoogleAdsLinkName.of("[PROPERTY]", "[GOOGLE_ADS_LINK]"); - client.deleteGoogleAdsLink(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteGoogleAdsLinkTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - String name = "name3373707"; - - client.deleteGoogleAdsLink(name); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteGoogleAdsLinkRequest actualRequest = ((DeleteGoogleAdsLinkRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteGoogleAdsLinkExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - String name = "name3373707"; - client.deleteGoogleAdsLink(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listGoogleAdsLinksTest() throws Exception { - GoogleAdsLink responsesElement = GoogleAdsLink.newBuilder().build(); - ListGoogleAdsLinksResponse expectedResponse = - ListGoogleAdsLinksResponse.newBuilder() - .setNextPageToken("") - .addAllGoogleAdsLinks(Arrays.asList(responsesElement)) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - PropertyName parent = PropertyName.of("[PROPERTY]"); - - ListGoogleAdsLinksPagedResponse pagedListResponse = client.listGoogleAdsLinks(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getGoogleAdsLinksList().get(0), resources.get(0)); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListGoogleAdsLinksRequest actualRequest = ((ListGoogleAdsLinksRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listGoogleAdsLinksExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - PropertyName parent = PropertyName.of("[PROPERTY]"); - client.listGoogleAdsLinks(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listGoogleAdsLinksTest2() throws Exception { - GoogleAdsLink responsesElement = GoogleAdsLink.newBuilder().build(); - ListGoogleAdsLinksResponse expectedResponse = - ListGoogleAdsLinksResponse.newBuilder() - .setNextPageToken("") - .addAllGoogleAdsLinks(Arrays.asList(responsesElement)) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - String parent = "parent-995424086"; - - ListGoogleAdsLinksPagedResponse pagedListResponse = client.listGoogleAdsLinks(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getGoogleAdsLinksList().get(0), resources.get(0)); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListGoogleAdsLinksRequest actualRequest = ((ListGoogleAdsLinksRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listGoogleAdsLinksExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - String parent = "parent-995424086"; - client.listGoogleAdsLinks(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getDataSharingSettingsTest() throws Exception { - DataSharingSettings expectedResponse = - DataSharingSettings.newBuilder() - .setName(DataSharingSettingsName.of("[ACCOUNT]").toString()) - .setSharingWithGoogleSupportEnabled(true) - .setSharingWithGoogleAssignedSalesEnabled(true) - .setSharingWithGoogleAnySalesEnabled(true) - .setSharingWithGoogleProductsEnabled(true) - .setSharingWithOthersEnabled(true) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - DataSharingSettingsName name = DataSharingSettingsName.of("[ACCOUNT]"); - - DataSharingSettings actualResponse = client.getDataSharingSettings(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetDataSharingSettingsRequest actualRequest = - ((GetDataSharingSettingsRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getDataSharingSettingsExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - DataSharingSettingsName name = DataSharingSettingsName.of("[ACCOUNT]"); - client.getDataSharingSettings(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getDataSharingSettingsTest2() throws Exception { - DataSharingSettings expectedResponse = - DataSharingSettings.newBuilder() - .setName(DataSharingSettingsName.of("[ACCOUNT]").toString()) - .setSharingWithGoogleSupportEnabled(true) - .setSharingWithGoogleAssignedSalesEnabled(true) - .setSharingWithGoogleAnySalesEnabled(true) - .setSharingWithGoogleProductsEnabled(true) - .setSharingWithOthersEnabled(true) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - String name = "name3373707"; - - DataSharingSettings actualResponse = client.getDataSharingSettings(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetDataSharingSettingsRequest actualRequest = - ((GetDataSharingSettingsRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getDataSharingSettingsExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - String name = "name3373707"; - client.getDataSharingSettings(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getMeasurementProtocolSecretTest() throws Exception { - MeasurementProtocolSecret expectedResponse = - MeasurementProtocolSecret.newBuilder() - .setName( - MeasurementProtocolSecretName.of( - "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]") - .toString()) - .setDisplayName("displayName1714148973") - .setSecretValue("secretValue-2044460895") - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - MeasurementProtocolSecretName name = - MeasurementProtocolSecretName.of( - "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]"); - - MeasurementProtocolSecret actualResponse = client.getMeasurementProtocolSecret(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetMeasurementProtocolSecretRequest actualRequest = - ((GetMeasurementProtocolSecretRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getMeasurementProtocolSecretExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - MeasurementProtocolSecretName name = - MeasurementProtocolSecretName.of( - "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]"); - client.getMeasurementProtocolSecret(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getMeasurementProtocolSecretTest2() throws Exception { - MeasurementProtocolSecret expectedResponse = - MeasurementProtocolSecret.newBuilder() - .setName( - MeasurementProtocolSecretName.of( - "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]") - .toString()) - .setDisplayName("displayName1714148973") - .setSecretValue("secretValue-2044460895") - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - String name = "name3373707"; - - MeasurementProtocolSecret actualResponse = client.getMeasurementProtocolSecret(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetMeasurementProtocolSecretRequest actualRequest = - ((GetMeasurementProtocolSecretRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getMeasurementProtocolSecretExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - String name = "name3373707"; - client.getMeasurementProtocolSecret(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listMeasurementProtocolSecretsTest() throws Exception { - MeasurementProtocolSecret responsesElement = MeasurementProtocolSecret.newBuilder().build(); - ListMeasurementProtocolSecretsResponse expectedResponse = - ListMeasurementProtocolSecretsResponse.newBuilder() - .setNextPageToken("") - .addAllMeasurementProtocolSecrets(Arrays.asList(responsesElement)) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - DataStreamName parent = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]"); - - ListMeasurementProtocolSecretsPagedResponse pagedListResponse = - client.listMeasurementProtocolSecrets(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals( - expectedResponse.getMeasurementProtocolSecretsList().get(0), resources.get(0)); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListMeasurementProtocolSecretsRequest actualRequest = - ((ListMeasurementProtocolSecretsRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listMeasurementProtocolSecretsExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - DataStreamName parent = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]"); - client.listMeasurementProtocolSecrets(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listMeasurementProtocolSecretsTest2() throws Exception { - MeasurementProtocolSecret responsesElement = MeasurementProtocolSecret.newBuilder().build(); - ListMeasurementProtocolSecretsResponse expectedResponse = - ListMeasurementProtocolSecretsResponse.newBuilder() - .setNextPageToken("") - .addAllMeasurementProtocolSecrets(Arrays.asList(responsesElement)) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - String parent = "parent-995424086"; - - ListMeasurementProtocolSecretsPagedResponse pagedListResponse = - client.listMeasurementProtocolSecrets(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals( - expectedResponse.getMeasurementProtocolSecretsList().get(0), resources.get(0)); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListMeasurementProtocolSecretsRequest actualRequest = - ((ListMeasurementProtocolSecretsRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listMeasurementProtocolSecretsExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - String parent = "parent-995424086"; - client.listMeasurementProtocolSecrets(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createMeasurementProtocolSecretTest() throws Exception { - MeasurementProtocolSecret expectedResponse = - MeasurementProtocolSecret.newBuilder() - .setName( - MeasurementProtocolSecretName.of( - "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]") - .toString()) - .setDisplayName("displayName1714148973") - .setSecretValue("secretValue-2044460895") - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - DataStreamName parent = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]"); - MeasurementProtocolSecret measurementProtocolSecret = - MeasurementProtocolSecret.newBuilder().build(); - - MeasurementProtocolSecret actualResponse = - client.createMeasurementProtocolSecret(parent, measurementProtocolSecret); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateMeasurementProtocolSecretRequest actualRequest = - ((CreateMeasurementProtocolSecretRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(measurementProtocolSecret, actualRequest.getMeasurementProtocolSecret()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createMeasurementProtocolSecretExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - DataStreamName parent = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]"); - MeasurementProtocolSecret measurementProtocolSecret = - MeasurementProtocolSecret.newBuilder().build(); - client.createMeasurementProtocolSecret(parent, measurementProtocolSecret); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createMeasurementProtocolSecretTest2() throws Exception { - MeasurementProtocolSecret expectedResponse = - MeasurementProtocolSecret.newBuilder() - .setName( - MeasurementProtocolSecretName.of( - "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]") - .toString()) - .setDisplayName("displayName1714148973") - .setSecretValue("secretValue-2044460895") - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - String parent = "parent-995424086"; - MeasurementProtocolSecret measurementProtocolSecret = - MeasurementProtocolSecret.newBuilder().build(); - - MeasurementProtocolSecret actualResponse = - client.createMeasurementProtocolSecret(parent, measurementProtocolSecret); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateMeasurementProtocolSecretRequest actualRequest = - ((CreateMeasurementProtocolSecretRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertEquals(measurementProtocolSecret, actualRequest.getMeasurementProtocolSecret()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createMeasurementProtocolSecretExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - String parent = "parent-995424086"; - MeasurementProtocolSecret measurementProtocolSecret = - MeasurementProtocolSecret.newBuilder().build(); - client.createMeasurementProtocolSecret(parent, measurementProtocolSecret); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteMeasurementProtocolSecretTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - MeasurementProtocolSecretName name = - MeasurementProtocolSecretName.of( - "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]"); - - client.deleteMeasurementProtocolSecret(name); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteMeasurementProtocolSecretRequest actualRequest = - ((DeleteMeasurementProtocolSecretRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteMeasurementProtocolSecretExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - MeasurementProtocolSecretName name = - MeasurementProtocolSecretName.of( - "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]"); - client.deleteMeasurementProtocolSecret(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteMeasurementProtocolSecretTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - String name = "name3373707"; - - client.deleteMeasurementProtocolSecret(name); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteMeasurementProtocolSecretRequest actualRequest = - ((DeleteMeasurementProtocolSecretRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteMeasurementProtocolSecretExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - String name = "name3373707"; - client.deleteMeasurementProtocolSecret(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateMeasurementProtocolSecretTest() throws Exception { - MeasurementProtocolSecret expectedResponse = - MeasurementProtocolSecret.newBuilder() - .setName( - MeasurementProtocolSecretName.of( - "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]") - .toString()) - .setDisplayName("displayName1714148973") - .setSecretValue("secretValue-2044460895") - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - MeasurementProtocolSecret measurementProtocolSecret = - MeasurementProtocolSecret.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - MeasurementProtocolSecret actualResponse = - client.updateMeasurementProtocolSecret(measurementProtocolSecret, updateMask); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - UpdateMeasurementProtocolSecretRequest actualRequest = - ((UpdateMeasurementProtocolSecretRequest) actualRequests.get(0)); - - Assert.assertEquals(measurementProtocolSecret, actualRequest.getMeasurementProtocolSecret()); - Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void updateMeasurementProtocolSecretExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - MeasurementProtocolSecret measurementProtocolSecret = - MeasurementProtocolSecret.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateMeasurementProtocolSecret(measurementProtocolSecret, updateMask); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void acknowledgeUserDataCollectionTest() throws Exception { - AcknowledgeUserDataCollectionResponse expectedResponse = - AcknowledgeUserDataCollectionResponse.newBuilder().build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - AcknowledgeUserDataCollectionRequest request = - AcknowledgeUserDataCollectionRequest.newBuilder() - .setProperty(PropertyName.of("[PROPERTY]").toString()) - .setAcknowledgement("acknowledgement1769490938") - .build(); - - AcknowledgeUserDataCollectionResponse actualResponse = - client.acknowledgeUserDataCollection(request); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - AcknowledgeUserDataCollectionRequest actualRequest = - ((AcknowledgeUserDataCollectionRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getProperty(), actualRequest.getProperty()); - Assert.assertEquals(request.getAcknowledgement(), actualRequest.getAcknowledgement()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void acknowledgeUserDataCollectionExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - AcknowledgeUserDataCollectionRequest request = - AcknowledgeUserDataCollectionRequest.newBuilder() - .setProperty(PropertyName.of("[PROPERTY]").toString()) - .setAcknowledgement("acknowledgement1769490938") - .build(); - client.acknowledgeUserDataCollection(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void searchChangeHistoryEventsTest() throws Exception { - ChangeHistoryEvent responsesElement = ChangeHistoryEvent.newBuilder().build(); - SearchChangeHistoryEventsResponse expectedResponse = - SearchChangeHistoryEventsResponse.newBuilder() - .setNextPageToken("") - .addAllChangeHistoryEvents(Arrays.asList(responsesElement)) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - SearchChangeHistoryEventsRequest request = - SearchChangeHistoryEventsRequest.newBuilder() - .setAccount(AccountName.of("[ACCOUNT]").toString()) - .setProperty(PropertyName.of("[PROPERTY]").toString()) - .addAllResourceType(new ArrayList()) - .addAllAction(new ArrayList()) - .addAllActorEmail(new ArrayList()) - .setEarliestChangeTime(Timestamp.newBuilder().build()) - .setLatestChangeTime(Timestamp.newBuilder().build()) - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .build(); - - SearchChangeHistoryEventsPagedResponse pagedListResponse = - client.searchChangeHistoryEvents(request); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getChangeHistoryEventsList().get(0), resources.get(0)); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - SearchChangeHistoryEventsRequest actualRequest = - ((SearchChangeHistoryEventsRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getAccount(), actualRequest.getAccount()); - Assert.assertEquals(request.getProperty(), actualRequest.getProperty()); - Assert.assertEquals(request.getResourceTypeList(), actualRequest.getResourceTypeList()); - Assert.assertEquals(request.getActionList(), actualRequest.getActionList()); - Assert.assertEquals(request.getActorEmailList(), actualRequest.getActorEmailList()); - Assert.assertEquals(request.getEarliestChangeTime(), actualRequest.getEarliestChangeTime()); - Assert.assertEquals(request.getLatestChangeTime(), actualRequest.getLatestChangeTime()); - Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize()); - Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void searchChangeHistoryEventsExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - SearchChangeHistoryEventsRequest request = - SearchChangeHistoryEventsRequest.newBuilder() - .setAccount(AccountName.of("[ACCOUNT]").toString()) - .setProperty(PropertyName.of("[PROPERTY]").toString()) - .addAllResourceType(new ArrayList()) - .addAllAction(new ArrayList()) - .addAllActorEmail(new ArrayList()) - .setEarliestChangeTime(Timestamp.newBuilder().build()) - .setLatestChangeTime(Timestamp.newBuilder().build()) - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .build(); - client.searchChangeHistoryEvents(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getGoogleSignalsSettingsTest() throws Exception { - GoogleSignalsSettings expectedResponse = - GoogleSignalsSettings.newBuilder() - .setName(GoogleSignalsSettingsName.of("[PROPERTY]").toString()) - .setState(GoogleSignalsState.forNumber(0)) - .setConsent(GoogleSignalsConsent.forNumber(0)) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - GoogleSignalsSettingsName name = GoogleSignalsSettingsName.of("[PROPERTY]"); - - GoogleSignalsSettings actualResponse = client.getGoogleSignalsSettings(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetGoogleSignalsSettingsRequest actualRequest = - ((GetGoogleSignalsSettingsRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getGoogleSignalsSettingsExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - GoogleSignalsSettingsName name = GoogleSignalsSettingsName.of("[PROPERTY]"); - client.getGoogleSignalsSettings(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getGoogleSignalsSettingsTest2() throws Exception { - GoogleSignalsSettings expectedResponse = - GoogleSignalsSettings.newBuilder() - .setName(GoogleSignalsSettingsName.of("[PROPERTY]").toString()) - .setState(GoogleSignalsState.forNumber(0)) - .setConsent(GoogleSignalsConsent.forNumber(0)) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - String name = "name3373707"; - - GoogleSignalsSettings actualResponse = client.getGoogleSignalsSettings(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetGoogleSignalsSettingsRequest actualRequest = - ((GetGoogleSignalsSettingsRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getGoogleSignalsSettingsExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - String name = "name3373707"; - client.getGoogleSignalsSettings(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateGoogleSignalsSettingsTest() throws Exception { - GoogleSignalsSettings expectedResponse = - GoogleSignalsSettings.newBuilder() - .setName(GoogleSignalsSettingsName.of("[PROPERTY]").toString()) - .setState(GoogleSignalsState.forNumber(0)) - .setConsent(GoogleSignalsConsent.forNumber(0)) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - GoogleSignalsSettings googleSignalsSettings = GoogleSignalsSettings.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - GoogleSignalsSettings actualResponse = - client.updateGoogleSignalsSettings(googleSignalsSettings, updateMask); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - UpdateGoogleSignalsSettingsRequest actualRequest = - ((UpdateGoogleSignalsSettingsRequest) actualRequests.get(0)); - - Assert.assertEquals(googleSignalsSettings, actualRequest.getGoogleSignalsSettings()); - Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void updateGoogleSignalsSettingsExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - GoogleSignalsSettings googleSignalsSettings = GoogleSignalsSettings.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateGoogleSignalsSettings(googleSignalsSettings, updateMask); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createConversionEventTest() throws Exception { - ConversionEvent expectedResponse = - ConversionEvent.newBuilder() - .setName(ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]").toString()) - .setEventName("eventName31228997") - .setCreateTime(Timestamp.newBuilder().build()) - .setDeletable(true) - .setCustom(true) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - PropertyName parent = PropertyName.of("[PROPERTY]"); - ConversionEvent conversionEvent = ConversionEvent.newBuilder().build(); - - ConversionEvent actualResponse = client.createConversionEvent(parent, conversionEvent); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateConversionEventRequest actualRequest = - ((CreateConversionEventRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(conversionEvent, actualRequest.getConversionEvent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createConversionEventExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - PropertyName parent = PropertyName.of("[PROPERTY]"); - ConversionEvent conversionEvent = ConversionEvent.newBuilder().build(); - client.createConversionEvent(parent, conversionEvent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createConversionEventTest2() throws Exception { - ConversionEvent expectedResponse = - ConversionEvent.newBuilder() - .setName(ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]").toString()) - .setEventName("eventName31228997") - .setCreateTime(Timestamp.newBuilder().build()) - .setDeletable(true) - .setCustom(true) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - String parent = "parent-995424086"; - ConversionEvent conversionEvent = ConversionEvent.newBuilder().build(); - - ConversionEvent actualResponse = client.createConversionEvent(parent, conversionEvent); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateConversionEventRequest actualRequest = - ((CreateConversionEventRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertEquals(conversionEvent, actualRequest.getConversionEvent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createConversionEventExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - String parent = "parent-995424086"; - ConversionEvent conversionEvent = ConversionEvent.newBuilder().build(); - client.createConversionEvent(parent, conversionEvent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getConversionEventTest() throws Exception { - ConversionEvent expectedResponse = - ConversionEvent.newBuilder() - .setName(ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]").toString()) - .setEventName("eventName31228997") - .setCreateTime(Timestamp.newBuilder().build()) - .setDeletable(true) - .setCustom(true) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - ConversionEventName name = ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]"); - - ConversionEvent actualResponse = client.getConversionEvent(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetConversionEventRequest actualRequest = ((GetConversionEventRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getConversionEventExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - ConversionEventName name = ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]"); - client.getConversionEvent(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getConversionEventTest2() throws Exception { - ConversionEvent expectedResponse = - ConversionEvent.newBuilder() - .setName(ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]").toString()) - .setEventName("eventName31228997") - .setCreateTime(Timestamp.newBuilder().build()) - .setDeletable(true) - .setCustom(true) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - String name = "name3373707"; - - ConversionEvent actualResponse = client.getConversionEvent(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetConversionEventRequest actualRequest = ((GetConversionEventRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getConversionEventExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - String name = "name3373707"; - client.getConversionEvent(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteConversionEventTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - ConversionEventName name = ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]"); - - client.deleteConversionEvent(name); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteConversionEventRequest actualRequest = - ((DeleteConversionEventRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteConversionEventExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - ConversionEventName name = ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]"); - client.deleteConversionEvent(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteConversionEventTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - String name = "name3373707"; - - client.deleteConversionEvent(name); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteConversionEventRequest actualRequest = - ((DeleteConversionEventRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteConversionEventExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - String name = "name3373707"; - client.deleteConversionEvent(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listConversionEventsTest() throws Exception { - ConversionEvent responsesElement = ConversionEvent.newBuilder().build(); - ListConversionEventsResponse expectedResponse = - ListConversionEventsResponse.newBuilder() - .setNextPageToken("") - .addAllConversionEvents(Arrays.asList(responsesElement)) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - PropertyName parent = PropertyName.of("[PROPERTY]"); - - ListConversionEventsPagedResponse pagedListResponse = client.listConversionEvents(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getConversionEventsList().get(0), resources.get(0)); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListConversionEventsRequest actualRequest = - ((ListConversionEventsRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listConversionEventsExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - PropertyName parent = PropertyName.of("[PROPERTY]"); - client.listConversionEvents(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listConversionEventsTest2() throws Exception { - ConversionEvent responsesElement = ConversionEvent.newBuilder().build(); - ListConversionEventsResponse expectedResponse = - ListConversionEventsResponse.newBuilder() - .setNextPageToken("") - .addAllConversionEvents(Arrays.asList(responsesElement)) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - String parent = "parent-995424086"; - - ListConversionEventsPagedResponse pagedListResponse = client.listConversionEvents(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getConversionEventsList().get(0), resources.get(0)); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListConversionEventsRequest actualRequest = - ((ListConversionEventsRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listConversionEventsExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - String parent = "parent-995424086"; - client.listConversionEvents(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getDisplayVideo360AdvertiserLinkTest() throws Exception { - DisplayVideo360AdvertiserLink expectedResponse = - DisplayVideo360AdvertiserLink.newBuilder() - .setName( - DisplayVideo360AdvertiserLinkName.of( - "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]") - .toString()) - .setAdvertiserId("advertiserId550061990") - .setAdvertiserDisplayName("advertiserDisplayName1594116162") - .setAdsPersonalizationEnabled(BoolValue.newBuilder().build()) - .setCampaignDataSharingEnabled(BoolValue.newBuilder().build()) - .setCostDataSharingEnabled(BoolValue.newBuilder().build()) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - DisplayVideo360AdvertiserLinkName name = - DisplayVideo360AdvertiserLinkName.of("[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]"); - - DisplayVideo360AdvertiserLink actualResponse = client.getDisplayVideo360AdvertiserLink(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetDisplayVideo360AdvertiserLinkRequest actualRequest = - ((GetDisplayVideo360AdvertiserLinkRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getDisplayVideo360AdvertiserLinkExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - DisplayVideo360AdvertiserLinkName name = - DisplayVideo360AdvertiserLinkName.of("[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]"); - client.getDisplayVideo360AdvertiserLink(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getDisplayVideo360AdvertiserLinkTest2() throws Exception { - DisplayVideo360AdvertiserLink expectedResponse = - DisplayVideo360AdvertiserLink.newBuilder() - .setName( - DisplayVideo360AdvertiserLinkName.of( - "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]") - .toString()) - .setAdvertiserId("advertiserId550061990") - .setAdvertiserDisplayName("advertiserDisplayName1594116162") - .setAdsPersonalizationEnabled(BoolValue.newBuilder().build()) - .setCampaignDataSharingEnabled(BoolValue.newBuilder().build()) - .setCostDataSharingEnabled(BoolValue.newBuilder().build()) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - String name = "name3373707"; - - DisplayVideo360AdvertiserLink actualResponse = client.getDisplayVideo360AdvertiserLink(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetDisplayVideo360AdvertiserLinkRequest actualRequest = - ((GetDisplayVideo360AdvertiserLinkRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getDisplayVideo360AdvertiserLinkExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - String name = "name3373707"; - client.getDisplayVideo360AdvertiserLink(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listDisplayVideo360AdvertiserLinksTest() throws Exception { - DisplayVideo360AdvertiserLink responsesElement = - DisplayVideo360AdvertiserLink.newBuilder().build(); - ListDisplayVideo360AdvertiserLinksResponse expectedResponse = - ListDisplayVideo360AdvertiserLinksResponse.newBuilder() - .setNextPageToken("") - .addAllDisplayVideo360AdvertiserLinks(Arrays.asList(responsesElement)) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - PropertyName parent = PropertyName.of("[PROPERTY]"); - - ListDisplayVideo360AdvertiserLinksPagedResponse pagedListResponse = - client.listDisplayVideo360AdvertiserLinks(parent); - - List resources = - Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals( - expectedResponse.getDisplayVideo360AdvertiserLinksList().get(0), resources.get(0)); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListDisplayVideo360AdvertiserLinksRequest actualRequest = - ((ListDisplayVideo360AdvertiserLinksRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listDisplayVideo360AdvertiserLinksExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - PropertyName parent = PropertyName.of("[PROPERTY]"); - client.listDisplayVideo360AdvertiserLinks(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listDisplayVideo360AdvertiserLinksTest2() throws Exception { - DisplayVideo360AdvertiserLink responsesElement = - DisplayVideo360AdvertiserLink.newBuilder().build(); - ListDisplayVideo360AdvertiserLinksResponse expectedResponse = - ListDisplayVideo360AdvertiserLinksResponse.newBuilder() - .setNextPageToken("") - .addAllDisplayVideo360AdvertiserLinks(Arrays.asList(responsesElement)) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - String parent = "parent-995424086"; - - ListDisplayVideo360AdvertiserLinksPagedResponse pagedListResponse = - client.listDisplayVideo360AdvertiserLinks(parent); - - List resources = - Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals( - expectedResponse.getDisplayVideo360AdvertiserLinksList().get(0), resources.get(0)); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListDisplayVideo360AdvertiserLinksRequest actualRequest = - ((ListDisplayVideo360AdvertiserLinksRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listDisplayVideo360AdvertiserLinksExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - String parent = "parent-995424086"; - client.listDisplayVideo360AdvertiserLinks(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createDisplayVideo360AdvertiserLinkTest() throws Exception { - DisplayVideo360AdvertiserLink expectedResponse = - DisplayVideo360AdvertiserLink.newBuilder() - .setName( - DisplayVideo360AdvertiserLinkName.of( - "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]") - .toString()) - .setAdvertiserId("advertiserId550061990") - .setAdvertiserDisplayName("advertiserDisplayName1594116162") - .setAdsPersonalizationEnabled(BoolValue.newBuilder().build()) - .setCampaignDataSharingEnabled(BoolValue.newBuilder().build()) - .setCostDataSharingEnabled(BoolValue.newBuilder().build()) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - PropertyName parent = PropertyName.of("[PROPERTY]"); - DisplayVideo360AdvertiserLink displayVideo360AdvertiserLink = - DisplayVideo360AdvertiserLink.newBuilder().build(); - - DisplayVideo360AdvertiserLink actualResponse = - client.createDisplayVideo360AdvertiserLink(parent, displayVideo360AdvertiserLink); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateDisplayVideo360AdvertiserLinkRequest actualRequest = - ((CreateDisplayVideo360AdvertiserLinkRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals( - displayVideo360AdvertiserLink, actualRequest.getDisplayVideo360AdvertiserLink()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createDisplayVideo360AdvertiserLinkExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - PropertyName parent = PropertyName.of("[PROPERTY]"); - DisplayVideo360AdvertiserLink displayVideo360AdvertiserLink = - DisplayVideo360AdvertiserLink.newBuilder().build(); - client.createDisplayVideo360AdvertiserLink(parent, displayVideo360AdvertiserLink); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createDisplayVideo360AdvertiserLinkTest2() throws Exception { - DisplayVideo360AdvertiserLink expectedResponse = - DisplayVideo360AdvertiserLink.newBuilder() - .setName( - DisplayVideo360AdvertiserLinkName.of( - "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]") - .toString()) - .setAdvertiserId("advertiserId550061990") - .setAdvertiserDisplayName("advertiserDisplayName1594116162") - .setAdsPersonalizationEnabled(BoolValue.newBuilder().build()) - .setCampaignDataSharingEnabled(BoolValue.newBuilder().build()) - .setCostDataSharingEnabled(BoolValue.newBuilder().build()) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - String parent = "parent-995424086"; - DisplayVideo360AdvertiserLink displayVideo360AdvertiserLink = - DisplayVideo360AdvertiserLink.newBuilder().build(); - - DisplayVideo360AdvertiserLink actualResponse = - client.createDisplayVideo360AdvertiserLink(parent, displayVideo360AdvertiserLink); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateDisplayVideo360AdvertiserLinkRequest actualRequest = - ((CreateDisplayVideo360AdvertiserLinkRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertEquals( - displayVideo360AdvertiserLink, actualRequest.getDisplayVideo360AdvertiserLink()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createDisplayVideo360AdvertiserLinkExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - String parent = "parent-995424086"; - DisplayVideo360AdvertiserLink displayVideo360AdvertiserLink = - DisplayVideo360AdvertiserLink.newBuilder().build(); - client.createDisplayVideo360AdvertiserLink(parent, displayVideo360AdvertiserLink); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteDisplayVideo360AdvertiserLinkTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - DisplayVideo360AdvertiserLinkName name = - DisplayVideo360AdvertiserLinkName.of("[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]"); - - client.deleteDisplayVideo360AdvertiserLink(name); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteDisplayVideo360AdvertiserLinkRequest actualRequest = - ((DeleteDisplayVideo360AdvertiserLinkRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteDisplayVideo360AdvertiserLinkExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - DisplayVideo360AdvertiserLinkName name = - DisplayVideo360AdvertiserLinkName.of("[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]"); - client.deleteDisplayVideo360AdvertiserLink(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteDisplayVideo360AdvertiserLinkTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - String name = "name3373707"; - - client.deleteDisplayVideo360AdvertiserLink(name); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteDisplayVideo360AdvertiserLinkRequest actualRequest = - ((DeleteDisplayVideo360AdvertiserLinkRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteDisplayVideo360AdvertiserLinkExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - String name = "name3373707"; - client.deleteDisplayVideo360AdvertiserLink(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateDisplayVideo360AdvertiserLinkTest() throws Exception { - DisplayVideo360AdvertiserLink expectedResponse = - DisplayVideo360AdvertiserLink.newBuilder() - .setName( - DisplayVideo360AdvertiserLinkName.of( - "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]") - .toString()) - .setAdvertiserId("advertiserId550061990") - .setAdvertiserDisplayName("advertiserDisplayName1594116162") - .setAdsPersonalizationEnabled(BoolValue.newBuilder().build()) - .setCampaignDataSharingEnabled(BoolValue.newBuilder().build()) - .setCostDataSharingEnabled(BoolValue.newBuilder().build()) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - DisplayVideo360AdvertiserLink displayVideo360AdvertiserLink = - DisplayVideo360AdvertiserLink.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - DisplayVideo360AdvertiserLink actualResponse = - client.updateDisplayVideo360AdvertiserLink(displayVideo360AdvertiserLink, updateMask); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - UpdateDisplayVideo360AdvertiserLinkRequest actualRequest = - ((UpdateDisplayVideo360AdvertiserLinkRequest) actualRequests.get(0)); - - Assert.assertEquals( - displayVideo360AdvertiserLink, actualRequest.getDisplayVideo360AdvertiserLink()); - Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void updateDisplayVideo360AdvertiserLinkExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - DisplayVideo360AdvertiserLink displayVideo360AdvertiserLink = - DisplayVideo360AdvertiserLink.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateDisplayVideo360AdvertiserLink(displayVideo360AdvertiserLink, updateMask); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getDisplayVideo360AdvertiserLinkProposalTest() throws Exception { - DisplayVideo360AdvertiserLinkProposal expectedResponse = - DisplayVideo360AdvertiserLinkProposal.newBuilder() - .setName( - DisplayVideo360AdvertiserLinkProposalName.of( - "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]") - .toString()) - .setAdvertiserId("advertiserId550061990") - .setLinkProposalStatusDetails(LinkProposalStatusDetails.newBuilder().build()) - .setAdvertiserDisplayName("advertiserDisplayName1594116162") - .setValidationEmail("validationEmail-94407005") - .setAdsPersonalizationEnabled(BoolValue.newBuilder().build()) - .setCampaignDataSharingEnabled(BoolValue.newBuilder().build()) - .setCostDataSharingEnabled(BoolValue.newBuilder().build()) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - DisplayVideo360AdvertiserLinkProposalName name = - DisplayVideo360AdvertiserLinkProposalName.of( - "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]"); - - DisplayVideo360AdvertiserLinkProposal actualResponse = - client.getDisplayVideo360AdvertiserLinkProposal(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetDisplayVideo360AdvertiserLinkProposalRequest actualRequest = - ((GetDisplayVideo360AdvertiserLinkProposalRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getDisplayVideo360AdvertiserLinkProposalExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - DisplayVideo360AdvertiserLinkProposalName name = - DisplayVideo360AdvertiserLinkProposalName.of( - "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]"); - client.getDisplayVideo360AdvertiserLinkProposal(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getDisplayVideo360AdvertiserLinkProposalTest2() throws Exception { - DisplayVideo360AdvertiserLinkProposal expectedResponse = - DisplayVideo360AdvertiserLinkProposal.newBuilder() - .setName( - DisplayVideo360AdvertiserLinkProposalName.of( - "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]") - .toString()) - .setAdvertiserId("advertiserId550061990") - .setLinkProposalStatusDetails(LinkProposalStatusDetails.newBuilder().build()) - .setAdvertiserDisplayName("advertiserDisplayName1594116162") - .setValidationEmail("validationEmail-94407005") - .setAdsPersonalizationEnabled(BoolValue.newBuilder().build()) - .setCampaignDataSharingEnabled(BoolValue.newBuilder().build()) - .setCostDataSharingEnabled(BoolValue.newBuilder().build()) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - String name = "name3373707"; - - DisplayVideo360AdvertiserLinkProposal actualResponse = - client.getDisplayVideo360AdvertiserLinkProposal(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetDisplayVideo360AdvertiserLinkProposalRequest actualRequest = - ((GetDisplayVideo360AdvertiserLinkProposalRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getDisplayVideo360AdvertiserLinkProposalExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - String name = "name3373707"; - client.getDisplayVideo360AdvertiserLinkProposal(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listDisplayVideo360AdvertiserLinkProposalsTest() throws Exception { - DisplayVideo360AdvertiserLinkProposal responsesElement = - DisplayVideo360AdvertiserLinkProposal.newBuilder().build(); - ListDisplayVideo360AdvertiserLinkProposalsResponse expectedResponse = - ListDisplayVideo360AdvertiserLinkProposalsResponse.newBuilder() - .setNextPageToken("") - .addAllDisplayVideo360AdvertiserLinkProposals(Arrays.asList(responsesElement)) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - PropertyName parent = PropertyName.of("[PROPERTY]"); - - ListDisplayVideo360AdvertiserLinkProposalsPagedResponse pagedListResponse = - client.listDisplayVideo360AdvertiserLinkProposals(parent); - - List resources = - Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals( - expectedResponse.getDisplayVideo360AdvertiserLinkProposalsList().get(0), resources.get(0)); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListDisplayVideo360AdvertiserLinkProposalsRequest actualRequest = - ((ListDisplayVideo360AdvertiserLinkProposalsRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listDisplayVideo360AdvertiserLinkProposalsExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - PropertyName parent = PropertyName.of("[PROPERTY]"); - client.listDisplayVideo360AdvertiserLinkProposals(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listDisplayVideo360AdvertiserLinkProposalsTest2() throws Exception { - DisplayVideo360AdvertiserLinkProposal responsesElement = - DisplayVideo360AdvertiserLinkProposal.newBuilder().build(); - ListDisplayVideo360AdvertiserLinkProposalsResponse expectedResponse = - ListDisplayVideo360AdvertiserLinkProposalsResponse.newBuilder() - .setNextPageToken("") - .addAllDisplayVideo360AdvertiserLinkProposals(Arrays.asList(responsesElement)) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - String parent = "parent-995424086"; - - ListDisplayVideo360AdvertiserLinkProposalsPagedResponse pagedListResponse = - client.listDisplayVideo360AdvertiserLinkProposals(parent); - - List resources = - Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals( - expectedResponse.getDisplayVideo360AdvertiserLinkProposalsList().get(0), resources.get(0)); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListDisplayVideo360AdvertiserLinkProposalsRequest actualRequest = - ((ListDisplayVideo360AdvertiserLinkProposalsRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listDisplayVideo360AdvertiserLinkProposalsExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - String parent = "parent-995424086"; - client.listDisplayVideo360AdvertiserLinkProposals(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createDisplayVideo360AdvertiserLinkProposalTest() throws Exception { - DisplayVideo360AdvertiserLinkProposal expectedResponse = - DisplayVideo360AdvertiserLinkProposal.newBuilder() - .setName( - DisplayVideo360AdvertiserLinkProposalName.of( - "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]") - .toString()) - .setAdvertiserId("advertiserId550061990") - .setLinkProposalStatusDetails(LinkProposalStatusDetails.newBuilder().build()) - .setAdvertiserDisplayName("advertiserDisplayName1594116162") - .setValidationEmail("validationEmail-94407005") - .setAdsPersonalizationEnabled(BoolValue.newBuilder().build()) - .setCampaignDataSharingEnabled(BoolValue.newBuilder().build()) - .setCostDataSharingEnabled(BoolValue.newBuilder().build()) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - PropertyName parent = PropertyName.of("[PROPERTY]"); - DisplayVideo360AdvertiserLinkProposal displayVideo360AdvertiserLinkProposal = - DisplayVideo360AdvertiserLinkProposal.newBuilder().build(); - - DisplayVideo360AdvertiserLinkProposal actualResponse = - client.createDisplayVideo360AdvertiserLinkProposal( - parent, displayVideo360AdvertiserLinkProposal); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateDisplayVideo360AdvertiserLinkProposalRequest actualRequest = - ((CreateDisplayVideo360AdvertiserLinkProposalRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals( - displayVideo360AdvertiserLinkProposal, - actualRequest.getDisplayVideo360AdvertiserLinkProposal()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createDisplayVideo360AdvertiserLinkProposalExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - PropertyName parent = PropertyName.of("[PROPERTY]"); - DisplayVideo360AdvertiserLinkProposal displayVideo360AdvertiserLinkProposal = - DisplayVideo360AdvertiserLinkProposal.newBuilder().build(); - client.createDisplayVideo360AdvertiserLinkProposal( - parent, displayVideo360AdvertiserLinkProposal); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createDisplayVideo360AdvertiserLinkProposalTest2() throws Exception { - DisplayVideo360AdvertiserLinkProposal expectedResponse = - DisplayVideo360AdvertiserLinkProposal.newBuilder() - .setName( - DisplayVideo360AdvertiserLinkProposalName.of( - "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]") - .toString()) - .setAdvertiserId("advertiserId550061990") - .setLinkProposalStatusDetails(LinkProposalStatusDetails.newBuilder().build()) - .setAdvertiserDisplayName("advertiserDisplayName1594116162") - .setValidationEmail("validationEmail-94407005") - .setAdsPersonalizationEnabled(BoolValue.newBuilder().build()) - .setCampaignDataSharingEnabled(BoolValue.newBuilder().build()) - .setCostDataSharingEnabled(BoolValue.newBuilder().build()) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - String parent = "parent-995424086"; - DisplayVideo360AdvertiserLinkProposal displayVideo360AdvertiserLinkProposal = - DisplayVideo360AdvertiserLinkProposal.newBuilder().build(); - - DisplayVideo360AdvertiserLinkProposal actualResponse = - client.createDisplayVideo360AdvertiserLinkProposal( - parent, displayVideo360AdvertiserLinkProposal); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateDisplayVideo360AdvertiserLinkProposalRequest actualRequest = - ((CreateDisplayVideo360AdvertiserLinkProposalRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertEquals( - displayVideo360AdvertiserLinkProposal, - actualRequest.getDisplayVideo360AdvertiserLinkProposal()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createDisplayVideo360AdvertiserLinkProposalExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - String parent = "parent-995424086"; - DisplayVideo360AdvertiserLinkProposal displayVideo360AdvertiserLinkProposal = - DisplayVideo360AdvertiserLinkProposal.newBuilder().build(); - client.createDisplayVideo360AdvertiserLinkProposal( - parent, displayVideo360AdvertiserLinkProposal); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteDisplayVideo360AdvertiserLinkProposalTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - DisplayVideo360AdvertiserLinkProposalName name = - DisplayVideo360AdvertiserLinkProposalName.of( - "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]"); - - client.deleteDisplayVideo360AdvertiserLinkProposal(name); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteDisplayVideo360AdvertiserLinkProposalRequest actualRequest = - ((DeleteDisplayVideo360AdvertiserLinkProposalRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteDisplayVideo360AdvertiserLinkProposalExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - DisplayVideo360AdvertiserLinkProposalName name = - DisplayVideo360AdvertiserLinkProposalName.of( - "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]"); - client.deleteDisplayVideo360AdvertiserLinkProposal(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteDisplayVideo360AdvertiserLinkProposalTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - String name = "name3373707"; - - client.deleteDisplayVideo360AdvertiserLinkProposal(name); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteDisplayVideo360AdvertiserLinkProposalRequest actualRequest = - ((DeleteDisplayVideo360AdvertiserLinkProposalRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteDisplayVideo360AdvertiserLinkProposalExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - String name = "name3373707"; - client.deleteDisplayVideo360AdvertiserLinkProposal(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void approveDisplayVideo360AdvertiserLinkProposalTest() throws Exception { - ApproveDisplayVideo360AdvertiserLinkProposalResponse expectedResponse = - ApproveDisplayVideo360AdvertiserLinkProposalResponse.newBuilder() - .setDisplayVideo360AdvertiserLink(DisplayVideo360AdvertiserLink.newBuilder().build()) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - ApproveDisplayVideo360AdvertiserLinkProposalRequest request = - ApproveDisplayVideo360AdvertiserLinkProposalRequest.newBuilder() - .setName( - DisplayVideo360AdvertiserLinkProposalName.of( - "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]") - .toString()) - .build(); - - ApproveDisplayVideo360AdvertiserLinkProposalResponse actualResponse = - client.approveDisplayVideo360AdvertiserLinkProposal(request); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ApproveDisplayVideo360AdvertiserLinkProposalRequest actualRequest = - ((ApproveDisplayVideo360AdvertiserLinkProposalRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getName(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void approveDisplayVideo360AdvertiserLinkProposalExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - ApproveDisplayVideo360AdvertiserLinkProposalRequest request = - ApproveDisplayVideo360AdvertiserLinkProposalRequest.newBuilder() - .setName( - DisplayVideo360AdvertiserLinkProposalName.of( - "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]") - .toString()) - .build(); - client.approveDisplayVideo360AdvertiserLinkProposal(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void cancelDisplayVideo360AdvertiserLinkProposalTest() throws Exception { - DisplayVideo360AdvertiserLinkProposal expectedResponse = - DisplayVideo360AdvertiserLinkProposal.newBuilder() - .setName( - DisplayVideo360AdvertiserLinkProposalName.of( - "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]") - .toString()) - .setAdvertiserId("advertiserId550061990") - .setLinkProposalStatusDetails(LinkProposalStatusDetails.newBuilder().build()) - .setAdvertiserDisplayName("advertiserDisplayName1594116162") - .setValidationEmail("validationEmail-94407005") - .setAdsPersonalizationEnabled(BoolValue.newBuilder().build()) - .setCampaignDataSharingEnabled(BoolValue.newBuilder().build()) - .setCostDataSharingEnabled(BoolValue.newBuilder().build()) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - CancelDisplayVideo360AdvertiserLinkProposalRequest request = - CancelDisplayVideo360AdvertiserLinkProposalRequest.newBuilder() - .setName( - DisplayVideo360AdvertiserLinkProposalName.of( - "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]") - .toString()) - .build(); - - DisplayVideo360AdvertiserLinkProposal actualResponse = - client.cancelDisplayVideo360AdvertiserLinkProposal(request); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CancelDisplayVideo360AdvertiserLinkProposalRequest actualRequest = - ((CancelDisplayVideo360AdvertiserLinkProposalRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getName(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void cancelDisplayVideo360AdvertiserLinkProposalExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - CancelDisplayVideo360AdvertiserLinkProposalRequest request = - CancelDisplayVideo360AdvertiserLinkProposalRequest.newBuilder() - .setName( - DisplayVideo360AdvertiserLinkProposalName.of( - "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]") - .toString()) - .build(); - client.cancelDisplayVideo360AdvertiserLinkProposal(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createCustomDimensionTest() throws Exception { - CustomDimension expectedResponse = - CustomDimension.newBuilder() - .setName(CustomDimensionName.of("[PROPERTY]", "[CUSTOM_DIMENSION]").toString()) - .setParameterName("parameterName-379607596") - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setDisallowAdsPersonalization(true) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - PropertyName parent = PropertyName.of("[PROPERTY]"); - CustomDimension customDimension = CustomDimension.newBuilder().build(); - - CustomDimension actualResponse = client.createCustomDimension(parent, customDimension); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateCustomDimensionRequest actualRequest = - ((CreateCustomDimensionRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(customDimension, actualRequest.getCustomDimension()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createCustomDimensionExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - PropertyName parent = PropertyName.of("[PROPERTY]"); - CustomDimension customDimension = CustomDimension.newBuilder().build(); - client.createCustomDimension(parent, customDimension); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createCustomDimensionTest2() throws Exception { - CustomDimension expectedResponse = - CustomDimension.newBuilder() - .setName(CustomDimensionName.of("[PROPERTY]", "[CUSTOM_DIMENSION]").toString()) - .setParameterName("parameterName-379607596") - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setDisallowAdsPersonalization(true) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - String parent = "parent-995424086"; - CustomDimension customDimension = CustomDimension.newBuilder().build(); - - CustomDimension actualResponse = client.createCustomDimension(parent, customDimension); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateCustomDimensionRequest actualRequest = - ((CreateCustomDimensionRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertEquals(customDimension, actualRequest.getCustomDimension()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createCustomDimensionExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - String parent = "parent-995424086"; - CustomDimension customDimension = CustomDimension.newBuilder().build(); - client.createCustomDimension(parent, customDimension); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateCustomDimensionTest() throws Exception { - CustomDimension expectedResponse = - CustomDimension.newBuilder() - .setName(CustomDimensionName.of("[PROPERTY]", "[CUSTOM_DIMENSION]").toString()) - .setParameterName("parameterName-379607596") - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setDisallowAdsPersonalization(true) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - CustomDimension customDimension = CustomDimension.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - CustomDimension actualResponse = client.updateCustomDimension(customDimension, updateMask); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - UpdateCustomDimensionRequest actualRequest = - ((UpdateCustomDimensionRequest) actualRequests.get(0)); - - Assert.assertEquals(customDimension, actualRequest.getCustomDimension()); - Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void updateCustomDimensionExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - CustomDimension customDimension = CustomDimension.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateCustomDimension(customDimension, updateMask); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listCustomDimensionsTest() throws Exception { - CustomDimension responsesElement = CustomDimension.newBuilder().build(); - ListCustomDimensionsResponse expectedResponse = - ListCustomDimensionsResponse.newBuilder() - .setNextPageToken("") - .addAllCustomDimensions(Arrays.asList(responsesElement)) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - PropertyName parent = PropertyName.of("[PROPERTY]"); - - ListCustomDimensionsPagedResponse pagedListResponse = client.listCustomDimensions(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getCustomDimensionsList().get(0), resources.get(0)); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListCustomDimensionsRequest actualRequest = - ((ListCustomDimensionsRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listCustomDimensionsExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - PropertyName parent = PropertyName.of("[PROPERTY]"); - client.listCustomDimensions(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listCustomDimensionsTest2() throws Exception { - CustomDimension responsesElement = CustomDimension.newBuilder().build(); - ListCustomDimensionsResponse expectedResponse = - ListCustomDimensionsResponse.newBuilder() - .setNextPageToken("") - .addAllCustomDimensions(Arrays.asList(responsesElement)) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - String parent = "parent-995424086"; - - ListCustomDimensionsPagedResponse pagedListResponse = client.listCustomDimensions(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getCustomDimensionsList().get(0), resources.get(0)); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListCustomDimensionsRequest actualRequest = - ((ListCustomDimensionsRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listCustomDimensionsExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - String parent = "parent-995424086"; - client.listCustomDimensions(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void archiveCustomDimensionTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - CustomDimensionName name = CustomDimensionName.of("[PROPERTY]", "[CUSTOM_DIMENSION]"); - - client.archiveCustomDimension(name); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ArchiveCustomDimensionRequest actualRequest = - ((ArchiveCustomDimensionRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void archiveCustomDimensionExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - CustomDimensionName name = CustomDimensionName.of("[PROPERTY]", "[CUSTOM_DIMENSION]"); - client.archiveCustomDimension(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void archiveCustomDimensionTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - String name = "name3373707"; - - client.archiveCustomDimension(name); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ArchiveCustomDimensionRequest actualRequest = - ((ArchiveCustomDimensionRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void archiveCustomDimensionExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - String name = "name3373707"; - client.archiveCustomDimension(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getCustomDimensionTest() throws Exception { - CustomDimension expectedResponse = - CustomDimension.newBuilder() - .setName(CustomDimensionName.of("[PROPERTY]", "[CUSTOM_DIMENSION]").toString()) - .setParameterName("parameterName-379607596") - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setDisallowAdsPersonalization(true) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - CustomDimensionName name = CustomDimensionName.of("[PROPERTY]", "[CUSTOM_DIMENSION]"); - - CustomDimension actualResponse = client.getCustomDimension(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetCustomDimensionRequest actualRequest = ((GetCustomDimensionRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getCustomDimensionExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - CustomDimensionName name = CustomDimensionName.of("[PROPERTY]", "[CUSTOM_DIMENSION]"); - client.getCustomDimension(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getCustomDimensionTest2() throws Exception { - CustomDimension expectedResponse = - CustomDimension.newBuilder() - .setName(CustomDimensionName.of("[PROPERTY]", "[CUSTOM_DIMENSION]").toString()) - .setParameterName("parameterName-379607596") - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setDisallowAdsPersonalization(true) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - String name = "name3373707"; - - CustomDimension actualResponse = client.getCustomDimension(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetCustomDimensionRequest actualRequest = ((GetCustomDimensionRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getCustomDimensionExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - String name = "name3373707"; - client.getCustomDimension(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createCustomMetricTest() throws Exception { - CustomMetric expectedResponse = - CustomMetric.newBuilder() - .setName(CustomMetricName.of("[PROPERTY]", "[CUSTOM_METRIC]").toString()) - .setParameterName("parameterName-379607596") - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .addAllRestrictedMetricType(new ArrayList()) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - PropertyName parent = PropertyName.of("[PROPERTY]"); - CustomMetric customMetric = CustomMetric.newBuilder().build(); - - CustomMetric actualResponse = client.createCustomMetric(parent, customMetric); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateCustomMetricRequest actualRequest = ((CreateCustomMetricRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(customMetric, actualRequest.getCustomMetric()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createCustomMetricExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - PropertyName parent = PropertyName.of("[PROPERTY]"); - CustomMetric customMetric = CustomMetric.newBuilder().build(); - client.createCustomMetric(parent, customMetric); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createCustomMetricTest2() throws Exception { - CustomMetric expectedResponse = - CustomMetric.newBuilder() - .setName(CustomMetricName.of("[PROPERTY]", "[CUSTOM_METRIC]").toString()) - .setParameterName("parameterName-379607596") - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .addAllRestrictedMetricType(new ArrayList()) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - String parent = "parent-995424086"; - CustomMetric customMetric = CustomMetric.newBuilder().build(); - - CustomMetric actualResponse = client.createCustomMetric(parent, customMetric); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateCustomMetricRequest actualRequest = ((CreateCustomMetricRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertEquals(customMetric, actualRequest.getCustomMetric()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createCustomMetricExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - String parent = "parent-995424086"; - CustomMetric customMetric = CustomMetric.newBuilder().build(); - client.createCustomMetric(parent, customMetric); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateCustomMetricTest() throws Exception { - CustomMetric expectedResponse = - CustomMetric.newBuilder() - .setName(CustomMetricName.of("[PROPERTY]", "[CUSTOM_METRIC]").toString()) - .setParameterName("parameterName-379607596") - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .addAllRestrictedMetricType(new ArrayList()) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - CustomMetric customMetric = CustomMetric.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - CustomMetric actualResponse = client.updateCustomMetric(customMetric, updateMask); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - UpdateCustomMetricRequest actualRequest = ((UpdateCustomMetricRequest) actualRequests.get(0)); - - Assert.assertEquals(customMetric, actualRequest.getCustomMetric()); - Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void updateCustomMetricExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - CustomMetric customMetric = CustomMetric.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateCustomMetric(customMetric, updateMask); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listCustomMetricsTest() throws Exception { - CustomMetric responsesElement = CustomMetric.newBuilder().build(); - ListCustomMetricsResponse expectedResponse = - ListCustomMetricsResponse.newBuilder() - .setNextPageToken("") - .addAllCustomMetrics(Arrays.asList(responsesElement)) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - PropertyName parent = PropertyName.of("[PROPERTY]"); - - ListCustomMetricsPagedResponse pagedListResponse = client.listCustomMetrics(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getCustomMetricsList().get(0), resources.get(0)); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListCustomMetricsRequest actualRequest = ((ListCustomMetricsRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listCustomMetricsExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - PropertyName parent = PropertyName.of("[PROPERTY]"); - client.listCustomMetrics(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listCustomMetricsTest2() throws Exception { - CustomMetric responsesElement = CustomMetric.newBuilder().build(); - ListCustomMetricsResponse expectedResponse = - ListCustomMetricsResponse.newBuilder() - .setNextPageToken("") - .addAllCustomMetrics(Arrays.asList(responsesElement)) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - String parent = "parent-995424086"; - - ListCustomMetricsPagedResponse pagedListResponse = client.listCustomMetrics(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getCustomMetricsList().get(0), resources.get(0)); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListCustomMetricsRequest actualRequest = ((ListCustomMetricsRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listCustomMetricsExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - String parent = "parent-995424086"; - client.listCustomMetrics(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void archiveCustomMetricTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - CustomMetricName name = CustomMetricName.of("[PROPERTY]", "[CUSTOM_METRIC]"); - - client.archiveCustomMetric(name); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ArchiveCustomMetricRequest actualRequest = ((ArchiveCustomMetricRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void archiveCustomMetricExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - CustomMetricName name = CustomMetricName.of("[PROPERTY]", "[CUSTOM_METRIC]"); - client.archiveCustomMetric(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void archiveCustomMetricTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - String name = "name3373707"; - - client.archiveCustomMetric(name); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ArchiveCustomMetricRequest actualRequest = ((ArchiveCustomMetricRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void archiveCustomMetricExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - String name = "name3373707"; - client.archiveCustomMetric(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getCustomMetricTest() throws Exception { - CustomMetric expectedResponse = - CustomMetric.newBuilder() - .setName(CustomMetricName.of("[PROPERTY]", "[CUSTOM_METRIC]").toString()) - .setParameterName("parameterName-379607596") - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .addAllRestrictedMetricType(new ArrayList()) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - CustomMetricName name = CustomMetricName.of("[PROPERTY]", "[CUSTOM_METRIC]"); - - CustomMetric actualResponse = client.getCustomMetric(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetCustomMetricRequest actualRequest = ((GetCustomMetricRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getCustomMetricExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - CustomMetricName name = CustomMetricName.of("[PROPERTY]", "[CUSTOM_METRIC]"); - client.getCustomMetric(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getCustomMetricTest2() throws Exception { - CustomMetric expectedResponse = - CustomMetric.newBuilder() - .setName(CustomMetricName.of("[PROPERTY]", "[CUSTOM_METRIC]").toString()) - .setParameterName("parameterName-379607596") - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .addAllRestrictedMetricType(new ArrayList()) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - String name = "name3373707"; - - CustomMetric actualResponse = client.getCustomMetric(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetCustomMetricRequest actualRequest = ((GetCustomMetricRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getCustomMetricExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - String name = "name3373707"; - client.getCustomMetric(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getDataRetentionSettingsTest() throws Exception { - DataRetentionSettings expectedResponse = - DataRetentionSettings.newBuilder() - .setName(DataRetentionSettingsName.of("[PROPERTY]").toString()) - .setResetUserDataOnNewActivity(true) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - DataRetentionSettingsName name = DataRetentionSettingsName.of("[PROPERTY]"); - - DataRetentionSettings actualResponse = client.getDataRetentionSettings(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetDataRetentionSettingsRequest actualRequest = - ((GetDataRetentionSettingsRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getDataRetentionSettingsExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - DataRetentionSettingsName name = DataRetentionSettingsName.of("[PROPERTY]"); - client.getDataRetentionSettings(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getDataRetentionSettingsTest2() throws Exception { - DataRetentionSettings expectedResponse = - DataRetentionSettings.newBuilder() - .setName(DataRetentionSettingsName.of("[PROPERTY]").toString()) - .setResetUserDataOnNewActivity(true) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - String name = "name3373707"; - - DataRetentionSettings actualResponse = client.getDataRetentionSettings(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetDataRetentionSettingsRequest actualRequest = - ((GetDataRetentionSettingsRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getDataRetentionSettingsExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - String name = "name3373707"; - client.getDataRetentionSettings(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateDataRetentionSettingsTest() throws Exception { - DataRetentionSettings expectedResponse = - DataRetentionSettings.newBuilder() - .setName(DataRetentionSettingsName.of("[PROPERTY]").toString()) - .setResetUserDataOnNewActivity(true) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - DataRetentionSettings dataRetentionSettings = DataRetentionSettings.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - DataRetentionSettings actualResponse = - client.updateDataRetentionSettings(dataRetentionSettings, updateMask); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - UpdateDataRetentionSettingsRequest actualRequest = - ((UpdateDataRetentionSettingsRequest) actualRequests.get(0)); - - Assert.assertEquals(dataRetentionSettings, actualRequest.getDataRetentionSettings()); - Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void updateDataRetentionSettingsExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - DataRetentionSettings dataRetentionSettings = DataRetentionSettings.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateDataRetentionSettings(dataRetentionSettings, updateMask); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createDataStreamTest() throws Exception { - DataStream expectedResponse = - DataStream.newBuilder() - .setName(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString()) - .setDisplayName("displayName1714148973") - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - PropertyName parent = PropertyName.of("[PROPERTY]"); - DataStream dataStream = DataStream.newBuilder().build(); - - DataStream actualResponse = client.createDataStream(parent, dataStream); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateDataStreamRequest actualRequest = ((CreateDataStreamRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(dataStream, actualRequest.getDataStream()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createDataStreamExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - PropertyName parent = PropertyName.of("[PROPERTY]"); - DataStream dataStream = DataStream.newBuilder().build(); - client.createDataStream(parent, dataStream); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createDataStreamTest2() throws Exception { - DataStream expectedResponse = - DataStream.newBuilder() - .setName(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString()) - .setDisplayName("displayName1714148973") - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - String parent = "parent-995424086"; - DataStream dataStream = DataStream.newBuilder().build(); - - DataStream actualResponse = client.createDataStream(parent, dataStream); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateDataStreamRequest actualRequest = ((CreateDataStreamRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertEquals(dataStream, actualRequest.getDataStream()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createDataStreamExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - String parent = "parent-995424086"; - DataStream dataStream = DataStream.newBuilder().build(); - client.createDataStream(parent, dataStream); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteDataStreamTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - DataStreamName name = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]"); - - client.deleteDataStream(name); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteDataStreamRequest actualRequest = ((DeleteDataStreamRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteDataStreamExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - DataStreamName name = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]"); - client.deleteDataStream(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteDataStreamTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - String name = "name3373707"; - - client.deleteDataStream(name); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteDataStreamRequest actualRequest = ((DeleteDataStreamRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteDataStreamExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - String name = "name3373707"; - client.deleteDataStream(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateDataStreamTest() throws Exception { - DataStream expectedResponse = - DataStream.newBuilder() - .setName(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString()) - .setDisplayName("displayName1714148973") - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - DataStream dataStream = DataStream.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - DataStream actualResponse = client.updateDataStream(dataStream, updateMask); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - UpdateDataStreamRequest actualRequest = ((UpdateDataStreamRequest) actualRequests.get(0)); - - Assert.assertEquals(dataStream, actualRequest.getDataStream()); - Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void updateDataStreamExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - DataStream dataStream = DataStream.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateDataStream(dataStream, updateMask); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listDataStreamsTest() throws Exception { - DataStream responsesElement = DataStream.newBuilder().build(); - ListDataStreamsResponse expectedResponse = - ListDataStreamsResponse.newBuilder() - .setNextPageToken("") - .addAllDataStreams(Arrays.asList(responsesElement)) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - PropertyName parent = PropertyName.of("[PROPERTY]"); - - ListDataStreamsPagedResponse pagedListResponse = client.listDataStreams(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getDataStreamsList().get(0), resources.get(0)); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListDataStreamsRequest actualRequest = ((ListDataStreamsRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listDataStreamsExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - PropertyName parent = PropertyName.of("[PROPERTY]"); - client.listDataStreams(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listDataStreamsTest2() throws Exception { - DataStream responsesElement = DataStream.newBuilder().build(); - ListDataStreamsResponse expectedResponse = - ListDataStreamsResponse.newBuilder() - .setNextPageToken("") - .addAllDataStreams(Arrays.asList(responsesElement)) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - String parent = "parent-995424086"; - - ListDataStreamsPagedResponse pagedListResponse = client.listDataStreams(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getDataStreamsList().get(0), resources.get(0)); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListDataStreamsRequest actualRequest = ((ListDataStreamsRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listDataStreamsExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - String parent = "parent-995424086"; - client.listDataStreams(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getDataStreamTest() throws Exception { - DataStream expectedResponse = - DataStream.newBuilder() - .setName(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString()) - .setDisplayName("displayName1714148973") - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - DataStreamName name = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]"); - - DataStream actualResponse = client.getDataStream(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetDataStreamRequest actualRequest = ((GetDataStreamRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getDataStreamExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - DataStreamName name = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]"); - client.getDataStream(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getDataStreamTest2() throws Exception { - DataStream expectedResponse = - DataStream.newBuilder() - .setName(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString()) - .setDisplayName("displayName1714148973") - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - String name = "name3373707"; - - DataStream actualResponse = client.getDataStream(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetDataStreamRequest actualRequest = ((GetDataStreamRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getDataStreamExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - String name = "name3373707"; - client.getDataStream(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getAudienceTest() throws Exception { - Audience expectedResponse = - Audience.newBuilder() - .setName(AudienceName.of("[PROPERTY]", "[AUDIENCE]").toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setMembershipDurationDays(1702404985) - .setAdsPersonalizationEnabled(true) - .setEventTrigger(AudienceEventTrigger.newBuilder().build()) - .addAllFilterClauses(new ArrayList()) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - AudienceName name = AudienceName.of("[PROPERTY]", "[AUDIENCE]"); - - Audience actualResponse = client.getAudience(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetAudienceRequest actualRequest = ((GetAudienceRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getAudienceExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - AudienceName name = AudienceName.of("[PROPERTY]", "[AUDIENCE]"); - client.getAudience(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getAudienceTest2() throws Exception { - Audience expectedResponse = - Audience.newBuilder() - .setName(AudienceName.of("[PROPERTY]", "[AUDIENCE]").toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setMembershipDurationDays(1702404985) - .setAdsPersonalizationEnabled(true) - .setEventTrigger(AudienceEventTrigger.newBuilder().build()) - .addAllFilterClauses(new ArrayList()) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - String name = "name3373707"; - - Audience actualResponse = client.getAudience(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetAudienceRequest actualRequest = ((GetAudienceRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getAudienceExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - String name = "name3373707"; - client.getAudience(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listAudiencesTest() throws Exception { - Audience responsesElement = Audience.newBuilder().build(); - ListAudiencesResponse expectedResponse = - ListAudiencesResponse.newBuilder() - .setNextPageToken("") - .addAllAudiences(Arrays.asList(responsesElement)) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - PropertyName parent = PropertyName.of("[PROPERTY]"); - - ListAudiencesPagedResponse pagedListResponse = client.listAudiences(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getAudiencesList().get(0), resources.get(0)); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListAudiencesRequest actualRequest = ((ListAudiencesRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listAudiencesExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - PropertyName parent = PropertyName.of("[PROPERTY]"); - client.listAudiences(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listAudiencesTest2() throws Exception { - Audience responsesElement = Audience.newBuilder().build(); - ListAudiencesResponse expectedResponse = - ListAudiencesResponse.newBuilder() - .setNextPageToken("") - .addAllAudiences(Arrays.asList(responsesElement)) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - String parent = "parent-995424086"; - - ListAudiencesPagedResponse pagedListResponse = client.listAudiences(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getAudiencesList().get(0), resources.get(0)); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListAudiencesRequest actualRequest = ((ListAudiencesRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listAudiencesExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - String parent = "parent-995424086"; - client.listAudiences(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createAudienceTest() throws Exception { - Audience expectedResponse = - Audience.newBuilder() - .setName(AudienceName.of("[PROPERTY]", "[AUDIENCE]").toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setMembershipDurationDays(1702404985) - .setAdsPersonalizationEnabled(true) - .setEventTrigger(AudienceEventTrigger.newBuilder().build()) - .addAllFilterClauses(new ArrayList()) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - PropertyName parent = PropertyName.of("[PROPERTY]"); - Audience audience = Audience.newBuilder().build(); - - Audience actualResponse = client.createAudience(parent, audience); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateAudienceRequest actualRequest = ((CreateAudienceRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(audience, actualRequest.getAudience()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createAudienceExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - PropertyName parent = PropertyName.of("[PROPERTY]"); - Audience audience = Audience.newBuilder().build(); - client.createAudience(parent, audience); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createAudienceTest2() throws Exception { - Audience expectedResponse = - Audience.newBuilder() - .setName(AudienceName.of("[PROPERTY]", "[AUDIENCE]").toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setMembershipDurationDays(1702404985) - .setAdsPersonalizationEnabled(true) - .setEventTrigger(AudienceEventTrigger.newBuilder().build()) - .addAllFilterClauses(new ArrayList()) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - String parent = "parent-995424086"; - Audience audience = Audience.newBuilder().build(); - - Audience actualResponse = client.createAudience(parent, audience); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateAudienceRequest actualRequest = ((CreateAudienceRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertEquals(audience, actualRequest.getAudience()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createAudienceExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - String parent = "parent-995424086"; - Audience audience = Audience.newBuilder().build(); - client.createAudience(parent, audience); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateAudienceTest() throws Exception { - Audience expectedResponse = - Audience.newBuilder() - .setName(AudienceName.of("[PROPERTY]", "[AUDIENCE]").toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setMembershipDurationDays(1702404985) - .setAdsPersonalizationEnabled(true) - .setEventTrigger(AudienceEventTrigger.newBuilder().build()) - .addAllFilterClauses(new ArrayList()) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - Audience audience = Audience.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - Audience actualResponse = client.updateAudience(audience, updateMask); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - UpdateAudienceRequest actualRequest = ((UpdateAudienceRequest) actualRequests.get(0)); - - Assert.assertEquals(audience, actualRequest.getAudience()); - Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void updateAudienceExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - Audience audience = Audience.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateAudience(audience, updateMask); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void archiveAudienceTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - ArchiveAudienceRequest request = - ArchiveAudienceRequest.newBuilder() - .setName(PropertyName.of("[PROPERTY]").toString()) - .build(); - - client.archiveAudience(request); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ArchiveAudienceRequest actualRequest = ((ArchiveAudienceRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getName(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void archiveAudienceExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - ArchiveAudienceRequest request = - ArchiveAudienceRequest.newBuilder() - .setName(PropertyName.of("[PROPERTY]").toString()) - .build(); - client.archiveAudience(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getAttributionSettingsTest() throws Exception { - AttributionSettings expectedResponse = - AttributionSettings.newBuilder() - .setName(AttributionSettingsName.of("[PROPERTY]").toString()) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - AttributionSettingsName name = AttributionSettingsName.of("[PROPERTY]"); - - AttributionSettings actualResponse = client.getAttributionSettings(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetAttributionSettingsRequest actualRequest = - ((GetAttributionSettingsRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getAttributionSettingsExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - AttributionSettingsName name = AttributionSettingsName.of("[PROPERTY]"); - client.getAttributionSettings(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getAttributionSettingsTest2() throws Exception { - AttributionSettings expectedResponse = - AttributionSettings.newBuilder() - .setName(AttributionSettingsName.of("[PROPERTY]").toString()) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - String name = "name3373707"; - - AttributionSettings actualResponse = client.getAttributionSettings(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetAttributionSettingsRequest actualRequest = - ((GetAttributionSettingsRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getAttributionSettingsExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - String name = "name3373707"; - client.getAttributionSettings(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateAttributionSettingsTest() throws Exception { - AttributionSettings expectedResponse = - AttributionSettings.newBuilder() - .setName(AttributionSettingsName.of("[PROPERTY]").toString()) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - AttributionSettings attributionSettings = AttributionSettings.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - AttributionSettings actualResponse = - client.updateAttributionSettings(attributionSettings, updateMask); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - UpdateAttributionSettingsRequest actualRequest = - ((UpdateAttributionSettingsRequest) actualRequests.get(0)); - - Assert.assertEquals(attributionSettings, actualRequest.getAttributionSettings()); - Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void updateAttributionSettingsExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - AttributionSettings attributionSettings = AttributionSettings.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateAttributionSettings(attributionSettings, updateMask); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void runAccessReportTest() throws Exception { - RunAccessReportResponse expectedResponse = - RunAccessReportResponse.newBuilder() - .addAllDimensionHeaders(new ArrayList()) - .addAllMetricHeaders(new ArrayList()) - .addAllRows(new ArrayList()) - .setRowCount(1340416618) - .setQuota(AccessQuota.newBuilder().build()) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - RunAccessReportRequest request = - RunAccessReportRequest.newBuilder() - .setEntity("entity-1298275357") - .addAllDimensions(new ArrayList()) - .addAllMetrics(new ArrayList()) - .addAllDateRanges(new ArrayList()) - .setDimensionFilter(AccessFilterExpression.newBuilder().build()) - .setMetricFilter(AccessFilterExpression.newBuilder().build()) - .setOffset(-1019779949) - .setLimit(102976443) - .setTimeZone("timeZone-2077180903") - .addAllOrderBys(new ArrayList()) - .setReturnEntityQuota(true) - .build(); - - RunAccessReportResponse actualResponse = client.runAccessReport(request); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - RunAccessReportRequest actualRequest = ((RunAccessReportRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getEntity(), actualRequest.getEntity()); - Assert.assertEquals(request.getDimensionsList(), actualRequest.getDimensionsList()); - Assert.assertEquals(request.getMetricsList(), actualRequest.getMetricsList()); - Assert.assertEquals(request.getDateRangesList(), actualRequest.getDateRangesList()); - Assert.assertEquals(request.getDimensionFilter(), actualRequest.getDimensionFilter()); - Assert.assertEquals(request.getMetricFilter(), actualRequest.getMetricFilter()); - Assert.assertEquals(request.getOffset(), actualRequest.getOffset()); - Assert.assertEquals(request.getLimit(), actualRequest.getLimit()); - Assert.assertEquals(request.getTimeZone(), actualRequest.getTimeZone()); - Assert.assertEquals(request.getOrderBysList(), actualRequest.getOrderBysList()); - Assert.assertEquals(request.getReturnEntityQuota(), actualRequest.getReturnEntityQuota()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void runAccessReportExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - RunAccessReportRequest request = - RunAccessReportRequest.newBuilder() - .setEntity("entity-1298275357") - .addAllDimensions(new ArrayList()) - .addAllMetrics(new ArrayList()) - .addAllDateRanges(new ArrayList()) - .setDimensionFilter(AccessFilterExpression.newBuilder().build()) - .setMetricFilter(AccessFilterExpression.newBuilder().build()) - .setOffset(-1019779949) - .setLimit(102976443) - .setTimeZone("timeZone-2077180903") - .addAllOrderBys(new ArrayList()) - .setReturnEntityQuota(true) - .build(); - client.runAccessReport(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } -} diff --git a/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/MockAnalyticsAdminService.java b/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/MockAnalyticsAdminService.java deleted file mode 100644 index 2fddda57..00000000 --- a/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/MockAnalyticsAdminService.java +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 com.google.api.core.BetaApi; -import com.google.api.gax.grpc.testing.MockGrpcService; -import com.google.protobuf.AbstractMessage; -import io.grpc.ServerServiceDefinition; -import java.util.List; -import javax.annotation.Generated; - -@BetaApi -@Generated("by gapic-generator-java") -public class MockAnalyticsAdminService implements MockGrpcService { - private final MockAnalyticsAdminServiceImpl serviceImpl; - - public MockAnalyticsAdminService() { - serviceImpl = new MockAnalyticsAdminServiceImpl(); - } - - @Override - public List getRequests() { - return serviceImpl.getRequests(); - } - - @Override - public void addResponse(AbstractMessage response) { - serviceImpl.addResponse(response); - } - - @Override - public void addException(Exception exception) { - serviceImpl.addException(exception); - } - - @Override - public ServerServiceDefinition getServiceDefinition() { - return serviceImpl.bindService(); - } - - @Override - public void reset() { - serviceImpl.reset(); - } -} diff --git a/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/MockAnalyticsAdminServiceImpl.java b/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/MockAnalyticsAdminServiceImpl.java deleted file mode 100644 index 3fdbbe59..00000000 --- a/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/MockAnalyticsAdminServiceImpl.java +++ /dev/null @@ -1,1746 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 com.google.analytics.admin.v1alpha.AnalyticsAdminServiceGrpc.AnalyticsAdminServiceImplBase; -import com.google.api.core.BetaApi; -import com.google.protobuf.AbstractMessage; -import com.google.protobuf.Empty; -import io.grpc.stub.StreamObserver; -import java.util.ArrayList; -import java.util.LinkedList; -import java.util.List; -import java.util.Queue; -import javax.annotation.Generated; - -@BetaApi -@Generated("by gapic-generator-java") -public class MockAnalyticsAdminServiceImpl extends AnalyticsAdminServiceImplBase { - private List requests; - private Queue responses; - - public MockAnalyticsAdminServiceImpl() { - requests = new ArrayList<>(); - responses = new LinkedList<>(); - } - - public List getRequests() { - return requests; - } - - public void addResponse(AbstractMessage response) { - responses.add(response); - } - - public void setResponses(List responses) { - this.responses = new LinkedList(responses); - } - - public void addException(Exception exception) { - responses.add(exception); - } - - public void reset() { - requests = new ArrayList<>(); - responses = new LinkedList<>(); - } - - @Override - public void getAccount(GetAccountRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Account) { - requests.add(request); - responseObserver.onNext(((Account) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method GetAccount, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Account.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void listAccounts( - ListAccountsRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof ListAccountsResponse) { - requests.add(request); - responseObserver.onNext(((ListAccountsResponse) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method ListAccounts, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - ListAccountsResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void deleteAccount(DeleteAccountRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Empty) { - requests.add(request); - responseObserver.onNext(((Empty) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method DeleteAccount, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Empty.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void updateAccount( - UpdateAccountRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Account) { - requests.add(request); - responseObserver.onNext(((Account) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method UpdateAccount, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Account.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void provisionAccountTicket( - ProvisionAccountTicketRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof ProvisionAccountTicketResponse) { - requests.add(request); - responseObserver.onNext(((ProvisionAccountTicketResponse) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method ProvisionAccountTicket, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - ProvisionAccountTicketResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void listAccountSummaries( - ListAccountSummariesRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof ListAccountSummariesResponse) { - requests.add(request); - responseObserver.onNext(((ListAccountSummariesResponse) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method ListAccountSummaries, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - ListAccountSummariesResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void getProperty(GetPropertyRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Property) { - requests.add(request); - responseObserver.onNext(((Property) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method GetProperty, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Property.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void listProperties( - ListPropertiesRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof ListPropertiesResponse) { - requests.add(request); - responseObserver.onNext(((ListPropertiesResponse) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method ListProperties, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - ListPropertiesResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void createProperty( - CreatePropertyRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Property) { - requests.add(request); - responseObserver.onNext(((Property) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method CreateProperty, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Property.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void deleteProperty( - DeletePropertyRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Property) { - requests.add(request); - responseObserver.onNext(((Property) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method DeleteProperty, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Property.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void updateProperty( - UpdatePropertyRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Property) { - requests.add(request); - responseObserver.onNext(((Property) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method UpdateProperty, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Property.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void getUserLink(GetUserLinkRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof UserLink) { - requests.add(request); - responseObserver.onNext(((UserLink) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method GetUserLink, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - UserLink.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void batchGetUserLinks( - BatchGetUserLinksRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof BatchGetUserLinksResponse) { - requests.add(request); - responseObserver.onNext(((BatchGetUserLinksResponse) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method BatchGetUserLinks, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - BatchGetUserLinksResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void listUserLinks( - ListUserLinksRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof ListUserLinksResponse) { - requests.add(request); - responseObserver.onNext(((ListUserLinksResponse) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method ListUserLinks, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - ListUserLinksResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void auditUserLinks( - AuditUserLinksRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof AuditUserLinksResponse) { - requests.add(request); - responseObserver.onNext(((AuditUserLinksResponse) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method AuditUserLinks, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - AuditUserLinksResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void createUserLink( - CreateUserLinkRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof UserLink) { - requests.add(request); - responseObserver.onNext(((UserLink) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method CreateUserLink, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - UserLink.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void batchCreateUserLinks( - BatchCreateUserLinksRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof BatchCreateUserLinksResponse) { - requests.add(request); - responseObserver.onNext(((BatchCreateUserLinksResponse) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method BatchCreateUserLinks, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - BatchCreateUserLinksResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void updateUserLink( - UpdateUserLinkRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof UserLink) { - requests.add(request); - responseObserver.onNext(((UserLink) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method UpdateUserLink, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - UserLink.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void batchUpdateUserLinks( - BatchUpdateUserLinksRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof BatchUpdateUserLinksResponse) { - requests.add(request); - responseObserver.onNext(((BatchUpdateUserLinksResponse) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method BatchUpdateUserLinks, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - BatchUpdateUserLinksResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void deleteUserLink( - DeleteUserLinkRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Empty) { - requests.add(request); - responseObserver.onNext(((Empty) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method DeleteUserLink, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Empty.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void batchDeleteUserLinks( - BatchDeleteUserLinksRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Empty) { - requests.add(request); - responseObserver.onNext(((Empty) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method BatchDeleteUserLinks, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Empty.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void createFirebaseLink( - CreateFirebaseLinkRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof FirebaseLink) { - requests.add(request); - responseObserver.onNext(((FirebaseLink) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method CreateFirebaseLink, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - FirebaseLink.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void deleteFirebaseLink( - DeleteFirebaseLinkRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Empty) { - requests.add(request); - responseObserver.onNext(((Empty) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method DeleteFirebaseLink, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Empty.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void listFirebaseLinks( - ListFirebaseLinksRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof ListFirebaseLinksResponse) { - requests.add(request); - responseObserver.onNext(((ListFirebaseLinksResponse) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method ListFirebaseLinks, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - ListFirebaseLinksResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void getGlobalSiteTag( - GetGlobalSiteTagRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof GlobalSiteTag) { - requests.add(request); - responseObserver.onNext(((GlobalSiteTag) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method GetGlobalSiteTag, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - GlobalSiteTag.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void createGoogleAdsLink( - CreateGoogleAdsLinkRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof GoogleAdsLink) { - requests.add(request); - responseObserver.onNext(((GoogleAdsLink) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method CreateGoogleAdsLink, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - GoogleAdsLink.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void updateGoogleAdsLink( - UpdateGoogleAdsLinkRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof GoogleAdsLink) { - requests.add(request); - responseObserver.onNext(((GoogleAdsLink) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method UpdateGoogleAdsLink, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - GoogleAdsLink.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void deleteGoogleAdsLink( - DeleteGoogleAdsLinkRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Empty) { - requests.add(request); - responseObserver.onNext(((Empty) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method DeleteGoogleAdsLink, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Empty.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void listGoogleAdsLinks( - ListGoogleAdsLinksRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof ListGoogleAdsLinksResponse) { - requests.add(request); - responseObserver.onNext(((ListGoogleAdsLinksResponse) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method ListGoogleAdsLinks, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - ListGoogleAdsLinksResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void getDataSharingSettings( - GetDataSharingSettingsRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof DataSharingSettings) { - requests.add(request); - responseObserver.onNext(((DataSharingSettings) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method GetDataSharingSettings, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - DataSharingSettings.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void getMeasurementProtocolSecret( - GetMeasurementProtocolSecretRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof MeasurementProtocolSecret) { - requests.add(request); - responseObserver.onNext(((MeasurementProtocolSecret) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method GetMeasurementProtocolSecret, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - MeasurementProtocolSecret.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void listMeasurementProtocolSecrets( - ListMeasurementProtocolSecretsRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof ListMeasurementProtocolSecretsResponse) { - requests.add(request); - responseObserver.onNext(((ListMeasurementProtocolSecretsResponse) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method ListMeasurementProtocolSecrets, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - ListMeasurementProtocolSecretsResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void createMeasurementProtocolSecret( - CreateMeasurementProtocolSecretRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof MeasurementProtocolSecret) { - requests.add(request); - responseObserver.onNext(((MeasurementProtocolSecret) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method CreateMeasurementProtocolSecret, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - MeasurementProtocolSecret.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void deleteMeasurementProtocolSecret( - DeleteMeasurementProtocolSecretRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Empty) { - requests.add(request); - responseObserver.onNext(((Empty) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method DeleteMeasurementProtocolSecret, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Empty.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void updateMeasurementProtocolSecret( - UpdateMeasurementProtocolSecretRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof MeasurementProtocolSecret) { - requests.add(request); - responseObserver.onNext(((MeasurementProtocolSecret) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method UpdateMeasurementProtocolSecret, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - MeasurementProtocolSecret.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void acknowledgeUserDataCollection( - AcknowledgeUserDataCollectionRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof AcknowledgeUserDataCollectionResponse) { - requests.add(request); - responseObserver.onNext(((AcknowledgeUserDataCollectionResponse) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method AcknowledgeUserDataCollection, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - AcknowledgeUserDataCollectionResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void searchChangeHistoryEvents( - SearchChangeHistoryEventsRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof SearchChangeHistoryEventsResponse) { - requests.add(request); - responseObserver.onNext(((SearchChangeHistoryEventsResponse) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method SearchChangeHistoryEvents, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - SearchChangeHistoryEventsResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void getGoogleSignalsSettings( - GetGoogleSignalsSettingsRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof GoogleSignalsSettings) { - requests.add(request); - responseObserver.onNext(((GoogleSignalsSettings) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method GetGoogleSignalsSettings, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - GoogleSignalsSettings.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void updateGoogleSignalsSettings( - UpdateGoogleSignalsSettingsRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof GoogleSignalsSettings) { - requests.add(request); - responseObserver.onNext(((GoogleSignalsSettings) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method UpdateGoogleSignalsSettings, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - GoogleSignalsSettings.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void createConversionEvent( - CreateConversionEventRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof ConversionEvent) { - requests.add(request); - responseObserver.onNext(((ConversionEvent) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method CreateConversionEvent, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - ConversionEvent.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void getConversionEvent( - GetConversionEventRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof ConversionEvent) { - requests.add(request); - responseObserver.onNext(((ConversionEvent) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method GetConversionEvent, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - ConversionEvent.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void deleteConversionEvent( - DeleteConversionEventRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Empty) { - requests.add(request); - responseObserver.onNext(((Empty) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method DeleteConversionEvent, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Empty.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void listConversionEvents( - ListConversionEventsRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof ListConversionEventsResponse) { - requests.add(request); - responseObserver.onNext(((ListConversionEventsResponse) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method ListConversionEvents, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - ListConversionEventsResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void getDisplayVideo360AdvertiserLink( - GetDisplayVideo360AdvertiserLinkRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof DisplayVideo360AdvertiserLink) { - requests.add(request); - responseObserver.onNext(((DisplayVideo360AdvertiserLink) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method GetDisplayVideo360AdvertiserLink, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - DisplayVideo360AdvertiserLink.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void listDisplayVideo360AdvertiserLinks( - ListDisplayVideo360AdvertiserLinksRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof ListDisplayVideo360AdvertiserLinksResponse) { - requests.add(request); - responseObserver.onNext(((ListDisplayVideo360AdvertiserLinksResponse) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method ListDisplayVideo360AdvertiserLinks, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - ListDisplayVideo360AdvertiserLinksResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void createDisplayVideo360AdvertiserLink( - CreateDisplayVideo360AdvertiserLinkRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof DisplayVideo360AdvertiserLink) { - requests.add(request); - responseObserver.onNext(((DisplayVideo360AdvertiserLink) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method CreateDisplayVideo360AdvertiserLink, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - DisplayVideo360AdvertiserLink.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void deleteDisplayVideo360AdvertiserLink( - DeleteDisplayVideo360AdvertiserLinkRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Empty) { - requests.add(request); - responseObserver.onNext(((Empty) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method DeleteDisplayVideo360AdvertiserLink, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Empty.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void updateDisplayVideo360AdvertiserLink( - UpdateDisplayVideo360AdvertiserLinkRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof DisplayVideo360AdvertiserLink) { - requests.add(request); - responseObserver.onNext(((DisplayVideo360AdvertiserLink) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method UpdateDisplayVideo360AdvertiserLink, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - DisplayVideo360AdvertiserLink.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void getDisplayVideo360AdvertiserLinkProposal( - GetDisplayVideo360AdvertiserLinkProposalRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof DisplayVideo360AdvertiserLinkProposal) { - requests.add(request); - responseObserver.onNext(((DisplayVideo360AdvertiserLinkProposal) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method GetDisplayVideo360AdvertiserLinkProposal, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - DisplayVideo360AdvertiserLinkProposal.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void listDisplayVideo360AdvertiserLinkProposals( - ListDisplayVideo360AdvertiserLinkProposalsRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof ListDisplayVideo360AdvertiserLinkProposalsResponse) { - requests.add(request); - responseObserver.onNext(((ListDisplayVideo360AdvertiserLinkProposalsResponse) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method ListDisplayVideo360AdvertiserLinkProposals, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - ListDisplayVideo360AdvertiserLinkProposalsResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void createDisplayVideo360AdvertiserLinkProposal( - CreateDisplayVideo360AdvertiserLinkProposalRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof DisplayVideo360AdvertiserLinkProposal) { - requests.add(request); - responseObserver.onNext(((DisplayVideo360AdvertiserLinkProposal) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method CreateDisplayVideo360AdvertiserLinkProposal, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - DisplayVideo360AdvertiserLinkProposal.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void deleteDisplayVideo360AdvertiserLinkProposal( - DeleteDisplayVideo360AdvertiserLinkProposalRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Empty) { - requests.add(request); - responseObserver.onNext(((Empty) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method DeleteDisplayVideo360AdvertiserLinkProposal, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Empty.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void approveDisplayVideo360AdvertiserLinkProposal( - ApproveDisplayVideo360AdvertiserLinkProposalRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof ApproveDisplayVideo360AdvertiserLinkProposalResponse) { - requests.add(request); - responseObserver.onNext(((ApproveDisplayVideo360AdvertiserLinkProposalResponse) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method ApproveDisplayVideo360AdvertiserLinkProposal, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - ApproveDisplayVideo360AdvertiserLinkProposalResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void cancelDisplayVideo360AdvertiserLinkProposal( - CancelDisplayVideo360AdvertiserLinkProposalRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof DisplayVideo360AdvertiserLinkProposal) { - requests.add(request); - responseObserver.onNext(((DisplayVideo360AdvertiserLinkProposal) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method CancelDisplayVideo360AdvertiserLinkProposal, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - DisplayVideo360AdvertiserLinkProposal.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void createCustomDimension( - CreateCustomDimensionRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof CustomDimension) { - requests.add(request); - responseObserver.onNext(((CustomDimension) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method CreateCustomDimension, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - CustomDimension.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void updateCustomDimension( - UpdateCustomDimensionRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof CustomDimension) { - requests.add(request); - responseObserver.onNext(((CustomDimension) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method UpdateCustomDimension, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - CustomDimension.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void listCustomDimensions( - ListCustomDimensionsRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof ListCustomDimensionsResponse) { - requests.add(request); - responseObserver.onNext(((ListCustomDimensionsResponse) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method ListCustomDimensions, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - ListCustomDimensionsResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void archiveCustomDimension( - ArchiveCustomDimensionRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Empty) { - requests.add(request); - responseObserver.onNext(((Empty) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method ArchiveCustomDimension, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Empty.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void getCustomDimension( - GetCustomDimensionRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof CustomDimension) { - requests.add(request); - responseObserver.onNext(((CustomDimension) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method GetCustomDimension, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - CustomDimension.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void createCustomMetric( - CreateCustomMetricRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof CustomMetric) { - requests.add(request); - responseObserver.onNext(((CustomMetric) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method CreateCustomMetric, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - CustomMetric.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void updateCustomMetric( - UpdateCustomMetricRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof CustomMetric) { - requests.add(request); - responseObserver.onNext(((CustomMetric) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method UpdateCustomMetric, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - CustomMetric.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void listCustomMetrics( - ListCustomMetricsRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof ListCustomMetricsResponse) { - requests.add(request); - responseObserver.onNext(((ListCustomMetricsResponse) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method ListCustomMetrics, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - ListCustomMetricsResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void archiveCustomMetric( - ArchiveCustomMetricRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Empty) { - requests.add(request); - responseObserver.onNext(((Empty) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method ArchiveCustomMetric, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Empty.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void getCustomMetric( - GetCustomMetricRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof CustomMetric) { - requests.add(request); - responseObserver.onNext(((CustomMetric) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method GetCustomMetric, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - CustomMetric.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void getDataRetentionSettings( - GetDataRetentionSettingsRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof DataRetentionSettings) { - requests.add(request); - responseObserver.onNext(((DataRetentionSettings) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method GetDataRetentionSettings, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - DataRetentionSettings.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void updateDataRetentionSettings( - UpdateDataRetentionSettingsRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof DataRetentionSettings) { - requests.add(request); - responseObserver.onNext(((DataRetentionSettings) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method UpdateDataRetentionSettings, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - DataRetentionSettings.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void createDataStream( - CreateDataStreamRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof DataStream) { - requests.add(request); - responseObserver.onNext(((DataStream) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method CreateDataStream, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - DataStream.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void deleteDataStream( - DeleteDataStreamRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Empty) { - requests.add(request); - responseObserver.onNext(((Empty) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method DeleteDataStream, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Empty.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void updateDataStream( - UpdateDataStreamRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof DataStream) { - requests.add(request); - responseObserver.onNext(((DataStream) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method UpdateDataStream, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - DataStream.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void listDataStreams( - ListDataStreamsRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof ListDataStreamsResponse) { - requests.add(request); - responseObserver.onNext(((ListDataStreamsResponse) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method ListDataStreams, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - ListDataStreamsResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void getDataStream( - GetDataStreamRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof DataStream) { - requests.add(request); - responseObserver.onNext(((DataStream) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method GetDataStream, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - DataStream.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void getAudience(GetAudienceRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Audience) { - requests.add(request); - responseObserver.onNext(((Audience) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method GetAudience, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Audience.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void listAudiences( - ListAudiencesRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof ListAudiencesResponse) { - requests.add(request); - responseObserver.onNext(((ListAudiencesResponse) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method ListAudiences, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - ListAudiencesResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void createAudience( - CreateAudienceRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Audience) { - requests.add(request); - responseObserver.onNext(((Audience) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method CreateAudience, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Audience.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void updateAudience( - UpdateAudienceRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Audience) { - requests.add(request); - responseObserver.onNext(((Audience) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method UpdateAudience, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Audience.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void archiveAudience( - ArchiveAudienceRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Empty) { - requests.add(request); - responseObserver.onNext(((Empty) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method ArchiveAudience, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Empty.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void getAttributionSettings( - GetAttributionSettingsRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof AttributionSettings) { - requests.add(request); - responseObserver.onNext(((AttributionSettings) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method GetAttributionSettings, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - AttributionSettings.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void updateAttributionSettings( - UpdateAttributionSettingsRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof AttributionSettings) { - requests.add(request); - responseObserver.onNext(((AttributionSettings) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method UpdateAttributionSettings, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - AttributionSettings.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void runAccessReport( - RunAccessReportRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof RunAccessReportResponse) { - requests.add(request); - responseObserver.onNext(((RunAccessReportResponse) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method RunAccessReport, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - RunAccessReportResponse.class.getName(), - Exception.class.getName()))); - } - } -} diff --git a/google-analytics-admin/src/test/java/com/google/analytics/admin/v1beta/AnalyticsAdminServiceClientHttpJsonTest.java b/google-analytics-admin/src/test/java/com/google/analytics/admin/v1beta/AnalyticsAdminServiceClientHttpJsonTest.java deleted file mode 100644 index bde4ff36..00000000 --- a/google-analytics-admin/src/test/java/com/google/analytics/admin/v1beta/AnalyticsAdminServiceClientHttpJsonTest.java +++ /dev/null @@ -1,4094 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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.HttpJsonAnalyticsAdminServiceStub; -import com.google.api.gax.core.NoCredentialsProvider; -import com.google.api.gax.httpjson.GaxHttpJsonProperties; -import com.google.api.gax.httpjson.testing.MockHttpService; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.ApiException; -import com.google.api.gax.rpc.ApiExceptionFactory; -import com.google.api.gax.rpc.InvalidArgumentException; -import com.google.api.gax.rpc.StatusCode; -import com.google.api.gax.rpc.testing.FakeStatusCode; -import com.google.common.collect.Lists; -import com.google.protobuf.BoolValue; -import com.google.protobuf.Empty; -import com.google.protobuf.FieldMask; -import com.google.protobuf.Timestamp; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import javax.annotation.Generated; -import org.junit.After; -import org.junit.AfterClass; -import org.junit.Assert; -import org.junit.Before; -import org.junit.BeforeClass; -import org.junit.Test; - -@Generated("by gapic-generator-java") -public class AnalyticsAdminServiceClientHttpJsonTest { - private static MockHttpService mockService; - private static AnalyticsAdminServiceClient client; - - @BeforeClass - public static void startStaticServer() throws IOException { - mockService = - new MockHttpService( - HttpJsonAnalyticsAdminServiceStub.getMethodDescriptors(), - AnalyticsAdminServiceSettings.getDefaultEndpoint()); - AnalyticsAdminServiceSettings settings = - AnalyticsAdminServiceSettings.newHttpJsonBuilder() - .setTransportChannelProvider( - AnalyticsAdminServiceSettings.defaultHttpJsonTransportProviderBuilder() - .setHttpTransport(mockService) - .build()) - .setCredentialsProvider(NoCredentialsProvider.create()) - .build(); - client = AnalyticsAdminServiceClient.create(settings); - } - - @AfterClass - public static void stopServer() { - client.close(); - } - - @Before - public void setUp() {} - - @After - public void tearDown() throws Exception { - mockService.reset(); - } - - @Test - public void getAccountTest() throws Exception { - Account expectedResponse = - Account.newBuilder() - .setName(AccountName.of("[ACCOUNT]").toString()) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setDisplayName("displayName1714148973") - .setRegionCode("regionCode-1991004415") - .setDeleted(true) - .build(); - mockService.addResponse(expectedResponse); - - AccountName name = AccountName.of("[ACCOUNT]"); - - Account actualResponse = client.getAccount(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void getAccountExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - AccountName name = AccountName.of("[ACCOUNT]"); - client.getAccount(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getAccountTest2() throws Exception { - Account expectedResponse = - Account.newBuilder() - .setName(AccountName.of("[ACCOUNT]").toString()) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setDisplayName("displayName1714148973") - .setRegionCode("regionCode-1991004415") - .setDeleted(true) - .build(); - mockService.addResponse(expectedResponse); - - String name = "accounts/account-3500"; - - Account actualResponse = client.getAccount(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void getAccountExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = "accounts/account-3500"; - client.getAccount(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listAccountsTest() throws Exception { - Account responsesElement = Account.newBuilder().build(); - ListAccountsResponse expectedResponse = - ListAccountsResponse.newBuilder() - .setNextPageToken("") - .addAllAccounts(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - ListAccountsRequest request = - ListAccountsRequest.newBuilder() - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .setShowDeleted(true) - .build(); - - ListAccountsPagedResponse pagedListResponse = client.listAccounts(request); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getAccountsList().get(0), resources.get(0)); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void listAccountsExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - ListAccountsRequest request = - ListAccountsRequest.newBuilder() - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .setShowDeleted(true) - .build(); - client.listAccounts(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteAccountTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockService.addResponse(expectedResponse); - - AccountName name = AccountName.of("[ACCOUNT]"); - - client.deleteAccount(name); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void deleteAccountExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - AccountName name = AccountName.of("[ACCOUNT]"); - client.deleteAccount(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteAccountTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockService.addResponse(expectedResponse); - - String name = "accounts/account-3500"; - - client.deleteAccount(name); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void deleteAccountExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = "accounts/account-3500"; - client.deleteAccount(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateAccountTest() throws Exception { - Account expectedResponse = - Account.newBuilder() - .setName(AccountName.of("[ACCOUNT]").toString()) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setDisplayName("displayName1714148973") - .setRegionCode("regionCode-1991004415") - .setDeleted(true) - .build(); - mockService.addResponse(expectedResponse); - - Account account = - Account.newBuilder() - .setName(AccountName.of("[ACCOUNT]").toString()) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setDisplayName("displayName1714148973") - .setRegionCode("regionCode-1991004415") - .setDeleted(true) - .build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - Account actualResponse = client.updateAccount(account, updateMask); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void updateAccountExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - Account account = - Account.newBuilder() - .setName(AccountName.of("[ACCOUNT]").toString()) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setDisplayName("displayName1714148973") - .setRegionCode("regionCode-1991004415") - .setDeleted(true) - .build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateAccount(account, updateMask); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void provisionAccountTicketTest() throws Exception { - ProvisionAccountTicketResponse expectedResponse = - ProvisionAccountTicketResponse.newBuilder() - .setAccountTicketId("accountTicketId-1576709484") - .build(); - mockService.addResponse(expectedResponse); - - ProvisionAccountTicketRequest request = - ProvisionAccountTicketRequest.newBuilder() - .setAccount(Account.newBuilder().build()) - .setRedirectUri("redirectUri1970337776") - .build(); - - ProvisionAccountTicketResponse actualResponse = client.provisionAccountTicket(request); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void provisionAccountTicketExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - ProvisionAccountTicketRequest request = - ProvisionAccountTicketRequest.newBuilder() - .setAccount(Account.newBuilder().build()) - .setRedirectUri("redirectUri1970337776") - .build(); - client.provisionAccountTicket(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listAccountSummariesTest() throws Exception { - AccountSummary responsesElement = AccountSummary.newBuilder().build(); - ListAccountSummariesResponse expectedResponse = - ListAccountSummariesResponse.newBuilder() - .setNextPageToken("") - .addAllAccountSummaries(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - ListAccountSummariesRequest request = - ListAccountSummariesRequest.newBuilder() - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .build(); - - ListAccountSummariesPagedResponse pagedListResponse = client.listAccountSummaries(request); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getAccountSummariesList().get(0), resources.get(0)); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void listAccountSummariesExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - ListAccountSummariesRequest request = - ListAccountSummariesRequest.newBuilder() - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .build(); - client.listAccountSummaries(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getPropertyTest() throws Exception { - Property expectedResponse = - Property.newBuilder() - .setName(PropertyName.of("[PROPERTY]").toString()) - .setPropertyType(PropertyType.forNumber(0)) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setParent("parent-995424086") - .setDisplayName("displayName1714148973") - .setIndustryCategory(IndustryCategory.forNumber(0)) - .setTimeZone("timeZone-2077180903") - .setCurrencyCode("currencyCode1004773790") - .setServiceLevel(ServiceLevel.forNumber(0)) - .setDeleteTime(Timestamp.newBuilder().build()) - .setExpireTime(Timestamp.newBuilder().build()) - .setAccount(AccountName.of("[ACCOUNT]").toString()) - .build(); - mockService.addResponse(expectedResponse); - - PropertyName name = PropertyName.of("[PROPERTY]"); - - Property actualResponse = client.getProperty(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void getPropertyExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - PropertyName name = PropertyName.of("[PROPERTY]"); - client.getProperty(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getPropertyTest2() throws Exception { - Property expectedResponse = - Property.newBuilder() - .setName(PropertyName.of("[PROPERTY]").toString()) - .setPropertyType(PropertyType.forNumber(0)) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setParent("parent-995424086") - .setDisplayName("displayName1714148973") - .setIndustryCategory(IndustryCategory.forNumber(0)) - .setTimeZone("timeZone-2077180903") - .setCurrencyCode("currencyCode1004773790") - .setServiceLevel(ServiceLevel.forNumber(0)) - .setDeleteTime(Timestamp.newBuilder().build()) - .setExpireTime(Timestamp.newBuilder().build()) - .setAccount(AccountName.of("[ACCOUNT]").toString()) - .build(); - mockService.addResponse(expectedResponse); - - String name = "properties/propertie-7337"; - - Property actualResponse = client.getProperty(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void getPropertyExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = "properties/propertie-7337"; - client.getProperty(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listPropertiesTest() throws Exception { - Property responsesElement = Property.newBuilder().build(); - ListPropertiesResponse expectedResponse = - ListPropertiesResponse.newBuilder() - .setNextPageToken("") - .addAllProperties(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - ListPropertiesRequest request = - ListPropertiesRequest.newBuilder() - .setFilter("filter-1274492040") - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .setShowDeleted(true) - .build(); - - ListPropertiesPagedResponse pagedListResponse = client.listProperties(request); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getPropertiesList().get(0), resources.get(0)); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void listPropertiesExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - ListPropertiesRequest request = - ListPropertiesRequest.newBuilder() - .setFilter("filter-1274492040") - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .setShowDeleted(true) - .build(); - client.listProperties(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createPropertyTest() throws Exception { - Property expectedResponse = - Property.newBuilder() - .setName(PropertyName.of("[PROPERTY]").toString()) - .setPropertyType(PropertyType.forNumber(0)) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setParent("parent-995424086") - .setDisplayName("displayName1714148973") - .setIndustryCategory(IndustryCategory.forNumber(0)) - .setTimeZone("timeZone-2077180903") - .setCurrencyCode("currencyCode1004773790") - .setServiceLevel(ServiceLevel.forNumber(0)) - .setDeleteTime(Timestamp.newBuilder().build()) - .setExpireTime(Timestamp.newBuilder().build()) - .setAccount(AccountName.of("[ACCOUNT]").toString()) - .build(); - mockService.addResponse(expectedResponse); - - Property property = Property.newBuilder().build(); - - Property actualResponse = client.createProperty(property); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void createPropertyExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - Property property = Property.newBuilder().build(); - client.createProperty(property); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deletePropertyTest() throws Exception { - Property expectedResponse = - Property.newBuilder() - .setName(PropertyName.of("[PROPERTY]").toString()) - .setPropertyType(PropertyType.forNumber(0)) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setParent("parent-995424086") - .setDisplayName("displayName1714148973") - .setIndustryCategory(IndustryCategory.forNumber(0)) - .setTimeZone("timeZone-2077180903") - .setCurrencyCode("currencyCode1004773790") - .setServiceLevel(ServiceLevel.forNumber(0)) - .setDeleteTime(Timestamp.newBuilder().build()) - .setExpireTime(Timestamp.newBuilder().build()) - .setAccount(AccountName.of("[ACCOUNT]").toString()) - .build(); - mockService.addResponse(expectedResponse); - - PropertyName name = PropertyName.of("[PROPERTY]"); - - Property actualResponse = client.deleteProperty(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void deletePropertyExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - PropertyName name = PropertyName.of("[PROPERTY]"); - client.deleteProperty(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deletePropertyTest2() throws Exception { - Property expectedResponse = - Property.newBuilder() - .setName(PropertyName.of("[PROPERTY]").toString()) - .setPropertyType(PropertyType.forNumber(0)) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setParent("parent-995424086") - .setDisplayName("displayName1714148973") - .setIndustryCategory(IndustryCategory.forNumber(0)) - .setTimeZone("timeZone-2077180903") - .setCurrencyCode("currencyCode1004773790") - .setServiceLevel(ServiceLevel.forNumber(0)) - .setDeleteTime(Timestamp.newBuilder().build()) - .setExpireTime(Timestamp.newBuilder().build()) - .setAccount(AccountName.of("[ACCOUNT]").toString()) - .build(); - mockService.addResponse(expectedResponse); - - String name = "properties/propertie-7337"; - - Property actualResponse = client.deleteProperty(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void deletePropertyExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = "properties/propertie-7337"; - client.deleteProperty(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updatePropertyTest() throws Exception { - Property expectedResponse = - Property.newBuilder() - .setName(PropertyName.of("[PROPERTY]").toString()) - .setPropertyType(PropertyType.forNumber(0)) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setParent("parent-995424086") - .setDisplayName("displayName1714148973") - .setIndustryCategory(IndustryCategory.forNumber(0)) - .setTimeZone("timeZone-2077180903") - .setCurrencyCode("currencyCode1004773790") - .setServiceLevel(ServiceLevel.forNumber(0)) - .setDeleteTime(Timestamp.newBuilder().build()) - .setExpireTime(Timestamp.newBuilder().build()) - .setAccount(AccountName.of("[ACCOUNT]").toString()) - .build(); - mockService.addResponse(expectedResponse); - - Property property = - Property.newBuilder() - .setName(PropertyName.of("[PROPERTY]").toString()) - .setPropertyType(PropertyType.forNumber(0)) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setParent("parent-995424086") - .setDisplayName("displayName1714148973") - .setIndustryCategory(IndustryCategory.forNumber(0)) - .setTimeZone("timeZone-2077180903") - .setCurrencyCode("currencyCode1004773790") - .setServiceLevel(ServiceLevel.forNumber(0)) - .setDeleteTime(Timestamp.newBuilder().build()) - .setExpireTime(Timestamp.newBuilder().build()) - .setAccount(AccountName.of("[ACCOUNT]").toString()) - .build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - Property actualResponse = client.updateProperty(property, updateMask); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void updatePropertyExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - Property property = - Property.newBuilder() - .setName(PropertyName.of("[PROPERTY]").toString()) - .setPropertyType(PropertyType.forNumber(0)) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setParent("parent-995424086") - .setDisplayName("displayName1714148973") - .setIndustryCategory(IndustryCategory.forNumber(0)) - .setTimeZone("timeZone-2077180903") - .setCurrencyCode("currencyCode1004773790") - .setServiceLevel(ServiceLevel.forNumber(0)) - .setDeleteTime(Timestamp.newBuilder().build()) - .setExpireTime(Timestamp.newBuilder().build()) - .setAccount(AccountName.of("[ACCOUNT]").toString()) - .build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateProperty(property, updateMask); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createFirebaseLinkTest() throws Exception { - FirebaseLink expectedResponse = - FirebaseLink.newBuilder() - .setName(FirebaseLinkName.of("[PROPERTY]", "[FIREBASE_LINK]").toString()) - .setProject("project-309310695") - .setCreateTime(Timestamp.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - PropertyName parent = PropertyName.of("[PROPERTY]"); - FirebaseLink firebaseLink = FirebaseLink.newBuilder().build(); - - FirebaseLink actualResponse = client.createFirebaseLink(parent, firebaseLink); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void createFirebaseLinkExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - PropertyName parent = PropertyName.of("[PROPERTY]"); - FirebaseLink firebaseLink = FirebaseLink.newBuilder().build(); - client.createFirebaseLink(parent, firebaseLink); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createFirebaseLinkTest2() throws Exception { - FirebaseLink expectedResponse = - FirebaseLink.newBuilder() - .setName(FirebaseLinkName.of("[PROPERTY]", "[FIREBASE_LINK]").toString()) - .setProject("project-309310695") - .setCreateTime(Timestamp.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - String parent = "properties/propertie-2024"; - FirebaseLink firebaseLink = FirebaseLink.newBuilder().build(); - - FirebaseLink actualResponse = client.createFirebaseLink(parent, firebaseLink); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void createFirebaseLinkExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String parent = "properties/propertie-2024"; - FirebaseLink firebaseLink = FirebaseLink.newBuilder().build(); - client.createFirebaseLink(parent, firebaseLink); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteFirebaseLinkTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockService.addResponse(expectedResponse); - - FirebaseLinkName name = FirebaseLinkName.of("[PROPERTY]", "[FIREBASE_LINK]"); - - client.deleteFirebaseLink(name); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void deleteFirebaseLinkExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - FirebaseLinkName name = FirebaseLinkName.of("[PROPERTY]", "[FIREBASE_LINK]"); - client.deleteFirebaseLink(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteFirebaseLinkTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockService.addResponse(expectedResponse); - - String name = "properties/propertie-2649/firebaseLinks/firebaseLink-2649"; - - client.deleteFirebaseLink(name); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void deleteFirebaseLinkExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = "properties/propertie-2649/firebaseLinks/firebaseLink-2649"; - client.deleteFirebaseLink(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listFirebaseLinksTest() throws Exception { - FirebaseLink responsesElement = FirebaseLink.newBuilder().build(); - ListFirebaseLinksResponse expectedResponse = - ListFirebaseLinksResponse.newBuilder() - .setNextPageToken("") - .addAllFirebaseLinks(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - PropertyName parent = PropertyName.of("[PROPERTY]"); - - ListFirebaseLinksPagedResponse pagedListResponse = client.listFirebaseLinks(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getFirebaseLinksList().get(0), resources.get(0)); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void listFirebaseLinksExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - PropertyName parent = PropertyName.of("[PROPERTY]"); - client.listFirebaseLinks(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listFirebaseLinksTest2() throws Exception { - FirebaseLink responsesElement = FirebaseLink.newBuilder().build(); - ListFirebaseLinksResponse expectedResponse = - ListFirebaseLinksResponse.newBuilder() - .setNextPageToken("") - .addAllFirebaseLinks(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - String parent = "properties/propertie-2024"; - - ListFirebaseLinksPagedResponse pagedListResponse = client.listFirebaseLinks(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getFirebaseLinksList().get(0), resources.get(0)); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void listFirebaseLinksExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String parent = "properties/propertie-2024"; - client.listFirebaseLinks(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createGoogleAdsLinkTest() throws Exception { - GoogleAdsLink expectedResponse = - GoogleAdsLink.newBuilder() - .setName(GoogleAdsLinkName.of("[PROPERTY]", "[GOOGLE_ADS_LINK]").toString()) - .setCustomerId("customerId-1581184615") - .setCanManageClients(true) - .setAdsPersonalizationEnabled(BoolValue.newBuilder().build()) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setCreatorEmailAddress("creatorEmailAddress67752708") - .build(); - mockService.addResponse(expectedResponse); - - PropertyName parent = PropertyName.of("[PROPERTY]"); - GoogleAdsLink googleAdsLink = GoogleAdsLink.newBuilder().build(); - - GoogleAdsLink actualResponse = client.createGoogleAdsLink(parent, googleAdsLink); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void createGoogleAdsLinkExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - PropertyName parent = PropertyName.of("[PROPERTY]"); - GoogleAdsLink googleAdsLink = GoogleAdsLink.newBuilder().build(); - client.createGoogleAdsLink(parent, googleAdsLink); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createGoogleAdsLinkTest2() throws Exception { - GoogleAdsLink expectedResponse = - GoogleAdsLink.newBuilder() - .setName(GoogleAdsLinkName.of("[PROPERTY]", "[GOOGLE_ADS_LINK]").toString()) - .setCustomerId("customerId-1581184615") - .setCanManageClients(true) - .setAdsPersonalizationEnabled(BoolValue.newBuilder().build()) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setCreatorEmailAddress("creatorEmailAddress67752708") - .build(); - mockService.addResponse(expectedResponse); - - String parent = "properties/propertie-2024"; - GoogleAdsLink googleAdsLink = GoogleAdsLink.newBuilder().build(); - - GoogleAdsLink actualResponse = client.createGoogleAdsLink(parent, googleAdsLink); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void createGoogleAdsLinkExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String parent = "properties/propertie-2024"; - GoogleAdsLink googleAdsLink = GoogleAdsLink.newBuilder().build(); - client.createGoogleAdsLink(parent, googleAdsLink); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateGoogleAdsLinkTest() throws Exception { - GoogleAdsLink expectedResponse = - GoogleAdsLink.newBuilder() - .setName(GoogleAdsLinkName.of("[PROPERTY]", "[GOOGLE_ADS_LINK]").toString()) - .setCustomerId("customerId-1581184615") - .setCanManageClients(true) - .setAdsPersonalizationEnabled(BoolValue.newBuilder().build()) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setCreatorEmailAddress("creatorEmailAddress67752708") - .build(); - mockService.addResponse(expectedResponse); - - GoogleAdsLink googleAdsLink = - GoogleAdsLink.newBuilder() - .setName(GoogleAdsLinkName.of("[PROPERTY]", "[GOOGLE_ADS_LINK]").toString()) - .setCustomerId("customerId-1581184615") - .setCanManageClients(true) - .setAdsPersonalizationEnabled(BoolValue.newBuilder().build()) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setCreatorEmailAddress("creatorEmailAddress67752708") - .build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - GoogleAdsLink actualResponse = client.updateGoogleAdsLink(googleAdsLink, updateMask); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void updateGoogleAdsLinkExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - GoogleAdsLink googleAdsLink = - GoogleAdsLink.newBuilder() - .setName(GoogleAdsLinkName.of("[PROPERTY]", "[GOOGLE_ADS_LINK]").toString()) - .setCustomerId("customerId-1581184615") - .setCanManageClients(true) - .setAdsPersonalizationEnabled(BoolValue.newBuilder().build()) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setCreatorEmailAddress("creatorEmailAddress67752708") - .build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateGoogleAdsLink(googleAdsLink, updateMask); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteGoogleAdsLinkTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockService.addResponse(expectedResponse); - - GoogleAdsLinkName name = GoogleAdsLinkName.of("[PROPERTY]", "[GOOGLE_ADS_LINK]"); - - client.deleteGoogleAdsLink(name); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void deleteGoogleAdsLinkExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - GoogleAdsLinkName name = GoogleAdsLinkName.of("[PROPERTY]", "[GOOGLE_ADS_LINK]"); - client.deleteGoogleAdsLink(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteGoogleAdsLinkTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockService.addResponse(expectedResponse); - - String name = "properties/propertie-1267/googleAdsLinks/googleAdsLink-1267"; - - client.deleteGoogleAdsLink(name); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void deleteGoogleAdsLinkExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = "properties/propertie-1267/googleAdsLinks/googleAdsLink-1267"; - client.deleteGoogleAdsLink(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listGoogleAdsLinksTest() throws Exception { - GoogleAdsLink responsesElement = GoogleAdsLink.newBuilder().build(); - ListGoogleAdsLinksResponse expectedResponse = - ListGoogleAdsLinksResponse.newBuilder() - .setNextPageToken("") - .addAllGoogleAdsLinks(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - PropertyName parent = PropertyName.of("[PROPERTY]"); - - ListGoogleAdsLinksPagedResponse pagedListResponse = client.listGoogleAdsLinks(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getGoogleAdsLinksList().get(0), resources.get(0)); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void listGoogleAdsLinksExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - PropertyName parent = PropertyName.of("[PROPERTY]"); - client.listGoogleAdsLinks(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listGoogleAdsLinksTest2() throws Exception { - GoogleAdsLink responsesElement = GoogleAdsLink.newBuilder().build(); - ListGoogleAdsLinksResponse expectedResponse = - ListGoogleAdsLinksResponse.newBuilder() - .setNextPageToken("") - .addAllGoogleAdsLinks(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - String parent = "properties/propertie-2024"; - - ListGoogleAdsLinksPagedResponse pagedListResponse = client.listGoogleAdsLinks(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getGoogleAdsLinksList().get(0), resources.get(0)); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void listGoogleAdsLinksExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String parent = "properties/propertie-2024"; - client.listGoogleAdsLinks(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getDataSharingSettingsTest() throws Exception { - DataSharingSettings expectedResponse = - DataSharingSettings.newBuilder() - .setName(DataSharingSettingsName.of("[ACCOUNT]").toString()) - .setSharingWithGoogleSupportEnabled(true) - .setSharingWithGoogleAssignedSalesEnabled(true) - .setSharingWithGoogleAnySalesEnabled(true) - .setSharingWithGoogleProductsEnabled(true) - .setSharingWithOthersEnabled(true) - .build(); - mockService.addResponse(expectedResponse); - - DataSharingSettingsName name = DataSharingSettingsName.of("[ACCOUNT]"); - - DataSharingSettings actualResponse = client.getDataSharingSettings(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void getDataSharingSettingsExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - DataSharingSettingsName name = DataSharingSettingsName.of("[ACCOUNT]"); - client.getDataSharingSettings(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getDataSharingSettingsTest2() throws Exception { - DataSharingSettings expectedResponse = - DataSharingSettings.newBuilder() - .setName(DataSharingSettingsName.of("[ACCOUNT]").toString()) - .setSharingWithGoogleSupportEnabled(true) - .setSharingWithGoogleAssignedSalesEnabled(true) - .setSharingWithGoogleAnySalesEnabled(true) - .setSharingWithGoogleProductsEnabled(true) - .setSharingWithOthersEnabled(true) - .build(); - mockService.addResponse(expectedResponse); - - String name = "accounts/account-7122/dataSharingSettings"; - - DataSharingSettings actualResponse = client.getDataSharingSettings(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void getDataSharingSettingsExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = "accounts/account-7122/dataSharingSettings"; - client.getDataSharingSettings(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getMeasurementProtocolSecretTest() throws Exception { - MeasurementProtocolSecret expectedResponse = - MeasurementProtocolSecret.newBuilder() - .setName( - MeasurementProtocolSecretName.of( - "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]") - .toString()) - .setDisplayName("displayName1714148973") - .setSecretValue("secretValue-2044460895") - .build(); - mockService.addResponse(expectedResponse); - - MeasurementProtocolSecretName name = - MeasurementProtocolSecretName.of( - "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]"); - - MeasurementProtocolSecret actualResponse = client.getMeasurementProtocolSecret(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void getMeasurementProtocolSecretExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - MeasurementProtocolSecretName name = - MeasurementProtocolSecretName.of( - "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]"); - client.getMeasurementProtocolSecret(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getMeasurementProtocolSecretTest2() throws Exception { - MeasurementProtocolSecret expectedResponse = - MeasurementProtocolSecret.newBuilder() - .setName( - MeasurementProtocolSecretName.of( - "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]") - .toString()) - .setDisplayName("displayName1714148973") - .setSecretValue("secretValue-2044460895") - .build(); - mockService.addResponse(expectedResponse); - - String name = - "properties/propertie-6357/dataStreams/dataStream-6357/measurementProtocolSecrets/measurementProtocolSecret-6357"; - - MeasurementProtocolSecret actualResponse = client.getMeasurementProtocolSecret(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void getMeasurementProtocolSecretExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = - "properties/propertie-6357/dataStreams/dataStream-6357/measurementProtocolSecrets/measurementProtocolSecret-6357"; - client.getMeasurementProtocolSecret(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listMeasurementProtocolSecretsTest() throws Exception { - MeasurementProtocolSecret responsesElement = MeasurementProtocolSecret.newBuilder().build(); - ListMeasurementProtocolSecretsResponse expectedResponse = - ListMeasurementProtocolSecretsResponse.newBuilder() - .setNextPageToken("") - .addAllMeasurementProtocolSecrets(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - DataStreamName parent = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]"); - - ListMeasurementProtocolSecretsPagedResponse pagedListResponse = - client.listMeasurementProtocolSecrets(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals( - expectedResponse.getMeasurementProtocolSecretsList().get(0), resources.get(0)); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void listMeasurementProtocolSecretsExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - DataStreamName parent = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]"); - client.listMeasurementProtocolSecrets(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listMeasurementProtocolSecretsTest2() throws Exception { - MeasurementProtocolSecret responsesElement = MeasurementProtocolSecret.newBuilder().build(); - ListMeasurementProtocolSecretsResponse expectedResponse = - ListMeasurementProtocolSecretsResponse.newBuilder() - .setNextPageToken("") - .addAllMeasurementProtocolSecrets(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - String parent = "properties/propertie-9651/dataStreams/dataStream-9651"; - - ListMeasurementProtocolSecretsPagedResponse pagedListResponse = - client.listMeasurementProtocolSecrets(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals( - expectedResponse.getMeasurementProtocolSecretsList().get(0), resources.get(0)); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void listMeasurementProtocolSecretsExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String parent = "properties/propertie-9651/dataStreams/dataStream-9651"; - client.listMeasurementProtocolSecrets(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createMeasurementProtocolSecretTest() throws Exception { - MeasurementProtocolSecret expectedResponse = - MeasurementProtocolSecret.newBuilder() - .setName( - MeasurementProtocolSecretName.of( - "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]") - .toString()) - .setDisplayName("displayName1714148973") - .setSecretValue("secretValue-2044460895") - .build(); - mockService.addResponse(expectedResponse); - - DataStreamName parent = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]"); - MeasurementProtocolSecret measurementProtocolSecret = - MeasurementProtocolSecret.newBuilder().build(); - - MeasurementProtocolSecret actualResponse = - client.createMeasurementProtocolSecret(parent, measurementProtocolSecret); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void createMeasurementProtocolSecretExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - DataStreamName parent = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]"); - MeasurementProtocolSecret measurementProtocolSecret = - MeasurementProtocolSecret.newBuilder().build(); - client.createMeasurementProtocolSecret(parent, measurementProtocolSecret); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createMeasurementProtocolSecretTest2() throws Exception { - MeasurementProtocolSecret expectedResponse = - MeasurementProtocolSecret.newBuilder() - .setName( - MeasurementProtocolSecretName.of( - "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]") - .toString()) - .setDisplayName("displayName1714148973") - .setSecretValue("secretValue-2044460895") - .build(); - mockService.addResponse(expectedResponse); - - String parent = "properties/propertie-9651/dataStreams/dataStream-9651"; - MeasurementProtocolSecret measurementProtocolSecret = - MeasurementProtocolSecret.newBuilder().build(); - - MeasurementProtocolSecret actualResponse = - client.createMeasurementProtocolSecret(parent, measurementProtocolSecret); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void createMeasurementProtocolSecretExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String parent = "properties/propertie-9651/dataStreams/dataStream-9651"; - MeasurementProtocolSecret measurementProtocolSecret = - MeasurementProtocolSecret.newBuilder().build(); - client.createMeasurementProtocolSecret(parent, measurementProtocolSecret); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteMeasurementProtocolSecretTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockService.addResponse(expectedResponse); - - MeasurementProtocolSecretName name = - MeasurementProtocolSecretName.of( - "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]"); - - client.deleteMeasurementProtocolSecret(name); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void deleteMeasurementProtocolSecretExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - MeasurementProtocolSecretName name = - MeasurementProtocolSecretName.of( - "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]"); - client.deleteMeasurementProtocolSecret(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteMeasurementProtocolSecretTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockService.addResponse(expectedResponse); - - String name = - "properties/propertie-6357/dataStreams/dataStream-6357/measurementProtocolSecrets/measurementProtocolSecret-6357"; - - client.deleteMeasurementProtocolSecret(name); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void deleteMeasurementProtocolSecretExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = - "properties/propertie-6357/dataStreams/dataStream-6357/measurementProtocolSecrets/measurementProtocolSecret-6357"; - client.deleteMeasurementProtocolSecret(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateMeasurementProtocolSecretTest() throws Exception { - MeasurementProtocolSecret expectedResponse = - MeasurementProtocolSecret.newBuilder() - .setName( - MeasurementProtocolSecretName.of( - "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]") - .toString()) - .setDisplayName("displayName1714148973") - .setSecretValue("secretValue-2044460895") - .build(); - mockService.addResponse(expectedResponse); - - MeasurementProtocolSecret measurementProtocolSecret = - MeasurementProtocolSecret.newBuilder() - .setName( - MeasurementProtocolSecretName.of( - "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]") - .toString()) - .setDisplayName("displayName1714148973") - .setSecretValue("secretValue-2044460895") - .build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - MeasurementProtocolSecret actualResponse = - client.updateMeasurementProtocolSecret(measurementProtocolSecret, updateMask); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void updateMeasurementProtocolSecretExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - MeasurementProtocolSecret measurementProtocolSecret = - MeasurementProtocolSecret.newBuilder() - .setName( - MeasurementProtocolSecretName.of( - "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]") - .toString()) - .setDisplayName("displayName1714148973") - .setSecretValue("secretValue-2044460895") - .build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateMeasurementProtocolSecret(measurementProtocolSecret, updateMask); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void acknowledgeUserDataCollectionTest() throws Exception { - AcknowledgeUserDataCollectionResponse expectedResponse = - AcknowledgeUserDataCollectionResponse.newBuilder().build(); - mockService.addResponse(expectedResponse); - - AcknowledgeUserDataCollectionRequest request = - AcknowledgeUserDataCollectionRequest.newBuilder() - .setProperty(PropertyName.of("[PROPERTY]").toString()) - .setAcknowledgement("acknowledgement1769490938") - .build(); - - AcknowledgeUserDataCollectionResponse actualResponse = - client.acknowledgeUserDataCollection(request); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void acknowledgeUserDataCollectionExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - AcknowledgeUserDataCollectionRequest request = - AcknowledgeUserDataCollectionRequest.newBuilder() - .setProperty(PropertyName.of("[PROPERTY]").toString()) - .setAcknowledgement("acknowledgement1769490938") - .build(); - client.acknowledgeUserDataCollection(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void searchChangeHistoryEventsTest() throws Exception { - ChangeHistoryEvent responsesElement = ChangeHistoryEvent.newBuilder().build(); - SearchChangeHistoryEventsResponse expectedResponse = - SearchChangeHistoryEventsResponse.newBuilder() - .setNextPageToken("") - .addAllChangeHistoryEvents(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - SearchChangeHistoryEventsRequest request = - SearchChangeHistoryEventsRequest.newBuilder() - .setAccount(AccountName.of("[ACCOUNT]").toString()) - .setProperty(PropertyName.of("[PROPERTY]").toString()) - .addAllResourceType(new ArrayList()) - .addAllAction(new ArrayList()) - .addAllActorEmail(new ArrayList()) - .setEarliestChangeTime(Timestamp.newBuilder().build()) - .setLatestChangeTime(Timestamp.newBuilder().build()) - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .build(); - - SearchChangeHistoryEventsPagedResponse pagedListResponse = - client.searchChangeHistoryEvents(request); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getChangeHistoryEventsList().get(0), resources.get(0)); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void searchChangeHistoryEventsExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - SearchChangeHistoryEventsRequest request = - SearchChangeHistoryEventsRequest.newBuilder() - .setAccount(AccountName.of("[ACCOUNT]").toString()) - .setProperty(PropertyName.of("[PROPERTY]").toString()) - .addAllResourceType(new ArrayList()) - .addAllAction(new ArrayList()) - .addAllActorEmail(new ArrayList()) - .setEarliestChangeTime(Timestamp.newBuilder().build()) - .setLatestChangeTime(Timestamp.newBuilder().build()) - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .build(); - client.searchChangeHistoryEvents(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createConversionEventTest() throws Exception { - ConversionEvent expectedResponse = - ConversionEvent.newBuilder() - .setName(ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]").toString()) - .setEventName("eventName31228997") - .setCreateTime(Timestamp.newBuilder().build()) - .setDeletable(true) - .setCustom(true) - .build(); - mockService.addResponse(expectedResponse); - - PropertyName parent = PropertyName.of("[PROPERTY]"); - ConversionEvent conversionEvent = ConversionEvent.newBuilder().build(); - - ConversionEvent actualResponse = client.createConversionEvent(parent, conversionEvent); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void createConversionEventExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - PropertyName parent = PropertyName.of("[PROPERTY]"); - ConversionEvent conversionEvent = ConversionEvent.newBuilder().build(); - client.createConversionEvent(parent, conversionEvent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createConversionEventTest2() throws Exception { - ConversionEvent expectedResponse = - ConversionEvent.newBuilder() - .setName(ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]").toString()) - .setEventName("eventName31228997") - .setCreateTime(Timestamp.newBuilder().build()) - .setDeletable(true) - .setCustom(true) - .build(); - mockService.addResponse(expectedResponse); - - String parent = "properties/propertie-2024"; - ConversionEvent conversionEvent = ConversionEvent.newBuilder().build(); - - ConversionEvent actualResponse = client.createConversionEvent(parent, conversionEvent); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void createConversionEventExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String parent = "properties/propertie-2024"; - ConversionEvent conversionEvent = ConversionEvent.newBuilder().build(); - client.createConversionEvent(parent, conversionEvent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getConversionEventTest() throws Exception { - ConversionEvent expectedResponse = - ConversionEvent.newBuilder() - .setName(ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]").toString()) - .setEventName("eventName31228997") - .setCreateTime(Timestamp.newBuilder().build()) - .setDeletable(true) - .setCustom(true) - .build(); - mockService.addResponse(expectedResponse); - - ConversionEventName name = ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]"); - - ConversionEvent actualResponse = client.getConversionEvent(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void getConversionEventExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - ConversionEventName name = ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]"); - client.getConversionEvent(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getConversionEventTest2() throws Exception { - ConversionEvent expectedResponse = - ConversionEvent.newBuilder() - .setName(ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]").toString()) - .setEventName("eventName31228997") - .setCreateTime(Timestamp.newBuilder().build()) - .setDeletable(true) - .setCustom(true) - .build(); - mockService.addResponse(expectedResponse); - - String name = "properties/propertie-4144/conversionEvents/conversionEvent-4144"; - - ConversionEvent actualResponse = client.getConversionEvent(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void getConversionEventExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = "properties/propertie-4144/conversionEvents/conversionEvent-4144"; - client.getConversionEvent(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteConversionEventTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockService.addResponse(expectedResponse); - - ConversionEventName name = ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]"); - - client.deleteConversionEvent(name); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void deleteConversionEventExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - ConversionEventName name = ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]"); - client.deleteConversionEvent(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteConversionEventTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockService.addResponse(expectedResponse); - - String name = "properties/propertie-4144/conversionEvents/conversionEvent-4144"; - - client.deleteConversionEvent(name); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void deleteConversionEventExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = "properties/propertie-4144/conversionEvents/conversionEvent-4144"; - client.deleteConversionEvent(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listConversionEventsTest() throws Exception { - ConversionEvent responsesElement = ConversionEvent.newBuilder().build(); - ListConversionEventsResponse expectedResponse = - ListConversionEventsResponse.newBuilder() - .setNextPageToken("") - .addAllConversionEvents(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - PropertyName parent = PropertyName.of("[PROPERTY]"); - - ListConversionEventsPagedResponse pagedListResponse = client.listConversionEvents(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getConversionEventsList().get(0), resources.get(0)); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void listConversionEventsExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - PropertyName parent = PropertyName.of("[PROPERTY]"); - client.listConversionEvents(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listConversionEventsTest2() throws Exception { - ConversionEvent responsesElement = ConversionEvent.newBuilder().build(); - ListConversionEventsResponse expectedResponse = - ListConversionEventsResponse.newBuilder() - .setNextPageToken("") - .addAllConversionEvents(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - String parent = "properties/propertie-2024"; - - ListConversionEventsPagedResponse pagedListResponse = client.listConversionEvents(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getConversionEventsList().get(0), resources.get(0)); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void listConversionEventsExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String parent = "properties/propertie-2024"; - client.listConversionEvents(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createCustomDimensionTest() throws Exception { - CustomDimension expectedResponse = - CustomDimension.newBuilder() - .setName(CustomDimensionName.of("[PROPERTY]", "[CUSTOM_DIMENSION]").toString()) - .setParameterName("parameterName-379607596") - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setDisallowAdsPersonalization(true) - .build(); - mockService.addResponse(expectedResponse); - - PropertyName parent = PropertyName.of("[PROPERTY]"); - CustomDimension customDimension = CustomDimension.newBuilder().build(); - - CustomDimension actualResponse = client.createCustomDimension(parent, customDimension); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void createCustomDimensionExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - PropertyName parent = PropertyName.of("[PROPERTY]"); - CustomDimension customDimension = CustomDimension.newBuilder().build(); - client.createCustomDimension(parent, customDimension); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createCustomDimensionTest2() throws Exception { - CustomDimension expectedResponse = - CustomDimension.newBuilder() - .setName(CustomDimensionName.of("[PROPERTY]", "[CUSTOM_DIMENSION]").toString()) - .setParameterName("parameterName-379607596") - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setDisallowAdsPersonalization(true) - .build(); - mockService.addResponse(expectedResponse); - - String parent = "properties/propertie-2024"; - CustomDimension customDimension = CustomDimension.newBuilder().build(); - - CustomDimension actualResponse = client.createCustomDimension(parent, customDimension); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void createCustomDimensionExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String parent = "properties/propertie-2024"; - CustomDimension customDimension = CustomDimension.newBuilder().build(); - client.createCustomDimension(parent, customDimension); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateCustomDimensionTest() throws Exception { - CustomDimension expectedResponse = - CustomDimension.newBuilder() - .setName(CustomDimensionName.of("[PROPERTY]", "[CUSTOM_DIMENSION]").toString()) - .setParameterName("parameterName-379607596") - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setDisallowAdsPersonalization(true) - .build(); - mockService.addResponse(expectedResponse); - - CustomDimension customDimension = - CustomDimension.newBuilder() - .setName(CustomDimensionName.of("[PROPERTY]", "[CUSTOM_DIMENSION]").toString()) - .setParameterName("parameterName-379607596") - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setDisallowAdsPersonalization(true) - .build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - CustomDimension actualResponse = client.updateCustomDimension(customDimension, updateMask); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void updateCustomDimensionExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - CustomDimension customDimension = - CustomDimension.newBuilder() - .setName(CustomDimensionName.of("[PROPERTY]", "[CUSTOM_DIMENSION]").toString()) - .setParameterName("parameterName-379607596") - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setDisallowAdsPersonalization(true) - .build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateCustomDimension(customDimension, updateMask); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listCustomDimensionsTest() throws Exception { - CustomDimension responsesElement = CustomDimension.newBuilder().build(); - ListCustomDimensionsResponse expectedResponse = - ListCustomDimensionsResponse.newBuilder() - .setNextPageToken("") - .addAllCustomDimensions(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - PropertyName parent = PropertyName.of("[PROPERTY]"); - - ListCustomDimensionsPagedResponse pagedListResponse = client.listCustomDimensions(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getCustomDimensionsList().get(0), resources.get(0)); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void listCustomDimensionsExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - PropertyName parent = PropertyName.of("[PROPERTY]"); - client.listCustomDimensions(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listCustomDimensionsTest2() throws Exception { - CustomDimension responsesElement = CustomDimension.newBuilder().build(); - ListCustomDimensionsResponse expectedResponse = - ListCustomDimensionsResponse.newBuilder() - .setNextPageToken("") - .addAllCustomDimensions(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - String parent = "properties/propertie-2024"; - - ListCustomDimensionsPagedResponse pagedListResponse = client.listCustomDimensions(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getCustomDimensionsList().get(0), resources.get(0)); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void listCustomDimensionsExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String parent = "properties/propertie-2024"; - client.listCustomDimensions(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void archiveCustomDimensionTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockService.addResponse(expectedResponse); - - CustomDimensionName name = CustomDimensionName.of("[PROPERTY]", "[CUSTOM_DIMENSION]"); - - client.archiveCustomDimension(name); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void archiveCustomDimensionExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - CustomDimensionName name = CustomDimensionName.of("[PROPERTY]", "[CUSTOM_DIMENSION]"); - client.archiveCustomDimension(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void archiveCustomDimensionTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockService.addResponse(expectedResponse); - - String name = "properties/propertie-447/customDimensions/customDimension-447"; - - client.archiveCustomDimension(name); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void archiveCustomDimensionExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = "properties/propertie-447/customDimensions/customDimension-447"; - client.archiveCustomDimension(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getCustomDimensionTest() throws Exception { - CustomDimension expectedResponse = - CustomDimension.newBuilder() - .setName(CustomDimensionName.of("[PROPERTY]", "[CUSTOM_DIMENSION]").toString()) - .setParameterName("parameterName-379607596") - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setDisallowAdsPersonalization(true) - .build(); - mockService.addResponse(expectedResponse); - - CustomDimensionName name = CustomDimensionName.of("[PROPERTY]", "[CUSTOM_DIMENSION]"); - - CustomDimension actualResponse = client.getCustomDimension(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void getCustomDimensionExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - CustomDimensionName name = CustomDimensionName.of("[PROPERTY]", "[CUSTOM_DIMENSION]"); - client.getCustomDimension(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getCustomDimensionTest2() throws Exception { - CustomDimension expectedResponse = - CustomDimension.newBuilder() - .setName(CustomDimensionName.of("[PROPERTY]", "[CUSTOM_DIMENSION]").toString()) - .setParameterName("parameterName-379607596") - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setDisallowAdsPersonalization(true) - .build(); - mockService.addResponse(expectedResponse); - - String name = "properties/propertie-447/customDimensions/customDimension-447"; - - CustomDimension actualResponse = client.getCustomDimension(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void getCustomDimensionExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = "properties/propertie-447/customDimensions/customDimension-447"; - client.getCustomDimension(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createCustomMetricTest() throws Exception { - CustomMetric expectedResponse = - CustomMetric.newBuilder() - .setName(CustomMetricName.of("[PROPERTY]", "[CUSTOM_METRIC]").toString()) - .setParameterName("parameterName-379607596") - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .addAllRestrictedMetricType(new ArrayList()) - .build(); - mockService.addResponse(expectedResponse); - - PropertyName parent = PropertyName.of("[PROPERTY]"); - CustomMetric customMetric = CustomMetric.newBuilder().build(); - - CustomMetric actualResponse = client.createCustomMetric(parent, customMetric); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void createCustomMetricExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - PropertyName parent = PropertyName.of("[PROPERTY]"); - CustomMetric customMetric = CustomMetric.newBuilder().build(); - client.createCustomMetric(parent, customMetric); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createCustomMetricTest2() throws Exception { - CustomMetric expectedResponse = - CustomMetric.newBuilder() - .setName(CustomMetricName.of("[PROPERTY]", "[CUSTOM_METRIC]").toString()) - .setParameterName("parameterName-379607596") - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .addAllRestrictedMetricType(new ArrayList()) - .build(); - mockService.addResponse(expectedResponse); - - String parent = "properties/propertie-2024"; - CustomMetric customMetric = CustomMetric.newBuilder().build(); - - CustomMetric actualResponse = client.createCustomMetric(parent, customMetric); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void createCustomMetricExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String parent = "properties/propertie-2024"; - CustomMetric customMetric = CustomMetric.newBuilder().build(); - client.createCustomMetric(parent, customMetric); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateCustomMetricTest() throws Exception { - CustomMetric expectedResponse = - CustomMetric.newBuilder() - .setName(CustomMetricName.of("[PROPERTY]", "[CUSTOM_METRIC]").toString()) - .setParameterName("parameterName-379607596") - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .addAllRestrictedMetricType(new ArrayList()) - .build(); - mockService.addResponse(expectedResponse); - - CustomMetric customMetric = - CustomMetric.newBuilder() - .setName(CustomMetricName.of("[PROPERTY]", "[CUSTOM_METRIC]").toString()) - .setParameterName("parameterName-379607596") - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .addAllRestrictedMetricType(new ArrayList()) - .build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - CustomMetric actualResponse = client.updateCustomMetric(customMetric, updateMask); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void updateCustomMetricExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - CustomMetric customMetric = - CustomMetric.newBuilder() - .setName(CustomMetricName.of("[PROPERTY]", "[CUSTOM_METRIC]").toString()) - .setParameterName("parameterName-379607596") - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .addAllRestrictedMetricType(new ArrayList()) - .build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateCustomMetric(customMetric, updateMask); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listCustomMetricsTest() throws Exception { - CustomMetric responsesElement = CustomMetric.newBuilder().build(); - ListCustomMetricsResponse expectedResponse = - ListCustomMetricsResponse.newBuilder() - .setNextPageToken("") - .addAllCustomMetrics(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - PropertyName parent = PropertyName.of("[PROPERTY]"); - - ListCustomMetricsPagedResponse pagedListResponse = client.listCustomMetrics(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getCustomMetricsList().get(0), resources.get(0)); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void listCustomMetricsExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - PropertyName parent = PropertyName.of("[PROPERTY]"); - client.listCustomMetrics(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listCustomMetricsTest2() throws Exception { - CustomMetric responsesElement = CustomMetric.newBuilder().build(); - ListCustomMetricsResponse expectedResponse = - ListCustomMetricsResponse.newBuilder() - .setNextPageToken("") - .addAllCustomMetrics(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - String parent = "properties/propertie-2024"; - - ListCustomMetricsPagedResponse pagedListResponse = client.listCustomMetrics(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getCustomMetricsList().get(0), resources.get(0)); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void listCustomMetricsExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String parent = "properties/propertie-2024"; - client.listCustomMetrics(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void archiveCustomMetricTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockService.addResponse(expectedResponse); - - CustomMetricName name = CustomMetricName.of("[PROPERTY]", "[CUSTOM_METRIC]"); - - client.archiveCustomMetric(name); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void archiveCustomMetricExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - CustomMetricName name = CustomMetricName.of("[PROPERTY]", "[CUSTOM_METRIC]"); - client.archiveCustomMetric(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void archiveCustomMetricTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockService.addResponse(expectedResponse); - - String name = "properties/propertie-2999/customMetrics/customMetric-2999"; - - client.archiveCustomMetric(name); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void archiveCustomMetricExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = "properties/propertie-2999/customMetrics/customMetric-2999"; - client.archiveCustomMetric(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getCustomMetricTest() throws Exception { - CustomMetric expectedResponse = - CustomMetric.newBuilder() - .setName(CustomMetricName.of("[PROPERTY]", "[CUSTOM_METRIC]").toString()) - .setParameterName("parameterName-379607596") - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .addAllRestrictedMetricType(new ArrayList()) - .build(); - mockService.addResponse(expectedResponse); - - CustomMetricName name = CustomMetricName.of("[PROPERTY]", "[CUSTOM_METRIC]"); - - CustomMetric actualResponse = client.getCustomMetric(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void getCustomMetricExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - CustomMetricName name = CustomMetricName.of("[PROPERTY]", "[CUSTOM_METRIC]"); - client.getCustomMetric(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getCustomMetricTest2() throws Exception { - CustomMetric expectedResponse = - CustomMetric.newBuilder() - .setName(CustomMetricName.of("[PROPERTY]", "[CUSTOM_METRIC]").toString()) - .setParameterName("parameterName-379607596") - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .addAllRestrictedMetricType(new ArrayList()) - .build(); - mockService.addResponse(expectedResponse); - - String name = "properties/propertie-2999/customMetrics/customMetric-2999"; - - CustomMetric actualResponse = client.getCustomMetric(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void getCustomMetricExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = "properties/propertie-2999/customMetrics/customMetric-2999"; - client.getCustomMetric(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getDataRetentionSettingsTest() throws Exception { - DataRetentionSettings expectedResponse = - DataRetentionSettings.newBuilder() - .setName(DataRetentionSettingsName.of("[PROPERTY]").toString()) - .setResetUserDataOnNewActivity(true) - .build(); - mockService.addResponse(expectedResponse); - - DataRetentionSettingsName name = DataRetentionSettingsName.of("[PROPERTY]"); - - DataRetentionSettings actualResponse = client.getDataRetentionSettings(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void getDataRetentionSettingsExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - DataRetentionSettingsName name = DataRetentionSettingsName.of("[PROPERTY]"); - client.getDataRetentionSettings(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getDataRetentionSettingsTest2() throws Exception { - DataRetentionSettings expectedResponse = - DataRetentionSettings.newBuilder() - .setName(DataRetentionSettingsName.of("[PROPERTY]").toString()) - .setResetUserDataOnNewActivity(true) - .build(); - mockService.addResponse(expectedResponse); - - String name = "properties/propertie-2463/dataRetentionSettings"; - - DataRetentionSettings actualResponse = client.getDataRetentionSettings(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void getDataRetentionSettingsExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = "properties/propertie-2463/dataRetentionSettings"; - client.getDataRetentionSettings(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateDataRetentionSettingsTest() throws Exception { - DataRetentionSettings expectedResponse = - DataRetentionSettings.newBuilder() - .setName(DataRetentionSettingsName.of("[PROPERTY]").toString()) - .setResetUserDataOnNewActivity(true) - .build(); - mockService.addResponse(expectedResponse); - - DataRetentionSettings dataRetentionSettings = - DataRetentionSettings.newBuilder() - .setName(DataRetentionSettingsName.of("[PROPERTY]").toString()) - .setResetUserDataOnNewActivity(true) - .build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - DataRetentionSettings actualResponse = - client.updateDataRetentionSettings(dataRetentionSettings, updateMask); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void updateDataRetentionSettingsExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - DataRetentionSettings dataRetentionSettings = - DataRetentionSettings.newBuilder() - .setName(DataRetentionSettingsName.of("[PROPERTY]").toString()) - .setResetUserDataOnNewActivity(true) - .build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateDataRetentionSettings(dataRetentionSettings, updateMask); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createDataStreamTest() throws Exception { - DataStream expectedResponse = - DataStream.newBuilder() - .setName(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString()) - .setDisplayName("displayName1714148973") - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - PropertyName parent = PropertyName.of("[PROPERTY]"); - DataStream dataStream = DataStream.newBuilder().build(); - - DataStream actualResponse = client.createDataStream(parent, dataStream); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void createDataStreamExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - PropertyName parent = PropertyName.of("[PROPERTY]"); - DataStream dataStream = DataStream.newBuilder().build(); - client.createDataStream(parent, dataStream); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createDataStreamTest2() throws Exception { - DataStream expectedResponse = - DataStream.newBuilder() - .setName(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString()) - .setDisplayName("displayName1714148973") - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - String parent = "properties/propertie-2024"; - DataStream dataStream = DataStream.newBuilder().build(); - - DataStream actualResponse = client.createDataStream(parent, dataStream); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void createDataStreamExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String parent = "properties/propertie-2024"; - DataStream dataStream = DataStream.newBuilder().build(); - client.createDataStream(parent, dataStream); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteDataStreamTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockService.addResponse(expectedResponse); - - DataStreamName name = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]"); - - client.deleteDataStream(name); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void deleteDataStreamExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - DataStreamName name = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]"); - client.deleteDataStream(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteDataStreamTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockService.addResponse(expectedResponse); - - String name = "properties/propertie-9806/dataStreams/dataStream-9806"; - - client.deleteDataStream(name); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void deleteDataStreamExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = "properties/propertie-9806/dataStreams/dataStream-9806"; - client.deleteDataStream(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateDataStreamTest() throws Exception { - DataStream expectedResponse = - DataStream.newBuilder() - .setName(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString()) - .setDisplayName("displayName1714148973") - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - DataStream dataStream = - DataStream.newBuilder() - .setName(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString()) - .setDisplayName("displayName1714148973") - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - DataStream actualResponse = client.updateDataStream(dataStream, updateMask); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void updateDataStreamExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - DataStream dataStream = - DataStream.newBuilder() - .setName(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString()) - .setDisplayName("displayName1714148973") - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateDataStream(dataStream, updateMask); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listDataStreamsTest() throws Exception { - DataStream responsesElement = DataStream.newBuilder().build(); - ListDataStreamsResponse expectedResponse = - ListDataStreamsResponse.newBuilder() - .setNextPageToken("") - .addAllDataStreams(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - PropertyName parent = PropertyName.of("[PROPERTY]"); - - ListDataStreamsPagedResponse pagedListResponse = client.listDataStreams(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getDataStreamsList().get(0), resources.get(0)); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void listDataStreamsExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - PropertyName parent = PropertyName.of("[PROPERTY]"); - client.listDataStreams(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listDataStreamsTest2() throws Exception { - DataStream responsesElement = DataStream.newBuilder().build(); - ListDataStreamsResponse expectedResponse = - ListDataStreamsResponse.newBuilder() - .setNextPageToken("") - .addAllDataStreams(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - String parent = "properties/propertie-2024"; - - ListDataStreamsPagedResponse pagedListResponse = client.listDataStreams(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getDataStreamsList().get(0), resources.get(0)); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void listDataStreamsExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String parent = "properties/propertie-2024"; - client.listDataStreams(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getDataStreamTest() throws Exception { - DataStream expectedResponse = - DataStream.newBuilder() - .setName(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString()) - .setDisplayName("displayName1714148973") - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - DataStreamName name = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]"); - - DataStream actualResponse = client.getDataStream(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void getDataStreamExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - DataStreamName name = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]"); - client.getDataStream(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getDataStreamTest2() throws Exception { - DataStream expectedResponse = - DataStream.newBuilder() - .setName(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString()) - .setDisplayName("displayName1714148973") - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - String name = "properties/propertie-9806/dataStreams/dataStream-9806"; - - DataStream actualResponse = client.getDataStream(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void getDataStreamExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = "properties/propertie-9806/dataStreams/dataStream-9806"; - client.getDataStream(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } -} diff --git a/google-analytics-admin/src/test/java/com/google/analytics/admin/v1beta/AnalyticsAdminServiceClientTest.java b/google-analytics-admin/src/test/java/com/google/analytics/admin/v1beta/AnalyticsAdminServiceClientTest.java deleted file mode 100644 index fafaf453..00000000 --- a/google-analytics-admin/src/test/java/com/google/analytics/admin/v1beta/AnalyticsAdminServiceClientTest.java +++ /dev/null @@ -1,3563 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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.api.gax.core.NoCredentialsProvider; -import com.google.api.gax.grpc.GaxGrpcProperties; -import com.google.api.gax.grpc.testing.LocalChannelProvider; -import com.google.api.gax.grpc.testing.MockGrpcService; -import com.google.api.gax.grpc.testing.MockServiceHelper; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.InvalidArgumentException; -import com.google.common.collect.Lists; -import com.google.protobuf.AbstractMessage; -import com.google.protobuf.BoolValue; -import com.google.protobuf.Empty; -import com.google.protobuf.FieldMask; -import com.google.protobuf.Timestamp; -import io.grpc.StatusRuntimeException; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import java.util.UUID; -import javax.annotation.Generated; -import org.junit.After; -import org.junit.AfterClass; -import org.junit.Assert; -import org.junit.Before; -import org.junit.BeforeClass; -import org.junit.Test; - -@Generated("by gapic-generator-java") -public class AnalyticsAdminServiceClientTest { - private static MockAnalyticsAdminService mockAnalyticsAdminService; - private static MockServiceHelper mockServiceHelper; - private LocalChannelProvider channelProvider; - private AnalyticsAdminServiceClient client; - - @BeforeClass - public static void startStaticServer() { - mockAnalyticsAdminService = new MockAnalyticsAdminService(); - mockServiceHelper = - new MockServiceHelper( - UUID.randomUUID().toString(), - Arrays.asList(mockAnalyticsAdminService)); - mockServiceHelper.start(); - } - - @AfterClass - public static void stopServer() { - mockServiceHelper.stop(); - } - - @Before - public void setUp() throws IOException { - mockServiceHelper.reset(); - channelProvider = mockServiceHelper.createChannelProvider(); - AnalyticsAdminServiceSettings settings = - AnalyticsAdminServiceSettings.newBuilder() - .setTransportChannelProvider(channelProvider) - .setCredentialsProvider(NoCredentialsProvider.create()) - .build(); - client = AnalyticsAdminServiceClient.create(settings); - } - - @After - public void tearDown() throws Exception { - client.close(); - } - - @Test - public void getAccountTest() throws Exception { - Account expectedResponse = - Account.newBuilder() - .setName(AccountName.of("[ACCOUNT]").toString()) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setDisplayName("displayName1714148973") - .setRegionCode("regionCode-1991004415") - .setDeleted(true) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - AccountName name = AccountName.of("[ACCOUNT]"); - - Account actualResponse = client.getAccount(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetAccountRequest actualRequest = ((GetAccountRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getAccountExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - AccountName name = AccountName.of("[ACCOUNT]"); - client.getAccount(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getAccountTest2() throws Exception { - Account expectedResponse = - Account.newBuilder() - .setName(AccountName.of("[ACCOUNT]").toString()) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setDisplayName("displayName1714148973") - .setRegionCode("regionCode-1991004415") - .setDeleted(true) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - String name = "name3373707"; - - Account actualResponse = client.getAccount(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetAccountRequest actualRequest = ((GetAccountRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getAccountExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - String name = "name3373707"; - client.getAccount(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listAccountsTest() throws Exception { - Account responsesElement = Account.newBuilder().build(); - ListAccountsResponse expectedResponse = - ListAccountsResponse.newBuilder() - .setNextPageToken("") - .addAllAccounts(Arrays.asList(responsesElement)) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - ListAccountsRequest request = - ListAccountsRequest.newBuilder() - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .setShowDeleted(true) - .build(); - - ListAccountsPagedResponse pagedListResponse = client.listAccounts(request); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getAccountsList().get(0), resources.get(0)); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListAccountsRequest actualRequest = ((ListAccountsRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize()); - Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken()); - Assert.assertEquals(request.getShowDeleted(), actualRequest.getShowDeleted()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listAccountsExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - ListAccountsRequest request = - ListAccountsRequest.newBuilder() - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .setShowDeleted(true) - .build(); - client.listAccounts(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteAccountTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - AccountName name = AccountName.of("[ACCOUNT]"); - - client.deleteAccount(name); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteAccountRequest actualRequest = ((DeleteAccountRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteAccountExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - AccountName name = AccountName.of("[ACCOUNT]"); - client.deleteAccount(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteAccountTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - String name = "name3373707"; - - client.deleteAccount(name); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteAccountRequest actualRequest = ((DeleteAccountRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteAccountExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - String name = "name3373707"; - client.deleteAccount(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateAccountTest() throws Exception { - Account expectedResponse = - Account.newBuilder() - .setName(AccountName.of("[ACCOUNT]").toString()) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setDisplayName("displayName1714148973") - .setRegionCode("regionCode-1991004415") - .setDeleted(true) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - Account account = Account.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - Account actualResponse = client.updateAccount(account, updateMask); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - UpdateAccountRequest actualRequest = ((UpdateAccountRequest) actualRequests.get(0)); - - Assert.assertEquals(account, actualRequest.getAccount()); - Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void updateAccountExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - Account account = Account.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateAccount(account, updateMask); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void provisionAccountTicketTest() throws Exception { - ProvisionAccountTicketResponse expectedResponse = - ProvisionAccountTicketResponse.newBuilder() - .setAccountTicketId("accountTicketId-1576709484") - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - ProvisionAccountTicketRequest request = - ProvisionAccountTicketRequest.newBuilder() - .setAccount(Account.newBuilder().build()) - .setRedirectUri("redirectUri1970337776") - .build(); - - ProvisionAccountTicketResponse actualResponse = client.provisionAccountTicket(request); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ProvisionAccountTicketRequest actualRequest = - ((ProvisionAccountTicketRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getAccount(), actualRequest.getAccount()); - Assert.assertEquals(request.getRedirectUri(), actualRequest.getRedirectUri()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void provisionAccountTicketExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - ProvisionAccountTicketRequest request = - ProvisionAccountTicketRequest.newBuilder() - .setAccount(Account.newBuilder().build()) - .setRedirectUri("redirectUri1970337776") - .build(); - client.provisionAccountTicket(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listAccountSummariesTest() throws Exception { - AccountSummary responsesElement = AccountSummary.newBuilder().build(); - ListAccountSummariesResponse expectedResponse = - ListAccountSummariesResponse.newBuilder() - .setNextPageToken("") - .addAllAccountSummaries(Arrays.asList(responsesElement)) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - ListAccountSummariesRequest request = - ListAccountSummariesRequest.newBuilder() - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .build(); - - ListAccountSummariesPagedResponse pagedListResponse = client.listAccountSummaries(request); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getAccountSummariesList().get(0), resources.get(0)); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListAccountSummariesRequest actualRequest = - ((ListAccountSummariesRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize()); - Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listAccountSummariesExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - ListAccountSummariesRequest request = - ListAccountSummariesRequest.newBuilder() - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .build(); - client.listAccountSummaries(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getPropertyTest() throws Exception { - Property expectedResponse = - Property.newBuilder() - .setName(PropertyName.of("[PROPERTY]").toString()) - .setPropertyType(PropertyType.forNumber(0)) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setParent("parent-995424086") - .setDisplayName("displayName1714148973") - .setIndustryCategory(IndustryCategory.forNumber(0)) - .setTimeZone("timeZone-2077180903") - .setCurrencyCode("currencyCode1004773790") - .setServiceLevel(ServiceLevel.forNumber(0)) - .setDeleteTime(Timestamp.newBuilder().build()) - .setExpireTime(Timestamp.newBuilder().build()) - .setAccount(AccountName.of("[ACCOUNT]").toString()) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - PropertyName name = PropertyName.of("[PROPERTY]"); - - Property actualResponse = client.getProperty(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetPropertyRequest actualRequest = ((GetPropertyRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getPropertyExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - PropertyName name = PropertyName.of("[PROPERTY]"); - client.getProperty(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getPropertyTest2() throws Exception { - Property expectedResponse = - Property.newBuilder() - .setName(PropertyName.of("[PROPERTY]").toString()) - .setPropertyType(PropertyType.forNumber(0)) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setParent("parent-995424086") - .setDisplayName("displayName1714148973") - .setIndustryCategory(IndustryCategory.forNumber(0)) - .setTimeZone("timeZone-2077180903") - .setCurrencyCode("currencyCode1004773790") - .setServiceLevel(ServiceLevel.forNumber(0)) - .setDeleteTime(Timestamp.newBuilder().build()) - .setExpireTime(Timestamp.newBuilder().build()) - .setAccount(AccountName.of("[ACCOUNT]").toString()) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - String name = "name3373707"; - - Property actualResponse = client.getProperty(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetPropertyRequest actualRequest = ((GetPropertyRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getPropertyExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - String name = "name3373707"; - client.getProperty(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listPropertiesTest() throws Exception { - Property responsesElement = Property.newBuilder().build(); - ListPropertiesResponse expectedResponse = - ListPropertiesResponse.newBuilder() - .setNextPageToken("") - .addAllProperties(Arrays.asList(responsesElement)) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - ListPropertiesRequest request = - ListPropertiesRequest.newBuilder() - .setFilter("filter-1274492040") - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .setShowDeleted(true) - .build(); - - ListPropertiesPagedResponse pagedListResponse = client.listProperties(request); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getPropertiesList().get(0), resources.get(0)); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListPropertiesRequest actualRequest = ((ListPropertiesRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getFilter(), actualRequest.getFilter()); - Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize()); - Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken()); - Assert.assertEquals(request.getShowDeleted(), actualRequest.getShowDeleted()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listPropertiesExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - ListPropertiesRequest request = - ListPropertiesRequest.newBuilder() - .setFilter("filter-1274492040") - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .setShowDeleted(true) - .build(); - client.listProperties(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createPropertyTest() throws Exception { - Property expectedResponse = - Property.newBuilder() - .setName(PropertyName.of("[PROPERTY]").toString()) - .setPropertyType(PropertyType.forNumber(0)) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setParent("parent-995424086") - .setDisplayName("displayName1714148973") - .setIndustryCategory(IndustryCategory.forNumber(0)) - .setTimeZone("timeZone-2077180903") - .setCurrencyCode("currencyCode1004773790") - .setServiceLevel(ServiceLevel.forNumber(0)) - .setDeleteTime(Timestamp.newBuilder().build()) - .setExpireTime(Timestamp.newBuilder().build()) - .setAccount(AccountName.of("[ACCOUNT]").toString()) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - Property property = Property.newBuilder().build(); - - Property actualResponse = client.createProperty(property); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreatePropertyRequest actualRequest = ((CreatePropertyRequest) actualRequests.get(0)); - - Assert.assertEquals(property, actualRequest.getProperty()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createPropertyExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - Property property = Property.newBuilder().build(); - client.createProperty(property); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deletePropertyTest() throws Exception { - Property expectedResponse = - Property.newBuilder() - .setName(PropertyName.of("[PROPERTY]").toString()) - .setPropertyType(PropertyType.forNumber(0)) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setParent("parent-995424086") - .setDisplayName("displayName1714148973") - .setIndustryCategory(IndustryCategory.forNumber(0)) - .setTimeZone("timeZone-2077180903") - .setCurrencyCode("currencyCode1004773790") - .setServiceLevel(ServiceLevel.forNumber(0)) - .setDeleteTime(Timestamp.newBuilder().build()) - .setExpireTime(Timestamp.newBuilder().build()) - .setAccount(AccountName.of("[ACCOUNT]").toString()) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - PropertyName name = PropertyName.of("[PROPERTY]"); - - Property actualResponse = client.deleteProperty(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeletePropertyRequest actualRequest = ((DeletePropertyRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deletePropertyExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - PropertyName name = PropertyName.of("[PROPERTY]"); - client.deleteProperty(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deletePropertyTest2() throws Exception { - Property expectedResponse = - Property.newBuilder() - .setName(PropertyName.of("[PROPERTY]").toString()) - .setPropertyType(PropertyType.forNumber(0)) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setParent("parent-995424086") - .setDisplayName("displayName1714148973") - .setIndustryCategory(IndustryCategory.forNumber(0)) - .setTimeZone("timeZone-2077180903") - .setCurrencyCode("currencyCode1004773790") - .setServiceLevel(ServiceLevel.forNumber(0)) - .setDeleteTime(Timestamp.newBuilder().build()) - .setExpireTime(Timestamp.newBuilder().build()) - .setAccount(AccountName.of("[ACCOUNT]").toString()) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - String name = "name3373707"; - - Property actualResponse = client.deleteProperty(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeletePropertyRequest actualRequest = ((DeletePropertyRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deletePropertyExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - String name = "name3373707"; - client.deleteProperty(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updatePropertyTest() throws Exception { - Property expectedResponse = - Property.newBuilder() - .setName(PropertyName.of("[PROPERTY]").toString()) - .setPropertyType(PropertyType.forNumber(0)) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setParent("parent-995424086") - .setDisplayName("displayName1714148973") - .setIndustryCategory(IndustryCategory.forNumber(0)) - .setTimeZone("timeZone-2077180903") - .setCurrencyCode("currencyCode1004773790") - .setServiceLevel(ServiceLevel.forNumber(0)) - .setDeleteTime(Timestamp.newBuilder().build()) - .setExpireTime(Timestamp.newBuilder().build()) - .setAccount(AccountName.of("[ACCOUNT]").toString()) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - Property property = Property.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - Property actualResponse = client.updateProperty(property, updateMask); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - UpdatePropertyRequest actualRequest = ((UpdatePropertyRequest) actualRequests.get(0)); - - Assert.assertEquals(property, actualRequest.getProperty()); - Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void updatePropertyExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - Property property = Property.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateProperty(property, updateMask); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createFirebaseLinkTest() throws Exception { - FirebaseLink expectedResponse = - FirebaseLink.newBuilder() - .setName(FirebaseLinkName.of("[PROPERTY]", "[FIREBASE_LINK]").toString()) - .setProject("project-309310695") - .setCreateTime(Timestamp.newBuilder().build()) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - PropertyName parent = PropertyName.of("[PROPERTY]"); - FirebaseLink firebaseLink = FirebaseLink.newBuilder().build(); - - FirebaseLink actualResponse = client.createFirebaseLink(parent, firebaseLink); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateFirebaseLinkRequest actualRequest = ((CreateFirebaseLinkRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(firebaseLink, actualRequest.getFirebaseLink()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createFirebaseLinkExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - PropertyName parent = PropertyName.of("[PROPERTY]"); - FirebaseLink firebaseLink = FirebaseLink.newBuilder().build(); - client.createFirebaseLink(parent, firebaseLink); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createFirebaseLinkTest2() throws Exception { - FirebaseLink expectedResponse = - FirebaseLink.newBuilder() - .setName(FirebaseLinkName.of("[PROPERTY]", "[FIREBASE_LINK]").toString()) - .setProject("project-309310695") - .setCreateTime(Timestamp.newBuilder().build()) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - String parent = "parent-995424086"; - FirebaseLink firebaseLink = FirebaseLink.newBuilder().build(); - - FirebaseLink actualResponse = client.createFirebaseLink(parent, firebaseLink); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateFirebaseLinkRequest actualRequest = ((CreateFirebaseLinkRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertEquals(firebaseLink, actualRequest.getFirebaseLink()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createFirebaseLinkExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - String parent = "parent-995424086"; - FirebaseLink firebaseLink = FirebaseLink.newBuilder().build(); - client.createFirebaseLink(parent, firebaseLink); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteFirebaseLinkTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - FirebaseLinkName name = FirebaseLinkName.of("[PROPERTY]", "[FIREBASE_LINK]"); - - client.deleteFirebaseLink(name); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteFirebaseLinkRequest actualRequest = ((DeleteFirebaseLinkRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteFirebaseLinkExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - FirebaseLinkName name = FirebaseLinkName.of("[PROPERTY]", "[FIREBASE_LINK]"); - client.deleteFirebaseLink(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteFirebaseLinkTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - String name = "name3373707"; - - client.deleteFirebaseLink(name); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteFirebaseLinkRequest actualRequest = ((DeleteFirebaseLinkRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteFirebaseLinkExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - String name = "name3373707"; - client.deleteFirebaseLink(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listFirebaseLinksTest() throws Exception { - FirebaseLink responsesElement = FirebaseLink.newBuilder().build(); - ListFirebaseLinksResponse expectedResponse = - ListFirebaseLinksResponse.newBuilder() - .setNextPageToken("") - .addAllFirebaseLinks(Arrays.asList(responsesElement)) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - PropertyName parent = PropertyName.of("[PROPERTY]"); - - ListFirebaseLinksPagedResponse pagedListResponse = client.listFirebaseLinks(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getFirebaseLinksList().get(0), resources.get(0)); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListFirebaseLinksRequest actualRequest = ((ListFirebaseLinksRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listFirebaseLinksExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - PropertyName parent = PropertyName.of("[PROPERTY]"); - client.listFirebaseLinks(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listFirebaseLinksTest2() throws Exception { - FirebaseLink responsesElement = FirebaseLink.newBuilder().build(); - ListFirebaseLinksResponse expectedResponse = - ListFirebaseLinksResponse.newBuilder() - .setNextPageToken("") - .addAllFirebaseLinks(Arrays.asList(responsesElement)) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - String parent = "parent-995424086"; - - ListFirebaseLinksPagedResponse pagedListResponse = client.listFirebaseLinks(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getFirebaseLinksList().get(0), resources.get(0)); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListFirebaseLinksRequest actualRequest = ((ListFirebaseLinksRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listFirebaseLinksExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - String parent = "parent-995424086"; - client.listFirebaseLinks(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createGoogleAdsLinkTest() throws Exception { - GoogleAdsLink expectedResponse = - GoogleAdsLink.newBuilder() - .setName(GoogleAdsLinkName.of("[PROPERTY]", "[GOOGLE_ADS_LINK]").toString()) - .setCustomerId("customerId-1581184615") - .setCanManageClients(true) - .setAdsPersonalizationEnabled(BoolValue.newBuilder().build()) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setCreatorEmailAddress("creatorEmailAddress67752708") - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - PropertyName parent = PropertyName.of("[PROPERTY]"); - GoogleAdsLink googleAdsLink = GoogleAdsLink.newBuilder().build(); - - GoogleAdsLink actualResponse = client.createGoogleAdsLink(parent, googleAdsLink); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateGoogleAdsLinkRequest actualRequest = ((CreateGoogleAdsLinkRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(googleAdsLink, actualRequest.getGoogleAdsLink()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createGoogleAdsLinkExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - PropertyName parent = PropertyName.of("[PROPERTY]"); - GoogleAdsLink googleAdsLink = GoogleAdsLink.newBuilder().build(); - client.createGoogleAdsLink(parent, googleAdsLink); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createGoogleAdsLinkTest2() throws Exception { - GoogleAdsLink expectedResponse = - GoogleAdsLink.newBuilder() - .setName(GoogleAdsLinkName.of("[PROPERTY]", "[GOOGLE_ADS_LINK]").toString()) - .setCustomerId("customerId-1581184615") - .setCanManageClients(true) - .setAdsPersonalizationEnabled(BoolValue.newBuilder().build()) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setCreatorEmailAddress("creatorEmailAddress67752708") - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - String parent = "parent-995424086"; - GoogleAdsLink googleAdsLink = GoogleAdsLink.newBuilder().build(); - - GoogleAdsLink actualResponse = client.createGoogleAdsLink(parent, googleAdsLink); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateGoogleAdsLinkRequest actualRequest = ((CreateGoogleAdsLinkRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertEquals(googleAdsLink, actualRequest.getGoogleAdsLink()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createGoogleAdsLinkExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - String parent = "parent-995424086"; - GoogleAdsLink googleAdsLink = GoogleAdsLink.newBuilder().build(); - client.createGoogleAdsLink(parent, googleAdsLink); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateGoogleAdsLinkTest() throws Exception { - GoogleAdsLink expectedResponse = - GoogleAdsLink.newBuilder() - .setName(GoogleAdsLinkName.of("[PROPERTY]", "[GOOGLE_ADS_LINK]").toString()) - .setCustomerId("customerId-1581184615") - .setCanManageClients(true) - .setAdsPersonalizationEnabled(BoolValue.newBuilder().build()) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setCreatorEmailAddress("creatorEmailAddress67752708") - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - GoogleAdsLink googleAdsLink = GoogleAdsLink.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - GoogleAdsLink actualResponse = client.updateGoogleAdsLink(googleAdsLink, updateMask); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - UpdateGoogleAdsLinkRequest actualRequest = ((UpdateGoogleAdsLinkRequest) actualRequests.get(0)); - - Assert.assertEquals(googleAdsLink, actualRequest.getGoogleAdsLink()); - Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void updateGoogleAdsLinkExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - GoogleAdsLink googleAdsLink = GoogleAdsLink.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateGoogleAdsLink(googleAdsLink, updateMask); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteGoogleAdsLinkTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - GoogleAdsLinkName name = GoogleAdsLinkName.of("[PROPERTY]", "[GOOGLE_ADS_LINK]"); - - client.deleteGoogleAdsLink(name); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteGoogleAdsLinkRequest actualRequest = ((DeleteGoogleAdsLinkRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteGoogleAdsLinkExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - GoogleAdsLinkName name = GoogleAdsLinkName.of("[PROPERTY]", "[GOOGLE_ADS_LINK]"); - client.deleteGoogleAdsLink(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteGoogleAdsLinkTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - String name = "name3373707"; - - client.deleteGoogleAdsLink(name); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteGoogleAdsLinkRequest actualRequest = ((DeleteGoogleAdsLinkRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteGoogleAdsLinkExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - String name = "name3373707"; - client.deleteGoogleAdsLink(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listGoogleAdsLinksTest() throws Exception { - GoogleAdsLink responsesElement = GoogleAdsLink.newBuilder().build(); - ListGoogleAdsLinksResponse expectedResponse = - ListGoogleAdsLinksResponse.newBuilder() - .setNextPageToken("") - .addAllGoogleAdsLinks(Arrays.asList(responsesElement)) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - PropertyName parent = PropertyName.of("[PROPERTY]"); - - ListGoogleAdsLinksPagedResponse pagedListResponse = client.listGoogleAdsLinks(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getGoogleAdsLinksList().get(0), resources.get(0)); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListGoogleAdsLinksRequest actualRequest = ((ListGoogleAdsLinksRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listGoogleAdsLinksExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - PropertyName parent = PropertyName.of("[PROPERTY]"); - client.listGoogleAdsLinks(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listGoogleAdsLinksTest2() throws Exception { - GoogleAdsLink responsesElement = GoogleAdsLink.newBuilder().build(); - ListGoogleAdsLinksResponse expectedResponse = - ListGoogleAdsLinksResponse.newBuilder() - .setNextPageToken("") - .addAllGoogleAdsLinks(Arrays.asList(responsesElement)) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - String parent = "parent-995424086"; - - ListGoogleAdsLinksPagedResponse pagedListResponse = client.listGoogleAdsLinks(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getGoogleAdsLinksList().get(0), resources.get(0)); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListGoogleAdsLinksRequest actualRequest = ((ListGoogleAdsLinksRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listGoogleAdsLinksExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - String parent = "parent-995424086"; - client.listGoogleAdsLinks(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getDataSharingSettingsTest() throws Exception { - DataSharingSettings expectedResponse = - DataSharingSettings.newBuilder() - .setName(DataSharingSettingsName.of("[ACCOUNT]").toString()) - .setSharingWithGoogleSupportEnabled(true) - .setSharingWithGoogleAssignedSalesEnabled(true) - .setSharingWithGoogleAnySalesEnabled(true) - .setSharingWithGoogleProductsEnabled(true) - .setSharingWithOthersEnabled(true) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - DataSharingSettingsName name = DataSharingSettingsName.of("[ACCOUNT]"); - - DataSharingSettings actualResponse = client.getDataSharingSettings(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetDataSharingSettingsRequest actualRequest = - ((GetDataSharingSettingsRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getDataSharingSettingsExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - DataSharingSettingsName name = DataSharingSettingsName.of("[ACCOUNT]"); - client.getDataSharingSettings(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getDataSharingSettingsTest2() throws Exception { - DataSharingSettings expectedResponse = - DataSharingSettings.newBuilder() - .setName(DataSharingSettingsName.of("[ACCOUNT]").toString()) - .setSharingWithGoogleSupportEnabled(true) - .setSharingWithGoogleAssignedSalesEnabled(true) - .setSharingWithGoogleAnySalesEnabled(true) - .setSharingWithGoogleProductsEnabled(true) - .setSharingWithOthersEnabled(true) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - String name = "name3373707"; - - DataSharingSettings actualResponse = client.getDataSharingSettings(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetDataSharingSettingsRequest actualRequest = - ((GetDataSharingSettingsRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getDataSharingSettingsExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - String name = "name3373707"; - client.getDataSharingSettings(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getMeasurementProtocolSecretTest() throws Exception { - MeasurementProtocolSecret expectedResponse = - MeasurementProtocolSecret.newBuilder() - .setName( - MeasurementProtocolSecretName.of( - "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]") - .toString()) - .setDisplayName("displayName1714148973") - .setSecretValue("secretValue-2044460895") - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - MeasurementProtocolSecretName name = - MeasurementProtocolSecretName.of( - "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]"); - - MeasurementProtocolSecret actualResponse = client.getMeasurementProtocolSecret(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetMeasurementProtocolSecretRequest actualRequest = - ((GetMeasurementProtocolSecretRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getMeasurementProtocolSecretExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - MeasurementProtocolSecretName name = - MeasurementProtocolSecretName.of( - "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]"); - client.getMeasurementProtocolSecret(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getMeasurementProtocolSecretTest2() throws Exception { - MeasurementProtocolSecret expectedResponse = - MeasurementProtocolSecret.newBuilder() - .setName( - MeasurementProtocolSecretName.of( - "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]") - .toString()) - .setDisplayName("displayName1714148973") - .setSecretValue("secretValue-2044460895") - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - String name = "name3373707"; - - MeasurementProtocolSecret actualResponse = client.getMeasurementProtocolSecret(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetMeasurementProtocolSecretRequest actualRequest = - ((GetMeasurementProtocolSecretRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getMeasurementProtocolSecretExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - String name = "name3373707"; - client.getMeasurementProtocolSecret(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listMeasurementProtocolSecretsTest() throws Exception { - MeasurementProtocolSecret responsesElement = MeasurementProtocolSecret.newBuilder().build(); - ListMeasurementProtocolSecretsResponse expectedResponse = - ListMeasurementProtocolSecretsResponse.newBuilder() - .setNextPageToken("") - .addAllMeasurementProtocolSecrets(Arrays.asList(responsesElement)) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - DataStreamName parent = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]"); - - ListMeasurementProtocolSecretsPagedResponse pagedListResponse = - client.listMeasurementProtocolSecrets(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals( - expectedResponse.getMeasurementProtocolSecretsList().get(0), resources.get(0)); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListMeasurementProtocolSecretsRequest actualRequest = - ((ListMeasurementProtocolSecretsRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listMeasurementProtocolSecretsExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - DataStreamName parent = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]"); - client.listMeasurementProtocolSecrets(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listMeasurementProtocolSecretsTest2() throws Exception { - MeasurementProtocolSecret responsesElement = MeasurementProtocolSecret.newBuilder().build(); - ListMeasurementProtocolSecretsResponse expectedResponse = - ListMeasurementProtocolSecretsResponse.newBuilder() - .setNextPageToken("") - .addAllMeasurementProtocolSecrets(Arrays.asList(responsesElement)) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - String parent = "parent-995424086"; - - ListMeasurementProtocolSecretsPagedResponse pagedListResponse = - client.listMeasurementProtocolSecrets(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals( - expectedResponse.getMeasurementProtocolSecretsList().get(0), resources.get(0)); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListMeasurementProtocolSecretsRequest actualRequest = - ((ListMeasurementProtocolSecretsRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listMeasurementProtocolSecretsExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - String parent = "parent-995424086"; - client.listMeasurementProtocolSecrets(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createMeasurementProtocolSecretTest() throws Exception { - MeasurementProtocolSecret expectedResponse = - MeasurementProtocolSecret.newBuilder() - .setName( - MeasurementProtocolSecretName.of( - "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]") - .toString()) - .setDisplayName("displayName1714148973") - .setSecretValue("secretValue-2044460895") - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - DataStreamName parent = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]"); - MeasurementProtocolSecret measurementProtocolSecret = - MeasurementProtocolSecret.newBuilder().build(); - - MeasurementProtocolSecret actualResponse = - client.createMeasurementProtocolSecret(parent, measurementProtocolSecret); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateMeasurementProtocolSecretRequest actualRequest = - ((CreateMeasurementProtocolSecretRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(measurementProtocolSecret, actualRequest.getMeasurementProtocolSecret()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createMeasurementProtocolSecretExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - DataStreamName parent = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]"); - MeasurementProtocolSecret measurementProtocolSecret = - MeasurementProtocolSecret.newBuilder().build(); - client.createMeasurementProtocolSecret(parent, measurementProtocolSecret); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createMeasurementProtocolSecretTest2() throws Exception { - MeasurementProtocolSecret expectedResponse = - MeasurementProtocolSecret.newBuilder() - .setName( - MeasurementProtocolSecretName.of( - "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]") - .toString()) - .setDisplayName("displayName1714148973") - .setSecretValue("secretValue-2044460895") - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - String parent = "parent-995424086"; - MeasurementProtocolSecret measurementProtocolSecret = - MeasurementProtocolSecret.newBuilder().build(); - - MeasurementProtocolSecret actualResponse = - client.createMeasurementProtocolSecret(parent, measurementProtocolSecret); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateMeasurementProtocolSecretRequest actualRequest = - ((CreateMeasurementProtocolSecretRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertEquals(measurementProtocolSecret, actualRequest.getMeasurementProtocolSecret()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createMeasurementProtocolSecretExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - String parent = "parent-995424086"; - MeasurementProtocolSecret measurementProtocolSecret = - MeasurementProtocolSecret.newBuilder().build(); - client.createMeasurementProtocolSecret(parent, measurementProtocolSecret); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteMeasurementProtocolSecretTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - MeasurementProtocolSecretName name = - MeasurementProtocolSecretName.of( - "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]"); - - client.deleteMeasurementProtocolSecret(name); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteMeasurementProtocolSecretRequest actualRequest = - ((DeleteMeasurementProtocolSecretRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteMeasurementProtocolSecretExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - MeasurementProtocolSecretName name = - MeasurementProtocolSecretName.of( - "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]"); - client.deleteMeasurementProtocolSecret(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteMeasurementProtocolSecretTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - String name = "name3373707"; - - client.deleteMeasurementProtocolSecret(name); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteMeasurementProtocolSecretRequest actualRequest = - ((DeleteMeasurementProtocolSecretRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteMeasurementProtocolSecretExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - String name = "name3373707"; - client.deleteMeasurementProtocolSecret(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateMeasurementProtocolSecretTest() throws Exception { - MeasurementProtocolSecret expectedResponse = - MeasurementProtocolSecret.newBuilder() - .setName( - MeasurementProtocolSecretName.of( - "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]") - .toString()) - .setDisplayName("displayName1714148973") - .setSecretValue("secretValue-2044460895") - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - MeasurementProtocolSecret measurementProtocolSecret = - MeasurementProtocolSecret.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - MeasurementProtocolSecret actualResponse = - client.updateMeasurementProtocolSecret(measurementProtocolSecret, updateMask); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - UpdateMeasurementProtocolSecretRequest actualRequest = - ((UpdateMeasurementProtocolSecretRequest) actualRequests.get(0)); - - Assert.assertEquals(measurementProtocolSecret, actualRequest.getMeasurementProtocolSecret()); - Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void updateMeasurementProtocolSecretExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - MeasurementProtocolSecret measurementProtocolSecret = - MeasurementProtocolSecret.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateMeasurementProtocolSecret(measurementProtocolSecret, updateMask); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void acknowledgeUserDataCollectionTest() throws Exception { - AcknowledgeUserDataCollectionResponse expectedResponse = - AcknowledgeUserDataCollectionResponse.newBuilder().build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - AcknowledgeUserDataCollectionRequest request = - AcknowledgeUserDataCollectionRequest.newBuilder() - .setProperty(PropertyName.of("[PROPERTY]").toString()) - .setAcknowledgement("acknowledgement1769490938") - .build(); - - AcknowledgeUserDataCollectionResponse actualResponse = - client.acknowledgeUserDataCollection(request); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - AcknowledgeUserDataCollectionRequest actualRequest = - ((AcknowledgeUserDataCollectionRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getProperty(), actualRequest.getProperty()); - Assert.assertEquals(request.getAcknowledgement(), actualRequest.getAcknowledgement()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void acknowledgeUserDataCollectionExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - AcknowledgeUserDataCollectionRequest request = - AcknowledgeUserDataCollectionRequest.newBuilder() - .setProperty(PropertyName.of("[PROPERTY]").toString()) - .setAcknowledgement("acknowledgement1769490938") - .build(); - client.acknowledgeUserDataCollection(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void searchChangeHistoryEventsTest() throws Exception { - ChangeHistoryEvent responsesElement = ChangeHistoryEvent.newBuilder().build(); - SearchChangeHistoryEventsResponse expectedResponse = - SearchChangeHistoryEventsResponse.newBuilder() - .setNextPageToken("") - .addAllChangeHistoryEvents(Arrays.asList(responsesElement)) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - SearchChangeHistoryEventsRequest request = - SearchChangeHistoryEventsRequest.newBuilder() - .setAccount(AccountName.of("[ACCOUNT]").toString()) - .setProperty(PropertyName.of("[PROPERTY]").toString()) - .addAllResourceType(new ArrayList()) - .addAllAction(new ArrayList()) - .addAllActorEmail(new ArrayList()) - .setEarliestChangeTime(Timestamp.newBuilder().build()) - .setLatestChangeTime(Timestamp.newBuilder().build()) - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .build(); - - SearchChangeHistoryEventsPagedResponse pagedListResponse = - client.searchChangeHistoryEvents(request); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getChangeHistoryEventsList().get(0), resources.get(0)); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - SearchChangeHistoryEventsRequest actualRequest = - ((SearchChangeHistoryEventsRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getAccount(), actualRequest.getAccount()); - Assert.assertEquals(request.getProperty(), actualRequest.getProperty()); - Assert.assertEquals(request.getResourceTypeList(), actualRequest.getResourceTypeList()); - Assert.assertEquals(request.getActionList(), actualRequest.getActionList()); - Assert.assertEquals(request.getActorEmailList(), actualRequest.getActorEmailList()); - Assert.assertEquals(request.getEarliestChangeTime(), actualRequest.getEarliestChangeTime()); - Assert.assertEquals(request.getLatestChangeTime(), actualRequest.getLatestChangeTime()); - Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize()); - Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void searchChangeHistoryEventsExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - SearchChangeHistoryEventsRequest request = - SearchChangeHistoryEventsRequest.newBuilder() - .setAccount(AccountName.of("[ACCOUNT]").toString()) - .setProperty(PropertyName.of("[PROPERTY]").toString()) - .addAllResourceType(new ArrayList()) - .addAllAction(new ArrayList()) - .addAllActorEmail(new ArrayList()) - .setEarliestChangeTime(Timestamp.newBuilder().build()) - .setLatestChangeTime(Timestamp.newBuilder().build()) - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .build(); - client.searchChangeHistoryEvents(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createConversionEventTest() throws Exception { - ConversionEvent expectedResponse = - ConversionEvent.newBuilder() - .setName(ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]").toString()) - .setEventName("eventName31228997") - .setCreateTime(Timestamp.newBuilder().build()) - .setDeletable(true) - .setCustom(true) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - PropertyName parent = PropertyName.of("[PROPERTY]"); - ConversionEvent conversionEvent = ConversionEvent.newBuilder().build(); - - ConversionEvent actualResponse = client.createConversionEvent(parent, conversionEvent); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateConversionEventRequest actualRequest = - ((CreateConversionEventRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(conversionEvent, actualRequest.getConversionEvent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createConversionEventExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - PropertyName parent = PropertyName.of("[PROPERTY]"); - ConversionEvent conversionEvent = ConversionEvent.newBuilder().build(); - client.createConversionEvent(parent, conversionEvent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createConversionEventTest2() throws Exception { - ConversionEvent expectedResponse = - ConversionEvent.newBuilder() - .setName(ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]").toString()) - .setEventName("eventName31228997") - .setCreateTime(Timestamp.newBuilder().build()) - .setDeletable(true) - .setCustom(true) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - String parent = "parent-995424086"; - ConversionEvent conversionEvent = ConversionEvent.newBuilder().build(); - - ConversionEvent actualResponse = client.createConversionEvent(parent, conversionEvent); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateConversionEventRequest actualRequest = - ((CreateConversionEventRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertEquals(conversionEvent, actualRequest.getConversionEvent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createConversionEventExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - String parent = "parent-995424086"; - ConversionEvent conversionEvent = ConversionEvent.newBuilder().build(); - client.createConversionEvent(parent, conversionEvent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getConversionEventTest() throws Exception { - ConversionEvent expectedResponse = - ConversionEvent.newBuilder() - .setName(ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]").toString()) - .setEventName("eventName31228997") - .setCreateTime(Timestamp.newBuilder().build()) - .setDeletable(true) - .setCustom(true) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - ConversionEventName name = ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]"); - - ConversionEvent actualResponse = client.getConversionEvent(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetConversionEventRequest actualRequest = ((GetConversionEventRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getConversionEventExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - ConversionEventName name = ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]"); - client.getConversionEvent(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getConversionEventTest2() throws Exception { - ConversionEvent expectedResponse = - ConversionEvent.newBuilder() - .setName(ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]").toString()) - .setEventName("eventName31228997") - .setCreateTime(Timestamp.newBuilder().build()) - .setDeletable(true) - .setCustom(true) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - String name = "name3373707"; - - ConversionEvent actualResponse = client.getConversionEvent(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetConversionEventRequest actualRequest = ((GetConversionEventRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getConversionEventExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - String name = "name3373707"; - client.getConversionEvent(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteConversionEventTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - ConversionEventName name = ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]"); - - client.deleteConversionEvent(name); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteConversionEventRequest actualRequest = - ((DeleteConversionEventRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteConversionEventExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - ConversionEventName name = ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]"); - client.deleteConversionEvent(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteConversionEventTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - String name = "name3373707"; - - client.deleteConversionEvent(name); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteConversionEventRequest actualRequest = - ((DeleteConversionEventRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteConversionEventExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - String name = "name3373707"; - client.deleteConversionEvent(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listConversionEventsTest() throws Exception { - ConversionEvent responsesElement = ConversionEvent.newBuilder().build(); - ListConversionEventsResponse expectedResponse = - ListConversionEventsResponse.newBuilder() - .setNextPageToken("") - .addAllConversionEvents(Arrays.asList(responsesElement)) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - PropertyName parent = PropertyName.of("[PROPERTY]"); - - ListConversionEventsPagedResponse pagedListResponse = client.listConversionEvents(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getConversionEventsList().get(0), resources.get(0)); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListConversionEventsRequest actualRequest = - ((ListConversionEventsRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listConversionEventsExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - PropertyName parent = PropertyName.of("[PROPERTY]"); - client.listConversionEvents(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listConversionEventsTest2() throws Exception { - ConversionEvent responsesElement = ConversionEvent.newBuilder().build(); - ListConversionEventsResponse expectedResponse = - ListConversionEventsResponse.newBuilder() - .setNextPageToken("") - .addAllConversionEvents(Arrays.asList(responsesElement)) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - String parent = "parent-995424086"; - - ListConversionEventsPagedResponse pagedListResponse = client.listConversionEvents(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getConversionEventsList().get(0), resources.get(0)); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListConversionEventsRequest actualRequest = - ((ListConversionEventsRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listConversionEventsExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - String parent = "parent-995424086"; - client.listConversionEvents(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createCustomDimensionTest() throws Exception { - CustomDimension expectedResponse = - CustomDimension.newBuilder() - .setName(CustomDimensionName.of("[PROPERTY]", "[CUSTOM_DIMENSION]").toString()) - .setParameterName("parameterName-379607596") - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setDisallowAdsPersonalization(true) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - PropertyName parent = PropertyName.of("[PROPERTY]"); - CustomDimension customDimension = CustomDimension.newBuilder().build(); - - CustomDimension actualResponse = client.createCustomDimension(parent, customDimension); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateCustomDimensionRequest actualRequest = - ((CreateCustomDimensionRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(customDimension, actualRequest.getCustomDimension()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createCustomDimensionExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - PropertyName parent = PropertyName.of("[PROPERTY]"); - CustomDimension customDimension = CustomDimension.newBuilder().build(); - client.createCustomDimension(parent, customDimension); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createCustomDimensionTest2() throws Exception { - CustomDimension expectedResponse = - CustomDimension.newBuilder() - .setName(CustomDimensionName.of("[PROPERTY]", "[CUSTOM_DIMENSION]").toString()) - .setParameterName("parameterName-379607596") - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setDisallowAdsPersonalization(true) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - String parent = "parent-995424086"; - CustomDimension customDimension = CustomDimension.newBuilder().build(); - - CustomDimension actualResponse = client.createCustomDimension(parent, customDimension); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateCustomDimensionRequest actualRequest = - ((CreateCustomDimensionRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertEquals(customDimension, actualRequest.getCustomDimension()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createCustomDimensionExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - String parent = "parent-995424086"; - CustomDimension customDimension = CustomDimension.newBuilder().build(); - client.createCustomDimension(parent, customDimension); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateCustomDimensionTest() throws Exception { - CustomDimension expectedResponse = - CustomDimension.newBuilder() - .setName(CustomDimensionName.of("[PROPERTY]", "[CUSTOM_DIMENSION]").toString()) - .setParameterName("parameterName-379607596") - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setDisallowAdsPersonalization(true) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - CustomDimension customDimension = CustomDimension.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - CustomDimension actualResponse = client.updateCustomDimension(customDimension, updateMask); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - UpdateCustomDimensionRequest actualRequest = - ((UpdateCustomDimensionRequest) actualRequests.get(0)); - - Assert.assertEquals(customDimension, actualRequest.getCustomDimension()); - Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void updateCustomDimensionExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - CustomDimension customDimension = CustomDimension.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateCustomDimension(customDimension, updateMask); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listCustomDimensionsTest() throws Exception { - CustomDimension responsesElement = CustomDimension.newBuilder().build(); - ListCustomDimensionsResponse expectedResponse = - ListCustomDimensionsResponse.newBuilder() - .setNextPageToken("") - .addAllCustomDimensions(Arrays.asList(responsesElement)) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - PropertyName parent = PropertyName.of("[PROPERTY]"); - - ListCustomDimensionsPagedResponse pagedListResponse = client.listCustomDimensions(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getCustomDimensionsList().get(0), resources.get(0)); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListCustomDimensionsRequest actualRequest = - ((ListCustomDimensionsRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listCustomDimensionsExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - PropertyName parent = PropertyName.of("[PROPERTY]"); - client.listCustomDimensions(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listCustomDimensionsTest2() throws Exception { - CustomDimension responsesElement = CustomDimension.newBuilder().build(); - ListCustomDimensionsResponse expectedResponse = - ListCustomDimensionsResponse.newBuilder() - .setNextPageToken("") - .addAllCustomDimensions(Arrays.asList(responsesElement)) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - String parent = "parent-995424086"; - - ListCustomDimensionsPagedResponse pagedListResponse = client.listCustomDimensions(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getCustomDimensionsList().get(0), resources.get(0)); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListCustomDimensionsRequest actualRequest = - ((ListCustomDimensionsRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listCustomDimensionsExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - String parent = "parent-995424086"; - client.listCustomDimensions(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void archiveCustomDimensionTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - CustomDimensionName name = CustomDimensionName.of("[PROPERTY]", "[CUSTOM_DIMENSION]"); - - client.archiveCustomDimension(name); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ArchiveCustomDimensionRequest actualRequest = - ((ArchiveCustomDimensionRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void archiveCustomDimensionExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - CustomDimensionName name = CustomDimensionName.of("[PROPERTY]", "[CUSTOM_DIMENSION]"); - client.archiveCustomDimension(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void archiveCustomDimensionTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - String name = "name3373707"; - - client.archiveCustomDimension(name); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ArchiveCustomDimensionRequest actualRequest = - ((ArchiveCustomDimensionRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void archiveCustomDimensionExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - String name = "name3373707"; - client.archiveCustomDimension(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getCustomDimensionTest() throws Exception { - CustomDimension expectedResponse = - CustomDimension.newBuilder() - .setName(CustomDimensionName.of("[PROPERTY]", "[CUSTOM_DIMENSION]").toString()) - .setParameterName("parameterName-379607596") - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setDisallowAdsPersonalization(true) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - CustomDimensionName name = CustomDimensionName.of("[PROPERTY]", "[CUSTOM_DIMENSION]"); - - CustomDimension actualResponse = client.getCustomDimension(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetCustomDimensionRequest actualRequest = ((GetCustomDimensionRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getCustomDimensionExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - CustomDimensionName name = CustomDimensionName.of("[PROPERTY]", "[CUSTOM_DIMENSION]"); - client.getCustomDimension(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getCustomDimensionTest2() throws Exception { - CustomDimension expectedResponse = - CustomDimension.newBuilder() - .setName(CustomDimensionName.of("[PROPERTY]", "[CUSTOM_DIMENSION]").toString()) - .setParameterName("parameterName-379607596") - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setDisallowAdsPersonalization(true) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - String name = "name3373707"; - - CustomDimension actualResponse = client.getCustomDimension(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetCustomDimensionRequest actualRequest = ((GetCustomDimensionRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getCustomDimensionExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - String name = "name3373707"; - client.getCustomDimension(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createCustomMetricTest() throws Exception { - CustomMetric expectedResponse = - CustomMetric.newBuilder() - .setName(CustomMetricName.of("[PROPERTY]", "[CUSTOM_METRIC]").toString()) - .setParameterName("parameterName-379607596") - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .addAllRestrictedMetricType(new ArrayList()) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - PropertyName parent = PropertyName.of("[PROPERTY]"); - CustomMetric customMetric = CustomMetric.newBuilder().build(); - - CustomMetric actualResponse = client.createCustomMetric(parent, customMetric); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateCustomMetricRequest actualRequest = ((CreateCustomMetricRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(customMetric, actualRequest.getCustomMetric()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createCustomMetricExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - PropertyName parent = PropertyName.of("[PROPERTY]"); - CustomMetric customMetric = CustomMetric.newBuilder().build(); - client.createCustomMetric(parent, customMetric); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createCustomMetricTest2() throws Exception { - CustomMetric expectedResponse = - CustomMetric.newBuilder() - .setName(CustomMetricName.of("[PROPERTY]", "[CUSTOM_METRIC]").toString()) - .setParameterName("parameterName-379607596") - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .addAllRestrictedMetricType(new ArrayList()) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - String parent = "parent-995424086"; - CustomMetric customMetric = CustomMetric.newBuilder().build(); - - CustomMetric actualResponse = client.createCustomMetric(parent, customMetric); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateCustomMetricRequest actualRequest = ((CreateCustomMetricRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertEquals(customMetric, actualRequest.getCustomMetric()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createCustomMetricExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - String parent = "parent-995424086"; - CustomMetric customMetric = CustomMetric.newBuilder().build(); - client.createCustomMetric(parent, customMetric); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateCustomMetricTest() throws Exception { - CustomMetric expectedResponse = - CustomMetric.newBuilder() - .setName(CustomMetricName.of("[PROPERTY]", "[CUSTOM_METRIC]").toString()) - .setParameterName("parameterName-379607596") - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .addAllRestrictedMetricType(new ArrayList()) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - CustomMetric customMetric = CustomMetric.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - CustomMetric actualResponse = client.updateCustomMetric(customMetric, updateMask); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - UpdateCustomMetricRequest actualRequest = ((UpdateCustomMetricRequest) actualRequests.get(0)); - - Assert.assertEquals(customMetric, actualRequest.getCustomMetric()); - Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void updateCustomMetricExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - CustomMetric customMetric = CustomMetric.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateCustomMetric(customMetric, updateMask); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listCustomMetricsTest() throws Exception { - CustomMetric responsesElement = CustomMetric.newBuilder().build(); - ListCustomMetricsResponse expectedResponse = - ListCustomMetricsResponse.newBuilder() - .setNextPageToken("") - .addAllCustomMetrics(Arrays.asList(responsesElement)) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - PropertyName parent = PropertyName.of("[PROPERTY]"); - - ListCustomMetricsPagedResponse pagedListResponse = client.listCustomMetrics(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getCustomMetricsList().get(0), resources.get(0)); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListCustomMetricsRequest actualRequest = ((ListCustomMetricsRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listCustomMetricsExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - PropertyName parent = PropertyName.of("[PROPERTY]"); - client.listCustomMetrics(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listCustomMetricsTest2() throws Exception { - CustomMetric responsesElement = CustomMetric.newBuilder().build(); - ListCustomMetricsResponse expectedResponse = - ListCustomMetricsResponse.newBuilder() - .setNextPageToken("") - .addAllCustomMetrics(Arrays.asList(responsesElement)) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - String parent = "parent-995424086"; - - ListCustomMetricsPagedResponse pagedListResponse = client.listCustomMetrics(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getCustomMetricsList().get(0), resources.get(0)); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListCustomMetricsRequest actualRequest = ((ListCustomMetricsRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listCustomMetricsExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - String parent = "parent-995424086"; - client.listCustomMetrics(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void archiveCustomMetricTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - CustomMetricName name = CustomMetricName.of("[PROPERTY]", "[CUSTOM_METRIC]"); - - client.archiveCustomMetric(name); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ArchiveCustomMetricRequest actualRequest = ((ArchiveCustomMetricRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void archiveCustomMetricExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - CustomMetricName name = CustomMetricName.of("[PROPERTY]", "[CUSTOM_METRIC]"); - client.archiveCustomMetric(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void archiveCustomMetricTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - String name = "name3373707"; - - client.archiveCustomMetric(name); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ArchiveCustomMetricRequest actualRequest = ((ArchiveCustomMetricRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void archiveCustomMetricExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - String name = "name3373707"; - client.archiveCustomMetric(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getCustomMetricTest() throws Exception { - CustomMetric expectedResponse = - CustomMetric.newBuilder() - .setName(CustomMetricName.of("[PROPERTY]", "[CUSTOM_METRIC]").toString()) - .setParameterName("parameterName-379607596") - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .addAllRestrictedMetricType(new ArrayList()) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - CustomMetricName name = CustomMetricName.of("[PROPERTY]", "[CUSTOM_METRIC]"); - - CustomMetric actualResponse = client.getCustomMetric(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetCustomMetricRequest actualRequest = ((GetCustomMetricRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getCustomMetricExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - CustomMetricName name = CustomMetricName.of("[PROPERTY]", "[CUSTOM_METRIC]"); - client.getCustomMetric(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getCustomMetricTest2() throws Exception { - CustomMetric expectedResponse = - CustomMetric.newBuilder() - .setName(CustomMetricName.of("[PROPERTY]", "[CUSTOM_METRIC]").toString()) - .setParameterName("parameterName-379607596") - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .addAllRestrictedMetricType(new ArrayList()) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - String name = "name3373707"; - - CustomMetric actualResponse = client.getCustomMetric(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetCustomMetricRequest actualRequest = ((GetCustomMetricRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getCustomMetricExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - String name = "name3373707"; - client.getCustomMetric(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getDataRetentionSettingsTest() throws Exception { - DataRetentionSettings expectedResponse = - DataRetentionSettings.newBuilder() - .setName(DataRetentionSettingsName.of("[PROPERTY]").toString()) - .setResetUserDataOnNewActivity(true) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - DataRetentionSettingsName name = DataRetentionSettingsName.of("[PROPERTY]"); - - DataRetentionSettings actualResponse = client.getDataRetentionSettings(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetDataRetentionSettingsRequest actualRequest = - ((GetDataRetentionSettingsRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getDataRetentionSettingsExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - DataRetentionSettingsName name = DataRetentionSettingsName.of("[PROPERTY]"); - client.getDataRetentionSettings(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getDataRetentionSettingsTest2() throws Exception { - DataRetentionSettings expectedResponse = - DataRetentionSettings.newBuilder() - .setName(DataRetentionSettingsName.of("[PROPERTY]").toString()) - .setResetUserDataOnNewActivity(true) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - String name = "name3373707"; - - DataRetentionSettings actualResponse = client.getDataRetentionSettings(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetDataRetentionSettingsRequest actualRequest = - ((GetDataRetentionSettingsRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getDataRetentionSettingsExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - String name = "name3373707"; - client.getDataRetentionSettings(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateDataRetentionSettingsTest() throws Exception { - DataRetentionSettings expectedResponse = - DataRetentionSettings.newBuilder() - .setName(DataRetentionSettingsName.of("[PROPERTY]").toString()) - .setResetUserDataOnNewActivity(true) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - DataRetentionSettings dataRetentionSettings = DataRetentionSettings.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - DataRetentionSettings actualResponse = - client.updateDataRetentionSettings(dataRetentionSettings, updateMask); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - UpdateDataRetentionSettingsRequest actualRequest = - ((UpdateDataRetentionSettingsRequest) actualRequests.get(0)); - - Assert.assertEquals(dataRetentionSettings, actualRequest.getDataRetentionSettings()); - Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void updateDataRetentionSettingsExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - DataRetentionSettings dataRetentionSettings = DataRetentionSettings.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateDataRetentionSettings(dataRetentionSettings, updateMask); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createDataStreamTest() throws Exception { - DataStream expectedResponse = - DataStream.newBuilder() - .setName(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString()) - .setDisplayName("displayName1714148973") - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - PropertyName parent = PropertyName.of("[PROPERTY]"); - DataStream dataStream = DataStream.newBuilder().build(); - - DataStream actualResponse = client.createDataStream(parent, dataStream); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateDataStreamRequest actualRequest = ((CreateDataStreamRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(dataStream, actualRequest.getDataStream()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createDataStreamExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - PropertyName parent = PropertyName.of("[PROPERTY]"); - DataStream dataStream = DataStream.newBuilder().build(); - client.createDataStream(parent, dataStream); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createDataStreamTest2() throws Exception { - DataStream expectedResponse = - DataStream.newBuilder() - .setName(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString()) - .setDisplayName("displayName1714148973") - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - String parent = "parent-995424086"; - DataStream dataStream = DataStream.newBuilder().build(); - - DataStream actualResponse = client.createDataStream(parent, dataStream); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateDataStreamRequest actualRequest = ((CreateDataStreamRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertEquals(dataStream, actualRequest.getDataStream()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createDataStreamExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - String parent = "parent-995424086"; - DataStream dataStream = DataStream.newBuilder().build(); - client.createDataStream(parent, dataStream); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteDataStreamTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - DataStreamName name = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]"); - - client.deleteDataStream(name); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteDataStreamRequest actualRequest = ((DeleteDataStreamRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteDataStreamExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - DataStreamName name = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]"); - client.deleteDataStream(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteDataStreamTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - String name = "name3373707"; - - client.deleteDataStream(name); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteDataStreamRequest actualRequest = ((DeleteDataStreamRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteDataStreamExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - String name = "name3373707"; - client.deleteDataStream(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateDataStreamTest() throws Exception { - DataStream expectedResponse = - DataStream.newBuilder() - .setName(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString()) - .setDisplayName("displayName1714148973") - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - DataStream dataStream = DataStream.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - DataStream actualResponse = client.updateDataStream(dataStream, updateMask); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - UpdateDataStreamRequest actualRequest = ((UpdateDataStreamRequest) actualRequests.get(0)); - - Assert.assertEquals(dataStream, actualRequest.getDataStream()); - Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void updateDataStreamExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - DataStream dataStream = DataStream.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateDataStream(dataStream, updateMask); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listDataStreamsTest() throws Exception { - DataStream responsesElement = DataStream.newBuilder().build(); - ListDataStreamsResponse expectedResponse = - ListDataStreamsResponse.newBuilder() - .setNextPageToken("") - .addAllDataStreams(Arrays.asList(responsesElement)) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - PropertyName parent = PropertyName.of("[PROPERTY]"); - - ListDataStreamsPagedResponse pagedListResponse = client.listDataStreams(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getDataStreamsList().get(0), resources.get(0)); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListDataStreamsRequest actualRequest = ((ListDataStreamsRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listDataStreamsExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - PropertyName parent = PropertyName.of("[PROPERTY]"); - client.listDataStreams(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listDataStreamsTest2() throws Exception { - DataStream responsesElement = DataStream.newBuilder().build(); - ListDataStreamsResponse expectedResponse = - ListDataStreamsResponse.newBuilder() - .setNextPageToken("") - .addAllDataStreams(Arrays.asList(responsesElement)) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - String parent = "parent-995424086"; - - ListDataStreamsPagedResponse pagedListResponse = client.listDataStreams(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getDataStreamsList().get(0), resources.get(0)); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListDataStreamsRequest actualRequest = ((ListDataStreamsRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listDataStreamsExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - String parent = "parent-995424086"; - client.listDataStreams(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getDataStreamTest() throws Exception { - DataStream expectedResponse = - DataStream.newBuilder() - .setName(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString()) - .setDisplayName("displayName1714148973") - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - DataStreamName name = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]"); - - DataStream actualResponse = client.getDataStream(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetDataStreamRequest actualRequest = ((GetDataStreamRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getDataStreamExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - DataStreamName name = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]"); - client.getDataStream(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getDataStreamTest2() throws Exception { - DataStream expectedResponse = - DataStream.newBuilder() - .setName(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString()) - .setDisplayName("displayName1714148973") - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - String name = "name3373707"; - - DataStream actualResponse = client.getDataStream(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetDataStreamRequest actualRequest = ((GetDataStreamRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getDataStreamExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - String name = "name3373707"; - client.getDataStream(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } -} diff --git a/google-analytics-admin/src/test/java/com/google/analytics/admin/v1beta/MockAnalyticsAdminService.java b/google-analytics-admin/src/test/java/com/google/analytics/admin/v1beta/MockAnalyticsAdminService.java deleted file mode 100644 index a106ecac..00000000 --- a/google-analytics-admin/src/test/java/com/google/analytics/admin/v1beta/MockAnalyticsAdminService.java +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 com.google.api.core.BetaApi; -import com.google.api.gax.grpc.testing.MockGrpcService; -import com.google.protobuf.AbstractMessage; -import io.grpc.ServerServiceDefinition; -import java.util.List; -import javax.annotation.Generated; - -@BetaApi -@Generated("by gapic-generator-java") -public class MockAnalyticsAdminService implements MockGrpcService { - private final MockAnalyticsAdminServiceImpl serviceImpl; - - public MockAnalyticsAdminService() { - serviceImpl = new MockAnalyticsAdminServiceImpl(); - } - - @Override - public List getRequests() { - return serviceImpl.getRequests(); - } - - @Override - public void addResponse(AbstractMessage response) { - serviceImpl.addResponse(response); - } - - @Override - public void addException(Exception exception) { - serviceImpl.addException(exception); - } - - @Override - public ServerServiceDefinition getServiceDefinition() { - return serviceImpl.bindService(); - } - - @Override - public void reset() { - serviceImpl.reset(); - } -} diff --git a/google-analytics-admin/src/test/java/com/google/analytics/admin/v1beta/MockAnalyticsAdminServiceImpl.java b/google-analytics-admin/src/test/java/com/google/analytics/admin/v1beta/MockAnalyticsAdminServiceImpl.java deleted file mode 100644 index 34096123..00000000 --- a/google-analytics-admin/src/test/java/com/google/analytics/admin/v1beta/MockAnalyticsAdminServiceImpl.java +++ /dev/null @@ -1,1060 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 com.google.analytics.admin.v1beta.AnalyticsAdminServiceGrpc.AnalyticsAdminServiceImplBase; -import com.google.api.core.BetaApi; -import com.google.protobuf.AbstractMessage; -import com.google.protobuf.Empty; -import io.grpc.stub.StreamObserver; -import java.util.ArrayList; -import java.util.LinkedList; -import java.util.List; -import java.util.Queue; -import javax.annotation.Generated; - -@BetaApi -@Generated("by gapic-generator-java") -public class MockAnalyticsAdminServiceImpl extends AnalyticsAdminServiceImplBase { - private List requests; - private Queue responses; - - public MockAnalyticsAdminServiceImpl() { - requests = new ArrayList<>(); - responses = new LinkedList<>(); - } - - public List getRequests() { - return requests; - } - - public void addResponse(AbstractMessage response) { - responses.add(response); - } - - public void setResponses(List responses) { - this.responses = new LinkedList(responses); - } - - public void addException(Exception exception) { - responses.add(exception); - } - - public void reset() { - requests = new ArrayList<>(); - responses = new LinkedList<>(); - } - - @Override - public void getAccount(GetAccountRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Account) { - requests.add(request); - responseObserver.onNext(((Account) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method GetAccount, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Account.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void listAccounts( - ListAccountsRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof ListAccountsResponse) { - requests.add(request); - responseObserver.onNext(((ListAccountsResponse) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method ListAccounts, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - ListAccountsResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void deleteAccount(DeleteAccountRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Empty) { - requests.add(request); - responseObserver.onNext(((Empty) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method DeleteAccount, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Empty.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void updateAccount( - UpdateAccountRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Account) { - requests.add(request); - responseObserver.onNext(((Account) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method UpdateAccount, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Account.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void provisionAccountTicket( - ProvisionAccountTicketRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof ProvisionAccountTicketResponse) { - requests.add(request); - responseObserver.onNext(((ProvisionAccountTicketResponse) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method ProvisionAccountTicket, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - ProvisionAccountTicketResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void listAccountSummaries( - ListAccountSummariesRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof ListAccountSummariesResponse) { - requests.add(request); - responseObserver.onNext(((ListAccountSummariesResponse) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method ListAccountSummaries, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - ListAccountSummariesResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void getProperty(GetPropertyRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Property) { - requests.add(request); - responseObserver.onNext(((Property) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method GetProperty, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Property.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void listProperties( - ListPropertiesRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof ListPropertiesResponse) { - requests.add(request); - responseObserver.onNext(((ListPropertiesResponse) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method ListProperties, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - ListPropertiesResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void createProperty( - CreatePropertyRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Property) { - requests.add(request); - responseObserver.onNext(((Property) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method CreateProperty, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Property.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void deleteProperty( - DeletePropertyRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Property) { - requests.add(request); - responseObserver.onNext(((Property) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method DeleteProperty, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Property.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void updateProperty( - UpdatePropertyRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Property) { - requests.add(request); - responseObserver.onNext(((Property) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method UpdateProperty, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Property.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void createFirebaseLink( - CreateFirebaseLinkRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof FirebaseLink) { - requests.add(request); - responseObserver.onNext(((FirebaseLink) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method CreateFirebaseLink, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - FirebaseLink.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void deleteFirebaseLink( - DeleteFirebaseLinkRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Empty) { - requests.add(request); - responseObserver.onNext(((Empty) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method DeleteFirebaseLink, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Empty.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void listFirebaseLinks( - ListFirebaseLinksRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof ListFirebaseLinksResponse) { - requests.add(request); - responseObserver.onNext(((ListFirebaseLinksResponse) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method ListFirebaseLinks, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - ListFirebaseLinksResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void createGoogleAdsLink( - CreateGoogleAdsLinkRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof GoogleAdsLink) { - requests.add(request); - responseObserver.onNext(((GoogleAdsLink) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method CreateGoogleAdsLink, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - GoogleAdsLink.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void updateGoogleAdsLink( - UpdateGoogleAdsLinkRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof GoogleAdsLink) { - requests.add(request); - responseObserver.onNext(((GoogleAdsLink) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method UpdateGoogleAdsLink, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - GoogleAdsLink.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void deleteGoogleAdsLink( - DeleteGoogleAdsLinkRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Empty) { - requests.add(request); - responseObserver.onNext(((Empty) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method DeleteGoogleAdsLink, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Empty.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void listGoogleAdsLinks( - ListGoogleAdsLinksRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof ListGoogleAdsLinksResponse) { - requests.add(request); - responseObserver.onNext(((ListGoogleAdsLinksResponse) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method ListGoogleAdsLinks, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - ListGoogleAdsLinksResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void getDataSharingSettings( - GetDataSharingSettingsRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof DataSharingSettings) { - requests.add(request); - responseObserver.onNext(((DataSharingSettings) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method GetDataSharingSettings, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - DataSharingSettings.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void getMeasurementProtocolSecret( - GetMeasurementProtocolSecretRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof MeasurementProtocolSecret) { - requests.add(request); - responseObserver.onNext(((MeasurementProtocolSecret) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method GetMeasurementProtocolSecret, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - MeasurementProtocolSecret.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void listMeasurementProtocolSecrets( - ListMeasurementProtocolSecretsRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof ListMeasurementProtocolSecretsResponse) { - requests.add(request); - responseObserver.onNext(((ListMeasurementProtocolSecretsResponse) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method ListMeasurementProtocolSecrets, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - ListMeasurementProtocolSecretsResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void createMeasurementProtocolSecret( - CreateMeasurementProtocolSecretRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof MeasurementProtocolSecret) { - requests.add(request); - responseObserver.onNext(((MeasurementProtocolSecret) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method CreateMeasurementProtocolSecret, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - MeasurementProtocolSecret.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void deleteMeasurementProtocolSecret( - DeleteMeasurementProtocolSecretRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Empty) { - requests.add(request); - responseObserver.onNext(((Empty) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method DeleteMeasurementProtocolSecret, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Empty.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void updateMeasurementProtocolSecret( - UpdateMeasurementProtocolSecretRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof MeasurementProtocolSecret) { - requests.add(request); - responseObserver.onNext(((MeasurementProtocolSecret) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method UpdateMeasurementProtocolSecret, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - MeasurementProtocolSecret.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void acknowledgeUserDataCollection( - AcknowledgeUserDataCollectionRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof AcknowledgeUserDataCollectionResponse) { - requests.add(request); - responseObserver.onNext(((AcknowledgeUserDataCollectionResponse) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method AcknowledgeUserDataCollection, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - AcknowledgeUserDataCollectionResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void searchChangeHistoryEvents( - SearchChangeHistoryEventsRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof SearchChangeHistoryEventsResponse) { - requests.add(request); - responseObserver.onNext(((SearchChangeHistoryEventsResponse) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method SearchChangeHistoryEvents, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - SearchChangeHistoryEventsResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void createConversionEvent( - CreateConversionEventRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof ConversionEvent) { - requests.add(request); - responseObserver.onNext(((ConversionEvent) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method CreateConversionEvent, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - ConversionEvent.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void getConversionEvent( - GetConversionEventRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof ConversionEvent) { - requests.add(request); - responseObserver.onNext(((ConversionEvent) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method GetConversionEvent, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - ConversionEvent.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void deleteConversionEvent( - DeleteConversionEventRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Empty) { - requests.add(request); - responseObserver.onNext(((Empty) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method DeleteConversionEvent, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Empty.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void listConversionEvents( - ListConversionEventsRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof ListConversionEventsResponse) { - requests.add(request); - responseObserver.onNext(((ListConversionEventsResponse) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method ListConversionEvents, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - ListConversionEventsResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void createCustomDimension( - CreateCustomDimensionRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof CustomDimension) { - requests.add(request); - responseObserver.onNext(((CustomDimension) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method CreateCustomDimension, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - CustomDimension.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void updateCustomDimension( - UpdateCustomDimensionRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof CustomDimension) { - requests.add(request); - responseObserver.onNext(((CustomDimension) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method UpdateCustomDimension, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - CustomDimension.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void listCustomDimensions( - ListCustomDimensionsRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof ListCustomDimensionsResponse) { - requests.add(request); - responseObserver.onNext(((ListCustomDimensionsResponse) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method ListCustomDimensions, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - ListCustomDimensionsResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void archiveCustomDimension( - ArchiveCustomDimensionRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Empty) { - requests.add(request); - responseObserver.onNext(((Empty) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method ArchiveCustomDimension, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Empty.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void getCustomDimension( - GetCustomDimensionRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof CustomDimension) { - requests.add(request); - responseObserver.onNext(((CustomDimension) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method GetCustomDimension, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - CustomDimension.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void createCustomMetric( - CreateCustomMetricRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof CustomMetric) { - requests.add(request); - responseObserver.onNext(((CustomMetric) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method CreateCustomMetric, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - CustomMetric.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void updateCustomMetric( - UpdateCustomMetricRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof CustomMetric) { - requests.add(request); - responseObserver.onNext(((CustomMetric) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method UpdateCustomMetric, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - CustomMetric.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void listCustomMetrics( - ListCustomMetricsRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof ListCustomMetricsResponse) { - requests.add(request); - responseObserver.onNext(((ListCustomMetricsResponse) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method ListCustomMetrics, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - ListCustomMetricsResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void archiveCustomMetric( - ArchiveCustomMetricRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Empty) { - requests.add(request); - responseObserver.onNext(((Empty) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method ArchiveCustomMetric, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Empty.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void getCustomMetric( - GetCustomMetricRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof CustomMetric) { - requests.add(request); - responseObserver.onNext(((CustomMetric) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method GetCustomMetric, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - CustomMetric.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void getDataRetentionSettings( - GetDataRetentionSettingsRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof DataRetentionSettings) { - requests.add(request); - responseObserver.onNext(((DataRetentionSettings) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method GetDataRetentionSettings, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - DataRetentionSettings.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void updateDataRetentionSettings( - UpdateDataRetentionSettingsRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof DataRetentionSettings) { - requests.add(request); - responseObserver.onNext(((DataRetentionSettings) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method UpdateDataRetentionSettings, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - DataRetentionSettings.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void createDataStream( - CreateDataStreamRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof DataStream) { - requests.add(request); - responseObserver.onNext(((DataStream) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method CreateDataStream, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - DataStream.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void deleteDataStream( - DeleteDataStreamRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Empty) { - requests.add(request); - responseObserver.onNext(((Empty) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method DeleteDataStream, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Empty.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void updateDataStream( - UpdateDataStreamRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof DataStream) { - requests.add(request); - responseObserver.onNext(((DataStream) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method UpdateDataStream, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - DataStream.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void listDataStreams( - ListDataStreamsRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof ListDataStreamsResponse) { - requests.add(request); - responseObserver.onNext(((ListDataStreamsResponse) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method ListDataStreams, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - ListDataStreamsResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void getDataStream( - GetDataStreamRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof DataStream) { - requests.add(request); - responseObserver.onNext(((DataStream) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method GetDataStream, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - DataStream.class.getName(), - Exception.class.getName()))); - } - } -} diff --git a/grpc-google-analytics-admin-v1alpha/clirr-ignored-differences.xml b/grpc-google-analytics-admin-v1alpha/clirr-ignored-differences.xml deleted file mode 100644 index d025ed83..00000000 --- a/grpc-google-analytics-admin-v1alpha/clirr-ignored-differences.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - 7002 - com/google/analytics/admin/v1alpha/AnalyticsAdminServiceGrpc$AnalyticsAdminService* - * *FirebaseLink*(*) - - - 7002 - com/google/analytics/admin/v1alpha/AnalyticsAdminServiceGrpc - * getUpdateFirebaseLinkMethod(*) - - - 7002 - com/google/analytics/admin/v1alpha/AnalyticsAdminServiceGrpc* - * *EnhancedMeasurementSettings*(*) - - - 7002 - com/google/analytics/admin/v1alpha/AnalyticsAdminServiceGrpc* - * *DataStream*(*) - - \ No newline at end of file diff --git a/grpc-google-analytics-admin-v1alpha/pom.xml b/grpc-google-analytics-admin-v1alpha/pom.xml deleted file mode 100644 index 61d189fe..00000000 --- a/grpc-google-analytics-admin-v1alpha/pom.xml +++ /dev/null @@ -1,65 +0,0 @@ - - 4.0.0 - com.google.api.grpc - grpc-google-analytics-admin-v1alpha - 0.13.5 - grpc-google-analytics-admin-v1alpha - GRPC library for grpc-google-analytics-admin-v1alpha - - com.google.analytics - google-analytics-admin-parent - 0.13.5 - - - - io.grpc - grpc-api - - - io.grpc - grpc-stub - - - io.grpc - grpc-protobuf - - - com.google.protobuf - protobuf-java - - - com.google.api.grpc - proto-google-analytics-admin-v1alpha - - - com.google.guava - guava - - - - - - java9 - - [9,) - - - - javax.annotation - javax.annotation-api - - - - - - - - - org.codehaus.mojo - flatten-maven-plugin - - - - \ No newline at end of file diff --git a/grpc-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceGrpc.java b/grpc-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceGrpc.java deleted file mode 100644 index caf0adee..00000000 --- a/grpc-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceGrpc.java +++ /dev/null @@ -1,10422 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -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 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.GetUserLinkRequest, - com.google.analytics.admin.v1alpha.UserLink> - getGetUserLinkMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetUserLink", - requestType = com.google.analytics.admin.v1alpha.GetUserLinkRequest.class, - responseType = com.google.analytics.admin.v1alpha.UserLink.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.GetUserLinkRequest, - com.google.analytics.admin.v1alpha.UserLink> - getGetUserLinkMethod() { - io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.GetUserLinkRequest, - com.google.analytics.admin.v1alpha.UserLink> - getGetUserLinkMethod; - if ((getGetUserLinkMethod = AnalyticsAdminServiceGrpc.getGetUserLinkMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getGetUserLinkMethod = AnalyticsAdminServiceGrpc.getGetUserLinkMethod) == null) { - AnalyticsAdminServiceGrpc.getGetUserLinkMethod = - getGetUserLinkMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetUserLink")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.GetUserLinkRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.UserLink.getDefaultInstance())) - .setSchemaDescriptor( - new AnalyticsAdminServiceMethodDescriptorSupplier("GetUserLink")) - .build(); - } - } - } - return getGetUserLinkMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.BatchGetUserLinksRequest, - com.google.analytics.admin.v1alpha.BatchGetUserLinksResponse> - getBatchGetUserLinksMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "BatchGetUserLinks", - requestType = com.google.analytics.admin.v1alpha.BatchGetUserLinksRequest.class, - responseType = com.google.analytics.admin.v1alpha.BatchGetUserLinksResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.BatchGetUserLinksRequest, - com.google.analytics.admin.v1alpha.BatchGetUserLinksResponse> - getBatchGetUserLinksMethod() { - io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.BatchGetUserLinksRequest, - com.google.analytics.admin.v1alpha.BatchGetUserLinksResponse> - getBatchGetUserLinksMethod; - if ((getBatchGetUserLinksMethod = AnalyticsAdminServiceGrpc.getBatchGetUserLinksMethod) - == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getBatchGetUserLinksMethod = AnalyticsAdminServiceGrpc.getBatchGetUserLinksMethod) - == null) { - AnalyticsAdminServiceGrpc.getBatchGetUserLinksMethod = - getBatchGetUserLinksMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "BatchGetUserLinks")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.BatchGetUserLinksRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.BatchGetUserLinksResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new AnalyticsAdminServiceMethodDescriptorSupplier("BatchGetUserLinks")) - .build(); - } - } - } - return getBatchGetUserLinksMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.ListUserLinksRequest, - com.google.analytics.admin.v1alpha.ListUserLinksResponse> - getListUserLinksMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListUserLinks", - requestType = com.google.analytics.admin.v1alpha.ListUserLinksRequest.class, - responseType = com.google.analytics.admin.v1alpha.ListUserLinksResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.ListUserLinksRequest, - com.google.analytics.admin.v1alpha.ListUserLinksResponse> - getListUserLinksMethod() { - io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.ListUserLinksRequest, - com.google.analytics.admin.v1alpha.ListUserLinksResponse> - getListUserLinksMethod; - if ((getListUserLinksMethod = AnalyticsAdminServiceGrpc.getListUserLinksMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getListUserLinksMethod = AnalyticsAdminServiceGrpc.getListUserLinksMethod) == null) { - AnalyticsAdminServiceGrpc.getListUserLinksMethod = - getListUserLinksMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListUserLinks")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.ListUserLinksRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.ListUserLinksResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new AnalyticsAdminServiceMethodDescriptorSupplier("ListUserLinks")) - .build(); - } - } - } - return getListUserLinksMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.AuditUserLinksRequest, - com.google.analytics.admin.v1alpha.AuditUserLinksResponse> - getAuditUserLinksMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "AuditUserLinks", - requestType = com.google.analytics.admin.v1alpha.AuditUserLinksRequest.class, - responseType = com.google.analytics.admin.v1alpha.AuditUserLinksResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.AuditUserLinksRequest, - com.google.analytics.admin.v1alpha.AuditUserLinksResponse> - getAuditUserLinksMethod() { - io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.AuditUserLinksRequest, - com.google.analytics.admin.v1alpha.AuditUserLinksResponse> - getAuditUserLinksMethod; - if ((getAuditUserLinksMethod = AnalyticsAdminServiceGrpc.getAuditUserLinksMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getAuditUserLinksMethod = AnalyticsAdminServiceGrpc.getAuditUserLinksMethod) == null) { - AnalyticsAdminServiceGrpc.getAuditUserLinksMethod = - getAuditUserLinksMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "AuditUserLinks")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.AuditUserLinksRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.AuditUserLinksResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new AnalyticsAdminServiceMethodDescriptorSupplier("AuditUserLinks")) - .build(); - } - } - } - return getAuditUserLinksMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.CreateUserLinkRequest, - com.google.analytics.admin.v1alpha.UserLink> - getCreateUserLinkMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateUserLink", - requestType = com.google.analytics.admin.v1alpha.CreateUserLinkRequest.class, - responseType = com.google.analytics.admin.v1alpha.UserLink.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.CreateUserLinkRequest, - com.google.analytics.admin.v1alpha.UserLink> - getCreateUserLinkMethod() { - io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.CreateUserLinkRequest, - com.google.analytics.admin.v1alpha.UserLink> - getCreateUserLinkMethod; - if ((getCreateUserLinkMethod = AnalyticsAdminServiceGrpc.getCreateUserLinkMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getCreateUserLinkMethod = AnalyticsAdminServiceGrpc.getCreateUserLinkMethod) == null) { - AnalyticsAdminServiceGrpc.getCreateUserLinkMethod = - getCreateUserLinkMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateUserLink")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.CreateUserLinkRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.UserLink.getDefaultInstance())) - .setSchemaDescriptor( - new AnalyticsAdminServiceMethodDescriptorSupplier("CreateUserLink")) - .build(); - } - } - } - return getCreateUserLinkMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest, - com.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse> - getBatchCreateUserLinksMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "BatchCreateUserLinks", - requestType = com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest.class, - responseType = com.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest, - com.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse> - getBatchCreateUserLinksMethod() { - io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest, - com.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse> - getBatchCreateUserLinksMethod; - if ((getBatchCreateUserLinksMethod = AnalyticsAdminServiceGrpc.getBatchCreateUserLinksMethod) - == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getBatchCreateUserLinksMethod = - AnalyticsAdminServiceGrpc.getBatchCreateUserLinksMethod) - == null) { - AnalyticsAdminServiceGrpc.getBatchCreateUserLinksMethod = - getBatchCreateUserLinksMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "BatchCreateUserLinks")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new AnalyticsAdminServiceMethodDescriptorSupplier("BatchCreateUserLinks")) - .build(); - } - } - } - return getBatchCreateUserLinksMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.UpdateUserLinkRequest, - com.google.analytics.admin.v1alpha.UserLink> - getUpdateUserLinkMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateUserLink", - requestType = com.google.analytics.admin.v1alpha.UpdateUserLinkRequest.class, - responseType = com.google.analytics.admin.v1alpha.UserLink.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.UpdateUserLinkRequest, - com.google.analytics.admin.v1alpha.UserLink> - getUpdateUserLinkMethod() { - io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.UpdateUserLinkRequest, - com.google.analytics.admin.v1alpha.UserLink> - getUpdateUserLinkMethod; - if ((getUpdateUserLinkMethod = AnalyticsAdminServiceGrpc.getUpdateUserLinkMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getUpdateUserLinkMethod = AnalyticsAdminServiceGrpc.getUpdateUserLinkMethod) == null) { - AnalyticsAdminServiceGrpc.getUpdateUserLinkMethod = - getUpdateUserLinkMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateUserLink")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.UpdateUserLinkRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.UserLink.getDefaultInstance())) - .setSchemaDescriptor( - new AnalyticsAdminServiceMethodDescriptorSupplier("UpdateUserLink")) - .build(); - } - } - } - return getUpdateUserLinkMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest, - com.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse> - getBatchUpdateUserLinksMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "BatchUpdateUserLinks", - requestType = com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest.class, - responseType = com.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest, - com.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse> - getBatchUpdateUserLinksMethod() { - io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest, - com.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse> - getBatchUpdateUserLinksMethod; - if ((getBatchUpdateUserLinksMethod = AnalyticsAdminServiceGrpc.getBatchUpdateUserLinksMethod) - == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getBatchUpdateUserLinksMethod = - AnalyticsAdminServiceGrpc.getBatchUpdateUserLinksMethod) - == null) { - AnalyticsAdminServiceGrpc.getBatchUpdateUserLinksMethod = - getBatchUpdateUserLinksMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "BatchUpdateUserLinks")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new AnalyticsAdminServiceMethodDescriptorSupplier("BatchUpdateUserLinks")) - .build(); - } - } - } - return getBatchUpdateUserLinksMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.DeleteUserLinkRequest, com.google.protobuf.Empty> - getDeleteUserLinkMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteUserLink", - requestType = com.google.analytics.admin.v1alpha.DeleteUserLinkRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.DeleteUserLinkRequest, com.google.protobuf.Empty> - getDeleteUserLinkMethod() { - io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.DeleteUserLinkRequest, com.google.protobuf.Empty> - getDeleteUserLinkMethod; - if ((getDeleteUserLinkMethod = AnalyticsAdminServiceGrpc.getDeleteUserLinkMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getDeleteUserLinkMethod = AnalyticsAdminServiceGrpc.getDeleteUserLinkMethod) == null) { - AnalyticsAdminServiceGrpc.getDeleteUserLinkMethod = - getDeleteUserLinkMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteUserLink")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.DeleteUserLinkRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor( - new AnalyticsAdminServiceMethodDescriptorSupplier("DeleteUserLink")) - .build(); - } - } - } - return getDeleteUserLinkMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest, com.google.protobuf.Empty> - getBatchDeleteUserLinksMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "BatchDeleteUserLinks", - requestType = com.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest, com.google.protobuf.Empty> - getBatchDeleteUserLinksMethod() { - io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest, - com.google.protobuf.Empty> - getBatchDeleteUserLinksMethod; - if ((getBatchDeleteUserLinksMethod = AnalyticsAdminServiceGrpc.getBatchDeleteUserLinksMethod) - == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getBatchDeleteUserLinksMethod = - AnalyticsAdminServiceGrpc.getBatchDeleteUserLinksMethod) - == null) { - AnalyticsAdminServiceGrpc.getBatchDeleteUserLinksMethod = - getBatchDeleteUserLinksMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "BatchDeleteUserLinks")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor( - new AnalyticsAdminServiceMethodDescriptorSupplier("BatchDeleteUserLinks")) - .build(); - } - } - } - return getBatchDeleteUserLinksMethod; - } - - 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.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.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.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; - } - - /** 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 abstract static class AnalyticsAdminServiceImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Lookup for a single Account.
-     * 
- */ - public 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.
-     * 
- */ - public 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,
-     * 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.v1alpha.DeleteAccountRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteAccountMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates an account.
-     * 
- */ - public 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.
-     * 
- */ - public 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.
-     * 
- */ - public 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.
-     * 
- */ - public 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.
-     * 
- */ - public 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.
-     * 
- */ - public 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, UserLinks)
-     * will be permanently purged.
-     * https://support.google.com/analytics/answer/6154772
-     * Returns an error if the target is not found, or is not an GA4 Property.
-     * 
- */ - public void deleteProperty( - com.google.analytics.admin.v1alpha.DeletePropertyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeletePropertyMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates a property.
-     * 
- */ - public void updateProperty( - com.google.analytics.admin.v1alpha.UpdatePropertyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdatePropertyMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets information about a user's link to an account or property.
-     * 
- */ - public void getUserLink( - com.google.analytics.admin.v1alpha.GetUserLinkRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetUserLinkMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets information about multiple users' links to an account or property.
-     * 
- */ - public void batchGetUserLinks( - com.google.analytics.admin.v1alpha.BatchGetUserLinksRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getBatchGetUserLinksMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists all user links on an account or property.
-     * 
- */ - public void listUserLinks( - com.google.analytics.admin.v1alpha.ListUserLinksRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListUserLinksMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists all user links on an account or property, including implicit ones
-     * that come from effective permissions granted by groups or organization
-     * admin roles.
-     * If a returned user link does not have direct permissions, they cannot
-     * be removed from the account or property directly with the DeleteUserLink
-     * command. They have to be removed from the group/etc that gives them
-     * permissions, which is currently only usable/discoverable in the GA or GMP
-     * UIs.
-     * 
- */ - public void auditUserLinks( - com.google.analytics.admin.v1alpha.AuditUserLinksRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getAuditUserLinksMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a user link on an account or property.
-     * If the user with the specified email already has permissions on the
-     * account or property, then the user's existing permissions will be unioned
-     * with the permissions specified in the new UserLink.
-     * 
- */ - public void createUserLink( - com.google.analytics.admin.v1alpha.CreateUserLinkRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateUserLinkMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates information about multiple users' links to an account or property.
-     * This method is transactional. If any UserLink cannot be created, none of
-     * the UserLinks will be created.
-     * 
- */ - public void batchCreateUserLinks( - com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getBatchCreateUserLinksMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates a user link on an account or property.
-     * 
- */ - public void updateUserLink( - com.google.analytics.admin.v1alpha.UpdateUserLinkRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateUserLinkMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates information about multiple users' links to an account or property.
-     * 
- */ - public void batchUpdateUserLinks( - com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getBatchUpdateUserLinksMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes a user link on an account or property.
-     * 
- */ - public void deleteUserLink( - com.google.analytics.admin.v1alpha.DeleteUserLinkRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteUserLinkMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes information about multiple users' links to an account or property.
-     * 
- */ - public void batchDeleteUserLinks( - com.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getBatchDeleteUserLinksMethod(), 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.ServerCalls.asyncUnimplementedUnaryCall( - getCreateFirebaseLinkMethod(), 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.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteFirebaseLinkMethod(), 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.ServerCalls.asyncUnimplementedUnaryCall( - getListFirebaseLinksMethod(), 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.ServerCalls.asyncUnimplementedUnaryCall( - getGetGlobalSiteTagMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a GoogleAdsLink.
-     * 
- */ - public 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
-     * 
- */ - public 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
-     * 
- */ - public 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.
-     * 
- */ - public 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.
-     * 
- */ - public 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.
-     * 
- */ - public 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.
-     * 
- */ - public 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.
-     * 
- */ - public void createMeasurementProtocolSecret( - com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateMeasurementProtocolSecretMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes target MeasurementProtocolSecret.
-     * 
- */ - public 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.
-     * 
- */ - public 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 via this API) before MeasurementProtocolSecret resources may be created.
-     * 
- */ - public void acknowledgeUserDataCollection( - com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest request, - io.grpc.stub.StreamObserver< - com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getAcknowledgeUserDataCollectionMethod(), responseObserver); - } - - /** - * - * - *
-     * 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.ServerCalls.asyncUnimplementedUnaryCall( - getSearchChangeHistoryEventsMethod(), 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.ServerCalls.asyncUnimplementedUnaryCall( - getGetGoogleSignalsSettingsMethod(), 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.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateGoogleSignalsSettingsMethod(), 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.ServerCalls.asyncUnimplementedUnaryCall( - getCreateConversionEventMethod(), responseObserver); - } - - /** - * - * - *
-     * Retrieve a single conversion event.
-     * 
- */ - public 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.
-     * 
- */ - public 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.
-     * 
- */ - public 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
-     * 
- */ - public 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.
-     * 
- */ - public 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.
-     * 
- */ - public 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.
-     * 
- */ - public 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.
-     * 
- */ - public 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.
-     * 
- */ - public 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.
-     * 
- */ - public 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.
-     * 
- */ - public 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.
-     * 
- */ - public 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.
-     * 
- */ - public 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.
-     * 
- */ - public 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.
-     * 
- */ - public 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.
-     * 
- */ - public 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.
-     * 
- */ - public 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.
-     * 
- */ - public 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.
-     * 
- */ - public void getCustomDimension( - com.google.analytics.admin.v1alpha.GetCustomDimensionRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetCustomDimensionMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a CustomMetric.
-     * 
- */ - public 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.
-     * 
- */ - public 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.
-     * 
- */ - public 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.
-     * 
- */ - public 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.
-     * 
- */ - public 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.
-     * 
- */ - public 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.
-     * 
- */ - public void updateDataRetentionSettings( - com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateDataRetentionSettingsMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a DataStream.
-     * 
- */ - public void createDataStream( - com.google.analytics.admin.v1alpha.CreateDataStreamRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateDataStreamMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes a DataStream on a property.
-     * 
- */ - public void deleteDataStream( - com.google.analytics.admin.v1alpha.DeleteDataStreamRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteDataStreamMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates a DataStream on a property.
-     * 
- */ - public void updateDataStream( - com.google.analytics.admin.v1alpha.UpdateDataStreamRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateDataStreamMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists DataStreams on a property.
-     * 
- */ - public void listDataStreams( - com.google.analytics.admin.v1alpha.ListDataStreamsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListDataStreamsMethod(), responseObserver); - } - - /** - * - * - *
-     * Lookup for a single DataStream.
-     * 
- */ - public void getDataStream( - com.google.analytics.admin.v1alpha.GetDataStreamRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetDataStreamMethod(), responseObserver); - } - - /** - * - * - *
-     * Lookup for a single Audience.
-     * Audiences created before 2020 may not be supported.
-     * 
- */ - public 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.
-     * 
- */ - public void listAudiences( - com.google.analytics.admin.v1alpha.ListAudiencesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListAudiencesMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates an Audience.
-     * 
- */ - public 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.
-     * 
- */ - public 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.
-     * 
- */ - public void archiveAudience( - com.google.analytics.admin.v1alpha.ArchiveAudienceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getArchiveAudienceMethod(), responseObserver); - } - - /** - * - * - *
-     * Lookup for a AttributionSettings singleton.
-     * 
- */ - public 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.
-     * 
- */ - public 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).
-     * 
- */ - public void runAccessReport( - com.google.analytics.admin.v1alpha.RunAccessReportRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getRunAccessReportMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getGetAccountMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.GetAccountRequest, - com.google.analytics.admin.v1alpha.Account>(this, METHODID_GET_ACCOUNT))) - .addMethod( - getListAccountsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.ListAccountsRequest, - com.google.analytics.admin.v1alpha.ListAccountsResponse>( - this, METHODID_LIST_ACCOUNTS))) - .addMethod( - getDeleteAccountMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.DeleteAccountRequest, - com.google.protobuf.Empty>(this, METHODID_DELETE_ACCOUNT))) - .addMethod( - getUpdateAccountMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.UpdateAccountRequest, - com.google.analytics.admin.v1alpha.Account>(this, METHODID_UPDATE_ACCOUNT))) - .addMethod( - getProvisionAccountTicketMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest, - com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse>( - this, 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>( - this, 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>(this, METHODID_GET_PROPERTY))) - .addMethod( - getListPropertiesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.ListPropertiesRequest, - com.google.analytics.admin.v1alpha.ListPropertiesResponse>( - this, METHODID_LIST_PROPERTIES))) - .addMethod( - getCreatePropertyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.CreatePropertyRequest, - com.google.analytics.admin.v1alpha.Property>(this, METHODID_CREATE_PROPERTY))) - .addMethod( - getDeletePropertyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.DeletePropertyRequest, - com.google.analytics.admin.v1alpha.Property>(this, METHODID_DELETE_PROPERTY))) - .addMethod( - getUpdatePropertyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.UpdatePropertyRequest, - com.google.analytics.admin.v1alpha.Property>(this, METHODID_UPDATE_PROPERTY))) - .addMethod( - getGetUserLinkMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.GetUserLinkRequest, - com.google.analytics.admin.v1alpha.UserLink>(this, METHODID_GET_USER_LINK))) - .addMethod( - getBatchGetUserLinksMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.BatchGetUserLinksRequest, - com.google.analytics.admin.v1alpha.BatchGetUserLinksResponse>( - this, METHODID_BATCH_GET_USER_LINKS))) - .addMethod( - getListUserLinksMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.ListUserLinksRequest, - com.google.analytics.admin.v1alpha.ListUserLinksResponse>( - this, METHODID_LIST_USER_LINKS))) - .addMethod( - getAuditUserLinksMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.AuditUserLinksRequest, - com.google.analytics.admin.v1alpha.AuditUserLinksResponse>( - this, METHODID_AUDIT_USER_LINKS))) - .addMethod( - getCreateUserLinkMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.CreateUserLinkRequest, - com.google.analytics.admin.v1alpha.UserLink>( - this, METHODID_CREATE_USER_LINK))) - .addMethod( - getBatchCreateUserLinksMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest, - com.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse>( - this, METHODID_BATCH_CREATE_USER_LINKS))) - .addMethod( - getUpdateUserLinkMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.UpdateUserLinkRequest, - com.google.analytics.admin.v1alpha.UserLink>( - this, METHODID_UPDATE_USER_LINK))) - .addMethod( - getBatchUpdateUserLinksMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest, - com.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse>( - this, METHODID_BATCH_UPDATE_USER_LINKS))) - .addMethod( - getDeleteUserLinkMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.DeleteUserLinkRequest, - com.google.protobuf.Empty>(this, METHODID_DELETE_USER_LINK))) - .addMethod( - getBatchDeleteUserLinksMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest, - com.google.protobuf.Empty>(this, METHODID_BATCH_DELETE_USER_LINKS))) - .addMethod( - getCreateFirebaseLinkMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest, - com.google.analytics.admin.v1alpha.FirebaseLink>( - this, METHODID_CREATE_FIREBASE_LINK))) - .addMethod( - getDeleteFirebaseLinkMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest, - com.google.protobuf.Empty>(this, 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>( - this, 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>( - this, 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>( - this, 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>( - this, METHODID_UPDATE_GOOGLE_ADS_LINK))) - .addMethod( - getDeleteGoogleAdsLinkMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest, - com.google.protobuf.Empty>(this, 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>( - this, 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>( - this, 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>( - this, 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>( - this, 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>( - this, METHODID_CREATE_MEASUREMENT_PROTOCOL_SECRET))) - .addMethod( - getDeleteMeasurementProtocolSecretMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest, - com.google.protobuf.Empty>( - this, 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>( - this, METHODID_UPDATE_MEASUREMENT_PROTOCOL_SECRET))) - .addMethod( - getAcknowledgeUserDataCollectionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest, - com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse>( - this, METHODID_ACKNOWLEDGE_USER_DATA_COLLECTION))) - .addMethod( - getSearchChangeHistoryEventsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest, - com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse>( - this, 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>( - this, 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>( - this, 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>( - this, METHODID_CREATE_CONVERSION_EVENT))) - .addMethod( - getGetConversionEventMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.GetConversionEventRequest, - com.google.analytics.admin.v1alpha.ConversionEvent>( - this, METHODID_GET_CONVERSION_EVENT))) - .addMethod( - getDeleteConversionEventMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.DeleteConversionEventRequest, - com.google.protobuf.Empty>(this, 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>( - this, 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>( - this, 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>( - this, 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>( - this, METHODID_CREATE_DISPLAY_VIDEO360ADVERTISER_LINK))) - .addMethod( - getDeleteDisplayVideo360AdvertiserLinkMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest, - com.google.protobuf.Empty>( - this, 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>( - this, 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>( - this, 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>( - this, 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>( - this, 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>( - this, 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>( - this, 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>( - this, 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>( - this, 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>( - this, 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>( - this, METHODID_LIST_CUSTOM_DIMENSIONS))) - .addMethod( - getArchiveCustomDimensionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest, - com.google.protobuf.Empty>(this, 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>( - this, 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>( - this, 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>( - this, 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>( - this, METHODID_LIST_CUSTOM_METRICS))) - .addMethod( - getArchiveCustomMetricMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest, - com.google.protobuf.Empty>(this, 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>( - this, 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>( - this, 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>( - this, METHODID_UPDATE_DATA_RETENTION_SETTINGS))) - .addMethod( - getCreateDataStreamMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.CreateDataStreamRequest, - com.google.analytics.admin.v1alpha.DataStream>( - this, METHODID_CREATE_DATA_STREAM))) - .addMethod( - getDeleteDataStreamMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.DeleteDataStreamRequest, - com.google.protobuf.Empty>(this, METHODID_DELETE_DATA_STREAM))) - .addMethod( - getUpdateDataStreamMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.UpdateDataStreamRequest, - com.google.analytics.admin.v1alpha.DataStream>( - this, METHODID_UPDATE_DATA_STREAM))) - .addMethod( - getListDataStreamsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.ListDataStreamsRequest, - com.google.analytics.admin.v1alpha.ListDataStreamsResponse>( - this, METHODID_LIST_DATA_STREAMS))) - .addMethod( - getGetDataStreamMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.GetDataStreamRequest, - com.google.analytics.admin.v1alpha.DataStream>( - this, METHODID_GET_DATA_STREAM))) - .addMethod( - getGetAudienceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.GetAudienceRequest, - com.google.analytics.admin.v1alpha.Audience>(this, METHODID_GET_AUDIENCE))) - .addMethod( - getListAudiencesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.ListAudiencesRequest, - com.google.analytics.admin.v1alpha.ListAudiencesResponse>( - this, METHODID_LIST_AUDIENCES))) - .addMethod( - getCreateAudienceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.CreateAudienceRequest, - com.google.analytics.admin.v1alpha.Audience>(this, METHODID_CREATE_AUDIENCE))) - .addMethod( - getUpdateAudienceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.UpdateAudienceRequest, - com.google.analytics.admin.v1alpha.Audience>(this, METHODID_UPDATE_AUDIENCE))) - .addMethod( - getArchiveAudienceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.ArchiveAudienceRequest, - com.google.protobuf.Empty>(this, METHODID_ARCHIVE_AUDIENCE))) - .addMethod( - getGetAttributionSettingsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest, - com.google.analytics.admin.v1alpha.AttributionSettings>( - this, 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>( - this, METHODID_UPDATE_ATTRIBUTION_SETTINGS))) - .addMethod( - getRunAccessReportMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.RunAccessReportRequest, - com.google.analytics.admin.v1alpha.RunAccessReportResponse>( - this, METHODID_RUN_ACCESS_REPORT))) - .build(); - } - } - - /** - * - * - *
-   * 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,
-     * 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.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, UserLinks)
-     * will be permanently purged.
-     * https://support.google.com/analytics/answer/6154772
-     * Returns an error if the target is not found, or is not an 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); - } - - /** - * - * - *
-     * Gets information about a user's link to an account or property.
-     * 
- */ - public void getUserLink( - com.google.analytics.admin.v1alpha.GetUserLinkRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetUserLinkMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets information about multiple users' links to an account or property.
-     * 
- */ - public void batchGetUserLinks( - com.google.analytics.admin.v1alpha.BatchGetUserLinksRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getBatchGetUserLinksMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Lists all user links on an account or property.
-     * 
- */ - public void listUserLinks( - com.google.analytics.admin.v1alpha.ListUserLinksRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListUserLinksMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Lists all user links on an account or property, including implicit ones
-     * that come from effective permissions granted by groups or organization
-     * admin roles.
-     * If a returned user link does not have direct permissions, they cannot
-     * be removed from the account or property directly with the DeleteUserLink
-     * command. They have to be removed from the group/etc that gives them
-     * permissions, which is currently only usable/discoverable in the GA or GMP
-     * UIs.
-     * 
- */ - public void auditUserLinks( - com.google.analytics.admin.v1alpha.AuditUserLinksRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getAuditUserLinksMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Creates a user link on an account or property.
-     * If the user with the specified email already has permissions on the
-     * account or property, then the user's existing permissions will be unioned
-     * with the permissions specified in the new UserLink.
-     * 
- */ - public void createUserLink( - com.google.analytics.admin.v1alpha.CreateUserLinkRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateUserLinkMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Creates information about multiple users' links to an account or property.
-     * This method is transactional. If any UserLink cannot be created, none of
-     * the UserLinks will be created.
-     * 
- */ - public void batchCreateUserLinks( - com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getBatchCreateUserLinksMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates a user link on an account or property.
-     * 
- */ - public void updateUserLink( - com.google.analytics.admin.v1alpha.UpdateUserLinkRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateUserLinkMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates information about multiple users' links to an account or property.
-     * 
- */ - public void batchUpdateUserLinks( - com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getBatchUpdateUserLinksMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes a user link on an account or property.
-     * 
- */ - public void deleteUserLink( - com.google.analytics.admin.v1alpha.DeleteUserLinkRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteUserLinkMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes information about multiple users' links to an account or property.
-     * 
- */ - public void batchDeleteUserLinks( - com.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getBatchDeleteUserLinksMethod(), 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 via this API) before MeasurementProtocolSecret resources may be created.
-     * 
- */ - public void acknowledgeUserDataCollection( - com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest request, - io.grpc.stub.StreamObserver< - com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getAcknowledgeUserDataCollectionMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * 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); - } - - /** - * - * - *
-     * 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.
-     * 
- */ - 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.
-     * 
- */ - 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); - } - - /** - * - * - *
-     * 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); - } - } - - /** - * - * - *
-   * 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,
-     * 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.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, UserLinks)
-     * will be permanently purged.
-     * https://support.google.com/analytics/answer/6154772
-     * Returns an error if the target is not found, or is not an 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); - } - - /** - * - * - *
-     * Gets information about a user's link to an account or property.
-     * 
- */ - public com.google.analytics.admin.v1alpha.UserLink getUserLink( - com.google.analytics.admin.v1alpha.GetUserLinkRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetUserLinkMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets information about multiple users' links to an account or property.
-     * 
- */ - public com.google.analytics.admin.v1alpha.BatchGetUserLinksResponse batchGetUserLinks( - com.google.analytics.admin.v1alpha.BatchGetUserLinksRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getBatchGetUserLinksMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists all user links on an account or property.
-     * 
- */ - public com.google.analytics.admin.v1alpha.ListUserLinksResponse listUserLinks( - com.google.analytics.admin.v1alpha.ListUserLinksRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListUserLinksMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists all user links on an account or property, including implicit ones
-     * that come from effective permissions granted by groups or organization
-     * admin roles.
-     * If a returned user link does not have direct permissions, they cannot
-     * be removed from the account or property directly with the DeleteUserLink
-     * command. They have to be removed from the group/etc that gives them
-     * permissions, which is currently only usable/discoverable in the GA or GMP
-     * UIs.
-     * 
- */ - public com.google.analytics.admin.v1alpha.AuditUserLinksResponse auditUserLinks( - com.google.analytics.admin.v1alpha.AuditUserLinksRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getAuditUserLinksMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a user link on an account or property.
-     * If the user with the specified email already has permissions on the
-     * account or property, then the user's existing permissions will be unioned
-     * with the permissions specified in the new UserLink.
-     * 
- */ - public com.google.analytics.admin.v1alpha.UserLink createUserLink( - com.google.analytics.admin.v1alpha.CreateUserLinkRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateUserLinkMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates information about multiple users' links to an account or property.
-     * This method is transactional. If any UserLink cannot be created, none of
-     * the UserLinks will be created.
-     * 
- */ - public com.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse batchCreateUserLinks( - com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getBatchCreateUserLinksMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates a user link on an account or property.
-     * 
- */ - public com.google.analytics.admin.v1alpha.UserLink updateUserLink( - com.google.analytics.admin.v1alpha.UpdateUserLinkRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateUserLinkMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates information about multiple users' links to an account or property.
-     * 
- */ - public com.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse batchUpdateUserLinks( - com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getBatchUpdateUserLinksMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes a user link on an account or property.
-     * 
- */ - public com.google.protobuf.Empty deleteUserLink( - com.google.analytics.admin.v1alpha.DeleteUserLinkRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteUserLinkMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes information about multiple users' links to an account or property.
-     * 
- */ - public com.google.protobuf.Empty batchDeleteUserLinks( - com.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getBatchDeleteUserLinksMethod(), 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 via this API) before MeasurementProtocolSecret resources may be created.
-     * 
- */ - public com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse - acknowledgeUserDataCollection( - com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getAcknowledgeUserDataCollectionMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * 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); - } - - /** - * - * - *
-     * 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.
-     * 
- */ - 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.
-     * 
- */ - 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); - } - - /** - * - * - *
-     * 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); - } - } - - /** - * - * - *
-   * 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,
-     * 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.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, UserLinks)
-     * will be permanently purged.
-     * https://support.google.com/analytics/answer/6154772
-     * Returns an error if the target is not found, or is not an 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); - } - - /** - * - * - *
-     * Gets information about a user's link to an account or property.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.analytics.admin.v1alpha.UserLink> - getUserLink(com.google.analytics.admin.v1alpha.GetUserLinkRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetUserLinkMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets information about multiple users' links to an account or property.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.analytics.admin.v1alpha.BatchGetUserLinksResponse> - batchGetUserLinks(com.google.analytics.admin.v1alpha.BatchGetUserLinksRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getBatchGetUserLinksMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists all user links on an account or property.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.analytics.admin.v1alpha.ListUserLinksResponse> - listUserLinks(com.google.analytics.admin.v1alpha.ListUserLinksRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListUserLinksMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists all user links on an account or property, including implicit ones
-     * that come from effective permissions granted by groups or organization
-     * admin roles.
-     * If a returned user link does not have direct permissions, they cannot
-     * be removed from the account or property directly with the DeleteUserLink
-     * command. They have to be removed from the group/etc that gives them
-     * permissions, which is currently only usable/discoverable in the GA or GMP
-     * UIs.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.analytics.admin.v1alpha.AuditUserLinksResponse> - auditUserLinks(com.google.analytics.admin.v1alpha.AuditUserLinksRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getAuditUserLinksMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates a user link on an account or property.
-     * If the user with the specified email already has permissions on the
-     * account or property, then the user's existing permissions will be unioned
-     * with the permissions specified in the new UserLink.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.analytics.admin.v1alpha.UserLink> - createUserLink(com.google.analytics.admin.v1alpha.CreateUserLinkRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateUserLinkMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates information about multiple users' links to an account or property.
-     * This method is transactional. If any UserLink cannot be created, none of
-     * the UserLinks will be created.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse> - batchCreateUserLinks( - com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getBatchCreateUserLinksMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates a user link on an account or property.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.analytics.admin.v1alpha.UserLink> - updateUserLink(com.google.analytics.admin.v1alpha.UpdateUserLinkRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateUserLinkMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates information about multiple users' links to an account or property.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse> - batchUpdateUserLinks( - com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getBatchUpdateUserLinksMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes a user link on an account or property.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteUserLink(com.google.analytics.admin.v1alpha.DeleteUserLinkRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteUserLinkMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes information about multiple users' links to an account or property.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - batchDeleteUserLinks( - com.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getBatchDeleteUserLinksMethod(), 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 via this API) before MeasurementProtocolSecret resources may be created.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse> - acknowledgeUserDataCollection( - com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getAcknowledgeUserDataCollectionMethod(), getCallOptions()), - request); - } - - /** - * - * - *
-     * 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); - } - - /** - * - * - *
-     * 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.
-     * 
- */ - 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.
-     * 
- */ - 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); - } - - /** - * - * - *
-     * 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); - } - } - - 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_GET_USER_LINK = 11; - private static final int METHODID_BATCH_GET_USER_LINKS = 12; - private static final int METHODID_LIST_USER_LINKS = 13; - private static final int METHODID_AUDIT_USER_LINKS = 14; - private static final int METHODID_CREATE_USER_LINK = 15; - private static final int METHODID_BATCH_CREATE_USER_LINKS = 16; - private static final int METHODID_UPDATE_USER_LINK = 17; - private static final int METHODID_BATCH_UPDATE_USER_LINKS = 18; - private static final int METHODID_DELETE_USER_LINK = 19; - private static final int METHODID_BATCH_DELETE_USER_LINKS = 20; - private static final int METHODID_CREATE_FIREBASE_LINK = 21; - private static final int METHODID_DELETE_FIREBASE_LINK = 22; - private static final int METHODID_LIST_FIREBASE_LINKS = 23; - private static final int METHODID_GET_GLOBAL_SITE_TAG = 24; - private static final int METHODID_CREATE_GOOGLE_ADS_LINK = 25; - private static final int METHODID_UPDATE_GOOGLE_ADS_LINK = 26; - private static final int METHODID_DELETE_GOOGLE_ADS_LINK = 27; - private static final int METHODID_LIST_GOOGLE_ADS_LINKS = 28; - private static final int METHODID_GET_DATA_SHARING_SETTINGS = 29; - private static final int METHODID_GET_MEASUREMENT_PROTOCOL_SECRET = 30; - private static final int METHODID_LIST_MEASUREMENT_PROTOCOL_SECRETS = 31; - private static final int METHODID_CREATE_MEASUREMENT_PROTOCOL_SECRET = 32; - private static final int METHODID_DELETE_MEASUREMENT_PROTOCOL_SECRET = 33; - private static final int METHODID_UPDATE_MEASUREMENT_PROTOCOL_SECRET = 34; - private static final int METHODID_ACKNOWLEDGE_USER_DATA_COLLECTION = 35; - private static final int METHODID_SEARCH_CHANGE_HISTORY_EVENTS = 36; - private static final int METHODID_GET_GOOGLE_SIGNALS_SETTINGS = 37; - private static final int METHODID_UPDATE_GOOGLE_SIGNALS_SETTINGS = 38; - private static final int METHODID_CREATE_CONVERSION_EVENT = 39; - private static final int METHODID_GET_CONVERSION_EVENT = 40; - private static final int METHODID_DELETE_CONVERSION_EVENT = 41; - private static final int METHODID_LIST_CONVERSION_EVENTS = 42; - private static final int METHODID_GET_DISPLAY_VIDEO360ADVERTISER_LINK = 43; - private static final int METHODID_LIST_DISPLAY_VIDEO360ADVERTISER_LINKS = 44; - private static final int METHODID_CREATE_DISPLAY_VIDEO360ADVERTISER_LINK = 45; - private static final int METHODID_DELETE_DISPLAY_VIDEO360ADVERTISER_LINK = 46; - private static final int METHODID_UPDATE_DISPLAY_VIDEO360ADVERTISER_LINK = 47; - private static final int METHODID_GET_DISPLAY_VIDEO360ADVERTISER_LINK_PROPOSAL = 48; - private static final int METHODID_LIST_DISPLAY_VIDEO360ADVERTISER_LINK_PROPOSALS = 49; - private static final int METHODID_CREATE_DISPLAY_VIDEO360ADVERTISER_LINK_PROPOSAL = 50; - private static final int METHODID_DELETE_DISPLAY_VIDEO360ADVERTISER_LINK_PROPOSAL = 51; - private static final int METHODID_APPROVE_DISPLAY_VIDEO360ADVERTISER_LINK_PROPOSAL = 52; - private static final int METHODID_CANCEL_DISPLAY_VIDEO360ADVERTISER_LINK_PROPOSAL = 53; - private static final int METHODID_CREATE_CUSTOM_DIMENSION = 54; - private static final int METHODID_UPDATE_CUSTOM_DIMENSION = 55; - private static final int METHODID_LIST_CUSTOM_DIMENSIONS = 56; - private static final int METHODID_ARCHIVE_CUSTOM_DIMENSION = 57; - private static final int METHODID_GET_CUSTOM_DIMENSION = 58; - private static final int METHODID_CREATE_CUSTOM_METRIC = 59; - private static final int METHODID_UPDATE_CUSTOM_METRIC = 60; - private static final int METHODID_LIST_CUSTOM_METRICS = 61; - private static final int METHODID_ARCHIVE_CUSTOM_METRIC = 62; - private static final int METHODID_GET_CUSTOM_METRIC = 63; - private static final int METHODID_GET_DATA_RETENTION_SETTINGS = 64; - private static final int METHODID_UPDATE_DATA_RETENTION_SETTINGS = 65; - private static final int METHODID_CREATE_DATA_STREAM = 66; - private static final int METHODID_DELETE_DATA_STREAM = 67; - private static final int METHODID_UPDATE_DATA_STREAM = 68; - private static final int METHODID_LIST_DATA_STREAMS = 69; - private static final int METHODID_GET_DATA_STREAM = 70; - private static final int METHODID_GET_AUDIENCE = 71; - private static final int METHODID_LIST_AUDIENCES = 72; - private static final int METHODID_CREATE_AUDIENCE = 73; - private static final int METHODID_UPDATE_AUDIENCE = 74; - private static final int METHODID_ARCHIVE_AUDIENCE = 75; - private static final int METHODID_GET_ATTRIBUTION_SETTINGS = 76; - private static final int METHODID_UPDATE_ATTRIBUTION_SETTINGS = 77; - private static final int METHODID_RUN_ACCESS_REPORT = 78; - - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final AnalyticsAdminServiceImplBase serviceImpl; - private final int methodId; - - MethodHandlers(AnalyticsAdminServiceImplBase 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_GET_USER_LINK: - serviceImpl.getUserLink( - (com.google.analytics.admin.v1alpha.GetUserLinkRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_BATCH_GET_USER_LINKS: - serviceImpl.batchGetUserLinks( - (com.google.analytics.admin.v1alpha.BatchGetUserLinksRequest) request, - (io.grpc.stub.StreamObserver< - com.google.analytics.admin.v1alpha.BatchGetUserLinksResponse>) - responseObserver); - break; - case METHODID_LIST_USER_LINKS: - serviceImpl.listUserLinks( - (com.google.analytics.admin.v1alpha.ListUserLinksRequest) request, - (io.grpc.stub.StreamObserver< - com.google.analytics.admin.v1alpha.ListUserLinksResponse>) - responseObserver); - break; - case METHODID_AUDIT_USER_LINKS: - serviceImpl.auditUserLinks( - (com.google.analytics.admin.v1alpha.AuditUserLinksRequest) request, - (io.grpc.stub.StreamObserver< - com.google.analytics.admin.v1alpha.AuditUserLinksResponse>) - responseObserver); - break; - case METHODID_CREATE_USER_LINK: - serviceImpl.createUserLink( - (com.google.analytics.admin.v1alpha.CreateUserLinkRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_BATCH_CREATE_USER_LINKS: - serviceImpl.batchCreateUserLinks( - (com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest) request, - (io.grpc.stub.StreamObserver< - com.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse>) - responseObserver); - break; - case METHODID_UPDATE_USER_LINK: - serviceImpl.updateUserLink( - (com.google.analytics.admin.v1alpha.UpdateUserLinkRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_BATCH_UPDATE_USER_LINKS: - serviceImpl.batchUpdateUserLinks( - (com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest) request, - (io.grpc.stub.StreamObserver< - com.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse>) - responseObserver); - break; - case METHODID_DELETE_USER_LINK: - serviceImpl.deleteUserLink( - (com.google.analytics.admin.v1alpha.DeleteUserLinkRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_BATCH_DELETE_USER_LINKS: - serviceImpl.batchDeleteUserLinks( - (com.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest) 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_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_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_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; - 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(); - } - } - } - - 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 String methodName; - - AnalyticsAdminServiceMethodDescriptorSupplier(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(getGetUserLinkMethod()) - .addMethod(getBatchGetUserLinksMethod()) - .addMethod(getListUserLinksMethod()) - .addMethod(getAuditUserLinksMethod()) - .addMethod(getCreateUserLinkMethod()) - .addMethod(getBatchCreateUserLinksMethod()) - .addMethod(getUpdateUserLinkMethod()) - .addMethod(getBatchUpdateUserLinksMethod()) - .addMethod(getDeleteUserLinkMethod()) - .addMethod(getBatchDeleteUserLinksMethod()) - .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(getSearchChangeHistoryEventsMethod()) - .addMethod(getGetGoogleSignalsSettingsMethod()) - .addMethod(getUpdateGoogleSignalsSettingsMethod()) - .addMethod(getCreateConversionEventMethod()) - .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(getGetAttributionSettingsMethod()) - .addMethod(getUpdateAttributionSettingsMethod()) - .addMethod(getRunAccessReportMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/grpc-google-analytics-admin-v1beta/pom.xml b/grpc-google-analytics-admin-v1beta/pom.xml deleted file mode 100644 index e8befc6d..00000000 --- a/grpc-google-analytics-admin-v1beta/pom.xml +++ /dev/null @@ -1,65 +0,0 @@ - - 4.0.0 - com.google.api.grpc - grpc-google-analytics-admin-v1beta - 0.13.5 - grpc-google-analytics-admin-v1beta - GRPC library for google-analytics-admin - - com.google.analytics - google-analytics-admin-parent - 0.13.5 - - - - io.grpc - grpc-api - - - io.grpc - grpc-stub - - - io.grpc - grpc-protobuf - - - com.google.protobuf - protobuf-java - - - com.google.api.grpc - proto-google-analytics-admin-v1beta - - - com.google.guava - guava - - - - - - java9 - - [9,) - - - - javax.annotation - javax.annotation-api - - - - - - - - - org.codehaus.mojo - flatten-maven-plugin - - - - \ No newline at end of file diff --git a/grpc-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AnalyticsAdminServiceGrpc.java b/grpc-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AnalyticsAdminServiceGrpc.java deleted file mode 100644 index 6c675878..00000000 --- a/grpc-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AnalyticsAdminServiceGrpc.java +++ /dev/null @@ -1,6139 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -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 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.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; - } - - /** 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 abstract static class AnalyticsAdminServiceImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Lookup for a single Account.
-     * 
- */ - public 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.
-     * 
- */ - public 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.
-     * 
- */ - public void deleteAccount( - com.google.analytics.admin.v1beta.DeleteAccountRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteAccountMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates an account.
-     * 
- */ - public 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.
-     * 
- */ - public 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.
-     * 
- */ - public 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.
-     * 
- */ - public 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.
-     * 
- */ - public 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.
-     * 
- */ - public 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 an GA4 Property.
-     * 
- */ - public void deleteProperty( - com.google.analytics.admin.v1beta.DeletePropertyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeletePropertyMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates a property.
-     * 
- */ - public 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.
-     * 
- */ - public 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
-     * 
- */ - public 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.
-     * 
- */ - public void listFirebaseLinks( - com.google.analytics.admin.v1beta.ListFirebaseLinksRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListFirebaseLinksMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a GoogleAdsLink.
-     * 
- */ - public 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
-     * 
- */ - public 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
-     * 
- */ - public 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.
-     * 
- */ - public 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.
-     * 
- */ - public 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.
-     * 
- */ - public 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.
-     * 
- */ - public 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.
-     * 
- */ - public void createMeasurementProtocolSecret( - com.google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateMeasurementProtocolSecretMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes target MeasurementProtocolSecret.
-     * 
- */ - public 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.
-     * 
- */ - public 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 via 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.ServerCalls.asyncUnimplementedUnaryCall( - getAcknowledgeUserDataCollectionMethod(), 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.ServerCalls.asyncUnimplementedUnaryCall( - getSearchChangeHistoryEventsMethod(), 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.ServerCalls.asyncUnimplementedUnaryCall( - getCreateConversionEventMethod(), responseObserver); - } - - /** - * - * - *
-     * Retrieve a single conversion event.
-     * 
- */ - public 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.
-     * 
- */ - public 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.
-     * 
- */ - public void listConversionEvents( - com.google.analytics.admin.v1beta.ListConversionEventsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListConversionEventsMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a CustomDimension.
-     * 
- */ - public 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.
-     * 
- */ - public 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.
-     * 
- */ - public 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.
-     * 
- */ - public 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.
-     * 
- */ - public void getCustomDimension( - com.google.analytics.admin.v1beta.GetCustomDimensionRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetCustomDimensionMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a CustomMetric.
-     * 
- */ - public 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.
-     * 
- */ - public 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.
-     * 
- */ - public 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.
-     * 
- */ - public 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.
-     * 
- */ - public 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.
-     * 
- */ - public 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.
-     * 
- */ - public void updateDataRetentionSettings( - com.google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateDataRetentionSettingsMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a DataStream.
-     * 
- */ - public 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.
-     * 
- */ - public 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.
-     * 
- */ - public 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.
-     * 
- */ - public 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.
-     * 
- */ - public void getDataStream( - com.google.analytics.admin.v1beta.GetDataStreamRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetDataStreamMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getGetAccountMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1beta.GetAccountRequest, - com.google.analytics.admin.v1beta.Account>(this, METHODID_GET_ACCOUNT))) - .addMethod( - getListAccountsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1beta.ListAccountsRequest, - com.google.analytics.admin.v1beta.ListAccountsResponse>( - this, METHODID_LIST_ACCOUNTS))) - .addMethod( - getDeleteAccountMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1beta.DeleteAccountRequest, - com.google.protobuf.Empty>(this, METHODID_DELETE_ACCOUNT))) - .addMethod( - getUpdateAccountMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1beta.UpdateAccountRequest, - com.google.analytics.admin.v1beta.Account>(this, METHODID_UPDATE_ACCOUNT))) - .addMethod( - getProvisionAccountTicketMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1beta.ProvisionAccountTicketRequest, - com.google.analytics.admin.v1beta.ProvisionAccountTicketResponse>( - this, 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>( - this, 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>(this, METHODID_GET_PROPERTY))) - .addMethod( - getListPropertiesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1beta.ListPropertiesRequest, - com.google.analytics.admin.v1beta.ListPropertiesResponse>( - this, METHODID_LIST_PROPERTIES))) - .addMethod( - getCreatePropertyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1beta.CreatePropertyRequest, - com.google.analytics.admin.v1beta.Property>(this, METHODID_CREATE_PROPERTY))) - .addMethod( - getDeletePropertyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1beta.DeletePropertyRequest, - com.google.analytics.admin.v1beta.Property>(this, METHODID_DELETE_PROPERTY))) - .addMethod( - getUpdatePropertyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1beta.UpdatePropertyRequest, - com.google.analytics.admin.v1beta.Property>(this, METHODID_UPDATE_PROPERTY))) - .addMethod( - getCreateFirebaseLinkMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1beta.CreateFirebaseLinkRequest, - com.google.analytics.admin.v1beta.FirebaseLink>( - this, METHODID_CREATE_FIREBASE_LINK))) - .addMethod( - getDeleteFirebaseLinkMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1beta.DeleteFirebaseLinkRequest, - com.google.protobuf.Empty>(this, 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>( - this, 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>( - this, 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>( - this, METHODID_UPDATE_GOOGLE_ADS_LINK))) - .addMethod( - getDeleteGoogleAdsLinkMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest, - com.google.protobuf.Empty>(this, 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>( - this, 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>( - this, 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>( - this, 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>( - this, 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>( - this, METHODID_CREATE_MEASUREMENT_PROTOCOL_SECRET))) - .addMethod( - getDeleteMeasurementProtocolSecretMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest, - com.google.protobuf.Empty>( - this, 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>( - this, 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>( - this, 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>( - this, 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>( - this, METHODID_CREATE_CONVERSION_EVENT))) - .addMethod( - getGetConversionEventMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1beta.GetConversionEventRequest, - com.google.analytics.admin.v1beta.ConversionEvent>( - this, METHODID_GET_CONVERSION_EVENT))) - .addMethod( - getDeleteConversionEventMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1beta.DeleteConversionEventRequest, - com.google.protobuf.Empty>(this, 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>( - this, 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>( - this, 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>( - this, 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>( - this, METHODID_LIST_CUSTOM_DIMENSIONS))) - .addMethod( - getArchiveCustomDimensionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1beta.ArchiveCustomDimensionRequest, - com.google.protobuf.Empty>(this, 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>( - this, 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>( - this, 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>( - this, 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>( - this, METHODID_LIST_CUSTOM_METRICS))) - .addMethod( - getArchiveCustomMetricMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1beta.ArchiveCustomMetricRequest, - com.google.protobuf.Empty>(this, 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>( - this, 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>( - this, 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>( - this, 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>( - this, METHODID_CREATE_DATA_STREAM))) - .addMethod( - getDeleteDataStreamMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1beta.DeleteDataStreamRequest, - com.google.protobuf.Empty>(this, 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>( - this, 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>( - this, 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>( - this, METHODID_GET_DATA_STREAM))) - .build(); - } - } - - /** - * - * - *
-   * 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 an 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 via 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); - } - - /** - * - * - *
-     * 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); - } - } - - /** - * - * - *
-   * 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 an 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 via 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); - } - - /** - * - * - *
-     * 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); - } - } - - /** - * - * - *
-   * 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 an 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 via 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); - } - - /** - * - * - *
-     * 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); - } - } - - 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_GET_CONVERSION_EVENT = 27; - private static final int METHODID_DELETE_CONVERSION_EVENT = 28; - private static final int METHODID_LIST_CONVERSION_EVENTS = 29; - private static final int METHODID_CREATE_CUSTOM_DIMENSION = 30; - private static final int METHODID_UPDATE_CUSTOM_DIMENSION = 31; - private static final int METHODID_LIST_CUSTOM_DIMENSIONS = 32; - private static final int METHODID_ARCHIVE_CUSTOM_DIMENSION = 33; - private static final int METHODID_GET_CUSTOM_DIMENSION = 34; - private static final int METHODID_CREATE_CUSTOM_METRIC = 35; - private static final int METHODID_UPDATE_CUSTOM_METRIC = 36; - private static final int METHODID_LIST_CUSTOM_METRICS = 37; - private static final int METHODID_ARCHIVE_CUSTOM_METRIC = 38; - private static final int METHODID_GET_CUSTOM_METRIC = 39; - private static final int METHODID_GET_DATA_RETENTION_SETTINGS = 40; - private static final int METHODID_UPDATE_DATA_RETENTION_SETTINGS = 41; - private static final int METHODID_CREATE_DATA_STREAM = 42; - private static final int METHODID_DELETE_DATA_STREAM = 43; - private static final int METHODID_UPDATE_DATA_STREAM = 44; - private static final int METHODID_LIST_DATA_STREAMS = 45; - private static final int METHODID_GET_DATA_STREAM = 46; - - 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 AnalyticsAdminServiceImplBase serviceImpl; - private final int methodId; - - MethodHandlers(AnalyticsAdminServiceImplBase 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_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; - 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(); - } - } - } - - 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 String methodName; - - AnalyticsAdminServiceMethodDescriptorSupplier(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(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()) - .build(); - } - } - } - return result; - } -} diff --git a/java.header b/java.header deleted file mode 100644 index d0970ba7..00000000 --- a/java.header +++ /dev/null @@ -1,15 +0,0 @@ -^/\*$ -^ \* Copyright \d\d\d\d,? Google (Inc\.|LLC)$ -^ \*$ -^ \* Licensed under the Apache License, Version 2\.0 \(the "License"\);$ -^ \* you may not use this file except in compliance with the License\.$ -^ \* You may obtain a copy of the License at$ -^ \*$ -^ \*[ ]+https?://www.apache.org/licenses/LICENSE-2\.0$ -^ \*$ -^ \* Unless required by applicable law or agreed to in writing, software$ -^ \* distributed under the License is distributed on an "AS IS" BASIS,$ -^ \* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied\.$ -^ \* See the License for the specific language governing permissions and$ -^ \* limitations under the License\.$ -^ \*/$ diff --git a/license-checks.xml b/license-checks.xml deleted file mode 100644 index 6597fced..00000000 --- a/license-checks.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - diff --git a/pom.xml b/pom.xml deleted file mode 100644 index 2c7bc1ca..00000000 --- a/pom.xml +++ /dev/null @@ -1,199 +0,0 @@ - - - 4.0.0 - com.google.analytics - google-analytics-admin-parent - pom - 0.13.5 - Google Analytics Admin Parent - https://github.com/googleapis/java-analytics-admin - - Java idiomatic client for Google Cloud Platform services. - - - - com.google.cloud - google-cloud-shared-config - 1.5.3 - - - - - chingor - Jeff Ching - chingor@google.com - Google - - Developer - - - - - Google LLC - - - scm:git:git@github.com:googleapis/java-analytics-admin.git - scm:git:git@github.com:googleapis/java-analytics-admin.git - https://github.com/googleapis/java-analytics-admin - HEAD - - - https://github.com/googleapis/java-analytics-admin/issues - GitHub Issues - - - - - Apache-2.0 - https://www.apache.org/licenses/LICENSE-2.0.txt - - - - - UTF-8 - UTF-8 - github - google-analytics-admin-parent - - - - - - com.google.analytics - google-analytics-admin - 0.13.5 - - - com.google.api.grpc - proto-google-analytics-admin-v1beta - 0.13.5 - - - com.google.api.grpc - grpc-google-analytics-admin-v1beta - 0.13.5 - - - com.google.api.grpc - proto-google-analytics-admin-v1alpha - 0.13.5 - - - com.google.api.grpc - grpc-google-analytics-admin-v1alpha - 0.13.5 - - - - com.google.cloud - google-cloud-shared-dependencies - 3.0.4 - pom - import - - - - junit - junit - 4.13.2 - test - - - - - - - - - org.apache.maven.plugins - maven-dependency-plugin - - - org.objenesis:objenesis - javax.annotation:javax.annotation-api - - - - - - - - - google-analytics-admin - grpc-google-analytics-admin-v1alpha - grpc-google-analytics-admin-v1beta - proto-google-analytics-admin-v1alpha - proto-google-analytics-admin-v1beta - google-analytics-admin-bom - - - - - - org.apache.maven.plugins - maven-project-info-reports-plugin - 3.4.1 - - - - index - dependency-info - team - ci-management - issue-management - licenses - scm - dependency-management - distribution-management - summary - modules - - - - - true - ${site.installationModule} - jar - - - - org.apache.maven.plugins - maven-javadoc-plugin - 3.4.1 - - - html - - aggregate - javadoc - - - - - none - protected - true - ${project.build.directory}/javadoc - - - Test helpers packages - com.google.cloud.testing - - - SPI packages - com.google.cloud.spi* - - - - - https://grpc.io/grpc-java/javadoc/ - https://developers.google.com/protocol-buffers/docs/reference/java/ - https://googleapis.dev/java/google-auth-library/latest/ - https://googleapis.dev/java/gax/latest/ - https://googleapis.github.io/api-common-java/${google.api-common.version}/apidocs/ - - - - - - diff --git a/proto-google-analytics-admin-v1alpha/clirr-ignored-differences.xml b/proto-google-analytics-admin-v1alpha/clirr-ignored-differences.xml deleted file mode 100644 index 72d467c8..00000000 --- a/proto-google-analytics-admin-v1alpha/clirr-ignored-differences.xml +++ /dev/null @@ -1,131 +0,0 @@ - - - - - 7012 - com/google/analytics/admin/v1alpha/*OrBuilder - * get*(*) - - - 7012 - com/google/analytics/admin/v1alpha/*OrBuilder - boolean contains*(*) - - - 7012 - com/google/analytics/admin/v1alpha/*OrBuilder - boolean has*(*) - - - 6011 - com/google/analytics/admin/v1alpha/Conversion* - *_FIELD_NUMBER - - - 7002 - com/google/analytics/admin/v1alpha/Conversion* - * *Deletable*(*) - - - 6011 - com/google/analytics/admin/v1alpha/FirebaseLink* - *_FIELD_NUMBER - - - 7002 - com/google/analytics/admin/v1alpha/FirebaseLink* - * *MaximumUserAccess*(*) - - - 6011 - com/google/analytics/admin/v1alpha/GoogleAdsLink* - *_FIELD_NUMBER - - - 7002 - com/google/analytics/admin/v1alpha/GoogleAdsLink* - * *EmailAddress*(*) - - - 8001 - com/google/analytics/admin/v1alpha/UpdateFirebaseLinkRequest* - - - 8001 - com/google/analytics/admin/v1alpha/MaximumUserAccess* - - - 8001 - com/google/analytics/admin/v1alpha/*EnhancedMeasurementSettings* - - - - 8001 - com/google/analytics/admin/v1alpha/AndroidAppDataStream* - - - 6011 - com/google/analytics/admin/v1alpha/ChangeHistoryChange$ChangeHistoryResource - *_FIELD_NUMBER - - - 7002 - com/google/analytics/admin/v1alpha/ChangeHistoryChange* - * *DataStream*(*) - - - 6011 - com/google/analytics/admin/v1alpha/ChangeHistory* - *DATA_STREAM* - - - 6001 - com/google/analytics/admin/v1alpha/ChangeHistory* - *DATA_STREAM* - - - 8001 - com/google/analytics/admin/v1alpha/*DataStreamRequest* - * *DataStream*(*) - - - 7004 - com/google/analytics/admin/v1alpha/GlobalSiteTagName - * format(*) - - - 7004 - com/google/analytics/admin/v1alpha/GlobalSiteTagName - * of(*) - - - 8001 - com/google/analytics/admin/v1alpha/*DataStream* - - - 7002 - com/google/analytics/admin/v1alpha/MeasurementProtocolSecretName* - * *WebDataStream*(*) - - - - 7004 - com/google/analytics/admin/v1alpha/CustomDimensionName - * of(*) - - - 7004 - com/google/analytics/admin/v1alpha/CustomDimensionName - * format(*) - - - 7004 - com/google/analytics/admin/v1alpha/CustomMetricName - * of(*) - - - 7004 - com/google/analytics/admin/v1alpha/CustomMetricName - * format(*) - - diff --git a/proto-google-analytics-admin-v1alpha/pom.xml b/proto-google-analytics-admin-v1alpha/pom.xml deleted file mode 100644 index 3df30961..00000000 --- a/proto-google-analytics-admin-v1alpha/pom.xml +++ /dev/null @@ -1,42 +0,0 @@ - - 4.0.0 - com.google.api.grpc - proto-google-analytics-admin-v1alpha - 0.13.5 - proto-google-analytics-admin-v1alpha - PROTO library for proto-google-analytics-admin-v1alpha - - com.google.analytics - google-analytics-admin-parent - 0.13.5 - - - - com.google.protobuf - protobuf-java - - - com.google.api.grpc - proto-google-common-protos - - - com.google.api - api-common - - - com.google.guava - guava - - - - - - - org.codehaus.mojo - flatten-maven-plugin - - - - \ No newline at end of file diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessBetweenFilter.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessBetweenFilter.java deleted file mode 100644 index cf7958eb..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessBetweenFilter.java +++ /dev/null @@ -1,973 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/access_report.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * To express that the result needs to be between two numbers (inclusive).
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.AccessBetweenFilter} - */ -public final class AccessBetweenFilter extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AccessBetweenFilter) - AccessBetweenFilterOrBuilder { - private static final long serialVersionUID = 0L; - // Use AccessBetweenFilter.newBuilder() to construct. - private AccessBetweenFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private AccessBetweenFilter() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new AccessBetweenFilter(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.AccessReportProto - .internal_static_google_analytics_admin_v1alpha_AccessBetweenFilter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AccessReportProto - .internal_static_google_analytics_admin_v1alpha_AccessBetweenFilter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.AccessBetweenFilter.class, - com.google.analytics.admin.v1alpha.AccessBetweenFilter.Builder.class); - } - - public static final int FROM_VALUE_FIELD_NUMBER = 1; - private com.google.analytics.admin.v1alpha.NumericValue fromValue_; - /** - * - * - *
-   * Begins with this number.
-   * 
- * - * .google.analytics.admin.v1alpha.NumericValue from_value = 1; - * - * @return Whether the fromValue field is set. - */ - @java.lang.Override - public boolean hasFromValue() { - return fromValue_ != null; - } - /** - * - * - *
-   * Begins with this number.
-   * 
- * - * .google.analytics.admin.v1alpha.NumericValue from_value = 1; - * - * @return The fromValue. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.NumericValue getFromValue() { - return fromValue_ == null - ? com.google.analytics.admin.v1alpha.NumericValue.getDefaultInstance() - : fromValue_; - } - /** - * - * - *
-   * Begins with this number.
-   * 
- * - * .google.analytics.admin.v1alpha.NumericValue from_value = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.NumericValueOrBuilder getFromValueOrBuilder() { - return getFromValue(); - } - - public static final int TO_VALUE_FIELD_NUMBER = 2; - private com.google.analytics.admin.v1alpha.NumericValue toValue_; - /** - * - * - *
-   * Ends with this number.
-   * 
- * - * .google.analytics.admin.v1alpha.NumericValue to_value = 2; - * - * @return Whether the toValue field is set. - */ - @java.lang.Override - public boolean hasToValue() { - return toValue_ != null; - } - /** - * - * - *
-   * Ends with this number.
-   * 
- * - * .google.analytics.admin.v1alpha.NumericValue to_value = 2; - * - * @return The toValue. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.NumericValue getToValue() { - return toValue_ == null - ? com.google.analytics.admin.v1alpha.NumericValue.getDefaultInstance() - : toValue_; - } - /** - * - * - *
-   * Ends with this number.
-   * 
- * - * .google.analytics.admin.v1alpha.NumericValue to_value = 2; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.NumericValueOrBuilder getToValueOrBuilder() { - return getToValue(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (fromValue_ != null) { - output.writeMessage(1, getFromValue()); - } - if (toValue_ != null) { - output.writeMessage(2, getToValue()); - } - 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(); - if (fromValueBuilder_ == null) { - fromValue_ = null; - } else { - fromValue_ = null; - fromValueBuilder_ = null; - } - if (toValueBuilder_ == null) { - toValue_ = null; - } else { - toValue_ = null; - toValueBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AccessReportProto - .internal_static_google_analytics_admin_v1alpha_AccessBetweenFilter_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessBetweenFilter getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.AccessBetweenFilter.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessBetweenFilter build() { - com.google.analytics.admin.v1alpha.AccessBetweenFilter result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessBetweenFilter buildPartial() { - com.google.analytics.admin.v1alpha.AccessBetweenFilter result = - new com.google.analytics.admin.v1alpha.AccessBetweenFilter(this); - if (fromValueBuilder_ == null) { - result.fromValue_ = fromValue_; - } else { - result.fromValue_ = fromValueBuilder_.build(); - } - if (toValueBuilder_ == null) { - result.toValue_ = toValue_; - } else { - result.toValue_ = toValueBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.AccessBetweenFilter) { - return mergeFrom((com.google.analytics.admin.v1alpha.AccessBetweenFilter) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.AccessBetweenFilter other) { - if (other == com.google.analytics.admin.v1alpha.AccessBetweenFilter.getDefaultInstance()) - return this; - if (other.hasFromValue()) { - mergeFromValue(other.getFromValue()); - } - if (other.hasToValue()) { - mergeToValue(other.getToValue()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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); - - break; - } // case 10 - case 18: - { - input.readMessage(getToValueFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private com.google.analytics.admin.v1alpha.NumericValue fromValue_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.NumericValue, - com.google.analytics.admin.v1alpha.NumericValue.Builder, - com.google.analytics.admin.v1alpha.NumericValueOrBuilder> - fromValueBuilder_; - /** - * - * - *
-     * Begins with this number.
-     * 
- * - * .google.analytics.admin.v1alpha.NumericValue from_value = 1; - * - * @return Whether the fromValue field is set. - */ - public boolean hasFromValue() { - return fromValueBuilder_ != null || fromValue_ != null; - } - /** - * - * - *
-     * Begins with this number.
-     * 
- * - * .google.analytics.admin.v1alpha.NumericValue from_value = 1; - * - * @return The fromValue. - */ - public com.google.analytics.admin.v1alpha.NumericValue getFromValue() { - if (fromValueBuilder_ == null) { - return fromValue_ == null - ? com.google.analytics.admin.v1alpha.NumericValue.getDefaultInstance() - : fromValue_; - } else { - return fromValueBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Begins with this number.
-     * 
- * - * .google.analytics.admin.v1alpha.NumericValue from_value = 1; - */ - public Builder setFromValue(com.google.analytics.admin.v1alpha.NumericValue value) { - if (fromValueBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - fromValue_ = value; - onChanged(); - } else { - fromValueBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Begins with this number.
-     * 
- * - * .google.analytics.admin.v1alpha.NumericValue from_value = 1; - */ - public Builder setFromValue( - com.google.analytics.admin.v1alpha.NumericValue.Builder builderForValue) { - if (fromValueBuilder_ == null) { - fromValue_ = builderForValue.build(); - onChanged(); - } else { - fromValueBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Begins with this number.
-     * 
- * - * .google.analytics.admin.v1alpha.NumericValue from_value = 1; - */ - public Builder mergeFromValue(com.google.analytics.admin.v1alpha.NumericValue value) { - if (fromValueBuilder_ == null) { - if (fromValue_ != null) { - fromValue_ = - com.google.analytics.admin.v1alpha.NumericValue.newBuilder(fromValue_) - .mergeFrom(value) - .buildPartial(); - } else { - fromValue_ = value; - } - onChanged(); - } else { - fromValueBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Begins with this number.
-     * 
- * - * .google.analytics.admin.v1alpha.NumericValue from_value = 1; - */ - public Builder clearFromValue() { - if (fromValueBuilder_ == null) { - fromValue_ = null; - onChanged(); - } else { - fromValue_ = null; - fromValueBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Begins with this number.
-     * 
- * - * .google.analytics.admin.v1alpha.NumericValue from_value = 1; - */ - public com.google.analytics.admin.v1alpha.NumericValue.Builder getFromValueBuilder() { - - onChanged(); - return getFromValueFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Begins with this number.
-     * 
- * - * .google.analytics.admin.v1alpha.NumericValue from_value = 1; - */ - public com.google.analytics.admin.v1alpha.NumericValueOrBuilder getFromValueOrBuilder() { - if (fromValueBuilder_ != null) { - return fromValueBuilder_.getMessageOrBuilder(); - } else { - return fromValue_ == null - ? com.google.analytics.admin.v1alpha.NumericValue.getDefaultInstance() - : fromValue_; - } - } - /** - * - * - *
-     * Begins with this number.
-     * 
- * - * .google.analytics.admin.v1alpha.NumericValue from_value = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.NumericValue, - com.google.analytics.admin.v1alpha.NumericValue.Builder, - com.google.analytics.admin.v1alpha.NumericValueOrBuilder> - getFromValueFieldBuilder() { - if (fromValueBuilder_ == null) { - fromValueBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.NumericValue, - com.google.analytics.admin.v1alpha.NumericValue.Builder, - com.google.analytics.admin.v1alpha.NumericValueOrBuilder>( - getFromValue(), getParentForChildren(), isClean()); - fromValue_ = null; - } - return fromValueBuilder_; - } - - private com.google.analytics.admin.v1alpha.NumericValue toValue_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.NumericValue, - com.google.analytics.admin.v1alpha.NumericValue.Builder, - com.google.analytics.admin.v1alpha.NumericValueOrBuilder> - toValueBuilder_; - /** - * - * - *
-     * Ends with this number.
-     * 
- * - * .google.analytics.admin.v1alpha.NumericValue to_value = 2; - * - * @return Whether the toValue field is set. - */ - public boolean hasToValue() { - return toValueBuilder_ != null || toValue_ != null; - } - /** - * - * - *
-     * Ends with this number.
-     * 
- * - * .google.analytics.admin.v1alpha.NumericValue to_value = 2; - * - * @return The toValue. - */ - public com.google.analytics.admin.v1alpha.NumericValue getToValue() { - if (toValueBuilder_ == null) { - return toValue_ == null - ? com.google.analytics.admin.v1alpha.NumericValue.getDefaultInstance() - : toValue_; - } else { - return toValueBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Ends with this number.
-     * 
- * - * .google.analytics.admin.v1alpha.NumericValue to_value = 2; - */ - public Builder setToValue(com.google.analytics.admin.v1alpha.NumericValue value) { - if (toValueBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - toValue_ = value; - onChanged(); - } else { - toValueBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Ends with this number.
-     * 
- * - * .google.analytics.admin.v1alpha.NumericValue to_value = 2; - */ - public Builder setToValue( - com.google.analytics.admin.v1alpha.NumericValue.Builder builderForValue) { - if (toValueBuilder_ == null) { - toValue_ = builderForValue.build(); - onChanged(); - } else { - toValueBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Ends with this number.
-     * 
- * - * .google.analytics.admin.v1alpha.NumericValue to_value = 2; - */ - public Builder mergeToValue(com.google.analytics.admin.v1alpha.NumericValue value) { - if (toValueBuilder_ == null) { - if (toValue_ != null) { - toValue_ = - com.google.analytics.admin.v1alpha.NumericValue.newBuilder(toValue_) - .mergeFrom(value) - .buildPartial(); - } else { - toValue_ = value; - } - onChanged(); - } else { - toValueBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Ends with this number.
-     * 
- * - * .google.analytics.admin.v1alpha.NumericValue to_value = 2; - */ - public Builder clearToValue() { - if (toValueBuilder_ == null) { - toValue_ = null; - onChanged(); - } else { - toValue_ = null; - toValueBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Ends with this number.
-     * 
- * - * .google.analytics.admin.v1alpha.NumericValue to_value = 2; - */ - public com.google.analytics.admin.v1alpha.NumericValue.Builder getToValueBuilder() { - - onChanged(); - return getToValueFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Ends with this number.
-     * 
- * - * .google.analytics.admin.v1alpha.NumericValue to_value = 2; - */ - public com.google.analytics.admin.v1alpha.NumericValueOrBuilder getToValueOrBuilder() { - if (toValueBuilder_ != null) { - return toValueBuilder_.getMessageOrBuilder(); - } else { - return toValue_ == null - ? com.google.analytics.admin.v1alpha.NumericValue.getDefaultInstance() - : toValue_; - } - } - /** - * - * - *
-     * Ends with this number.
-     * 
- * - * .google.analytics.admin.v1alpha.NumericValue to_value = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.NumericValue, - com.google.analytics.admin.v1alpha.NumericValue.Builder, - com.google.analytics.admin.v1alpha.NumericValueOrBuilder> - getToValueFieldBuilder() { - if (toValueBuilder_ == null) { - toValueBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.NumericValue, - com.google.analytics.admin.v1alpha.NumericValue.Builder, - com.google.analytics.admin.v1alpha.NumericValueOrBuilder>( - getToValue(), getParentForChildren(), isClean()); - toValue_ = null; - } - return toValueBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.AccessBetweenFilter) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AccessBetweenFilter) - private static final com.google.analytics.admin.v1alpha.AccessBetweenFilter DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.AccessBetweenFilter(); - } - - public static com.google.analytics.admin.v1alpha.AccessBetweenFilter getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AccessBetweenFilter parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessBetweenFilterOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessBetweenFilterOrBuilder.java deleted file mode 100644 index ddda2f22..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessBetweenFilterOrBuilder.java +++ /dev/null @@ -1,95 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessDateRange.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessDateRange.java deleted file mode 100644 index e5203b3a..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessDateRange.java +++ /dev/null @@ -1,835 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/access_report.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * A contiguous range of days: startDate, startDate + 1, ..., endDate.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.AccessDateRange} - */ -public final class AccessDateRange extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AccessDateRange) - AccessDateRangeOrBuilder { - private static final long serialVersionUID = 0L; - // Use AccessDateRange.newBuilder() to construct. - private AccessDateRange(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private AccessDateRange() { - startDate_ = ""; - endDate_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new AccessDateRange(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.AccessReportProto - .internal_static_google_analytics_admin_v1alpha_AccessDateRange_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AccessReportProto - .internal_static_google_analytics_admin_v1alpha_AccessDateRange_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.AccessDateRange.class, - com.google.analytics.admin.v1alpha.AccessDateRange.Builder.class); - } - - public static final int START_DATE_FIELD_NUMBER = 1; - private volatile java.lang.Object startDate_; - /** - * - * - *
-   * The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot
-   * be after `endDate`. The format `NdaysAgo`, `yesterday`, or `today` is also
-   * accepted, and in that case, the date is inferred based on the current time
-   * in the request's time zone.
-   * 
- * - * string start_date = 1; - * - * @return The startDate. - */ - @java.lang.Override - public java.lang.String getStartDate() { - java.lang.Object ref = startDate_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - startDate_ = s; - return s; - } - } - /** - * - * - *
-   * The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot
-   * be after `endDate`. The format `NdaysAgo`, `yesterday`, or `today` is also
-   * accepted, and in that case, the date is inferred based on the current time
-   * in the request's time zone.
-   * 
- * - * string start_date = 1; - * - * @return The bytes for startDate. - */ - @java.lang.Override - public com.google.protobuf.ByteString getStartDateBytes() { - java.lang.Object ref = startDate_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - startDate_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int END_DATE_FIELD_NUMBER = 2; - private volatile java.lang.Object endDate_; - /** - * - * - *
-   * The inclusive end date for the query in the format `YYYY-MM-DD`. Cannot
-   * be before `startDate`. The format `NdaysAgo`, `yesterday`, or `today` is
-   * also accepted, and in that case, the date is inferred based on the current
-   * time in the request's time zone.
-   * 
- * - * string end_date = 2; - * - * @return The endDate. - */ - @java.lang.Override - public java.lang.String getEndDate() { - java.lang.Object ref = endDate_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - endDate_ = s; - return s; - } - } - /** - * - * - *
-   * The inclusive end date for the query in the format `YYYY-MM-DD`. Cannot
-   * be before `startDate`. The format `NdaysAgo`, `yesterday`, or `today` is
-   * also accepted, and in that case, the date is inferred based on the current
-   * time in the request's time zone.
-   * 
- * - * string end_date = 2; - * - * @return The bytes for endDate. - */ - @java.lang.Override - public com.google.protobuf.ByteString getEndDateBytes() { - java.lang.Object ref = endDate_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - endDate_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(startDate_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, startDate_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(endDate_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, endDate_); - } - getUnknownFields().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(); - startDate_ = ""; - - endDate_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AccessReportProto - .internal_static_google_analytics_admin_v1alpha_AccessDateRange_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessDateRange getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.AccessDateRange.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessDateRange build() { - com.google.analytics.admin.v1alpha.AccessDateRange result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessDateRange buildPartial() { - com.google.analytics.admin.v1alpha.AccessDateRange result = - new com.google.analytics.admin.v1alpha.AccessDateRange(this); - result.startDate_ = startDate_; - result.endDate_ = endDate_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.AccessDateRange) { - return mergeFrom((com.google.analytics.admin.v1alpha.AccessDateRange) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.AccessDateRange other) { - if (other == com.google.analytics.admin.v1alpha.AccessDateRange.getDefaultInstance()) - return this; - if (!other.getStartDate().isEmpty()) { - startDate_ = other.startDate_; - onChanged(); - } - if (!other.getEndDate().isEmpty()) { - endDate_ = other.endDate_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 18: - { - endDate_ = input.readStringRequireUtf8(); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object startDate_ = ""; - /** - * - * - *
-     * The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot
-     * be after `endDate`. The format `NdaysAgo`, `yesterday`, or `today` is also
-     * accepted, and in that case, the date is inferred based on the current time
-     * in the request's time zone.
-     * 
- * - * string start_date = 1; - * - * @return The startDate. - */ - public java.lang.String getStartDate() { - java.lang.Object ref = startDate_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - startDate_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot
-     * be after `endDate`. The format `NdaysAgo`, `yesterday`, or `today` is also
-     * accepted, and in that case, the date is inferred based on the current time
-     * in the request's time zone.
-     * 
- * - * string start_date = 1; - * - * @return The bytes for startDate. - */ - public com.google.protobuf.ByteString getStartDateBytes() { - java.lang.Object ref = startDate_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - startDate_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot
-     * be after `endDate`. The format `NdaysAgo`, `yesterday`, or `today` is also
-     * accepted, and in that case, the date is inferred based on the current time
-     * in the request's time zone.
-     * 
- * - * string start_date = 1; - * - * @param value The startDate to set. - * @return This builder for chaining. - */ - public Builder setStartDate(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - startDate_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot
-     * be after `endDate`. The format `NdaysAgo`, `yesterday`, or `today` is also
-     * accepted, and in that case, the date is inferred based on the current time
-     * in the request's time zone.
-     * 
- * - * string start_date = 1; - * - * @return This builder for chaining. - */ - public Builder clearStartDate() { - - startDate_ = getDefaultInstance().getStartDate(); - onChanged(); - return this; - } - /** - * - * - *
-     * The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot
-     * be after `endDate`. The format `NdaysAgo`, `yesterday`, or `today` is also
-     * accepted, and in that case, the date is inferred based on the current time
-     * in the request's time zone.
-     * 
- * - * string start_date = 1; - * - * @param value The bytes for startDate to set. - * @return This builder for chaining. - */ - public Builder setStartDateBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - startDate_ = value; - onChanged(); - return this; - } - - private java.lang.Object endDate_ = ""; - /** - * - * - *
-     * The inclusive end date for the query in the format `YYYY-MM-DD`. Cannot
-     * be before `startDate`. The format `NdaysAgo`, `yesterday`, or `today` is
-     * also accepted, and in that case, the date is inferred based on the current
-     * time in the request's time zone.
-     * 
- * - * string end_date = 2; - * - * @return The endDate. - */ - public java.lang.String getEndDate() { - java.lang.Object ref = endDate_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - endDate_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The inclusive end date for the query in the format `YYYY-MM-DD`. Cannot
-     * be before `startDate`. The format `NdaysAgo`, `yesterday`, or `today` is
-     * also accepted, and in that case, the date is inferred based on the current
-     * time in the request's time zone.
-     * 
- * - * string end_date = 2; - * - * @return The bytes for endDate. - */ - public com.google.protobuf.ByteString getEndDateBytes() { - java.lang.Object ref = endDate_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - endDate_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The inclusive end date for the query in the format `YYYY-MM-DD`. Cannot
-     * be before `startDate`. The format `NdaysAgo`, `yesterday`, or `today` is
-     * also accepted, and in that case, the date is inferred based on the current
-     * time in the request's time zone.
-     * 
- * - * string end_date = 2; - * - * @param value The endDate to set. - * @return This builder for chaining. - */ - public Builder setEndDate(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - endDate_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The inclusive end date for the query in the format `YYYY-MM-DD`. Cannot
-     * be before `startDate`. The format `NdaysAgo`, `yesterday`, or `today` is
-     * also accepted, and in that case, the date is inferred based on the current
-     * time in the request's time zone.
-     * 
- * - * string end_date = 2; - * - * @return This builder for chaining. - */ - public Builder clearEndDate() { - - endDate_ = getDefaultInstance().getEndDate(); - onChanged(); - return this; - } - /** - * - * - *
-     * The inclusive end date for the query in the format `YYYY-MM-DD`. Cannot
-     * be before `startDate`. The format `NdaysAgo`, `yesterday`, or `today` is
-     * also accepted, and in that case, the date is inferred based on the current
-     * time in the request's time zone.
-     * 
- * - * string end_date = 2; - * - * @param value The bytes for endDate to set. - * @return This builder for chaining. - */ - public Builder setEndDateBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - endDate_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.AccessDateRange) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AccessDateRange) - private static final com.google.analytics.admin.v1alpha.AccessDateRange DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.AccessDateRange(); - } - - public static com.google.analytics.admin.v1alpha.AccessDateRange getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AccessDateRange parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessDateRangeOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessDateRangeOrBuilder.java deleted file mode 100644 index 8c17a9de..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessDateRangeOrBuilder.java +++ /dev/null @@ -1,87 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessDimension.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessDimension.java deleted file mode 100644 index b2540228..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessDimension.java +++ /dev/null @@ -1,640 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/access_report.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * Dimensions are attributes of your data. For example, the dimension
- * `userEmail` indicates the email of the user that accessed reporting data.
- * Dimension values in report responses are strings.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.AccessDimension} - */ -public final class AccessDimension extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AccessDimension) - AccessDimensionOrBuilder { - private static final long serialVersionUID = 0L; - // Use AccessDimension.newBuilder() to construct. - private AccessDimension(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private AccessDimension() { - dimensionName_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new AccessDimension(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.AccessReportProto - .internal_static_google_analytics_admin_v1alpha_AccessDimension_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AccessReportProto - .internal_static_google_analytics_admin_v1alpha_AccessDimension_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.AccessDimension.class, - com.google.analytics.admin.v1alpha.AccessDimension.Builder.class); - } - - public static final int DIMENSION_NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object dimensionName_; - /** - * - * - *
-   * The API name of the dimension. See [Data Access
-   * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema)
-   * for the list of dimensions supported in this API.
-   * Dimensions are referenced by name in `dimensionFilter` and `orderBys`.
-   * 
- * - * string dimension_name = 1; - * - * @return The dimensionName. - */ - @java.lang.Override - public java.lang.String getDimensionName() { - java.lang.Object ref = dimensionName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - dimensionName_ = s; - return s; - } - } - /** - * - * - *
-   * The API name of the dimension. See [Data Access
-   * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema)
-   * for the list of dimensions supported in this API.
-   * Dimensions are referenced by name in `dimensionFilter` and `orderBys`.
-   * 
- * - * string dimension_name = 1; - * - * @return The bytes for dimensionName. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDimensionNameBytes() { - java.lang.Object ref = dimensionName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - dimensionName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dimensionName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, dimensionName_); - } - getUnknownFields().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(); - dimensionName_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AccessReportProto - .internal_static_google_analytics_admin_v1alpha_AccessDimension_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessDimension getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.AccessDimension.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessDimension build() { - com.google.analytics.admin.v1alpha.AccessDimension result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessDimension buildPartial() { - com.google.analytics.admin.v1alpha.AccessDimension result = - new com.google.analytics.admin.v1alpha.AccessDimension(this); - result.dimensionName_ = dimensionName_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.AccessDimension) { - return mergeFrom((com.google.analytics.admin.v1alpha.AccessDimension) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.AccessDimension other) { - if (other == com.google.analytics.admin.v1alpha.AccessDimension.getDefaultInstance()) - return this; - if (!other.getDimensionName().isEmpty()) { - dimensionName_ = other.dimensionName_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - 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 java.lang.Object dimensionName_ = ""; - /** - * - * - *
-     * The API name of the dimension. See [Data Access
-     * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema)
-     * for the list of dimensions supported in this API.
-     * Dimensions are referenced by name in `dimensionFilter` and `orderBys`.
-     * 
- * - * string dimension_name = 1; - * - * @return The dimensionName. - */ - public java.lang.String getDimensionName() { - java.lang.Object ref = dimensionName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - dimensionName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The API name of the dimension. See [Data Access
-     * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema)
-     * for the list of dimensions supported in this API.
-     * Dimensions are referenced by name in `dimensionFilter` and `orderBys`.
-     * 
- * - * string dimension_name = 1; - * - * @return The bytes for dimensionName. - */ - public com.google.protobuf.ByteString getDimensionNameBytes() { - java.lang.Object ref = dimensionName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - dimensionName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The API name of the dimension. See [Data Access
-     * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema)
-     * for the list of dimensions supported in this API.
-     * Dimensions are referenced by name in `dimensionFilter` and `orderBys`.
-     * 
- * - * string dimension_name = 1; - * - * @param value The dimensionName to set. - * @return This builder for chaining. - */ - public Builder setDimensionName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - dimensionName_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The API name of the dimension. See [Data Access
-     * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema)
-     * for the list of dimensions supported in this API.
-     * Dimensions are referenced by name in `dimensionFilter` and `orderBys`.
-     * 
- * - * string dimension_name = 1; - * - * @return This builder for chaining. - */ - public Builder clearDimensionName() { - - dimensionName_ = getDefaultInstance().getDimensionName(); - onChanged(); - return this; - } - /** - * - * - *
-     * The API name of the dimension. See [Data Access
-     * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema)
-     * for the list of dimensions supported in this API.
-     * Dimensions are referenced by name in `dimensionFilter` and `orderBys`.
-     * 
- * - * string dimension_name = 1; - * - * @param value The bytes for dimensionName to set. - * @return This builder for chaining. - */ - public Builder setDimensionNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - dimensionName_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.AccessDimension) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AccessDimension) - private static final com.google.analytics.admin.v1alpha.AccessDimension DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.AccessDimension(); - } - - public static com.google.analytics.admin.v1alpha.AccessDimension getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AccessDimension parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessDimensionHeader.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessDimensionHeader.java deleted file mode 100644 index 58151ee0..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessDimensionHeader.java +++ /dev/null @@ -1,622 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/access_report.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * Describes a dimension column in the report. Dimensions requested in a report
- * produce column entries within rows and DimensionHeaders. However, dimensions
- * used exclusively within filters or expressions do not produce columns in a
- * report; correspondingly, those dimensions do not produce headers.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.AccessDimensionHeader} - */ -public final class AccessDimensionHeader extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AccessDimensionHeader) - AccessDimensionHeaderOrBuilder { - private static final long serialVersionUID = 0L; - // Use AccessDimensionHeader.newBuilder() to construct. - private AccessDimensionHeader(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private AccessDimensionHeader() { - dimensionName_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new AccessDimensionHeader(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.AccessReportProto - .internal_static_google_analytics_admin_v1alpha_AccessDimensionHeader_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AccessReportProto - .internal_static_google_analytics_admin_v1alpha_AccessDimensionHeader_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.AccessDimensionHeader.class, - com.google.analytics.admin.v1alpha.AccessDimensionHeader.Builder.class); - } - - public static final int DIMENSION_NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object dimensionName_; - /** - * - * - *
-   * The dimension's name; for example 'userEmail'.
-   * 
- * - * string dimension_name = 1; - * - * @return The dimensionName. - */ - @java.lang.Override - public java.lang.String getDimensionName() { - java.lang.Object ref = dimensionName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - dimensionName_ = s; - return s; - } - } - /** - * - * - *
-   * The dimension's name; for example 'userEmail'.
-   * 
- * - * string dimension_name = 1; - * - * @return The bytes for dimensionName. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDimensionNameBytes() { - java.lang.Object ref = dimensionName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - dimensionName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dimensionName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, dimensionName_); - } - getUnknownFields().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(); - dimensionName_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AccessReportProto - .internal_static_google_analytics_admin_v1alpha_AccessDimensionHeader_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessDimensionHeader getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.AccessDimensionHeader.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessDimensionHeader build() { - com.google.analytics.admin.v1alpha.AccessDimensionHeader result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessDimensionHeader buildPartial() { - com.google.analytics.admin.v1alpha.AccessDimensionHeader result = - new com.google.analytics.admin.v1alpha.AccessDimensionHeader(this); - result.dimensionName_ = dimensionName_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.AccessDimensionHeader) { - return mergeFrom((com.google.analytics.admin.v1alpha.AccessDimensionHeader) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.AccessDimensionHeader other) { - if (other == com.google.analytics.admin.v1alpha.AccessDimensionHeader.getDefaultInstance()) - return this; - if (!other.getDimensionName().isEmpty()) { - dimensionName_ = other.dimensionName_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - 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 java.lang.Object dimensionName_ = ""; - /** - * - * - *
-     * The dimension's name; for example 'userEmail'.
-     * 
- * - * string dimension_name = 1; - * - * @return The dimensionName. - */ - public java.lang.String getDimensionName() { - java.lang.Object ref = dimensionName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - dimensionName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The dimension's name; for example 'userEmail'.
-     * 
- * - * string dimension_name = 1; - * - * @return The bytes for dimensionName. - */ - public com.google.protobuf.ByteString getDimensionNameBytes() { - java.lang.Object ref = dimensionName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - dimensionName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The dimension's name; for example 'userEmail'.
-     * 
- * - * string dimension_name = 1; - * - * @param value The dimensionName to set. - * @return This builder for chaining. - */ - public Builder setDimensionName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - dimensionName_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The dimension's name; for example 'userEmail'.
-     * 
- * - * string dimension_name = 1; - * - * @return This builder for chaining. - */ - public Builder clearDimensionName() { - - dimensionName_ = getDefaultInstance().getDimensionName(); - onChanged(); - return this; - } - /** - * - * - *
-     * The dimension's name; for example 'userEmail'.
-     * 
- * - * string dimension_name = 1; - * - * @param value The bytes for dimensionName to set. - * @return This builder for chaining. - */ - public Builder setDimensionNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - dimensionName_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.AccessDimensionHeader) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AccessDimensionHeader) - private static final com.google.analytics.admin.v1alpha.AccessDimensionHeader DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.AccessDimensionHeader(); - } - - public static com.google.analytics.admin.v1alpha.AccessDimensionHeader getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AccessDimensionHeader parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessDimensionHeaderOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessDimensionHeaderOrBuilder.java deleted file mode 100644 index fb114cf2..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessDimensionHeaderOrBuilder.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessDimensionOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessDimensionOrBuilder.java deleted file mode 100644 index 2b8d83cd..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessDimensionOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessDimensionValue.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessDimensionValue.java deleted file mode 100644 index 29ad246f..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessDimensionValue.java +++ /dev/null @@ -1,623 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/access_report.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * The value of a dimension.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.AccessDimensionValue} - */ -public final class AccessDimensionValue extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AccessDimensionValue) - AccessDimensionValueOrBuilder { - private static final long serialVersionUID = 0L; - // Use AccessDimensionValue.newBuilder() to construct. - private AccessDimensionValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private AccessDimensionValue() { - value_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new AccessDimensionValue(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.AccessReportProto - .internal_static_google_analytics_admin_v1alpha_AccessDimensionValue_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AccessReportProto - .internal_static_google_analytics_admin_v1alpha_AccessDimensionValue_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.AccessDimensionValue.class, - com.google.analytics.admin.v1alpha.AccessDimensionValue.Builder.class); - } - - public static final int VALUE_FIELD_NUMBER = 1; - private volatile java.lang.Object value_; - /** - * - * - *
-   * The dimension value. For example, this value may be 'France' for the
-   * 'country' dimension.
-   * 
- * - * string value = 1; - * - * @return The value. - */ - @java.lang.Override - public java.lang.String getValue() { - java.lang.Object ref = value_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - value_ = s; - return s; - } - } - /** - * - * - *
-   * The dimension value. For example, this value may be 'France' for the
-   * 'country' dimension.
-   * 
- * - * string value = 1; - * - * @return The bytes for value. - */ - @java.lang.Override - public com.google.protobuf.ByteString getValueBytes() { - java.lang.Object ref = value_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - value_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, value_); - } - getUnknownFields().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(); - value_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AccessReportProto - .internal_static_google_analytics_admin_v1alpha_AccessDimensionValue_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessDimensionValue getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.AccessDimensionValue.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessDimensionValue build() { - com.google.analytics.admin.v1alpha.AccessDimensionValue result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessDimensionValue buildPartial() { - com.google.analytics.admin.v1alpha.AccessDimensionValue result = - new com.google.analytics.admin.v1alpha.AccessDimensionValue(this); - result.value_ = value_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.AccessDimensionValue) { - return mergeFrom((com.google.analytics.admin.v1alpha.AccessDimensionValue) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.AccessDimensionValue other) { - if (other == com.google.analytics.admin.v1alpha.AccessDimensionValue.getDefaultInstance()) - return this; - if (!other.getValue().isEmpty()) { - value_ = other.value_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - 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 java.lang.Object value_ = ""; - /** - * - * - *
-     * The dimension value. For example, this value may be 'France' for the
-     * 'country' dimension.
-     * 
- * - * string value = 1; - * - * @return The value. - */ - public java.lang.String getValue() { - java.lang.Object ref = value_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - value_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The dimension value. For example, this value may be 'France' for the
-     * 'country' dimension.
-     * 
- * - * string value = 1; - * - * @return The bytes for value. - */ - public com.google.protobuf.ByteString getValueBytes() { - java.lang.Object ref = value_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - value_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The dimension value. For example, this value may be 'France' for the
-     * 'country' dimension.
-     * 
- * - * string value = 1; - * - * @param value The value to set. - * @return This builder for chaining. - */ - public Builder setValue(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - value_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The dimension value. For example, this value may be 'France' for the
-     * 'country' dimension.
-     * 
- * - * string value = 1; - * - * @return This builder for chaining. - */ - public Builder clearValue() { - - value_ = getDefaultInstance().getValue(); - onChanged(); - return this; - } - /** - * - * - *
-     * The dimension value. For example, this value may be 'France' for the
-     * 'country' dimension.
-     * 
- * - * string value = 1; - * - * @param value The bytes for value to set. - * @return This builder for chaining. - */ - public Builder setValueBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - value_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.AccessDimensionValue) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AccessDimensionValue) - private static final com.google.analytics.admin.v1alpha.AccessDimensionValue DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.AccessDimensionValue(); - } - - public static com.google.analytics.admin.v1alpha.AccessDimensionValue getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AccessDimensionValue parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessDimensionValueOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessDimensionValueOrBuilder.java deleted file mode 100644 index 58c1e1ed..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessDimensionValueOrBuilder.java +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessFilter.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessFilter.java deleted file mode 100644 index 85ddc994..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessFilter.java +++ /dev/null @@ -1,1902 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/access_report.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * An expression to filter dimension or metric values.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.AccessFilter} - */ -public final class AccessFilter extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AccessFilter) - AccessFilterOrBuilder { - private static final long serialVersionUID = 0L; - // Use AccessFilter.newBuilder() to construct. - private AccessFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private AccessFilter() { - fieldName_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new AccessFilter(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.AccessReportProto - .internal_static_google_analytics_admin_v1alpha_AccessFilter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AccessReportProto - .internal_static_google_analytics_admin_v1alpha_AccessFilter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.AccessFilter.class, - com.google.analytics.admin.v1alpha.AccessFilter.Builder.class); - } - - private int oneFilterCase_ = 0; - private java.lang.Object oneFilter_; - - public enum OneFilterCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - STRING_FILTER(2), - IN_LIST_FILTER(3), - NUMERIC_FILTER(4), - BETWEEN_FILTER(5), - ONEFILTER_NOT_SET(0); - private final int value; - - private OneFilterCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static OneFilterCase valueOf(int value) { - return forNumber(value); - } - - public static OneFilterCase forNumber(int value) { - switch (value) { - case 2: - return STRING_FILTER; - case 3: - return IN_LIST_FILTER; - case 4: - return NUMERIC_FILTER; - case 5: - return BETWEEN_FILTER; - case 0: - return ONEFILTER_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public OneFilterCase getOneFilterCase() { - return OneFilterCase.forNumber(oneFilterCase_); - } - - public static final int STRING_FILTER_FIELD_NUMBER = 2; - /** - * - * - *
-   * Strings related filter.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessStringFilter string_filter = 2; - * - * @return Whether the stringFilter field is set. - */ - @java.lang.Override - public boolean hasStringFilter() { - return oneFilterCase_ == 2; - } - /** - * - * - *
-   * Strings related filter.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessStringFilter string_filter = 2; - * - * @return The stringFilter. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessStringFilter getStringFilter() { - if (oneFilterCase_ == 2) { - return (com.google.analytics.admin.v1alpha.AccessStringFilter) oneFilter_; - } - return com.google.analytics.admin.v1alpha.AccessStringFilter.getDefaultInstance(); - } - /** - * - * - *
-   * Strings related filter.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessStringFilter string_filter = 2; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessStringFilterOrBuilder getStringFilterOrBuilder() { - if (oneFilterCase_ == 2) { - return (com.google.analytics.admin.v1alpha.AccessStringFilter) oneFilter_; - } - return com.google.analytics.admin.v1alpha.AccessStringFilter.getDefaultInstance(); - } - - public static final int IN_LIST_FILTER_FIELD_NUMBER = 3; - /** - * - * - *
-   * A filter for in list values.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessInListFilter in_list_filter = 3; - * - * @return Whether the inListFilter field is set. - */ - @java.lang.Override - public boolean hasInListFilter() { - return oneFilterCase_ == 3; - } - /** - * - * - *
-   * A filter for in list values.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessInListFilter in_list_filter = 3; - * - * @return The inListFilter. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessInListFilter getInListFilter() { - if (oneFilterCase_ == 3) { - return (com.google.analytics.admin.v1alpha.AccessInListFilter) oneFilter_; - } - return com.google.analytics.admin.v1alpha.AccessInListFilter.getDefaultInstance(); - } - /** - * - * - *
-   * A filter for in list values.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessInListFilter in_list_filter = 3; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessInListFilterOrBuilder getInListFilterOrBuilder() { - if (oneFilterCase_ == 3) { - return (com.google.analytics.admin.v1alpha.AccessInListFilter) oneFilter_; - } - return com.google.analytics.admin.v1alpha.AccessInListFilter.getDefaultInstance(); - } - - public static final int NUMERIC_FILTER_FIELD_NUMBER = 4; - /** - * - * - *
-   * A filter for numeric or date values.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessNumericFilter numeric_filter = 4; - * - * @return Whether the numericFilter field is set. - */ - @java.lang.Override - public boolean hasNumericFilter() { - return oneFilterCase_ == 4; - } - /** - * - * - *
-   * A filter for numeric or date values.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessNumericFilter numeric_filter = 4; - * - * @return The numericFilter. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessNumericFilter getNumericFilter() { - if (oneFilterCase_ == 4) { - return (com.google.analytics.admin.v1alpha.AccessNumericFilter) oneFilter_; - } - return com.google.analytics.admin.v1alpha.AccessNumericFilter.getDefaultInstance(); - } - /** - * - * - *
-   * A filter for numeric or date values.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessNumericFilter numeric_filter = 4; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessNumericFilterOrBuilder - getNumericFilterOrBuilder() { - if (oneFilterCase_ == 4) { - return (com.google.analytics.admin.v1alpha.AccessNumericFilter) oneFilter_; - } - return com.google.analytics.admin.v1alpha.AccessNumericFilter.getDefaultInstance(); - } - - public static final int BETWEEN_FILTER_FIELD_NUMBER = 5; - /** - * - * - *
-   * A filter for two values.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessBetweenFilter between_filter = 5; - * - * @return Whether the betweenFilter field is set. - */ - @java.lang.Override - public boolean hasBetweenFilter() { - return oneFilterCase_ == 5; - } - /** - * - * - *
-   * A filter for two values.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessBetweenFilter between_filter = 5; - * - * @return The betweenFilter. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessBetweenFilter getBetweenFilter() { - if (oneFilterCase_ == 5) { - return (com.google.analytics.admin.v1alpha.AccessBetweenFilter) oneFilter_; - } - return com.google.analytics.admin.v1alpha.AccessBetweenFilter.getDefaultInstance(); - } - /** - * - * - *
-   * A filter for two values.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessBetweenFilter between_filter = 5; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessBetweenFilterOrBuilder - getBetweenFilterOrBuilder() { - if (oneFilterCase_ == 5) { - return (com.google.analytics.admin.v1alpha.AccessBetweenFilter) oneFilter_; - } - return com.google.analytics.admin.v1alpha.AccessBetweenFilter.getDefaultInstance(); - } - - public static final int FIELD_NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object fieldName_; - /** - * - * - *
-   * The dimension name or metric name.
-   * 
- * - * string field_name = 1; - * - * @return The fieldName. - */ - @java.lang.Override - public java.lang.String getFieldName() { - java.lang.Object ref = fieldName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - fieldName_ = s; - return s; - } - } - /** - * - * - *
-   * The dimension name or metric name.
-   * 
- * - * string field_name = 1; - * - * @return The bytes for fieldName. - */ - @java.lang.Override - public com.google.protobuf.ByteString getFieldNameBytes() { - java.lang.Object ref = fieldName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - fieldName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fieldName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, fieldName_); - } - if (oneFilterCase_ == 2) { - output.writeMessage(2, (com.google.analytics.admin.v1alpha.AccessStringFilter) oneFilter_); - } - if (oneFilterCase_ == 3) { - output.writeMessage(3, (com.google.analytics.admin.v1alpha.AccessInListFilter) oneFilter_); - } - if (oneFilterCase_ == 4) { - output.writeMessage(4, (com.google.analytics.admin.v1alpha.AccessNumericFilter) oneFilter_); - } - if (oneFilterCase_ == 5) { - output.writeMessage(5, (com.google.analytics.admin.v1alpha.AccessBetweenFilter) oneFilter_); - } - getUnknownFields().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(); - 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 (oneFilterCase_ == 2) { - if (stringFilterBuilder_ == null) { - result.oneFilter_ = oneFilter_; - } else { - result.oneFilter_ = stringFilterBuilder_.build(); - } - } - if (oneFilterCase_ == 3) { - if (inListFilterBuilder_ == null) { - result.oneFilter_ = oneFilter_; - } else { - result.oneFilter_ = inListFilterBuilder_.build(); - } - } - if (oneFilterCase_ == 4) { - if (numericFilterBuilder_ == null) { - result.oneFilter_ = oneFilter_; - } else { - result.oneFilter_ = numericFilterBuilder_.build(); - } - } - if (oneFilterCase_ == 5) { - if (betweenFilterBuilder_ == null) { - result.oneFilter_ = oneFilter_; - } else { - result.oneFilter_ = betweenFilterBuilder_.build(); - } - } - result.fieldName_ = fieldName_; - result.oneFilterCase_ = oneFilterCase_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.AccessFilter) { - return mergeFrom((com.google.analytics.admin.v1alpha.AccessFilter) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.AccessFilter other) { - if (other == com.google.analytics.admin.v1alpha.AccessFilter.getDefaultInstance()) - return this; - if (!other.getFieldName().isEmpty()) { - fieldName_ = other.fieldName_; - onChanged(); - } - switch (other.getOneFilterCase()) { - case STRING_FILTER: - { - mergeStringFilter(other.getStringFilter()); - break; - } - case IN_LIST_FILTER: - { - mergeInListFilter(other.getInListFilter()); - break; - } - case NUMERIC_FILTER: - { - mergeNumericFilter(other.getNumericFilter()); - break; - } - case BETWEEN_FILTER: - { - mergeBetweenFilter(other.getBetweenFilter()); - break; - } - case ONEFILTER_NOT_SET: - { - break; - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - 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 com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessStringFilter, - com.google.analytics.admin.v1alpha.AccessStringFilter.Builder, - com.google.analytics.admin.v1alpha.AccessStringFilterOrBuilder> - stringFilterBuilder_; - /** - * - * - *
-     * Strings related filter.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessStringFilter string_filter = 2; - * - * @return Whether the stringFilter field is set. - */ - @java.lang.Override - public boolean hasStringFilter() { - return oneFilterCase_ == 2; - } - /** - * - * - *
-     * Strings related filter.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessStringFilter string_filter = 2; - * - * @return The stringFilter. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessStringFilter getStringFilter() { - if (stringFilterBuilder_ == null) { - if (oneFilterCase_ == 2) { - return (com.google.analytics.admin.v1alpha.AccessStringFilter) oneFilter_; - } - return com.google.analytics.admin.v1alpha.AccessStringFilter.getDefaultInstance(); - } else { - if (oneFilterCase_ == 2) { - return stringFilterBuilder_.getMessage(); - } - return com.google.analytics.admin.v1alpha.AccessStringFilter.getDefaultInstance(); - } - } - /** - * - * - *
-     * Strings related filter.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessStringFilter string_filter = 2; - */ - public Builder setStringFilter(com.google.analytics.admin.v1alpha.AccessStringFilter value) { - if (stringFilterBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - oneFilter_ = value; - onChanged(); - } else { - stringFilterBuilder_.setMessage(value); - } - oneFilterCase_ = 2; - return this; - } - /** - * - * - *
-     * Strings related filter.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessStringFilter string_filter = 2; - */ - public Builder setStringFilter( - com.google.analytics.admin.v1alpha.AccessStringFilter.Builder builderForValue) { - if (stringFilterBuilder_ == null) { - oneFilter_ = builderForValue.build(); - onChanged(); - } else { - stringFilterBuilder_.setMessage(builderForValue.build()); - } - oneFilterCase_ = 2; - return this; - } - /** - * - * - *
-     * Strings related filter.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessStringFilter string_filter = 2; - */ - public Builder mergeStringFilter(com.google.analytics.admin.v1alpha.AccessStringFilter value) { - if (stringFilterBuilder_ == null) { - if (oneFilterCase_ == 2 - && oneFilter_ - != com.google.analytics.admin.v1alpha.AccessStringFilter.getDefaultInstance()) { - oneFilter_ = - com.google.analytics.admin.v1alpha.AccessStringFilter.newBuilder( - (com.google.analytics.admin.v1alpha.AccessStringFilter) oneFilter_) - .mergeFrom(value) - .buildPartial(); - } else { - oneFilter_ = value; - } - onChanged(); - } else { - if (oneFilterCase_ == 2) { - stringFilterBuilder_.mergeFrom(value); - } else { - stringFilterBuilder_.setMessage(value); - } - } - oneFilterCase_ = 2; - return this; - } - /** - * - * - *
-     * Strings related filter.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessStringFilter string_filter = 2; - */ - public Builder clearStringFilter() { - if (stringFilterBuilder_ == null) { - if (oneFilterCase_ == 2) { - oneFilterCase_ = 0; - oneFilter_ = null; - onChanged(); - } - } else { - if (oneFilterCase_ == 2) { - oneFilterCase_ = 0; - oneFilter_ = null; - } - stringFilterBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Strings related filter.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessStringFilter string_filter = 2; - */ - public com.google.analytics.admin.v1alpha.AccessStringFilter.Builder getStringFilterBuilder() { - return getStringFilterFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Strings related filter.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessStringFilter string_filter = 2; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessStringFilterOrBuilder - getStringFilterOrBuilder() { - if ((oneFilterCase_ == 2) && (stringFilterBuilder_ != null)) { - return stringFilterBuilder_.getMessageOrBuilder(); - } else { - if (oneFilterCase_ == 2) { - return (com.google.analytics.admin.v1alpha.AccessStringFilter) oneFilter_; - } - return com.google.analytics.admin.v1alpha.AccessStringFilter.getDefaultInstance(); - } - } - /** - * - * - *
-     * Strings related filter.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessStringFilter string_filter = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessStringFilter, - com.google.analytics.admin.v1alpha.AccessStringFilter.Builder, - com.google.analytics.admin.v1alpha.AccessStringFilterOrBuilder> - getStringFilterFieldBuilder() { - if (stringFilterBuilder_ == null) { - if (!(oneFilterCase_ == 2)) { - oneFilter_ = com.google.analytics.admin.v1alpha.AccessStringFilter.getDefaultInstance(); - } - stringFilterBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessStringFilter, - com.google.analytics.admin.v1alpha.AccessStringFilter.Builder, - com.google.analytics.admin.v1alpha.AccessStringFilterOrBuilder>( - (com.google.analytics.admin.v1alpha.AccessStringFilter) oneFilter_, - getParentForChildren(), - isClean()); - oneFilter_ = null; - } - oneFilterCase_ = 2; - onChanged(); - ; - return stringFilterBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessInListFilter, - com.google.analytics.admin.v1alpha.AccessInListFilter.Builder, - com.google.analytics.admin.v1alpha.AccessInListFilterOrBuilder> - inListFilterBuilder_; - /** - * - * - *
-     * A filter for in list values.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessInListFilter in_list_filter = 3; - * - * @return Whether the inListFilter field is set. - */ - @java.lang.Override - public boolean hasInListFilter() { - return oneFilterCase_ == 3; - } - /** - * - * - *
-     * A filter for in list values.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessInListFilter in_list_filter = 3; - * - * @return The inListFilter. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessInListFilter getInListFilter() { - if (inListFilterBuilder_ == null) { - if (oneFilterCase_ == 3) { - return (com.google.analytics.admin.v1alpha.AccessInListFilter) oneFilter_; - } - return com.google.analytics.admin.v1alpha.AccessInListFilter.getDefaultInstance(); - } else { - if (oneFilterCase_ == 3) { - return inListFilterBuilder_.getMessage(); - } - return com.google.analytics.admin.v1alpha.AccessInListFilter.getDefaultInstance(); - } - } - /** - * - * - *
-     * A filter for in list values.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessInListFilter in_list_filter = 3; - */ - public Builder setInListFilter(com.google.analytics.admin.v1alpha.AccessInListFilter value) { - if (inListFilterBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - oneFilter_ = value; - onChanged(); - } else { - inListFilterBuilder_.setMessage(value); - } - oneFilterCase_ = 3; - return this; - } - /** - * - * - *
-     * A filter for in list values.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessInListFilter in_list_filter = 3; - */ - public Builder setInListFilter( - com.google.analytics.admin.v1alpha.AccessInListFilter.Builder builderForValue) { - if (inListFilterBuilder_ == null) { - oneFilter_ = builderForValue.build(); - onChanged(); - } else { - inListFilterBuilder_.setMessage(builderForValue.build()); - } - oneFilterCase_ = 3; - return this; - } - /** - * - * - *
-     * A filter for in list values.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessInListFilter in_list_filter = 3; - */ - public Builder mergeInListFilter(com.google.analytics.admin.v1alpha.AccessInListFilter value) { - if (inListFilterBuilder_ == null) { - if (oneFilterCase_ == 3 - && oneFilter_ - != com.google.analytics.admin.v1alpha.AccessInListFilter.getDefaultInstance()) { - oneFilter_ = - com.google.analytics.admin.v1alpha.AccessInListFilter.newBuilder( - (com.google.analytics.admin.v1alpha.AccessInListFilter) oneFilter_) - .mergeFrom(value) - .buildPartial(); - } else { - oneFilter_ = value; - } - onChanged(); - } else { - if (oneFilterCase_ == 3) { - inListFilterBuilder_.mergeFrom(value); - } else { - inListFilterBuilder_.setMessage(value); - } - } - oneFilterCase_ = 3; - return this; - } - /** - * - * - *
-     * A filter for in list values.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessInListFilter in_list_filter = 3; - */ - public Builder clearInListFilter() { - if (inListFilterBuilder_ == null) { - if (oneFilterCase_ == 3) { - oneFilterCase_ = 0; - oneFilter_ = null; - onChanged(); - } - } else { - if (oneFilterCase_ == 3) { - oneFilterCase_ = 0; - oneFilter_ = null; - } - inListFilterBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * A filter for in list values.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessInListFilter in_list_filter = 3; - */ - public com.google.analytics.admin.v1alpha.AccessInListFilter.Builder getInListFilterBuilder() { - return getInListFilterFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * A filter for in list values.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessInListFilter in_list_filter = 3; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessInListFilterOrBuilder - getInListFilterOrBuilder() { - if ((oneFilterCase_ == 3) && (inListFilterBuilder_ != null)) { - return inListFilterBuilder_.getMessageOrBuilder(); - } else { - if (oneFilterCase_ == 3) { - return (com.google.analytics.admin.v1alpha.AccessInListFilter) oneFilter_; - } - return com.google.analytics.admin.v1alpha.AccessInListFilter.getDefaultInstance(); - } - } - /** - * - * - *
-     * A filter for in list values.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessInListFilter in_list_filter = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessInListFilter, - com.google.analytics.admin.v1alpha.AccessInListFilter.Builder, - com.google.analytics.admin.v1alpha.AccessInListFilterOrBuilder> - getInListFilterFieldBuilder() { - if (inListFilterBuilder_ == null) { - if (!(oneFilterCase_ == 3)) { - oneFilter_ = com.google.analytics.admin.v1alpha.AccessInListFilter.getDefaultInstance(); - } - inListFilterBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessInListFilter, - com.google.analytics.admin.v1alpha.AccessInListFilter.Builder, - com.google.analytics.admin.v1alpha.AccessInListFilterOrBuilder>( - (com.google.analytics.admin.v1alpha.AccessInListFilter) oneFilter_, - getParentForChildren(), - isClean()); - oneFilter_ = null; - } - oneFilterCase_ = 3; - onChanged(); - ; - return inListFilterBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessNumericFilter, - com.google.analytics.admin.v1alpha.AccessNumericFilter.Builder, - com.google.analytics.admin.v1alpha.AccessNumericFilterOrBuilder> - numericFilterBuilder_; - /** - * - * - *
-     * A filter for numeric or date values.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessNumericFilter numeric_filter = 4; - * - * @return Whether the numericFilter field is set. - */ - @java.lang.Override - public boolean hasNumericFilter() { - return oneFilterCase_ == 4; - } - /** - * - * - *
-     * A filter for numeric or date values.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessNumericFilter numeric_filter = 4; - * - * @return The numericFilter. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessNumericFilter getNumericFilter() { - if (numericFilterBuilder_ == null) { - if (oneFilterCase_ == 4) { - return (com.google.analytics.admin.v1alpha.AccessNumericFilter) oneFilter_; - } - return com.google.analytics.admin.v1alpha.AccessNumericFilter.getDefaultInstance(); - } else { - if (oneFilterCase_ == 4) { - return numericFilterBuilder_.getMessage(); - } - return com.google.analytics.admin.v1alpha.AccessNumericFilter.getDefaultInstance(); - } - } - /** - * - * - *
-     * A filter for numeric or date values.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessNumericFilter numeric_filter = 4; - */ - public Builder setNumericFilter(com.google.analytics.admin.v1alpha.AccessNumericFilter value) { - if (numericFilterBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - oneFilter_ = value; - onChanged(); - } else { - numericFilterBuilder_.setMessage(value); - } - oneFilterCase_ = 4; - return this; - } - /** - * - * - *
-     * A filter for numeric or date values.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessNumericFilter numeric_filter = 4; - */ - public Builder setNumericFilter( - com.google.analytics.admin.v1alpha.AccessNumericFilter.Builder builderForValue) { - if (numericFilterBuilder_ == null) { - oneFilter_ = builderForValue.build(); - onChanged(); - } else { - numericFilterBuilder_.setMessage(builderForValue.build()); - } - oneFilterCase_ = 4; - return this; - } - /** - * - * - *
-     * A filter for numeric or date values.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessNumericFilter numeric_filter = 4; - */ - public Builder mergeNumericFilter( - com.google.analytics.admin.v1alpha.AccessNumericFilter value) { - if (numericFilterBuilder_ == null) { - if (oneFilterCase_ == 4 - && oneFilter_ - != com.google.analytics.admin.v1alpha.AccessNumericFilter.getDefaultInstance()) { - oneFilter_ = - com.google.analytics.admin.v1alpha.AccessNumericFilter.newBuilder( - (com.google.analytics.admin.v1alpha.AccessNumericFilter) oneFilter_) - .mergeFrom(value) - .buildPartial(); - } else { - oneFilter_ = value; - } - onChanged(); - } else { - if (oneFilterCase_ == 4) { - numericFilterBuilder_.mergeFrom(value); - } else { - numericFilterBuilder_.setMessage(value); - } - } - oneFilterCase_ = 4; - return this; - } - /** - * - * - *
-     * A filter for numeric or date values.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessNumericFilter numeric_filter = 4; - */ - public Builder clearNumericFilter() { - if (numericFilterBuilder_ == null) { - if (oneFilterCase_ == 4) { - oneFilterCase_ = 0; - oneFilter_ = null; - onChanged(); - } - } else { - if (oneFilterCase_ == 4) { - oneFilterCase_ = 0; - oneFilter_ = null; - } - numericFilterBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * A filter for numeric or date values.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessNumericFilter numeric_filter = 4; - */ - public com.google.analytics.admin.v1alpha.AccessNumericFilter.Builder - getNumericFilterBuilder() { - return getNumericFilterFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * A filter for numeric or date values.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessNumericFilter numeric_filter = 4; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessNumericFilterOrBuilder - getNumericFilterOrBuilder() { - if ((oneFilterCase_ == 4) && (numericFilterBuilder_ != null)) { - return numericFilterBuilder_.getMessageOrBuilder(); - } else { - if (oneFilterCase_ == 4) { - return (com.google.analytics.admin.v1alpha.AccessNumericFilter) oneFilter_; - } - return com.google.analytics.admin.v1alpha.AccessNumericFilter.getDefaultInstance(); - } - } - /** - * - * - *
-     * A filter for numeric or date values.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessNumericFilter numeric_filter = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessNumericFilter, - com.google.analytics.admin.v1alpha.AccessNumericFilter.Builder, - com.google.analytics.admin.v1alpha.AccessNumericFilterOrBuilder> - getNumericFilterFieldBuilder() { - if (numericFilterBuilder_ == null) { - if (!(oneFilterCase_ == 4)) { - oneFilter_ = com.google.analytics.admin.v1alpha.AccessNumericFilter.getDefaultInstance(); - } - numericFilterBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessNumericFilter, - com.google.analytics.admin.v1alpha.AccessNumericFilter.Builder, - com.google.analytics.admin.v1alpha.AccessNumericFilterOrBuilder>( - (com.google.analytics.admin.v1alpha.AccessNumericFilter) oneFilter_, - getParentForChildren(), - isClean()); - oneFilter_ = null; - } - oneFilterCase_ = 4; - onChanged(); - ; - return numericFilterBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessBetweenFilter, - com.google.analytics.admin.v1alpha.AccessBetweenFilter.Builder, - com.google.analytics.admin.v1alpha.AccessBetweenFilterOrBuilder> - betweenFilterBuilder_; - /** - * - * - *
-     * A filter for two values.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessBetweenFilter between_filter = 5; - * - * @return Whether the betweenFilter field is set. - */ - @java.lang.Override - public boolean hasBetweenFilter() { - return oneFilterCase_ == 5; - } - /** - * - * - *
-     * A filter for two values.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessBetweenFilter between_filter = 5; - * - * @return The betweenFilter. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessBetweenFilter getBetweenFilter() { - if (betweenFilterBuilder_ == null) { - if (oneFilterCase_ == 5) { - return (com.google.analytics.admin.v1alpha.AccessBetweenFilter) oneFilter_; - } - return com.google.analytics.admin.v1alpha.AccessBetweenFilter.getDefaultInstance(); - } else { - if (oneFilterCase_ == 5) { - return betweenFilterBuilder_.getMessage(); - } - return com.google.analytics.admin.v1alpha.AccessBetweenFilter.getDefaultInstance(); - } - } - /** - * - * - *
-     * A filter for two values.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessBetweenFilter between_filter = 5; - */ - public Builder setBetweenFilter(com.google.analytics.admin.v1alpha.AccessBetweenFilter value) { - if (betweenFilterBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - oneFilter_ = value; - onChanged(); - } else { - betweenFilterBuilder_.setMessage(value); - } - oneFilterCase_ = 5; - return this; - } - /** - * - * - *
-     * A filter for two values.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessBetweenFilter between_filter = 5; - */ - public Builder setBetweenFilter( - com.google.analytics.admin.v1alpha.AccessBetweenFilter.Builder builderForValue) { - if (betweenFilterBuilder_ == null) { - oneFilter_ = builderForValue.build(); - onChanged(); - } else { - betweenFilterBuilder_.setMessage(builderForValue.build()); - } - oneFilterCase_ = 5; - return this; - } - /** - * - * - *
-     * A filter for two values.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessBetweenFilter between_filter = 5; - */ - public Builder mergeBetweenFilter( - com.google.analytics.admin.v1alpha.AccessBetweenFilter value) { - if (betweenFilterBuilder_ == null) { - if (oneFilterCase_ == 5 - && oneFilter_ - != com.google.analytics.admin.v1alpha.AccessBetweenFilter.getDefaultInstance()) { - oneFilter_ = - com.google.analytics.admin.v1alpha.AccessBetweenFilter.newBuilder( - (com.google.analytics.admin.v1alpha.AccessBetweenFilter) oneFilter_) - .mergeFrom(value) - .buildPartial(); - } else { - oneFilter_ = value; - } - onChanged(); - } else { - if (oneFilterCase_ == 5) { - betweenFilterBuilder_.mergeFrom(value); - } else { - betweenFilterBuilder_.setMessage(value); - } - } - oneFilterCase_ = 5; - return this; - } - /** - * - * - *
-     * A filter for two values.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessBetweenFilter between_filter = 5; - */ - public Builder clearBetweenFilter() { - if (betweenFilterBuilder_ == null) { - if (oneFilterCase_ == 5) { - oneFilterCase_ = 0; - oneFilter_ = null; - onChanged(); - } - } else { - if (oneFilterCase_ == 5) { - oneFilterCase_ = 0; - oneFilter_ = null; - } - betweenFilterBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * A filter for two values.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessBetweenFilter between_filter = 5; - */ - public com.google.analytics.admin.v1alpha.AccessBetweenFilter.Builder - getBetweenFilterBuilder() { - return getBetweenFilterFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * A filter for two values.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessBetweenFilter between_filter = 5; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessBetweenFilterOrBuilder - getBetweenFilterOrBuilder() { - if ((oneFilterCase_ == 5) && (betweenFilterBuilder_ != null)) { - return betweenFilterBuilder_.getMessageOrBuilder(); - } else { - if (oneFilterCase_ == 5) { - return (com.google.analytics.admin.v1alpha.AccessBetweenFilter) oneFilter_; - } - return com.google.analytics.admin.v1alpha.AccessBetweenFilter.getDefaultInstance(); - } - } - /** - * - * - *
-     * A filter for two values.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessBetweenFilter between_filter = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessBetweenFilter, - com.google.analytics.admin.v1alpha.AccessBetweenFilter.Builder, - com.google.analytics.admin.v1alpha.AccessBetweenFilterOrBuilder> - getBetweenFilterFieldBuilder() { - if (betweenFilterBuilder_ == null) { - if (!(oneFilterCase_ == 5)) { - oneFilter_ = com.google.analytics.admin.v1alpha.AccessBetweenFilter.getDefaultInstance(); - } - betweenFilterBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessBetweenFilter, - com.google.analytics.admin.v1alpha.AccessBetweenFilter.Builder, - com.google.analytics.admin.v1alpha.AccessBetweenFilterOrBuilder>( - (com.google.analytics.admin.v1alpha.AccessBetweenFilter) oneFilter_, - getParentForChildren(), - isClean()); - oneFilter_ = null; - } - oneFilterCase_ = 5; - onChanged(); - ; - return betweenFilterBuilder_; - } - - private java.lang.Object fieldName_ = ""; - /** - * - * - *
-     * The dimension name or metric name.
-     * 
- * - * string field_name = 1; - * - * @return The fieldName. - */ - public java.lang.String getFieldName() { - java.lang.Object ref = fieldName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - fieldName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The dimension name or metric name.
-     * 
- * - * string field_name = 1; - * - * @return The bytes for fieldName. - */ - public com.google.protobuf.ByteString getFieldNameBytes() { - java.lang.Object ref = fieldName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - fieldName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The dimension name or metric name.
-     * 
- * - * string field_name = 1; - * - * @param value The fieldName to set. - * @return This builder for chaining. - */ - public Builder setFieldName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - fieldName_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The dimension name or metric name.
-     * 
- * - * string field_name = 1; - * - * @return This builder for chaining. - */ - public Builder clearFieldName() { - - fieldName_ = getDefaultInstance().getFieldName(); - onChanged(); - return this; - } - /** - * - * - *
-     * The dimension name or metric name.
-     * 
- * - * string field_name = 1; - * - * @param value The bytes for fieldName to set. - * @return This builder for chaining. - */ - public Builder setFieldNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - fieldName_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.AccessFilter) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AccessFilter) - private static final com.google.analytics.admin.v1alpha.AccessFilter DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.AccessFilter(); - } - - public static com.google.analytics.admin.v1alpha.AccessFilter getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AccessFilter parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessFilterExpression.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessFilterExpression.java deleted file mode 100644 index 91e64daa..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessFilterExpression.java +++ /dev/null @@ -1,1752 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/access_report.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * Expresses dimension or metric filters. The fields in the same expression need
- * to be either all dimensions or all metrics.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.AccessFilterExpression} - */ -public final class AccessFilterExpression extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AccessFilterExpression) - AccessFilterExpressionOrBuilder { - private static final long serialVersionUID = 0L; - // Use AccessFilterExpression.newBuilder() to construct. - private AccessFilterExpression(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private AccessFilterExpression() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new AccessFilterExpression(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.AccessReportProto - .internal_static_google_analytics_admin_v1alpha_AccessFilterExpression_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AccessReportProto - .internal_static_google_analytics_admin_v1alpha_AccessFilterExpression_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.AccessFilterExpression.class, - com.google.analytics.admin.v1alpha.AccessFilterExpression.Builder.class); - } - - private int oneExpressionCase_ = 0; - private java.lang.Object oneExpression_; - - public enum OneExpressionCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - AND_GROUP(1), - OR_GROUP(2), - NOT_EXPRESSION(3), - ACCESS_FILTER(4), - ONEEXPRESSION_NOT_SET(0); - private final int value; - - private OneExpressionCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static OneExpressionCase valueOf(int value) { - return forNumber(value); - } - - public static OneExpressionCase forNumber(int value) { - switch (value) { - case 1: - return AND_GROUP; - case 2: - return OR_GROUP; - case 3: - return NOT_EXPRESSION; - case 4: - return ACCESS_FILTER; - case 0: - return ONEEXPRESSION_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public OneExpressionCase getOneExpressionCase() { - return OneExpressionCase.forNumber(oneExpressionCase_); - } - - public static final int AND_GROUP_FIELD_NUMBER = 1; - /** - * - * - *
-   * Each of the FilterExpressions in the and_group has an AND relationship.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessFilterExpressionList and_group = 1; - * - * @return Whether the andGroup field is set. - */ - @java.lang.Override - public boolean hasAndGroup() { - return oneExpressionCase_ == 1; - } - /** - * - * - *
-   * Each of the FilterExpressions in the and_group has an AND relationship.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessFilterExpressionList and_group = 1; - * - * @return The andGroup. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessFilterExpressionList getAndGroup() { - if (oneExpressionCase_ == 1) { - return (com.google.analytics.admin.v1alpha.AccessFilterExpressionList) oneExpression_; - } - return com.google.analytics.admin.v1alpha.AccessFilterExpressionList.getDefaultInstance(); - } - /** - * - * - *
-   * Each of the FilterExpressions in the and_group has an AND relationship.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessFilterExpressionList and_group = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessFilterExpressionListOrBuilder - getAndGroupOrBuilder() { - if (oneExpressionCase_ == 1) { - return (com.google.analytics.admin.v1alpha.AccessFilterExpressionList) oneExpression_; - } - return com.google.analytics.admin.v1alpha.AccessFilterExpressionList.getDefaultInstance(); - } - - public static final int OR_GROUP_FIELD_NUMBER = 2; - /** - * - * - *
-   * Each of the FilterExpressions in the or_group has an OR relationship.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessFilterExpressionList or_group = 2; - * - * @return Whether the orGroup field is set. - */ - @java.lang.Override - public boolean hasOrGroup() { - return oneExpressionCase_ == 2; - } - /** - * - * - *
-   * Each of the FilterExpressions in the or_group has an OR relationship.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessFilterExpressionList or_group = 2; - * - * @return The orGroup. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessFilterExpressionList getOrGroup() { - if (oneExpressionCase_ == 2) { - return (com.google.analytics.admin.v1alpha.AccessFilterExpressionList) oneExpression_; - } - return com.google.analytics.admin.v1alpha.AccessFilterExpressionList.getDefaultInstance(); - } - /** - * - * - *
-   * Each of the FilterExpressions in the or_group has an OR relationship.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessFilterExpressionList or_group = 2; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessFilterExpressionListOrBuilder - getOrGroupOrBuilder() { - if (oneExpressionCase_ == 2) { - return (com.google.analytics.admin.v1alpha.AccessFilterExpressionList) oneExpression_; - } - return com.google.analytics.admin.v1alpha.AccessFilterExpressionList.getDefaultInstance(); - } - - public static final int NOT_EXPRESSION_FIELD_NUMBER = 3; - /** - * - * - *
-   * The FilterExpression is NOT of not_expression.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessFilterExpression not_expression = 3; - * - * @return Whether the notExpression field is set. - */ - @java.lang.Override - public boolean hasNotExpression() { - return oneExpressionCase_ == 3; - } - /** - * - * - *
-   * The FilterExpression is NOT of not_expression.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessFilterExpression not_expression = 3; - * - * @return The notExpression. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessFilterExpression getNotExpression() { - if (oneExpressionCase_ == 3) { - return (com.google.analytics.admin.v1alpha.AccessFilterExpression) oneExpression_; - } - return com.google.analytics.admin.v1alpha.AccessFilterExpression.getDefaultInstance(); - } - /** - * - * - *
-   * The FilterExpression is NOT of not_expression.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessFilterExpression not_expression = 3; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessFilterExpressionOrBuilder - getNotExpressionOrBuilder() { - if (oneExpressionCase_ == 3) { - return (com.google.analytics.admin.v1alpha.AccessFilterExpression) oneExpression_; - } - return com.google.analytics.admin.v1alpha.AccessFilterExpression.getDefaultInstance(); - } - - public static final int ACCESS_FILTER_FIELD_NUMBER = 4; - /** - * - * - *
-   * A primitive filter. In the same FilterExpression, all of the filter's
-   * field names need to be either all dimensions or all metrics.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessFilter access_filter = 4; - * - * @return Whether the accessFilter field is set. - */ - @java.lang.Override - public boolean hasAccessFilter() { - return oneExpressionCase_ == 4; - } - /** - * - * - *
-   * A primitive filter. In the same FilterExpression, all of the filter's
-   * field names need to be either all dimensions or all metrics.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessFilter access_filter = 4; - * - * @return The accessFilter. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessFilter getAccessFilter() { - if (oneExpressionCase_ == 4) { - return (com.google.analytics.admin.v1alpha.AccessFilter) oneExpression_; - } - return com.google.analytics.admin.v1alpha.AccessFilter.getDefaultInstance(); - } - /** - * - * - *
-   * A primitive filter. In the same FilterExpression, all of the filter's
-   * field names need to be either all dimensions or all metrics.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessFilter access_filter = 4; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessFilterOrBuilder getAccessFilterOrBuilder() { - if (oneExpressionCase_ == 4) { - return (com.google.analytics.admin.v1alpha.AccessFilter) oneExpression_; - } - return com.google.analytics.admin.v1alpha.AccessFilter.getDefaultInstance(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (oneExpressionCase_ == 1) { - output.writeMessage( - 1, (com.google.analytics.admin.v1alpha.AccessFilterExpressionList) oneExpression_); - } - if (oneExpressionCase_ == 2) { - output.writeMessage( - 2, (com.google.analytics.admin.v1alpha.AccessFilterExpressionList) oneExpression_); - } - if (oneExpressionCase_ == 3) { - output.writeMessage( - 3, (com.google.analytics.admin.v1alpha.AccessFilterExpression) oneExpression_); - } - if (oneExpressionCase_ == 4) { - output.writeMessage(4, (com.google.analytics.admin.v1alpha.AccessFilter) oneExpression_); - } - 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(); - 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 (oneExpressionCase_ == 1) { - if (andGroupBuilder_ == null) { - result.oneExpression_ = oneExpression_; - } else { - result.oneExpression_ = andGroupBuilder_.build(); - } - } - if (oneExpressionCase_ == 2) { - if (orGroupBuilder_ == null) { - result.oneExpression_ = oneExpression_; - } else { - result.oneExpression_ = orGroupBuilder_.build(); - } - } - if (oneExpressionCase_ == 3) { - if (notExpressionBuilder_ == null) { - result.oneExpression_ = oneExpression_; - } else { - result.oneExpression_ = notExpressionBuilder_.build(); - } - } - if (oneExpressionCase_ == 4) { - if (accessFilterBuilder_ == null) { - result.oneExpression_ = oneExpression_; - } else { - result.oneExpression_ = accessFilterBuilder_.build(); - } - } - result.oneExpressionCase_ = oneExpressionCase_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.AccessFilterExpression) { - return mergeFrom((com.google.analytics.admin.v1alpha.AccessFilterExpression) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.AccessFilterExpression other) { - if (other == com.google.analytics.admin.v1alpha.AccessFilterExpression.getDefaultInstance()) - return this; - switch (other.getOneExpressionCase()) { - case AND_GROUP: - { - mergeAndGroup(other.getAndGroup()); - break; - } - case OR_GROUP: - { - mergeOrGroup(other.getOrGroup()); - break; - } - case NOT_EXPRESSION: - { - mergeNotExpression(other.getNotExpression()); - break; - } - case ACCESS_FILTER: - { - mergeAccessFilter(other.getAccessFilter()); - break; - } - case ONEEXPRESSION_NOT_SET: - { - break; - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessFilterExpressionList.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessFilterExpressionList.java deleted file mode 100644 index 29e2124d..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessFilterExpressionList.java +++ /dev/null @@ -1,951 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/access_report.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * A list of filter expressions.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.AccessFilterExpressionList} - */ -public final class AccessFilterExpressionList extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AccessFilterExpressionList) - AccessFilterExpressionListOrBuilder { - private static final long serialVersionUID = 0L; - // Use AccessFilterExpressionList.newBuilder() to construct. - private AccessFilterExpressionList(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private AccessFilterExpressionList() { - expressions_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new AccessFilterExpressionList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.AccessReportProto - .internal_static_google_analytics_admin_v1alpha_AccessFilterExpressionList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AccessReportProto - .internal_static_google_analytics_admin_v1alpha_AccessFilterExpressionList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.AccessFilterExpressionList.class, - com.google.analytics.admin.v1alpha.AccessFilterExpressionList.Builder.class); - } - - public static final int EXPRESSIONS_FIELD_NUMBER = 1; - private java.util.List expressions_; - /** - * - * - *
-   * A list of filter expressions.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessFilterExpression expressions = 1; - */ - @java.lang.Override - public java.util.List - getExpressionsList() { - return expressions_; - } - /** - * - * - *
-   * A list of filter expressions.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessFilterExpression expressions = 1; - */ - @java.lang.Override - public java.util.List< - ? extends com.google.analytics.admin.v1alpha.AccessFilterExpressionOrBuilder> - getExpressionsOrBuilderList() { - return expressions_; - } - /** - * - * - *
-   * A list of filter expressions.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessFilterExpression expressions = 1; - */ - @java.lang.Override - public int getExpressionsCount() { - return expressions_.size(); - } - /** - * - * - *
-   * A list of filter expressions.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessFilterExpression expressions = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessFilterExpression getExpressions(int index) { - return expressions_.get(index); - } - /** - * - * - *
-   * A list of filter expressions.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessFilterExpression expressions = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessFilterExpressionOrBuilder getExpressionsOrBuilder( - int index) { - return expressions_.get(index); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - for (int i = 0; i < expressions_.size(); i++) { - output.writeMessage(1, expressions_.get(i)); - } - 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(); - 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); - int from_bitField0_ = bitField0_; - if (expressionsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - expressions_ = java.util.Collections.unmodifiableList(expressions_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.expressions_ = expressions_; - } else { - result.expressions_ = expressionsBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.AccessFilterExpressionList) { - return mergeFrom((com.google.analytics.admin.v1alpha.AccessFilterExpressionList) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.AccessFilterExpressionList other) { - if (other - == com.google.analytics.admin.v1alpha.AccessFilterExpressionList.getDefaultInstance()) - return this; - if (expressionsBuilder_ == null) { - if (!other.expressions_.isEmpty()) { - if (expressions_.isEmpty()) { - expressions_ = other.expressions_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureExpressionsIsMutable(); - expressions_.addAll(other.expressions_); - } - onChanged(); - } - } else { - if (!other.expressions_.isEmpty()) { - if (expressionsBuilder_.isEmpty()) { - expressionsBuilder_.dispose(); - expressionsBuilder_ = null; - expressions_ = other.expressions_; - bitField0_ = (bitField0_ & ~0x00000001); - expressionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getExpressionsFieldBuilder() - : null; - } else { - expressionsBuilder_.addAllMessages(other.expressions_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessFilterExpressionListOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessFilterExpressionListOrBuilder.java deleted file mode 100644 index 6b631164..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessFilterExpressionListOrBuilder.java +++ /dev/null @@ -1,78 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessFilterExpressionOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessFilterExpressionOrBuilder.java deleted file mode 100644 index a0186112..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessFilterExpressionOrBuilder.java +++ /dev/null @@ -1,171 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/access_report.proto - -package com.google.analytics.admin.v1alpha; - -public interface AccessFilterExpressionOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.AccessFilterExpression) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Each of the FilterExpressions in the and_group has an AND relationship.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessFilterExpressionList and_group = 1; - * - * @return Whether the andGroup field is set. - */ - boolean hasAndGroup(); - /** - * - * - *
-   * Each of the FilterExpressions in the and_group has an AND relationship.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessFilterExpressionList and_group = 1; - * - * @return The andGroup. - */ - com.google.analytics.admin.v1alpha.AccessFilterExpressionList getAndGroup(); - /** - * - * - *
-   * Each of the FilterExpressions in the and_group has an AND relationship.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessFilterExpressionList and_group = 1; - */ - com.google.analytics.admin.v1alpha.AccessFilterExpressionListOrBuilder getAndGroupOrBuilder(); - - /** - * - * - *
-   * Each of the FilterExpressions in the or_group has an OR relationship.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessFilterExpressionList or_group = 2; - * - * @return Whether the orGroup field is set. - */ - boolean hasOrGroup(); - /** - * - * - *
-   * Each of the FilterExpressions in the or_group has an OR relationship.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessFilterExpressionList or_group = 2; - * - * @return The orGroup. - */ - com.google.analytics.admin.v1alpha.AccessFilterExpressionList getOrGroup(); - /** - * - * - *
-   * Each of the FilterExpressions in the or_group has an OR relationship.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessFilterExpressionList or_group = 2; - */ - com.google.analytics.admin.v1alpha.AccessFilterExpressionListOrBuilder getOrGroupOrBuilder(); - - /** - * - * - *
-   * The FilterExpression is NOT of not_expression.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessFilterExpression not_expression = 3; - * - * @return Whether the notExpression field is set. - */ - boolean hasNotExpression(); - /** - * - * - *
-   * The FilterExpression is NOT of not_expression.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessFilterExpression not_expression = 3; - * - * @return The notExpression. - */ - com.google.analytics.admin.v1alpha.AccessFilterExpression getNotExpression(); - /** - * - * - *
-   * The FilterExpression is NOT of not_expression.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessFilterExpression not_expression = 3; - */ - com.google.analytics.admin.v1alpha.AccessFilterExpressionOrBuilder getNotExpressionOrBuilder(); - - /** - * - * - *
-   * A primitive filter. In the same FilterExpression, all of the filter's
-   * field names need to be either all dimensions or all metrics.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessFilter access_filter = 4; - * - * @return Whether the accessFilter field is set. - */ - boolean hasAccessFilter(); - /** - * - * - *
-   * A primitive filter. In the same FilterExpression, all of the filter's
-   * field names need to be either all dimensions or all metrics.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessFilter access_filter = 4; - * - * @return The accessFilter. - */ - com.google.analytics.admin.v1alpha.AccessFilter getAccessFilter(); - /** - * - * - *
-   * A primitive filter. In the same FilterExpression, all of the filter's
-   * field names need to be either all dimensions or all metrics.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessFilter access_filter = 4; - */ - com.google.analytics.admin.v1alpha.AccessFilterOrBuilder getAccessFilterOrBuilder(); - - public com.google.analytics.admin.v1alpha.AccessFilterExpression.OneExpressionCase - getOneExpressionCase(); -} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessFilterOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessFilterOrBuilder.java deleted file mode 100644 index 476b29c2..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessFilterOrBuilder.java +++ /dev/null @@ -1,192 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/access_report.proto - -package com.google.analytics.admin.v1alpha; - -public interface AccessFilterOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.AccessFilter) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Strings related filter.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessStringFilter string_filter = 2; - * - * @return Whether the stringFilter field is set. - */ - boolean hasStringFilter(); - /** - * - * - *
-   * Strings related filter.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessStringFilter string_filter = 2; - * - * @return The stringFilter. - */ - com.google.analytics.admin.v1alpha.AccessStringFilter getStringFilter(); - /** - * - * - *
-   * Strings related filter.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessStringFilter string_filter = 2; - */ - com.google.analytics.admin.v1alpha.AccessStringFilterOrBuilder getStringFilterOrBuilder(); - - /** - * - * - *
-   * A filter for in list values.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessInListFilter in_list_filter = 3; - * - * @return Whether the inListFilter field is set. - */ - boolean hasInListFilter(); - /** - * - * - *
-   * A filter for in list values.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessInListFilter in_list_filter = 3; - * - * @return The inListFilter. - */ - com.google.analytics.admin.v1alpha.AccessInListFilter getInListFilter(); - /** - * - * - *
-   * A filter for in list values.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessInListFilter in_list_filter = 3; - */ - com.google.analytics.admin.v1alpha.AccessInListFilterOrBuilder getInListFilterOrBuilder(); - - /** - * - * - *
-   * A filter for numeric or date values.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessNumericFilter numeric_filter = 4; - * - * @return Whether the numericFilter field is set. - */ - boolean hasNumericFilter(); - /** - * - * - *
-   * A filter for numeric or date values.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessNumericFilter numeric_filter = 4; - * - * @return The numericFilter. - */ - com.google.analytics.admin.v1alpha.AccessNumericFilter getNumericFilter(); - /** - * - * - *
-   * A filter for numeric or date values.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessNumericFilter numeric_filter = 4; - */ - com.google.analytics.admin.v1alpha.AccessNumericFilterOrBuilder getNumericFilterOrBuilder(); - - /** - * - * - *
-   * A filter for two values.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessBetweenFilter between_filter = 5; - * - * @return Whether the betweenFilter field is set. - */ - boolean hasBetweenFilter(); - /** - * - * - *
-   * A filter for two values.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessBetweenFilter between_filter = 5; - * - * @return The betweenFilter. - */ - com.google.analytics.admin.v1alpha.AccessBetweenFilter getBetweenFilter(); - /** - * - * - *
-   * A filter for two values.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessBetweenFilter between_filter = 5; - */ - com.google.analytics.admin.v1alpha.AccessBetweenFilterOrBuilder getBetweenFilterOrBuilder(); - - /** - * - * - *
-   * The dimension name or metric name.
-   * 
- * - * string field_name = 1; - * - * @return The fieldName. - */ - java.lang.String getFieldName(); - /** - * - * - *
-   * The dimension name or metric name.
-   * 
- * - * string field_name = 1; - * - * @return The bytes for fieldName. - */ - com.google.protobuf.ByteString getFieldNameBytes(); - - public com.google.analytics.admin.v1alpha.AccessFilter.OneFilterCase getOneFilterCase(); -} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessInListFilter.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessInListFilter.java deleted file mode 100644 index 02af737e..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessInListFilter.java +++ /dev/null @@ -1,802 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/access_report.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * The result needs to be in a list of string values.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.AccessInListFilter} - */ -public final class AccessInListFilter extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AccessInListFilter) - AccessInListFilterOrBuilder { - private static final long serialVersionUID = 0L; - // Use AccessInListFilter.newBuilder() to construct. - private AccessInListFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private AccessInListFilter() { - values_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new AccessInListFilter(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.AccessReportProto - .internal_static_google_analytics_admin_v1alpha_AccessInListFilter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AccessReportProto - .internal_static_google_analytics_admin_v1alpha_AccessInListFilter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.AccessInListFilter.class, - com.google.analytics.admin.v1alpha.AccessInListFilter.Builder.class); - } - - public static final int VALUES_FIELD_NUMBER = 1; - private com.google.protobuf.LazyStringList values_; - /** - * - * - *
-   * The list of string values. Must be non-empty.
-   * 
- * - * repeated string values = 1; - * - * @return A list containing the values. - */ - public com.google.protobuf.ProtocolStringList getValuesList() { - return values_; - } - /** - * - * - *
-   * The list of string values. Must be non-empty.
-   * 
- * - * repeated string values = 1; - * - * @return The count of values. - */ - public int getValuesCount() { - return values_.size(); - } - /** - * - * - *
-   * The list of string values. Must be non-empty.
-   * 
- * - * repeated string values = 1; - * - * @param index The index of the element to return. - * @return The values at the given index. - */ - public java.lang.String getValues(int index) { - return values_.get(index); - } - /** - * - * - *
-   * The list of string values. Must be non-empty.
-   * 
- * - * repeated string values = 1; - * - * @param index The index of the value to return. - * @return The bytes of the values at the given index. - */ - public com.google.protobuf.ByteString getValuesBytes(int index) { - return values_.getByteString(index); - } - - public static final int CASE_SENSITIVE_FIELD_NUMBER = 2; - private boolean caseSensitive_; - /** - * - * - *
-   * If true, the string value is case sensitive.
-   * 
- * - * bool case_sensitive = 2; - * - * @return The caseSensitive. - */ - @java.lang.Override - public boolean getCaseSensitive() { - return caseSensitive_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - for (int i = 0; i < values_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, values_.getRaw(i)); - } - if (caseSensitive_ != false) { - output.writeBool(2, caseSensitive_); - } - 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(); - values_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - caseSensitive_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AccessReportProto - .internal_static_google_analytics_admin_v1alpha_AccessInListFilter_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessInListFilter getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.AccessInListFilter.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessInListFilter build() { - com.google.analytics.admin.v1alpha.AccessInListFilter result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessInListFilter buildPartial() { - com.google.analytics.admin.v1alpha.AccessInListFilter result = - new com.google.analytics.admin.v1alpha.AccessInListFilter(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) != 0)) { - values_ = values_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.values_ = values_; - result.caseSensitive_ = caseSensitive_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.AccessInListFilter) { - return mergeFrom((com.google.analytics.admin.v1alpha.AccessInListFilter) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.AccessInListFilter other) { - if (other == com.google.analytics.admin.v1alpha.AccessInListFilter.getDefaultInstance()) - return this; - if (!other.values_.isEmpty()) { - if (values_.isEmpty()) { - values_ = other.values_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureValuesIsMutable(); - values_.addAll(other.values_); - } - onChanged(); - } - if (other.getCaseSensitive() != false) { - setCaseSensitive(other.getCaseSensitive()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - 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.LazyStringList values_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureValuesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - values_ = new com.google.protobuf.LazyStringArrayList(values_); - bitField0_ |= 0x00000001; - } - } - /** - * - * - *
-     * The list of string values. Must be non-empty.
-     * 
- * - * repeated string values = 1; - * - * @return A list containing the values. - */ - public com.google.protobuf.ProtocolStringList getValuesList() { - return values_.getUnmodifiableView(); - } - /** - * - * - *
-     * The list of string values. Must be non-empty.
-     * 
- * - * repeated string values = 1; - * - * @return The count of values. - */ - public int getValuesCount() { - return values_.size(); - } - /** - * - * - *
-     * The list of string values. Must be non-empty.
-     * 
- * - * repeated string values = 1; - * - * @param index The index of the element to return. - * @return The values at the given index. - */ - public java.lang.String getValues(int index) { - return values_.get(index); - } - /** - * - * - *
-     * The list of string values. Must be non-empty.
-     * 
- * - * repeated string values = 1; - * - * @param index The index of the value to return. - * @return The bytes of the values at the given index. - */ - public com.google.protobuf.ByteString getValuesBytes(int index) { - return values_.getByteString(index); - } - /** - * - * - *
-     * The list of string values. Must be non-empty.
-     * 
- * - * repeated string values = 1; - * - * @param index The index to set the value at. - * @param value The values to set. - * @return This builder for chaining. - */ - public Builder setValues(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureValuesIsMutable(); - values_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * The list of string values. Must be non-empty.
-     * 
- * - * repeated string values = 1; - * - * @param value The values to add. - * @return This builder for chaining. - */ - public Builder addValues(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureValuesIsMutable(); - values_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * The list of string values. Must be non-empty.
-     * 
- * - * repeated string values = 1; - * - * @param values The values to add. - * @return This builder for chaining. - */ - public Builder addAllValues(java.lang.Iterable values) { - ensureValuesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, values_); - onChanged(); - return this; - } - /** - * - * - *
-     * The list of string values. Must be non-empty.
-     * 
- * - * repeated string values = 1; - * - * @return This builder for chaining. - */ - public Builder clearValues() { - values_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * The list of string values. Must be non-empty.
-     * 
- * - * repeated string values = 1; - * - * @param value The bytes of the values to add. - * @return This builder for chaining. - */ - public Builder addValuesBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureValuesIsMutable(); - values_.add(value); - onChanged(); - return this; - } - - private boolean caseSensitive_; - /** - * - * - *
-     * If true, the string value is case sensitive.
-     * 
- * - * bool case_sensitive = 2; - * - * @return The caseSensitive. - */ - @java.lang.Override - public boolean getCaseSensitive() { - return caseSensitive_; - } - /** - * - * - *
-     * If true, the string value is case sensitive.
-     * 
- * - * bool case_sensitive = 2; - * - * @param value The caseSensitive to set. - * @return This builder for chaining. - */ - public Builder setCaseSensitive(boolean value) { - - caseSensitive_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * If true, the string value is case sensitive.
-     * 
- * - * bool case_sensitive = 2; - * - * @return This builder for chaining. - */ - public Builder clearCaseSensitive() { - - caseSensitive_ = false; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.AccessInListFilter) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AccessInListFilter) - private static final com.google.analytics.admin.v1alpha.AccessInListFilter DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.AccessInListFilter(); - } - - public static com.google.analytics.admin.v1alpha.AccessInListFilter getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AccessInListFilter parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessInListFilterOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessInListFilterOrBuilder.java deleted file mode 100644 index 5d6d298f..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessInListFilterOrBuilder.java +++ /dev/null @@ -1,89 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessMetric.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessMetric.java deleted file mode 100644 index 29e7fa49..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessMetric.java +++ /dev/null @@ -1,638 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/access_report.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * The quantitative measurements of a report. For example, the metric
- * `accessCount` is the total number of data access records.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.AccessMetric} - */ -public final class AccessMetric extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AccessMetric) - AccessMetricOrBuilder { - private static final long serialVersionUID = 0L; - // Use AccessMetric.newBuilder() to construct. - private AccessMetric(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private AccessMetric() { - metricName_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new AccessMetric(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.AccessReportProto - .internal_static_google_analytics_admin_v1alpha_AccessMetric_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AccessReportProto - .internal_static_google_analytics_admin_v1alpha_AccessMetric_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.AccessMetric.class, - com.google.analytics.admin.v1alpha.AccessMetric.Builder.class); - } - - public static final int METRIC_NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object metricName_; - /** - * - * - *
-   * The API name of the metric. See [Data Access
-   * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema)
-   * for the list of metrics supported in this API.
-   * Metrics are referenced by name in `metricFilter` & `orderBys`.
-   * 
- * - * string metric_name = 1; - * - * @return The metricName. - */ - @java.lang.Override - public java.lang.String getMetricName() { - java.lang.Object ref = metricName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - metricName_ = s; - return s; - } - } - /** - * - * - *
-   * The API name of the metric. See [Data Access
-   * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema)
-   * for the list of metrics supported in this API.
-   * Metrics are referenced by name in `metricFilter` & `orderBys`.
-   * 
- * - * string metric_name = 1; - * - * @return The bytes for metricName. - */ - @java.lang.Override - public com.google.protobuf.ByteString getMetricNameBytes() { - java.lang.Object ref = metricName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - metricName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(metricName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, metricName_); - } - getUnknownFields().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(); - metricName_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AccessReportProto - .internal_static_google_analytics_admin_v1alpha_AccessMetric_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessMetric getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.AccessMetric.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessMetric build() { - com.google.analytics.admin.v1alpha.AccessMetric result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessMetric buildPartial() { - com.google.analytics.admin.v1alpha.AccessMetric result = - new com.google.analytics.admin.v1alpha.AccessMetric(this); - result.metricName_ = metricName_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.AccessMetric) { - return mergeFrom((com.google.analytics.admin.v1alpha.AccessMetric) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.AccessMetric other) { - if (other == com.google.analytics.admin.v1alpha.AccessMetric.getDefaultInstance()) - return this; - if (!other.getMetricName().isEmpty()) { - metricName_ = other.metricName_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - 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 java.lang.Object metricName_ = ""; - /** - * - * - *
-     * The API name of the metric. See [Data Access
-     * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema)
-     * for the list of metrics supported in this API.
-     * Metrics are referenced by name in `metricFilter` & `orderBys`.
-     * 
- * - * string metric_name = 1; - * - * @return The metricName. - */ - public java.lang.String getMetricName() { - java.lang.Object ref = metricName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - metricName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The API name of the metric. See [Data Access
-     * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema)
-     * for the list of metrics supported in this API.
-     * Metrics are referenced by name in `metricFilter` & `orderBys`.
-     * 
- * - * string metric_name = 1; - * - * @return The bytes for metricName. - */ - public com.google.protobuf.ByteString getMetricNameBytes() { - java.lang.Object ref = metricName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - metricName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The API name of the metric. See [Data Access
-     * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema)
-     * for the list of metrics supported in this API.
-     * Metrics are referenced by name in `metricFilter` & `orderBys`.
-     * 
- * - * string metric_name = 1; - * - * @param value The metricName to set. - * @return This builder for chaining. - */ - public Builder setMetricName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - metricName_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The API name of the metric. See [Data Access
-     * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema)
-     * for the list of metrics supported in this API.
-     * Metrics are referenced by name in `metricFilter` & `orderBys`.
-     * 
- * - * string metric_name = 1; - * - * @return This builder for chaining. - */ - public Builder clearMetricName() { - - metricName_ = getDefaultInstance().getMetricName(); - onChanged(); - return this; - } - /** - * - * - *
-     * The API name of the metric. See [Data Access
-     * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema)
-     * for the list of metrics supported in this API.
-     * Metrics are referenced by name in `metricFilter` & `orderBys`.
-     * 
- * - * string metric_name = 1; - * - * @param value The bytes for metricName to set. - * @return This builder for chaining. - */ - public Builder setMetricNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - metricName_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.AccessMetric) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AccessMetric) - private static final com.google.analytics.admin.v1alpha.AccessMetric DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.AccessMetric(); - } - - public static com.google.analytics.admin.v1alpha.AccessMetric getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AccessMetric parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessMetricHeader.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessMetricHeader.java deleted file mode 100644 index 6c46ccdc..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessMetricHeader.java +++ /dev/null @@ -1,622 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/access_report.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * Describes a metric column in the report. Visible metrics requested in a
- * report produce column entries within rows and MetricHeaders. However,
- * metrics used exclusively within filters or expressions do not produce columns
- * in a report; correspondingly, those metrics do not produce headers.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.AccessMetricHeader} - */ -public final class AccessMetricHeader extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AccessMetricHeader) - AccessMetricHeaderOrBuilder { - private static final long serialVersionUID = 0L; - // Use AccessMetricHeader.newBuilder() to construct. - private AccessMetricHeader(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private AccessMetricHeader() { - metricName_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new AccessMetricHeader(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.AccessReportProto - .internal_static_google_analytics_admin_v1alpha_AccessMetricHeader_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AccessReportProto - .internal_static_google_analytics_admin_v1alpha_AccessMetricHeader_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.AccessMetricHeader.class, - com.google.analytics.admin.v1alpha.AccessMetricHeader.Builder.class); - } - - public static final int METRIC_NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object metricName_; - /** - * - * - *
-   * The metric's name; for example 'accessCount'.
-   * 
- * - * string metric_name = 1; - * - * @return The metricName. - */ - @java.lang.Override - public java.lang.String getMetricName() { - java.lang.Object ref = metricName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - metricName_ = s; - return s; - } - } - /** - * - * - *
-   * The metric's name; for example 'accessCount'.
-   * 
- * - * string metric_name = 1; - * - * @return The bytes for metricName. - */ - @java.lang.Override - public com.google.protobuf.ByteString getMetricNameBytes() { - java.lang.Object ref = metricName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - metricName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(metricName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, metricName_); - } - getUnknownFields().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(); - metricName_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AccessReportProto - .internal_static_google_analytics_admin_v1alpha_AccessMetricHeader_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessMetricHeader getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.AccessMetricHeader.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessMetricHeader build() { - com.google.analytics.admin.v1alpha.AccessMetricHeader result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessMetricHeader buildPartial() { - com.google.analytics.admin.v1alpha.AccessMetricHeader result = - new com.google.analytics.admin.v1alpha.AccessMetricHeader(this); - result.metricName_ = metricName_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.AccessMetricHeader) { - return mergeFrom((com.google.analytics.admin.v1alpha.AccessMetricHeader) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.AccessMetricHeader other) { - if (other == com.google.analytics.admin.v1alpha.AccessMetricHeader.getDefaultInstance()) - return this; - if (!other.getMetricName().isEmpty()) { - metricName_ = other.metricName_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - 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 java.lang.Object metricName_ = ""; - /** - * - * - *
-     * The metric's name; for example 'accessCount'.
-     * 
- * - * string metric_name = 1; - * - * @return The metricName. - */ - public java.lang.String getMetricName() { - java.lang.Object ref = metricName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - metricName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The metric's name; for example 'accessCount'.
-     * 
- * - * string metric_name = 1; - * - * @return The bytes for metricName. - */ - public com.google.protobuf.ByteString getMetricNameBytes() { - java.lang.Object ref = metricName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - metricName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The metric's name; for example 'accessCount'.
-     * 
- * - * string metric_name = 1; - * - * @param value The metricName to set. - * @return This builder for chaining. - */ - public Builder setMetricName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - metricName_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The metric's name; for example 'accessCount'.
-     * 
- * - * string metric_name = 1; - * - * @return This builder for chaining. - */ - public Builder clearMetricName() { - - metricName_ = getDefaultInstance().getMetricName(); - onChanged(); - return this; - } - /** - * - * - *
-     * The metric's name; for example 'accessCount'.
-     * 
- * - * string metric_name = 1; - * - * @param value The bytes for metricName to set. - * @return This builder for chaining. - */ - public Builder setMetricNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - metricName_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.AccessMetricHeader) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AccessMetricHeader) - private static final com.google.analytics.admin.v1alpha.AccessMetricHeader DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.AccessMetricHeader(); - } - - public static com.google.analytics.admin.v1alpha.AccessMetricHeader getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AccessMetricHeader parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessMetricHeaderOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessMetricHeaderOrBuilder.java deleted file mode 100644 index 9446c1b7..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessMetricHeaderOrBuilder.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessMetricOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessMetricOrBuilder.java deleted file mode 100644 index 1bca3888..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessMetricOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessMetricValue.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessMetricValue.java deleted file mode 100644 index 35add6d3..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessMetricValue.java +++ /dev/null @@ -1,615 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/access_report.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * The value of a metric.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.AccessMetricValue} - */ -public final class AccessMetricValue extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AccessMetricValue) - AccessMetricValueOrBuilder { - private static final long serialVersionUID = 0L; - // Use AccessMetricValue.newBuilder() to construct. - private AccessMetricValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private AccessMetricValue() { - value_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new AccessMetricValue(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.AccessReportProto - .internal_static_google_analytics_admin_v1alpha_AccessMetricValue_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AccessReportProto - .internal_static_google_analytics_admin_v1alpha_AccessMetricValue_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.AccessMetricValue.class, - com.google.analytics.admin.v1alpha.AccessMetricValue.Builder.class); - } - - public static final int VALUE_FIELD_NUMBER = 1; - private volatile java.lang.Object value_; - /** - * - * - *
-   * The measurement value. For example, this value may be '13'.
-   * 
- * - * string value = 1; - * - * @return The value. - */ - @java.lang.Override - public java.lang.String getValue() { - java.lang.Object ref = value_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - value_ = s; - return s; - } - } - /** - * - * - *
-   * The measurement value. For example, this value may be '13'.
-   * 
- * - * string value = 1; - * - * @return The bytes for value. - */ - @java.lang.Override - public com.google.protobuf.ByteString getValueBytes() { - java.lang.Object ref = value_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - value_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, value_); - } - getUnknownFields().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(); - value_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AccessReportProto - .internal_static_google_analytics_admin_v1alpha_AccessMetricValue_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessMetricValue getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.AccessMetricValue.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessMetricValue build() { - com.google.analytics.admin.v1alpha.AccessMetricValue result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessMetricValue buildPartial() { - com.google.analytics.admin.v1alpha.AccessMetricValue result = - new com.google.analytics.admin.v1alpha.AccessMetricValue(this); - result.value_ = value_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.AccessMetricValue) { - return mergeFrom((com.google.analytics.admin.v1alpha.AccessMetricValue) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.AccessMetricValue other) { - if (other == com.google.analytics.admin.v1alpha.AccessMetricValue.getDefaultInstance()) - return this; - if (!other.getValue().isEmpty()) { - value_ = other.value_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - 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 java.lang.Object value_ = ""; - /** - * - * - *
-     * The measurement value. For example, this value may be '13'.
-     * 
- * - * string value = 1; - * - * @return The value. - */ - public java.lang.String getValue() { - java.lang.Object ref = value_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - value_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The measurement value. For example, this value may be '13'.
-     * 
- * - * string value = 1; - * - * @return The bytes for value. - */ - public com.google.protobuf.ByteString getValueBytes() { - java.lang.Object ref = value_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - value_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The measurement value. For example, this value may be '13'.
-     * 
- * - * string value = 1; - * - * @param value The value to set. - * @return This builder for chaining. - */ - public Builder setValue(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - value_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The measurement value. For example, this value may be '13'.
-     * 
- * - * string value = 1; - * - * @return This builder for chaining. - */ - public Builder clearValue() { - - value_ = getDefaultInstance().getValue(); - onChanged(); - return this; - } - /** - * - * - *
-     * The measurement value. For example, this value may be '13'.
-     * 
- * - * string value = 1; - * - * @param value The bytes for value to set. - * @return This builder for chaining. - */ - public Builder setValueBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - value_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.AccessMetricValue) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AccessMetricValue) - private static final com.google.analytics.admin.v1alpha.AccessMetricValue DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.AccessMetricValue(); - } - - public static com.google.analytics.admin.v1alpha.AccessMetricValue getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AccessMetricValue parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessMetricValueOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessMetricValueOrBuilder.java deleted file mode 100644 index 5be52173..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessMetricValueOrBuilder.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessNumericFilter.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessNumericFilter.java deleted file mode 100644 index f3a2e571..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessNumericFilter.java +++ /dev/null @@ -1,1089 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/access_report.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * Filters for numeric or date values.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.AccessNumericFilter} - */ -public final class AccessNumericFilter extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AccessNumericFilter) - AccessNumericFilterOrBuilder { - private static final long serialVersionUID = 0L; - // Use AccessNumericFilter.newBuilder() to construct. - private AccessNumericFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private AccessNumericFilter() { - operation_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new AccessNumericFilter(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.AccessReportProto - .internal_static_google_analytics_admin_v1alpha_AccessNumericFilter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AccessReportProto - .internal_static_google_analytics_admin_v1alpha_AccessNumericFilter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.AccessNumericFilter.class, - com.google.analytics.admin.v1alpha.AccessNumericFilter.Builder.class); - } - - /** - * - * - *
-   * The operation applied to a numeric filter.
-   * 
- * - * Protobuf enum {@code google.analytics.admin.v1alpha.AccessNumericFilter.Operation} - */ - public enum Operation implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * Unspecified.
-     * 
- * - * OPERATION_UNSPECIFIED = 0; - */ - OPERATION_UNSPECIFIED(0), - /** - * - * - *
-     * Equal
-     * 
- * - * EQUAL = 1; - */ - EQUAL(1), - /** - * - * - *
-     * Less than
-     * 
- * - * LESS_THAN = 2; - */ - LESS_THAN(2), - /** - * - * - *
-     * Less than or equal
-     * 
- * - * LESS_THAN_OR_EQUAL = 3; - */ - LESS_THAN_OR_EQUAL(3), - /** - * - * - *
-     * Greater than
-     * 
- * - * GREATER_THAN = 4; - */ - GREATER_THAN(4), - /** - * - * - *
-     * Greater than or equal
-     * 
- * - * GREATER_THAN_OR_EQUAL = 5; - */ - GREATER_THAN_OR_EQUAL(5), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-     * Unspecified.
-     * 
- * - * OPERATION_UNSPECIFIED = 0; - */ - public static final int OPERATION_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-     * Equal
-     * 
- * - * EQUAL = 1; - */ - public static final int EQUAL_VALUE = 1; - /** - * - * - *
-     * Less than
-     * 
- * - * LESS_THAN = 2; - */ - public static final int LESS_THAN_VALUE = 2; - /** - * - * - *
-     * Less than or equal
-     * 
- * - * LESS_THAN_OR_EQUAL = 3; - */ - public static final int LESS_THAN_OR_EQUAL_VALUE = 3; - /** - * - * - *
-     * Greater than
-     * 
- * - * GREATER_THAN = 4; - */ - public static final int GREATER_THAN_VALUE = 4; - /** - * - * - *
-     * Greater than or equal
-     * 
- * - * GREATER_THAN_OR_EQUAL = 5; - */ - public static final int GREATER_THAN_OR_EQUAL_VALUE = 5; - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static Operation valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static Operation forNumber(int value) { - switch (value) { - case 0: - return OPERATION_UNSPECIFIED; - case 1: - return EQUAL; - case 2: - return LESS_THAN; - case 3: - return LESS_THAN_OR_EQUAL; - case 4: - return GREATER_THAN; - case 5: - return GREATER_THAN_OR_EQUAL; - default: - return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { - return internalValueMap; - } - - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Operation findValueByNumber(int number) { - return Operation.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.AccessNumericFilter.getDescriptor() - .getEnumTypes() - .get(0); - } - - private static final Operation[] VALUES = values(); - - public static Operation valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private Operation(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1alpha.AccessNumericFilter.Operation) - } - - public static final int OPERATION_FIELD_NUMBER = 1; - private int operation_; - /** - * - * - *
-   * The operation type for this filter.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessNumericFilter.Operation operation = 1; - * - * @return The enum numeric value on the wire for operation. - */ - @java.lang.Override - public int getOperationValue() { - return operation_; - } - /** - * - * - *
-   * The operation type for this filter.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessNumericFilter.Operation operation = 1; - * - * @return The operation. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessNumericFilter.Operation getOperation() { - @SuppressWarnings("deprecation") - com.google.analytics.admin.v1alpha.AccessNumericFilter.Operation result = - com.google.analytics.admin.v1alpha.AccessNumericFilter.Operation.valueOf(operation_); - return result == null - ? com.google.analytics.admin.v1alpha.AccessNumericFilter.Operation.UNRECOGNIZED - : result; - } - - public static final int VALUE_FIELD_NUMBER = 2; - private com.google.analytics.admin.v1alpha.NumericValue value_; - /** - * - * - *
-   * A numeric value or a date value.
-   * 
- * - * .google.analytics.admin.v1alpha.NumericValue value = 2; - * - * @return Whether the value field is set. - */ - @java.lang.Override - public boolean hasValue() { - return value_ != null; - } - /** - * - * - *
-   * A numeric value or a date value.
-   * 
- * - * .google.analytics.admin.v1alpha.NumericValue value = 2; - * - * @return The value. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.NumericValue getValue() { - return value_ == null - ? com.google.analytics.admin.v1alpha.NumericValue.getDefaultInstance() - : value_; - } - /** - * - * - *
-   * A numeric value or a date value.
-   * 
- * - * .google.analytics.admin.v1alpha.NumericValue value = 2; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.NumericValueOrBuilder getValueOrBuilder() { - return getValue(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (operation_ - != com.google.analytics.admin.v1alpha.AccessNumericFilter.Operation.OPERATION_UNSPECIFIED - .getNumber()) { - output.writeEnum(1, operation_); - } - if (value_ != null) { - output.writeMessage(2, getValue()); - } - 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(); - operation_ = 0; - - if (valueBuilder_ == null) { - value_ = null; - } else { - value_ = null; - valueBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AccessReportProto - .internal_static_google_analytics_admin_v1alpha_AccessNumericFilter_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessNumericFilter getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.AccessNumericFilter.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessNumericFilter build() { - com.google.analytics.admin.v1alpha.AccessNumericFilter result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessNumericFilter buildPartial() { - com.google.analytics.admin.v1alpha.AccessNumericFilter result = - new com.google.analytics.admin.v1alpha.AccessNumericFilter(this); - result.operation_ = operation_; - if (valueBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = valueBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.AccessNumericFilter) { - return mergeFrom((com.google.analytics.admin.v1alpha.AccessNumericFilter) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.AccessNumericFilter other) { - if (other == com.google.analytics.admin.v1alpha.AccessNumericFilter.getDefaultInstance()) - return this; - if (other.operation_ != 0) { - setOperationValue(other.getOperationValue()); - } - if (other.hasValue()) { - mergeValue(other.getValue()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == 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(); - - break; - } // case 8 - case 18: - { - input.readMessage(getValueFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int operation_ = 0; - /** - * - * - *
-     * The operation type for this filter.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessNumericFilter.Operation operation = 1; - * - * @return The enum numeric value on the wire for operation. - */ - @java.lang.Override - public int getOperationValue() { - return operation_; - } - /** - * - * - *
-     * The operation type for this filter.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessNumericFilter.Operation operation = 1; - * - * @param value The enum numeric value on the wire for operation to set. - * @return This builder for chaining. - */ - public Builder setOperationValue(int value) { - - operation_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The operation type for this filter.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessNumericFilter.Operation operation = 1; - * - * @return The operation. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessNumericFilter.Operation getOperation() { - @SuppressWarnings("deprecation") - com.google.analytics.admin.v1alpha.AccessNumericFilter.Operation result = - com.google.analytics.admin.v1alpha.AccessNumericFilter.Operation.valueOf(operation_); - return result == null - ? com.google.analytics.admin.v1alpha.AccessNumericFilter.Operation.UNRECOGNIZED - : result; - } - /** - * - * - *
-     * The operation type for this filter.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessNumericFilter.Operation operation = 1; - * - * @param value The operation to set. - * @return This builder for chaining. - */ - public Builder setOperation( - com.google.analytics.admin.v1alpha.AccessNumericFilter.Operation value) { - if (value == null) { - throw new NullPointerException(); - } - - operation_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * The operation type for this filter.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessNumericFilter.Operation operation = 1; - * - * @return This builder for chaining. - */ - public Builder clearOperation() { - - operation_ = 0; - onChanged(); - return this; - } - - private com.google.analytics.admin.v1alpha.NumericValue value_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.NumericValue, - com.google.analytics.admin.v1alpha.NumericValue.Builder, - com.google.analytics.admin.v1alpha.NumericValueOrBuilder> - valueBuilder_; - /** - * - * - *
-     * A numeric value or a date value.
-     * 
- * - * .google.analytics.admin.v1alpha.NumericValue value = 2; - * - * @return Whether the value field is set. - */ - public boolean hasValue() { - return valueBuilder_ != null || value_ != null; - } - /** - * - * - *
-     * A numeric value or a date value.
-     * 
- * - * .google.analytics.admin.v1alpha.NumericValue value = 2; - * - * @return The value. - */ - public com.google.analytics.admin.v1alpha.NumericValue getValue() { - if (valueBuilder_ == null) { - return value_ == null - ? com.google.analytics.admin.v1alpha.NumericValue.getDefaultInstance() - : value_; - } else { - return valueBuilder_.getMessage(); - } - } - /** - * - * - *
-     * A numeric value or a date value.
-     * 
- * - * .google.analytics.admin.v1alpha.NumericValue value = 2; - */ - public Builder setValue(com.google.analytics.admin.v1alpha.NumericValue value) { - if (valueBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - valueBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * A numeric value or a date value.
-     * 
- * - * .google.analytics.admin.v1alpha.NumericValue value = 2; - */ - public Builder setValue( - com.google.analytics.admin.v1alpha.NumericValue.Builder builderForValue) { - if (valueBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - valueBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * A numeric value or a date value.
-     * 
- * - * .google.analytics.admin.v1alpha.NumericValue value = 2; - */ - public Builder mergeValue(com.google.analytics.admin.v1alpha.NumericValue value) { - if (valueBuilder_ == null) { - if (value_ != null) { - value_ = - com.google.analytics.admin.v1alpha.NumericValue.newBuilder(value_) - .mergeFrom(value) - .buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - valueBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * A numeric value or a date value.
-     * 
- * - * .google.analytics.admin.v1alpha.NumericValue value = 2; - */ - public Builder clearValue() { - if (valueBuilder_ == null) { - value_ = null; - onChanged(); - } else { - value_ = null; - valueBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * A numeric value or a date value.
-     * 
- * - * .google.analytics.admin.v1alpha.NumericValue value = 2; - */ - public com.google.analytics.admin.v1alpha.NumericValue.Builder getValueBuilder() { - - onChanged(); - return getValueFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * A numeric value or a date value.
-     * 
- * - * .google.analytics.admin.v1alpha.NumericValue value = 2; - */ - public com.google.analytics.admin.v1alpha.NumericValueOrBuilder getValueOrBuilder() { - if (valueBuilder_ != null) { - return valueBuilder_.getMessageOrBuilder(); - } else { - return value_ == null - ? com.google.analytics.admin.v1alpha.NumericValue.getDefaultInstance() - : value_; - } - } - /** - * - * - *
-     * A numeric value or a date value.
-     * 
- * - * .google.analytics.admin.v1alpha.NumericValue value = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.NumericValue, - com.google.analytics.admin.v1alpha.NumericValue.Builder, - com.google.analytics.admin.v1alpha.NumericValueOrBuilder> - getValueFieldBuilder() { - if (valueBuilder_ == null) { - valueBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.NumericValue, - com.google.analytics.admin.v1alpha.NumericValue.Builder, - com.google.analytics.admin.v1alpha.NumericValueOrBuilder>( - getValue(), getParentForChildren(), isClean()); - value_ = null; - } - return valueBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.AccessNumericFilter) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AccessNumericFilter) - private static final com.google.analytics.admin.v1alpha.AccessNumericFilter DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.AccessNumericFilter(); - } - - public static com.google.analytics.admin.v1alpha.AccessNumericFilter getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AccessNumericFilter parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessNumericFilterOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessNumericFilterOrBuilder.java deleted file mode 100644 index 6b0de81d..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessNumericFilterOrBuilder.java +++ /dev/null @@ -1,85 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessOrderBy.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessOrderBy.java deleted file mode 100644 index 5a89140a..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessOrderBy.java +++ /dev/null @@ -1,2911 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/access_report.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * Order bys define how rows will be sorted in the response. For example,
- * ordering rows by descending access count is one ordering, and ordering rows
- * by the country string is a different ordering.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.AccessOrderBy} - */ -public final class AccessOrderBy extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AccessOrderBy) - AccessOrderByOrBuilder { - private static final long serialVersionUID = 0L; - // Use AccessOrderBy.newBuilder() to construct. - private AccessOrderBy(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private AccessOrderBy() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new AccessOrderBy(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.AccessReportProto - .internal_static_google_analytics_admin_v1alpha_AccessOrderBy_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AccessReportProto - .internal_static_google_analytics_admin_v1alpha_AccessOrderBy_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.AccessOrderBy.class, - com.google.analytics.admin.v1alpha.AccessOrderBy.Builder.class); - } - - public interface MetricOrderByOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-     * A metric name in the request to order by.
-     * 
- * - * string metric_name = 1; - * - * @return The metricName. - */ - java.lang.String getMetricName(); - /** - * - * - *
-     * A metric name in the request to order by.
-     * 
- * - * string metric_name = 1; - * - * @return The bytes for metricName. - */ - com.google.protobuf.ByteString getMetricNameBytes(); - } - /** - * - * - *
-   * Sorts by metric values.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy} - */ - public static final class MetricOrderBy extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy) - MetricOrderByOrBuilder { - private static final long serialVersionUID = 0L; - // Use MetricOrderBy.newBuilder() to construct. - private MetricOrderBy(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private MetricOrderBy() { - metricName_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new MetricOrderBy(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.AccessReportProto - .internal_static_google_analytics_admin_v1alpha_AccessOrderBy_MetricOrderBy_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AccessReportProto - .internal_static_google_analytics_admin_v1alpha_AccessOrderBy_MetricOrderBy_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy.class, - com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy.Builder.class); - } - - public static final int METRIC_NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object metricName_; - /** - * - * - *
-     * A metric name in the request to order by.
-     * 
- * - * string metric_name = 1; - * - * @return The metricName. - */ - @java.lang.Override - public java.lang.String getMetricName() { - java.lang.Object ref = metricName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - metricName_ = s; - return s; - } - } - /** - * - * - *
-     * A metric name in the request to order by.
-     * 
- * - * string metric_name = 1; - * - * @return The bytes for metricName. - */ - @java.lang.Override - public com.google.protobuf.ByteString getMetricNameBytes() { - java.lang.Object ref = metricName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - metricName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(metricName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, metricName_); - } - getUnknownFields().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(); - metricName_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AccessReportProto - .internal_static_google_analytics_admin_v1alpha_AccessOrderBy_MetricOrderBy_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy - getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy build() { - com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy buildPartial() { - com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy result = - new com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy(this); - result.metricName_ = metricName_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy) { - return mergeFrom((com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy other) { - if (other - == com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy.getDefaultInstance()) - return this; - if (!other.getMetricName().isEmpty()) { - metricName_ = other.metricName_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - 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 java.lang.Object metricName_ = ""; - /** - * - * - *
-       * A metric name in the request to order by.
-       * 
- * - * string metric_name = 1; - * - * @return The metricName. - */ - public java.lang.String getMetricName() { - java.lang.Object ref = metricName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - metricName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-       * A metric name in the request to order by.
-       * 
- * - * string metric_name = 1; - * - * @return The bytes for metricName. - */ - public com.google.protobuf.ByteString getMetricNameBytes() { - java.lang.Object ref = metricName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - metricName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-       * A metric name in the request to order by.
-       * 
- * - * string metric_name = 1; - * - * @param value The metricName to set. - * @return This builder for chaining. - */ - public Builder setMetricName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - metricName_ = value; - onChanged(); - return this; - } - /** - * - * - *
-       * A metric name in the request to order by.
-       * 
- * - * string metric_name = 1; - * - * @return This builder for chaining. - */ - public Builder clearMetricName() { - - metricName_ = getDefaultInstance().getMetricName(); - onChanged(); - return this; - } - /** - * - * - *
-       * A metric name in the request to order by.
-       * 
- * - * string metric_name = 1; - * - * @param value The bytes for metricName to set. - * @return This builder for chaining. - */ - public Builder setMetricNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - metricName_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy) - private static final com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy(); - } - - public static com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MetricOrderBy parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface DimensionOrderByOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-     * A dimension name in the request to order by.
-     * 
- * - * string dimension_name = 1; - * - * @return The dimensionName. - */ - java.lang.String getDimensionName(); - /** - * - * - *
-     * A dimension name in the request to order by.
-     * 
- * - * string dimension_name = 1; - * - * @return The bytes for dimensionName. - */ - com.google.protobuf.ByteString getDimensionNameBytes(); - - /** - * - * - *
-     * Controls the rule for dimension value ordering.
-     * 
- * - * - * .google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.OrderType order_type = 2; - * - * - * @return The enum numeric value on the wire for orderType. - */ - int getOrderTypeValue(); - /** - * - * - *
-     * Controls the rule for dimension value ordering.
-     * 
- * - * - * .google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.OrderType order_type = 2; - * - * - * @return The orderType. - */ - com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.OrderType getOrderType(); - } - /** - * - * - *
-   * Sorts by dimension values.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy} - */ - public static final class DimensionOrderBy extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy) - DimensionOrderByOrBuilder { - private static final long serialVersionUID = 0L; - // Use DimensionOrderBy.newBuilder() to construct. - private DimensionOrderBy(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private DimensionOrderBy() { - dimensionName_ = ""; - orderType_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new DimensionOrderBy(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.AccessReportProto - .internal_static_google_analytics_admin_v1alpha_AccessOrderBy_DimensionOrderBy_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AccessReportProto - .internal_static_google_analytics_admin_v1alpha_AccessOrderBy_DimensionOrderBy_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.class, - com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.Builder.class); - } - - /** - * - * - *
-     * Rule to order the string dimension values by.
-     * 
- * - * Protobuf enum {@code google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.OrderType} - */ - public enum OrderType implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-       * Unspecified.
-       * 
- * - * ORDER_TYPE_UNSPECIFIED = 0; - */ - ORDER_TYPE_UNSPECIFIED(0), - /** - * - * - *
-       * Alphanumeric sort by Unicode code point. For example, "2" < "A" < "X" <
-       * "b" < "z".
-       * 
- * - * ALPHANUMERIC = 1; - */ - ALPHANUMERIC(1), - /** - * - * - *
-       * Case insensitive alphanumeric sort by lower case Unicode code point.
-       * For example, "2" < "A" < "b" < "X" < "z".
-       * 
- * - * CASE_INSENSITIVE_ALPHANUMERIC = 2; - */ - CASE_INSENSITIVE_ALPHANUMERIC(2), - /** - * - * - *
-       * Dimension values are converted to numbers before sorting. For example
-       * in NUMERIC sort, "25" < "100", and in `ALPHANUMERIC` sort, "100" <
-       * "25". Non-numeric dimension values all have equal ordering value below
-       * all numeric values.
-       * 
- * - * NUMERIC = 3; - */ - NUMERIC(3), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-       * Unspecified.
-       * 
- * - * ORDER_TYPE_UNSPECIFIED = 0; - */ - public static final int ORDER_TYPE_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-       * Alphanumeric sort by Unicode code point. For example, "2" < "A" < "X" <
-       * "b" < "z".
-       * 
- * - * ALPHANUMERIC = 1; - */ - public static final int ALPHANUMERIC_VALUE = 1; - /** - * - * - *
-       * Case insensitive alphanumeric sort by lower case Unicode code point.
-       * For example, "2" < "A" < "b" < "X" < "z".
-       * 
- * - * CASE_INSENSITIVE_ALPHANUMERIC = 2; - */ - public static final int CASE_INSENSITIVE_ALPHANUMERIC_VALUE = 2; - /** - * - * - *
-       * Dimension values are converted to numbers before sorting. For example
-       * in NUMERIC sort, "25" < "100", and in `ALPHANUMERIC` sort, "100" <
-       * "25". Non-numeric dimension values all have equal ordering value below
-       * all numeric values.
-       * 
- * - * NUMERIC = 3; - */ - public static final int NUMERIC_VALUE = 3; - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static OrderType valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static OrderType forNumber(int value) { - switch (value) { - case 0: - return ORDER_TYPE_UNSPECIFIED; - case 1: - return ALPHANUMERIC; - case 2: - return CASE_INSENSITIVE_ALPHANUMERIC; - case 3: - return NUMERIC; - default: - return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { - return internalValueMap; - } - - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public OrderType findValueByNumber(int number) { - return OrderType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.getDescriptor() - .getEnumTypes() - .get(0); - } - - private static final OrderType[] VALUES = values(); - - public static OrderType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private OrderType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.OrderType) - } - - public static final int DIMENSION_NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object dimensionName_; - /** - * - * - *
-     * A dimension name in the request to order by.
-     * 
- * - * string dimension_name = 1; - * - * @return The dimensionName. - */ - @java.lang.Override - public java.lang.String getDimensionName() { - java.lang.Object ref = dimensionName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - dimensionName_ = s; - return s; - } - } - /** - * - * - *
-     * A dimension name in the request to order by.
-     * 
- * - * string dimension_name = 1; - * - * @return The bytes for dimensionName. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDimensionNameBytes() { - java.lang.Object ref = dimensionName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - dimensionName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ORDER_TYPE_FIELD_NUMBER = 2; - private int orderType_; - /** - * - * - *
-     * Controls the rule for dimension value ordering.
-     * 
- * - * - * .google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.OrderType order_type = 2; - * - * - * @return The enum numeric value on the wire for orderType. - */ - @java.lang.Override - public int getOrderTypeValue() { - return orderType_; - } - /** - * - * - *
-     * Controls the rule for dimension value ordering.
-     * 
- * - * - * .google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.OrderType order_type = 2; - * - * - * @return The orderType. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.OrderType - getOrderType() { - @SuppressWarnings("deprecation") - com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.OrderType result = - com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.OrderType.valueOf( - orderType_); - return result == null - ? com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.OrderType.UNRECOGNIZED - : result; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dimensionName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, dimensionName_); - } - if (orderType_ - != com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.OrderType - .ORDER_TYPE_UNSPECIFIED - .getNumber()) { - output.writeEnum(2, orderType_); - } - getUnknownFields().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(); - dimensionName_ = ""; - - orderType_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AccessReportProto - .internal_static_google_analytics_admin_v1alpha_AccessOrderBy_DimensionOrderBy_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy - getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy build() { - com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy buildPartial() { - com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy result = - new com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy(this); - result.dimensionName_ = dimensionName_; - result.orderType_ = orderType_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy) { - return mergeFrom( - (com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy other) { - if (other - == com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy - .getDefaultInstance()) return this; - if (!other.getDimensionName().isEmpty()) { - dimensionName_ = other.dimensionName_; - onChanged(); - } - if (other.orderType_ != 0) { - setOrderTypeValue(other.getOrderTypeValue()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 16: - { - orderType_ = input.readEnum(); - - 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 java.lang.Object dimensionName_ = ""; - /** - * - * - *
-       * A dimension name in the request to order by.
-       * 
- * - * string dimension_name = 1; - * - * @return The dimensionName. - */ - public java.lang.String getDimensionName() { - java.lang.Object ref = dimensionName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - dimensionName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-       * A dimension name in the request to order by.
-       * 
- * - * string dimension_name = 1; - * - * @return The bytes for dimensionName. - */ - public com.google.protobuf.ByteString getDimensionNameBytes() { - java.lang.Object ref = dimensionName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - dimensionName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-       * A dimension name in the request to order by.
-       * 
- * - * string dimension_name = 1; - * - * @param value The dimensionName to set. - * @return This builder for chaining. - */ - public Builder setDimensionName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - dimensionName_ = value; - onChanged(); - return this; - } - /** - * - * - *
-       * A dimension name in the request to order by.
-       * 
- * - * string dimension_name = 1; - * - * @return This builder for chaining. - */ - public Builder clearDimensionName() { - - dimensionName_ = getDefaultInstance().getDimensionName(); - onChanged(); - return this; - } - /** - * - * - *
-       * A dimension name in the request to order by.
-       * 
- * - * string dimension_name = 1; - * - * @param value The bytes for dimensionName to set. - * @return This builder for chaining. - */ - public Builder setDimensionNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - dimensionName_ = value; - onChanged(); - return this; - } - - private int orderType_ = 0; - /** - * - * - *
-       * Controls the rule for dimension value ordering.
-       * 
- * - * - * .google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.OrderType order_type = 2; - * - * - * @return The enum numeric value on the wire for orderType. - */ - @java.lang.Override - public int getOrderTypeValue() { - return orderType_; - } - /** - * - * - *
-       * Controls the rule for dimension value ordering.
-       * 
- * - * - * .google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.OrderType order_type = 2; - * - * - * @param value The enum numeric value on the wire for orderType to set. - * @return This builder for chaining. - */ - public Builder setOrderTypeValue(int value) { - - orderType_ = value; - onChanged(); - return this; - } - /** - * - * - *
-       * Controls the rule for dimension value ordering.
-       * 
- * - * - * .google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.OrderType order_type = 2; - * - * - * @return The orderType. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.OrderType - getOrderType() { - @SuppressWarnings("deprecation") - com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.OrderType result = - com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.OrderType.valueOf( - orderType_); - return result == null - ? com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.OrderType - .UNRECOGNIZED - : result; - } - /** - * - * - *
-       * Controls the rule for dimension value ordering.
-       * 
- * - * - * .google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.OrderType order_type = 2; - * - * - * @param value The orderType to set. - * @return This builder for chaining. - */ - public Builder setOrderType( - com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.OrderType value) { - if (value == null) { - throw new NullPointerException(); - } - - orderType_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-       * Controls the rule for dimension value ordering.
-       * 
- * - * - * .google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.OrderType order_type = 2; - * - * - * @return This builder for chaining. - */ - public Builder clearOrderType() { - - orderType_ = 0; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy) - private static final com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy(); - } - - public static com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DimensionOrderBy parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - private int oneOrderByCase_ = 0; - private java.lang.Object oneOrderBy_; - - public enum OneOrderByCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - METRIC(1), - DIMENSION(2), - ONEORDERBY_NOT_SET(0); - private final int value; - - private OneOrderByCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static OneOrderByCase valueOf(int value) { - return forNumber(value); - } - - public static OneOrderByCase forNumber(int value) { - switch (value) { - case 1: - return METRIC; - case 2: - return DIMENSION; - case 0: - return ONEORDERBY_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public OneOrderByCase getOneOrderByCase() { - return OneOrderByCase.forNumber(oneOrderByCase_); - } - - public static final int METRIC_FIELD_NUMBER = 1; - /** - * - * - *
-   * Sorts results by a metric's values.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy metric = 1; - * - * @return Whether the metric field is set. - */ - @java.lang.Override - public boolean hasMetric() { - return oneOrderByCase_ == 1; - } - /** - * - * - *
-   * Sorts results by a metric's values.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy metric = 1; - * - * @return The metric. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy getMetric() { - if (oneOrderByCase_ == 1) { - return (com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy) oneOrderBy_; - } - return com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy.getDefaultInstance(); - } - /** - * - * - *
-   * Sorts results by a metric's values.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy metric = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderByOrBuilder - getMetricOrBuilder() { - if (oneOrderByCase_ == 1) { - return (com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy) oneOrderBy_; - } - return com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy.getDefaultInstance(); - } - - public static final int DIMENSION_FIELD_NUMBER = 2; - /** - * - * - *
-   * Sorts results by a dimension's values.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy dimension = 2; - * - * @return Whether the dimension field is set. - */ - @java.lang.Override - public boolean hasDimension() { - return oneOrderByCase_ == 2; - } - /** - * - * - *
-   * Sorts results by a dimension's values.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy dimension = 2; - * - * @return The dimension. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy getDimension() { - if (oneOrderByCase_ == 2) { - return (com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy) oneOrderBy_; - } - return com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.getDefaultInstance(); - } - /** - * - * - *
-   * Sorts results by a dimension's values.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy dimension = 2; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderByOrBuilder - getDimensionOrBuilder() { - if (oneOrderByCase_ == 2) { - return (com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy) oneOrderBy_; - } - return com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.getDefaultInstance(); - } - - public static final int DESC_FIELD_NUMBER = 3; - private boolean desc_; - /** - * - * - *
-   * If true, sorts by descending order. If false or unspecified, sorts in
-   * ascending order.
-   * 
- * - * bool desc = 3; - * - * @return The desc. - */ - @java.lang.Override - public boolean getDesc() { - return desc_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (oneOrderByCase_ == 1) { - output.writeMessage( - 1, (com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy) oneOrderBy_); - } - if (oneOrderByCase_ == 2) { - output.writeMessage( - 2, (com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy) oneOrderBy_); - } - if (desc_ != false) { - output.writeBool(3, desc_); - } - 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(); - 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 (oneOrderByCase_ == 1) { - if (metricBuilder_ == null) { - result.oneOrderBy_ = oneOrderBy_; - } else { - result.oneOrderBy_ = metricBuilder_.build(); - } - } - if (oneOrderByCase_ == 2) { - if (dimensionBuilder_ == null) { - result.oneOrderBy_ = oneOrderBy_; - } else { - result.oneOrderBy_ = dimensionBuilder_.build(); - } - } - result.desc_ = desc_; - result.oneOrderByCase_ = oneOrderByCase_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.AccessOrderBy) { - return mergeFrom((com.google.analytics.admin.v1alpha.AccessOrderBy) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.AccessOrderBy other) { - if (other == com.google.analytics.admin.v1alpha.AccessOrderBy.getDefaultInstance()) - return this; - if (other.getDesc() != false) { - setDesc(other.getDesc()); - } - switch (other.getOneOrderByCase()) { - case METRIC: - { - mergeMetric(other.getMetric()); - break; - } - case DIMENSION: - { - mergeDimension(other.getDimension()); - break; - } - case ONEORDERBY_NOT_SET: - { - break; - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - 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 com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy, - com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy.Builder, - com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderByOrBuilder> - metricBuilder_; - /** - * - * - *
-     * Sorts results by a metric's values.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy metric = 1; - * - * @return Whether the metric field is set. - */ - @java.lang.Override - public boolean hasMetric() { - return oneOrderByCase_ == 1; - } - /** - * - * - *
-     * Sorts results by a metric's values.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy metric = 1; - * - * @return The metric. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy getMetric() { - if (metricBuilder_ == null) { - if (oneOrderByCase_ == 1) { - return (com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy) oneOrderBy_; - } - return com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy.getDefaultInstance(); - } else { - if (oneOrderByCase_ == 1) { - return metricBuilder_.getMessage(); - } - return com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy.getDefaultInstance(); - } - } - /** - * - * - *
-     * Sorts results by a metric's values.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy metric = 1; - */ - public Builder setMetric(com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy value) { - if (metricBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - oneOrderBy_ = value; - onChanged(); - } else { - metricBuilder_.setMessage(value); - } - oneOrderByCase_ = 1; - return this; - } - /** - * - * - *
-     * Sorts results by a metric's values.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy metric = 1; - */ - public Builder setMetric( - com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy.Builder builderForValue) { - if (metricBuilder_ == null) { - oneOrderBy_ = builderForValue.build(); - onChanged(); - } else { - metricBuilder_.setMessage(builderForValue.build()); - } - oneOrderByCase_ = 1; - return this; - } - /** - * - * - *
-     * Sorts results by a metric's values.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy metric = 1; - */ - public Builder mergeMetric( - com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy value) { - if (metricBuilder_ == null) { - if (oneOrderByCase_ == 1 - && oneOrderBy_ - != com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy - .getDefaultInstance()) { - oneOrderBy_ = - com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy.newBuilder( - (com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy) oneOrderBy_) - .mergeFrom(value) - .buildPartial(); - } else { - oneOrderBy_ = value; - } - onChanged(); - } else { - if (oneOrderByCase_ == 1) { - metricBuilder_.mergeFrom(value); - } else { - metricBuilder_.setMessage(value); - } - } - oneOrderByCase_ = 1; - return this; - } - /** - * - * - *
-     * Sorts results by a metric's values.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy metric = 1; - */ - public Builder clearMetric() { - if (metricBuilder_ == null) { - if (oneOrderByCase_ == 1) { - oneOrderByCase_ = 0; - oneOrderBy_ = null; - onChanged(); - } - } else { - if (oneOrderByCase_ == 1) { - oneOrderByCase_ = 0; - oneOrderBy_ = null; - } - metricBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Sorts results by a metric's values.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy metric = 1; - */ - public com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy.Builder - getMetricBuilder() { - return getMetricFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Sorts results by a metric's values.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy metric = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderByOrBuilder - getMetricOrBuilder() { - if ((oneOrderByCase_ == 1) && (metricBuilder_ != null)) { - return metricBuilder_.getMessageOrBuilder(); - } else { - if (oneOrderByCase_ == 1) { - return (com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy) oneOrderBy_; - } - return com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy.getDefaultInstance(); - } - } - /** - * - * - *
-     * Sorts results by a metric's values.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy metric = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy, - com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy.Builder, - com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderByOrBuilder> - getMetricFieldBuilder() { - if (metricBuilder_ == null) { - if (!(oneOrderByCase_ == 1)) { - oneOrderBy_ = - com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy.getDefaultInstance(); - } - metricBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy, - com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy.Builder, - com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderByOrBuilder>( - (com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy) oneOrderBy_, - getParentForChildren(), - isClean()); - oneOrderBy_ = null; - } - oneOrderByCase_ = 1; - onChanged(); - ; - return metricBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy, - com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.Builder, - com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderByOrBuilder> - dimensionBuilder_; - /** - * - * - *
-     * Sorts results by a dimension's values.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy dimension = 2; - * - * @return Whether the dimension field is set. - */ - @java.lang.Override - public boolean hasDimension() { - return oneOrderByCase_ == 2; - } - /** - * - * - *
-     * Sorts results by a dimension's values.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy dimension = 2; - * - * @return The dimension. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy getDimension() { - if (dimensionBuilder_ == null) { - if (oneOrderByCase_ == 2) { - return (com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy) oneOrderBy_; - } - return com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy - .getDefaultInstance(); - } else { - if (oneOrderByCase_ == 2) { - return dimensionBuilder_.getMessage(); - } - return com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy - .getDefaultInstance(); - } - } - /** - * - * - *
-     * Sorts results by a dimension's values.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy dimension = 2; - */ - public Builder setDimension( - com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy value) { - if (dimensionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - oneOrderBy_ = value; - onChanged(); - } else { - dimensionBuilder_.setMessage(value); - } - oneOrderByCase_ = 2; - return this; - } - /** - * - * - *
-     * Sorts results by a dimension's values.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy dimension = 2; - */ - public Builder setDimension( - com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.Builder builderForValue) { - if (dimensionBuilder_ == null) { - oneOrderBy_ = builderForValue.build(); - onChanged(); - } else { - dimensionBuilder_.setMessage(builderForValue.build()); - } - oneOrderByCase_ = 2; - return this; - } - /** - * - * - *
-     * Sorts results by a dimension's values.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy dimension = 2; - */ - public Builder mergeDimension( - com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy value) { - if (dimensionBuilder_ == null) { - if (oneOrderByCase_ == 2 - && oneOrderBy_ - != com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy - .getDefaultInstance()) { - oneOrderBy_ = - com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.newBuilder( - (com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy) - oneOrderBy_) - .mergeFrom(value) - .buildPartial(); - } else { - oneOrderBy_ = value; - } - onChanged(); - } else { - if (oneOrderByCase_ == 2) { - dimensionBuilder_.mergeFrom(value); - } else { - dimensionBuilder_.setMessage(value); - } - } - oneOrderByCase_ = 2; - return this; - } - /** - * - * - *
-     * Sorts results by a dimension's values.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy dimension = 2; - */ - public Builder clearDimension() { - if (dimensionBuilder_ == null) { - if (oneOrderByCase_ == 2) { - oneOrderByCase_ = 0; - oneOrderBy_ = null; - onChanged(); - } - } else { - if (oneOrderByCase_ == 2) { - oneOrderByCase_ = 0; - oneOrderBy_ = null; - } - dimensionBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Sorts results by a dimension's values.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy dimension = 2; - */ - public com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.Builder - getDimensionBuilder() { - return getDimensionFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Sorts results by a dimension's values.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy dimension = 2; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderByOrBuilder - getDimensionOrBuilder() { - if ((oneOrderByCase_ == 2) && (dimensionBuilder_ != null)) { - return dimensionBuilder_.getMessageOrBuilder(); - } else { - if (oneOrderByCase_ == 2) { - return (com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy) oneOrderBy_; - } - return com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy - .getDefaultInstance(); - } - } - /** - * - * - *
-     * Sorts results by a dimension's values.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy dimension = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy, - com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.Builder, - com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderByOrBuilder> - getDimensionFieldBuilder() { - if (dimensionBuilder_ == null) { - if (!(oneOrderByCase_ == 2)) { - oneOrderBy_ = - com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy - .getDefaultInstance(); - } - dimensionBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy, - com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.Builder, - com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderByOrBuilder>( - (com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy) oneOrderBy_, - getParentForChildren(), - isClean()); - oneOrderBy_ = null; - } - oneOrderByCase_ = 2; - onChanged(); - ; - return dimensionBuilder_; - } - - private boolean desc_; - /** - * - * - *
-     * If true, sorts by descending order. If false or unspecified, sorts in
-     * ascending order.
-     * 
- * - * bool desc = 3; - * - * @return The desc. - */ - @java.lang.Override - public boolean getDesc() { - return desc_; - } - /** - * - * - *
-     * If true, sorts by descending order. If false or unspecified, sorts in
-     * ascending order.
-     * 
- * - * bool desc = 3; - * - * @param value The desc to set. - * @return This builder for chaining. - */ - public Builder setDesc(boolean value) { - - desc_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * If true, sorts by descending order. If false or unspecified, sorts in
-     * ascending order.
-     * 
- * - * bool desc = 3; - * - * @return This builder for chaining. - */ - public Builder clearDesc() { - - desc_ = false; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.AccessOrderBy) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AccessOrderBy) - private static final com.google.analytics.admin.v1alpha.AccessOrderBy DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.AccessOrderBy(); - } - - public static com.google.analytics.admin.v1alpha.AccessOrderBy getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AccessOrderBy parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessOrderByOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessOrderByOrBuilder.java deleted file mode 100644 index cba2edca..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessOrderByOrBuilder.java +++ /dev/null @@ -1,112 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/access_report.proto - -package com.google.analytics.admin.v1alpha; - -public interface AccessOrderByOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.AccessOrderBy) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Sorts results by a metric's values.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy metric = 1; - * - * @return Whether the metric field is set. - */ - boolean hasMetric(); - /** - * - * - *
-   * Sorts results by a metric's values.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy metric = 1; - * - * @return The metric. - */ - com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy getMetric(); - /** - * - * - *
-   * Sorts results by a metric's values.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy metric = 1; - */ - com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderByOrBuilder getMetricOrBuilder(); - - /** - * - * - *
-   * Sorts results by a dimension's values.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy dimension = 2; - * - * @return Whether the dimension field is set. - */ - boolean hasDimension(); - /** - * - * - *
-   * Sorts results by a dimension's values.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy dimension = 2; - * - * @return The dimension. - */ - com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy getDimension(); - /** - * - * - *
-   * Sorts results by a dimension's values.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy dimension = 2; - */ - com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderByOrBuilder - getDimensionOrBuilder(); - - /** - * - * - *
-   * If true, sorts by descending order. If false or unspecified, sorts in
-   * ascending order.
-   * 
- * - * bool desc = 3; - * - * @return The desc. - */ - boolean getDesc(); - - public com.google.analytics.admin.v1alpha.AccessOrderBy.OneOrderByCase getOneOrderByCase(); -} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessQuota.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessQuota.java deleted file mode 100644 index b9fdec33..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessQuota.java +++ /dev/null @@ -1,1600 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/access_report.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * Current state of all quotas for this Analytics property. If any quota for a
- * property is exhausted, all requests to that property will return Resource
- * Exhausted errors.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.AccessQuota} - */ -public final class AccessQuota extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AccessQuota) - AccessQuotaOrBuilder { - private static final long serialVersionUID = 0L; - // Use AccessQuota.newBuilder() to construct. - private AccessQuota(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private AccessQuota() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new AccessQuota(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.AccessReportProto - .internal_static_google_analytics_admin_v1alpha_AccessQuota_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AccessReportProto - .internal_static_google_analytics_admin_v1alpha_AccessQuota_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.AccessQuota.class, - com.google.analytics.admin.v1alpha.AccessQuota.Builder.class); - } - - public static final int TOKENS_PER_DAY_FIELD_NUMBER = 1; - private com.google.analytics.admin.v1alpha.AccessQuotaStatus tokensPerDay_; - /** - * - * - *
-   * Properties can use 250,000 tokens per day. Most requests consume fewer than
-   * 10 tokens.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_day = 1; - * - * @return Whether the tokensPerDay field is set. - */ - @java.lang.Override - public boolean hasTokensPerDay() { - return tokensPerDay_ != null; - } - /** - * - * - *
-   * Properties can use 250,000 tokens per day. Most requests consume fewer than
-   * 10 tokens.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_day = 1; - * - * @return The tokensPerDay. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessQuotaStatus getTokensPerDay() { - return tokensPerDay_ == null - ? com.google.analytics.admin.v1alpha.AccessQuotaStatus.getDefaultInstance() - : tokensPerDay_; - } - /** - * - * - *
-   * Properties can use 250,000 tokens per day. Most requests consume fewer than
-   * 10 tokens.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_day = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessQuotaStatusOrBuilder getTokensPerDayOrBuilder() { - return getTokensPerDay(); - } - - public static final int TOKENS_PER_HOUR_FIELD_NUMBER = 2; - private com.google.analytics.admin.v1alpha.AccessQuotaStatus tokensPerHour_; - /** - * - * - *
-   * Properties can use 50,000 tokens per hour. An API request consumes a single
-   * number of tokens, and that number is deducted from both the hourly and
-   * daily quotas.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_hour = 2; - * - * @return Whether the tokensPerHour field is set. - */ - @java.lang.Override - public boolean hasTokensPerHour() { - return tokensPerHour_ != null; - } - /** - * - * - *
-   * Properties can use 50,000 tokens per hour. An API request consumes a single
-   * number of tokens, and that number is deducted from both the hourly and
-   * daily quotas.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_hour = 2; - * - * @return The tokensPerHour. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessQuotaStatus getTokensPerHour() { - return tokensPerHour_ == null - ? com.google.analytics.admin.v1alpha.AccessQuotaStatus.getDefaultInstance() - : tokensPerHour_; - } - /** - * - * - *
-   * Properties can use 50,000 tokens per hour. An API request consumes a single
-   * number of tokens, and that number is deducted from both the hourly and
-   * daily quotas.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_hour = 2; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessQuotaStatusOrBuilder getTokensPerHourOrBuilder() { - return getTokensPerHour(); - } - - public static final int CONCURRENT_REQUESTS_FIELD_NUMBER = 3; - private com.google.analytics.admin.v1alpha.AccessQuotaStatus concurrentRequests_; - /** - * - * - *
-   * Properties can use up to 50 concurrent requests.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessQuotaStatus concurrent_requests = 3; - * - * @return Whether the concurrentRequests field is set. - */ - @java.lang.Override - public boolean hasConcurrentRequests() { - return concurrentRequests_ != null; - } - /** - * - * - *
-   * Properties can use up to 50 concurrent requests.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessQuotaStatus concurrent_requests = 3; - * - * @return The concurrentRequests. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessQuotaStatus getConcurrentRequests() { - return concurrentRequests_ == null - ? com.google.analytics.admin.v1alpha.AccessQuotaStatus.getDefaultInstance() - : concurrentRequests_; - } - /** - * - * - *
-   * Properties can use up to 50 concurrent requests.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessQuotaStatus concurrent_requests = 3; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessQuotaStatusOrBuilder - getConcurrentRequestsOrBuilder() { - return getConcurrentRequests(); - } - - public static final int SERVER_ERRORS_PER_PROJECT_PER_HOUR_FIELD_NUMBER = 4; - private com.google.analytics.admin.v1alpha.AccessQuotaStatus serverErrorsPerProjectPerHour_; - /** - * - * - *
-   * Properties and cloud project pairs can have up to 50 server errors per
-   * hour.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessQuotaStatus server_errors_per_project_per_hour = 4; - * - * - * @return Whether the serverErrorsPerProjectPerHour field is set. - */ - @java.lang.Override - public boolean hasServerErrorsPerProjectPerHour() { - return serverErrorsPerProjectPerHour_ != null; - } - /** - * - * - *
-   * Properties and cloud project pairs can have up to 50 server errors per
-   * hour.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessQuotaStatus server_errors_per_project_per_hour = 4; - * - * - * @return The serverErrorsPerProjectPerHour. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessQuotaStatus getServerErrorsPerProjectPerHour() { - return serverErrorsPerProjectPerHour_ == null - ? com.google.analytics.admin.v1alpha.AccessQuotaStatus.getDefaultInstance() - : serverErrorsPerProjectPerHour_; - } - /** - * - * - *
-   * Properties and cloud project pairs can have up to 50 server errors per
-   * hour.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessQuotaStatus server_errors_per_project_per_hour = 4; - * - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessQuotaStatusOrBuilder - getServerErrorsPerProjectPerHourOrBuilder() { - return getServerErrorsPerProjectPerHour(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (tokensPerDay_ != null) { - output.writeMessage(1, getTokensPerDay()); - } - if (tokensPerHour_ != null) { - output.writeMessage(2, getTokensPerHour()); - } - if (concurrentRequests_ != null) { - output.writeMessage(3, getConcurrentRequests()); - } - if (serverErrorsPerProjectPerHour_ != null) { - output.writeMessage(4, getServerErrorsPerProjectPerHour()); - } - 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()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @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 (!getUnknownFields().equals(other.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(); - } - 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(); - if (tokensPerDayBuilder_ == null) { - tokensPerDay_ = null; - } else { - tokensPerDay_ = null; - tokensPerDayBuilder_ = null; - } - if (tokensPerHourBuilder_ == null) { - tokensPerHour_ = null; - } else { - tokensPerHour_ = null; - tokensPerHourBuilder_ = null; - } - if (concurrentRequestsBuilder_ == null) { - concurrentRequests_ = null; - } else { - concurrentRequests_ = null; - concurrentRequestsBuilder_ = null; - } - if (serverErrorsPerProjectPerHourBuilder_ == null) { - serverErrorsPerProjectPerHour_ = null; - } else { - serverErrorsPerProjectPerHour_ = null; - serverErrorsPerProjectPerHourBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AccessReportProto - .internal_static_google_analytics_admin_v1alpha_AccessQuota_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessQuota getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.AccessQuota.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessQuota build() { - com.google.analytics.admin.v1alpha.AccessQuota result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessQuota buildPartial() { - com.google.analytics.admin.v1alpha.AccessQuota result = - new com.google.analytics.admin.v1alpha.AccessQuota(this); - if (tokensPerDayBuilder_ == null) { - result.tokensPerDay_ = tokensPerDay_; - } else { - result.tokensPerDay_ = tokensPerDayBuilder_.build(); - } - if (tokensPerHourBuilder_ == null) { - result.tokensPerHour_ = tokensPerHour_; - } else { - result.tokensPerHour_ = tokensPerHourBuilder_.build(); - } - if (concurrentRequestsBuilder_ == null) { - result.concurrentRequests_ = concurrentRequests_; - } else { - result.concurrentRequests_ = concurrentRequestsBuilder_.build(); - } - if (serverErrorsPerProjectPerHourBuilder_ == null) { - result.serverErrorsPerProjectPerHour_ = serverErrorsPerProjectPerHour_; - } else { - result.serverErrorsPerProjectPerHour_ = serverErrorsPerProjectPerHourBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.AccessQuota) { - return mergeFrom((com.google.analytics.admin.v1alpha.AccessQuota) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.AccessQuota other) { - if (other == com.google.analytics.admin.v1alpha.AccessQuota.getDefaultInstance()) return this; - if (other.hasTokensPerDay()) { - mergeTokensPerDay(other.getTokensPerDay()); - } - if (other.hasTokensPerHour()) { - mergeTokensPerHour(other.getTokensPerHour()); - } - if (other.hasConcurrentRequests()) { - mergeConcurrentRequests(other.getConcurrentRequests()); - } - if (other.hasServerErrorsPerProjectPerHour()) { - mergeServerErrorsPerProjectPerHour(other.getServerErrorsPerProjectPerHour()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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); - - break; - } // case 10 - case 18: - { - input.readMessage(getTokensPerHourFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - case 26: - { - input.readMessage( - getConcurrentRequestsFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 26 - case 34: - { - input.readMessage( - getServerErrorsPerProjectPerHourFieldBuilder().getBuilder(), extensionRegistry); - - 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 com.google.analytics.admin.v1alpha.AccessQuotaStatus tokensPerDay_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessQuotaStatus, - com.google.analytics.admin.v1alpha.AccessQuotaStatus.Builder, - com.google.analytics.admin.v1alpha.AccessQuotaStatusOrBuilder> - tokensPerDayBuilder_; - /** - * - * - *
-     * Properties can use 250,000 tokens per day. Most requests consume fewer than
-     * 10 tokens.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_day = 1; - * - * @return Whether the tokensPerDay field is set. - */ - public boolean hasTokensPerDay() { - return tokensPerDayBuilder_ != null || tokensPerDay_ != null; - } - /** - * - * - *
-     * Properties can use 250,000 tokens per day. Most requests consume fewer than
-     * 10 tokens.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_day = 1; - * - * @return The tokensPerDay. - */ - public com.google.analytics.admin.v1alpha.AccessQuotaStatus getTokensPerDay() { - if (tokensPerDayBuilder_ == null) { - return tokensPerDay_ == null - ? com.google.analytics.admin.v1alpha.AccessQuotaStatus.getDefaultInstance() - : tokensPerDay_; - } else { - return tokensPerDayBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Properties can use 250,000 tokens per day. Most requests consume fewer than
-     * 10 tokens.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_day = 1; - */ - public Builder setTokensPerDay(com.google.analytics.admin.v1alpha.AccessQuotaStatus value) { - if (tokensPerDayBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - tokensPerDay_ = value; - onChanged(); - } else { - tokensPerDayBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Properties can use 250,000 tokens per day. Most requests consume fewer than
-     * 10 tokens.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_day = 1; - */ - public Builder setTokensPerDay( - com.google.analytics.admin.v1alpha.AccessQuotaStatus.Builder builderForValue) { - if (tokensPerDayBuilder_ == null) { - tokensPerDay_ = builderForValue.build(); - onChanged(); - } else { - tokensPerDayBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Properties can use 250,000 tokens per day. Most requests consume fewer than
-     * 10 tokens.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_day = 1; - */ - public Builder mergeTokensPerDay(com.google.analytics.admin.v1alpha.AccessQuotaStatus value) { - if (tokensPerDayBuilder_ == null) { - if (tokensPerDay_ != null) { - tokensPerDay_ = - com.google.analytics.admin.v1alpha.AccessQuotaStatus.newBuilder(tokensPerDay_) - .mergeFrom(value) - .buildPartial(); - } else { - tokensPerDay_ = value; - } - onChanged(); - } else { - tokensPerDayBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Properties can use 250,000 tokens per day. Most requests consume fewer than
-     * 10 tokens.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_day = 1; - */ - public Builder clearTokensPerDay() { - if (tokensPerDayBuilder_ == null) { - tokensPerDay_ = null; - onChanged(); - } else { - tokensPerDay_ = null; - tokensPerDayBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Properties can use 250,000 tokens per day. Most requests consume fewer than
-     * 10 tokens.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_day = 1; - */ - public com.google.analytics.admin.v1alpha.AccessQuotaStatus.Builder getTokensPerDayBuilder() { - - onChanged(); - return getTokensPerDayFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Properties can use 250,000 tokens per day. Most requests consume fewer than
-     * 10 tokens.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_day = 1; - */ - public com.google.analytics.admin.v1alpha.AccessQuotaStatusOrBuilder - getTokensPerDayOrBuilder() { - if (tokensPerDayBuilder_ != null) { - return tokensPerDayBuilder_.getMessageOrBuilder(); - } else { - return tokensPerDay_ == null - ? com.google.analytics.admin.v1alpha.AccessQuotaStatus.getDefaultInstance() - : tokensPerDay_; - } - } - /** - * - * - *
-     * Properties can use 250,000 tokens per day. Most requests consume fewer than
-     * 10 tokens.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_day = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessQuotaStatus, - com.google.analytics.admin.v1alpha.AccessQuotaStatus.Builder, - com.google.analytics.admin.v1alpha.AccessQuotaStatusOrBuilder> - getTokensPerDayFieldBuilder() { - if (tokensPerDayBuilder_ == null) { - tokensPerDayBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessQuotaStatus, - com.google.analytics.admin.v1alpha.AccessQuotaStatus.Builder, - com.google.analytics.admin.v1alpha.AccessQuotaStatusOrBuilder>( - getTokensPerDay(), getParentForChildren(), isClean()); - tokensPerDay_ = null; - } - return tokensPerDayBuilder_; - } - - private com.google.analytics.admin.v1alpha.AccessQuotaStatus tokensPerHour_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessQuotaStatus, - com.google.analytics.admin.v1alpha.AccessQuotaStatus.Builder, - com.google.analytics.admin.v1alpha.AccessQuotaStatusOrBuilder> - tokensPerHourBuilder_; - /** - * - * - *
-     * Properties can use 50,000 tokens per hour. An API request consumes a single
-     * number of tokens, and that number is deducted from both the hourly and
-     * daily quotas.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_hour = 2; - * - * @return Whether the tokensPerHour field is set. - */ - public boolean hasTokensPerHour() { - return tokensPerHourBuilder_ != null || tokensPerHour_ != null; - } - /** - * - * - *
-     * Properties can use 50,000 tokens per hour. An API request consumes a single
-     * number of tokens, and that number is deducted from both the hourly and
-     * daily quotas.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_hour = 2; - * - * @return The tokensPerHour. - */ - public com.google.analytics.admin.v1alpha.AccessQuotaStatus getTokensPerHour() { - if (tokensPerHourBuilder_ == null) { - return tokensPerHour_ == null - ? com.google.analytics.admin.v1alpha.AccessQuotaStatus.getDefaultInstance() - : tokensPerHour_; - } else { - return tokensPerHourBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Properties can use 50,000 tokens per hour. An API request consumes a single
-     * number of tokens, and that number is deducted from both the hourly and
-     * daily quotas.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_hour = 2; - */ - public Builder setTokensPerHour(com.google.analytics.admin.v1alpha.AccessQuotaStatus value) { - if (tokensPerHourBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - tokensPerHour_ = value; - onChanged(); - } else { - tokensPerHourBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Properties can use 50,000 tokens per hour. An API request consumes a single
-     * number of tokens, and that number is deducted from both the hourly and
-     * daily quotas.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_hour = 2; - */ - public Builder setTokensPerHour( - com.google.analytics.admin.v1alpha.AccessQuotaStatus.Builder builderForValue) { - if (tokensPerHourBuilder_ == null) { - tokensPerHour_ = builderForValue.build(); - onChanged(); - } else { - tokensPerHourBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Properties can use 50,000 tokens per hour. An API request consumes a single
-     * number of tokens, and that number is deducted from both the hourly and
-     * daily quotas.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_hour = 2; - */ - public Builder mergeTokensPerHour(com.google.analytics.admin.v1alpha.AccessQuotaStatus value) { - if (tokensPerHourBuilder_ == null) { - if (tokensPerHour_ != null) { - tokensPerHour_ = - com.google.analytics.admin.v1alpha.AccessQuotaStatus.newBuilder(tokensPerHour_) - .mergeFrom(value) - .buildPartial(); - } else { - tokensPerHour_ = value; - } - onChanged(); - } else { - tokensPerHourBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Properties can use 50,000 tokens per hour. An API request consumes a single
-     * number of tokens, and that number is deducted from both the hourly and
-     * daily quotas.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_hour = 2; - */ - public Builder clearTokensPerHour() { - if (tokensPerHourBuilder_ == null) { - tokensPerHour_ = null; - onChanged(); - } else { - tokensPerHour_ = null; - tokensPerHourBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Properties can use 50,000 tokens per hour. An API request consumes a single
-     * number of tokens, and that number is deducted from both the hourly and
-     * daily quotas.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_hour = 2; - */ - public com.google.analytics.admin.v1alpha.AccessQuotaStatus.Builder getTokensPerHourBuilder() { - - onChanged(); - return getTokensPerHourFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Properties can use 50,000 tokens per hour. An API request consumes a single
-     * number of tokens, and that number is deducted from both the hourly and
-     * daily quotas.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_hour = 2; - */ - public com.google.analytics.admin.v1alpha.AccessQuotaStatusOrBuilder - getTokensPerHourOrBuilder() { - if (tokensPerHourBuilder_ != null) { - return tokensPerHourBuilder_.getMessageOrBuilder(); - } else { - return tokensPerHour_ == null - ? com.google.analytics.admin.v1alpha.AccessQuotaStatus.getDefaultInstance() - : tokensPerHour_; - } - } - /** - * - * - *
-     * Properties can use 50,000 tokens per hour. An API request consumes a single
-     * number of tokens, and that number is deducted from both the hourly and
-     * daily quotas.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_hour = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessQuotaStatus, - com.google.analytics.admin.v1alpha.AccessQuotaStatus.Builder, - com.google.analytics.admin.v1alpha.AccessQuotaStatusOrBuilder> - getTokensPerHourFieldBuilder() { - if (tokensPerHourBuilder_ == null) { - tokensPerHourBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessQuotaStatus, - com.google.analytics.admin.v1alpha.AccessQuotaStatus.Builder, - com.google.analytics.admin.v1alpha.AccessQuotaStatusOrBuilder>( - getTokensPerHour(), getParentForChildren(), isClean()); - tokensPerHour_ = null; - } - return tokensPerHourBuilder_; - } - - private com.google.analytics.admin.v1alpha.AccessQuotaStatus concurrentRequests_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessQuotaStatus, - com.google.analytics.admin.v1alpha.AccessQuotaStatus.Builder, - com.google.analytics.admin.v1alpha.AccessQuotaStatusOrBuilder> - concurrentRequestsBuilder_; - /** - * - * - *
-     * Properties can use up to 50 concurrent requests.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessQuotaStatus concurrent_requests = 3; - * - * @return Whether the concurrentRequests field is set. - */ - public boolean hasConcurrentRequests() { - return concurrentRequestsBuilder_ != null || concurrentRequests_ != null; - } - /** - * - * - *
-     * Properties can use up to 50 concurrent requests.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessQuotaStatus concurrent_requests = 3; - * - * @return The concurrentRequests. - */ - public com.google.analytics.admin.v1alpha.AccessQuotaStatus getConcurrentRequests() { - if (concurrentRequestsBuilder_ == null) { - return concurrentRequests_ == null - ? com.google.analytics.admin.v1alpha.AccessQuotaStatus.getDefaultInstance() - : concurrentRequests_; - } else { - return concurrentRequestsBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Properties can use up to 50 concurrent requests.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessQuotaStatus concurrent_requests = 3; - */ - public Builder setConcurrentRequests( - com.google.analytics.admin.v1alpha.AccessQuotaStatus value) { - if (concurrentRequestsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - concurrentRequests_ = value; - onChanged(); - } else { - concurrentRequestsBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Properties can use up to 50 concurrent requests.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessQuotaStatus concurrent_requests = 3; - */ - public Builder setConcurrentRequests( - com.google.analytics.admin.v1alpha.AccessQuotaStatus.Builder builderForValue) { - if (concurrentRequestsBuilder_ == null) { - concurrentRequests_ = builderForValue.build(); - onChanged(); - } else { - concurrentRequestsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Properties can use up to 50 concurrent requests.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessQuotaStatus concurrent_requests = 3; - */ - public Builder mergeConcurrentRequests( - com.google.analytics.admin.v1alpha.AccessQuotaStatus value) { - if (concurrentRequestsBuilder_ == null) { - if (concurrentRequests_ != null) { - concurrentRequests_ = - com.google.analytics.admin.v1alpha.AccessQuotaStatus.newBuilder(concurrentRequests_) - .mergeFrom(value) - .buildPartial(); - } else { - concurrentRequests_ = value; - } - onChanged(); - } else { - concurrentRequestsBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Properties can use up to 50 concurrent requests.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessQuotaStatus concurrent_requests = 3; - */ - public Builder clearConcurrentRequests() { - if (concurrentRequestsBuilder_ == null) { - concurrentRequests_ = null; - onChanged(); - } else { - concurrentRequests_ = null; - concurrentRequestsBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Properties can use up to 50 concurrent requests.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessQuotaStatus concurrent_requests = 3; - */ - public com.google.analytics.admin.v1alpha.AccessQuotaStatus.Builder - getConcurrentRequestsBuilder() { - - onChanged(); - return getConcurrentRequestsFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Properties can use up to 50 concurrent requests.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessQuotaStatus concurrent_requests = 3; - */ - public com.google.analytics.admin.v1alpha.AccessQuotaStatusOrBuilder - getConcurrentRequestsOrBuilder() { - if (concurrentRequestsBuilder_ != null) { - return concurrentRequestsBuilder_.getMessageOrBuilder(); - } else { - return concurrentRequests_ == null - ? com.google.analytics.admin.v1alpha.AccessQuotaStatus.getDefaultInstance() - : concurrentRequests_; - } - } - /** - * - * - *
-     * Properties can use up to 50 concurrent requests.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessQuotaStatus concurrent_requests = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessQuotaStatus, - com.google.analytics.admin.v1alpha.AccessQuotaStatus.Builder, - com.google.analytics.admin.v1alpha.AccessQuotaStatusOrBuilder> - getConcurrentRequestsFieldBuilder() { - if (concurrentRequestsBuilder_ == null) { - concurrentRequestsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessQuotaStatus, - com.google.analytics.admin.v1alpha.AccessQuotaStatus.Builder, - com.google.analytics.admin.v1alpha.AccessQuotaStatusOrBuilder>( - getConcurrentRequests(), getParentForChildren(), isClean()); - concurrentRequests_ = null; - } - return concurrentRequestsBuilder_; - } - - private com.google.analytics.admin.v1alpha.AccessQuotaStatus serverErrorsPerProjectPerHour_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessQuotaStatus, - com.google.analytics.admin.v1alpha.AccessQuotaStatus.Builder, - com.google.analytics.admin.v1alpha.AccessQuotaStatusOrBuilder> - serverErrorsPerProjectPerHourBuilder_; - /** - * - * - *
-     * Properties and cloud project pairs can have up to 50 server errors per
-     * hour.
-     * 
- * - * - * .google.analytics.admin.v1alpha.AccessQuotaStatus server_errors_per_project_per_hour = 4; - * - * - * @return Whether the serverErrorsPerProjectPerHour field is set. - */ - public boolean hasServerErrorsPerProjectPerHour() { - return serverErrorsPerProjectPerHourBuilder_ != null - || serverErrorsPerProjectPerHour_ != null; - } - /** - * - * - *
-     * Properties and cloud project pairs can have up to 50 server errors per
-     * hour.
-     * 
- * - * - * .google.analytics.admin.v1alpha.AccessQuotaStatus server_errors_per_project_per_hour = 4; - * - * - * @return The serverErrorsPerProjectPerHour. - */ - public com.google.analytics.admin.v1alpha.AccessQuotaStatus getServerErrorsPerProjectPerHour() { - if (serverErrorsPerProjectPerHourBuilder_ == null) { - return serverErrorsPerProjectPerHour_ == null - ? com.google.analytics.admin.v1alpha.AccessQuotaStatus.getDefaultInstance() - : serverErrorsPerProjectPerHour_; - } else { - return serverErrorsPerProjectPerHourBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Properties and cloud project pairs can have up to 50 server errors per
-     * hour.
-     * 
- * - * - * .google.analytics.admin.v1alpha.AccessQuotaStatus server_errors_per_project_per_hour = 4; - * - */ - public Builder setServerErrorsPerProjectPerHour( - com.google.analytics.admin.v1alpha.AccessQuotaStatus value) { - if (serverErrorsPerProjectPerHourBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - serverErrorsPerProjectPerHour_ = value; - onChanged(); - } else { - serverErrorsPerProjectPerHourBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Properties and cloud project pairs can have up to 50 server errors per
-     * hour.
-     * 
- * - * - * .google.analytics.admin.v1alpha.AccessQuotaStatus server_errors_per_project_per_hour = 4; - * - */ - public Builder setServerErrorsPerProjectPerHour( - com.google.analytics.admin.v1alpha.AccessQuotaStatus.Builder builderForValue) { - if (serverErrorsPerProjectPerHourBuilder_ == null) { - serverErrorsPerProjectPerHour_ = builderForValue.build(); - onChanged(); - } else { - serverErrorsPerProjectPerHourBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Properties and cloud project pairs can have up to 50 server errors per
-     * hour.
-     * 
- * - * - * .google.analytics.admin.v1alpha.AccessQuotaStatus server_errors_per_project_per_hour = 4; - * - */ - public Builder mergeServerErrorsPerProjectPerHour( - com.google.analytics.admin.v1alpha.AccessQuotaStatus value) { - if (serverErrorsPerProjectPerHourBuilder_ == null) { - if (serverErrorsPerProjectPerHour_ != null) { - serverErrorsPerProjectPerHour_ = - com.google.analytics.admin.v1alpha.AccessQuotaStatus.newBuilder( - serverErrorsPerProjectPerHour_) - .mergeFrom(value) - .buildPartial(); - } else { - serverErrorsPerProjectPerHour_ = value; - } - onChanged(); - } else { - serverErrorsPerProjectPerHourBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Properties and cloud project pairs can have up to 50 server errors per
-     * hour.
-     * 
- * - * - * .google.analytics.admin.v1alpha.AccessQuotaStatus server_errors_per_project_per_hour = 4; - * - */ - public Builder clearServerErrorsPerProjectPerHour() { - if (serverErrorsPerProjectPerHourBuilder_ == null) { - serverErrorsPerProjectPerHour_ = null; - onChanged(); - } else { - serverErrorsPerProjectPerHour_ = null; - serverErrorsPerProjectPerHourBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Properties and cloud project pairs can have up to 50 server errors per
-     * hour.
-     * 
- * - * - * .google.analytics.admin.v1alpha.AccessQuotaStatus server_errors_per_project_per_hour = 4; - * - */ - public com.google.analytics.admin.v1alpha.AccessQuotaStatus.Builder - getServerErrorsPerProjectPerHourBuilder() { - - onChanged(); - return getServerErrorsPerProjectPerHourFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Properties and cloud project pairs can have up to 50 server errors per
-     * hour.
-     * 
- * - * - * .google.analytics.admin.v1alpha.AccessQuotaStatus server_errors_per_project_per_hour = 4; - * - */ - public com.google.analytics.admin.v1alpha.AccessQuotaStatusOrBuilder - getServerErrorsPerProjectPerHourOrBuilder() { - if (serverErrorsPerProjectPerHourBuilder_ != null) { - return serverErrorsPerProjectPerHourBuilder_.getMessageOrBuilder(); - } else { - return serverErrorsPerProjectPerHour_ == null - ? com.google.analytics.admin.v1alpha.AccessQuotaStatus.getDefaultInstance() - : serverErrorsPerProjectPerHour_; - } - } - /** - * - * - *
-     * Properties and cloud project pairs can have up to 50 server errors per
-     * hour.
-     * 
- * - * - * .google.analytics.admin.v1alpha.AccessQuotaStatus server_errors_per_project_per_hour = 4; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessQuotaStatus, - com.google.analytics.admin.v1alpha.AccessQuotaStatus.Builder, - com.google.analytics.admin.v1alpha.AccessQuotaStatusOrBuilder> - getServerErrorsPerProjectPerHourFieldBuilder() { - if (serverErrorsPerProjectPerHourBuilder_ == null) { - serverErrorsPerProjectPerHourBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessQuotaStatus, - com.google.analytics.admin.v1alpha.AccessQuotaStatus.Builder, - com.google.analytics.admin.v1alpha.AccessQuotaStatusOrBuilder>( - getServerErrorsPerProjectPerHour(), getParentForChildren(), isClean()); - serverErrorsPerProjectPerHour_ = null; - } - return serverErrorsPerProjectPerHourBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.AccessQuota) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AccessQuota) - private static final com.google.analytics.admin.v1alpha.AccessQuota DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.AccessQuota(); - } - - public static com.google.analytics.admin.v1alpha.AccessQuota getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AccessQuota parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessQuotaOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessQuotaOrBuilder.java deleted file mode 100644 index 796d90b0..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessQuotaOrBuilder.java +++ /dev/null @@ -1,181 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/access_report.proto - -package com.google.analytics.admin.v1alpha; - -public interface AccessQuotaOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.AccessQuota) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Properties can use 250,000 tokens per day. Most requests consume fewer than
-   * 10 tokens.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_day = 1; - * - * @return Whether the tokensPerDay field is set. - */ - boolean hasTokensPerDay(); - /** - * - * - *
-   * Properties can use 250,000 tokens per day. Most requests consume fewer than
-   * 10 tokens.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_day = 1; - * - * @return The tokensPerDay. - */ - com.google.analytics.admin.v1alpha.AccessQuotaStatus getTokensPerDay(); - /** - * - * - *
-   * Properties can use 250,000 tokens per day. Most requests consume fewer than
-   * 10 tokens.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_day = 1; - */ - com.google.analytics.admin.v1alpha.AccessQuotaStatusOrBuilder getTokensPerDayOrBuilder(); - - /** - * - * - *
-   * Properties can use 50,000 tokens per hour. An API request consumes a single
-   * number of tokens, and that number is deducted from both the hourly and
-   * daily quotas.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_hour = 2; - * - * @return Whether the tokensPerHour field is set. - */ - boolean hasTokensPerHour(); - /** - * - * - *
-   * Properties can use 50,000 tokens per hour. An API request consumes a single
-   * number of tokens, and that number is deducted from both the hourly and
-   * daily quotas.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_hour = 2; - * - * @return The tokensPerHour. - */ - com.google.analytics.admin.v1alpha.AccessQuotaStatus getTokensPerHour(); - /** - * - * - *
-   * Properties can use 50,000 tokens per hour. An API request consumes a single
-   * number of tokens, and that number is deducted from both the hourly and
-   * daily quotas.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_hour = 2; - */ - com.google.analytics.admin.v1alpha.AccessQuotaStatusOrBuilder getTokensPerHourOrBuilder(); - - /** - * - * - *
-   * Properties can use up to 50 concurrent requests.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessQuotaStatus concurrent_requests = 3; - * - * @return Whether the concurrentRequests field is set. - */ - boolean hasConcurrentRequests(); - /** - * - * - *
-   * Properties can use up to 50 concurrent requests.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessQuotaStatus concurrent_requests = 3; - * - * @return The concurrentRequests. - */ - com.google.analytics.admin.v1alpha.AccessQuotaStatus getConcurrentRequests(); - /** - * - * - *
-   * Properties can use up to 50 concurrent requests.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessQuotaStatus concurrent_requests = 3; - */ - com.google.analytics.admin.v1alpha.AccessQuotaStatusOrBuilder getConcurrentRequestsOrBuilder(); - - /** - * - * - *
-   * Properties and cloud project pairs can have up to 50 server errors per
-   * hour.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessQuotaStatus server_errors_per_project_per_hour = 4; - * - * - * @return Whether the serverErrorsPerProjectPerHour field is set. - */ - boolean hasServerErrorsPerProjectPerHour(); - /** - * - * - *
-   * Properties and cloud project pairs can have up to 50 server errors per
-   * hour.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessQuotaStatus server_errors_per_project_per_hour = 4; - * - * - * @return The serverErrorsPerProjectPerHour. - */ - com.google.analytics.admin.v1alpha.AccessQuotaStatus getServerErrorsPerProjectPerHour(); - /** - * - * - *
-   * Properties and cloud project pairs can have up to 50 server errors per
-   * hour.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessQuotaStatus server_errors_per_project_per_hour = 4; - * - */ - com.google.analytics.admin.v1alpha.AccessQuotaStatusOrBuilder - getServerErrorsPerProjectPerHourOrBuilder(); -} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessQuotaStatus.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessQuotaStatus.java deleted file mode 100644 index 0ef18861..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessQuotaStatus.java +++ /dev/null @@ -1,618 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/access_report.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * Current state for a particular quota group.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.AccessQuotaStatus} - */ -public final class AccessQuotaStatus extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AccessQuotaStatus) - AccessQuotaStatusOrBuilder { - private static final long serialVersionUID = 0L; - // Use AccessQuotaStatus.newBuilder() to construct. - private AccessQuotaStatus(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private AccessQuotaStatus() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new AccessQuotaStatus(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.AccessReportProto - .internal_static_google_analytics_admin_v1alpha_AccessQuotaStatus_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AccessReportProto - .internal_static_google_analytics_admin_v1alpha_AccessQuotaStatus_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.AccessQuotaStatus.class, - com.google.analytics.admin.v1alpha.AccessQuotaStatus.Builder.class); - } - - public static final int CONSUMED_FIELD_NUMBER = 1; - private int consumed_; - /** - * - * - *
-   * Quota consumed by this request.
-   * 
- * - * int32 consumed = 1; - * - * @return The consumed. - */ - @java.lang.Override - public int getConsumed() { - return consumed_; - } - - public static final int REMAINING_FIELD_NUMBER = 2; - private int remaining_; - /** - * - * - *
-   * Quota remaining after this request.
-   * 
- * - * int32 remaining = 2; - * - * @return The remaining. - */ - @java.lang.Override - public int getRemaining() { - return remaining_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (consumed_ != 0) { - output.writeInt32(1, consumed_); - } - if (remaining_ != 0) { - output.writeInt32(2, remaining_); - } - 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(); - consumed_ = 0; - - remaining_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AccessReportProto - .internal_static_google_analytics_admin_v1alpha_AccessQuotaStatus_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessQuotaStatus getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.AccessQuotaStatus.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessQuotaStatus build() { - com.google.analytics.admin.v1alpha.AccessQuotaStatus result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessQuotaStatus buildPartial() { - com.google.analytics.admin.v1alpha.AccessQuotaStatus result = - new com.google.analytics.admin.v1alpha.AccessQuotaStatus(this); - result.consumed_ = consumed_; - result.remaining_ = remaining_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.AccessQuotaStatus) { - return mergeFrom((com.google.analytics.admin.v1alpha.AccessQuotaStatus) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.AccessQuotaStatus other) { - if (other == com.google.analytics.admin.v1alpha.AccessQuotaStatus.getDefaultInstance()) - return this; - if (other.getConsumed() != 0) { - setConsumed(other.getConsumed()); - } - if (other.getRemaining() != 0) { - setRemaining(other.getRemaining()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == 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(); - - break; - } // case 8 - case 16: - { - remaining_ = input.readInt32(); - - 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 consumed_; - /** - * - * - *
-     * Quota consumed by this request.
-     * 
- * - * int32 consumed = 1; - * - * @return The consumed. - */ - @java.lang.Override - public int getConsumed() { - return consumed_; - } - /** - * - * - *
-     * Quota consumed by this request.
-     * 
- * - * int32 consumed = 1; - * - * @param value The consumed to set. - * @return This builder for chaining. - */ - public Builder setConsumed(int value) { - - consumed_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Quota consumed by this request.
-     * 
- * - * int32 consumed = 1; - * - * @return This builder for chaining. - */ - public Builder clearConsumed() { - - consumed_ = 0; - onChanged(); - return this; - } - - private int remaining_; - /** - * - * - *
-     * Quota remaining after this request.
-     * 
- * - * int32 remaining = 2; - * - * @return The remaining. - */ - @java.lang.Override - public int getRemaining() { - return remaining_; - } - /** - * - * - *
-     * Quota remaining after this request.
-     * 
- * - * int32 remaining = 2; - * - * @param value The remaining to set. - * @return This builder for chaining. - */ - public Builder setRemaining(int value) { - - remaining_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Quota remaining after this request.
-     * 
- * - * int32 remaining = 2; - * - * @return This builder for chaining. - */ - public Builder clearRemaining() { - - remaining_ = 0; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.AccessQuotaStatus) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AccessQuotaStatus) - private static final com.google.analytics.admin.v1alpha.AccessQuotaStatus DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.AccessQuotaStatus(); - } - - public static com.google.analytics.admin.v1alpha.AccessQuotaStatus getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AccessQuotaStatus parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessQuotaStatusOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessQuotaStatusOrBuilder.java deleted file mode 100644 index b8cd2848..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessQuotaStatusOrBuilder.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessReportProto.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessReportProto.java deleted file mode 100644 index 63280dc1..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessReportProto.java +++ /dev/null @@ -1,393 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/access_report.proto - -package com.google.analytics.admin.v1alpha; - -public final class AccessReportProto { - private AccessReportProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_AccessDimension_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_AccessDimension_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_AccessMetric_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_AccessMetric_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_AccessDateRange_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_AccessDateRange_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_AccessFilterExpression_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_AccessFilterExpression_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_AccessFilterExpressionList_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_AccessFilterExpressionList_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_AccessFilter_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_AccessFilter_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_AccessStringFilter_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_AccessStringFilter_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_AccessInListFilter_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_AccessInListFilter_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_AccessNumericFilter_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_AccessNumericFilter_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_AccessBetweenFilter_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_AccessBetweenFilter_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_NumericValue_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_NumericValue_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_AccessOrderBy_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_AccessOrderBy_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_AccessOrderBy_MetricOrderBy_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_AccessOrderBy_MetricOrderBy_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_AccessOrderBy_DimensionOrderBy_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_AccessOrderBy_DimensionOrderBy_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_AccessDimensionHeader_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_AccessDimensionHeader_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_AccessMetricHeader_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_AccessMetricHeader_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_AccessRow_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_AccessRow_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_AccessDimensionValue_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_AccessDimensionValue_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_AccessMetricValue_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_AccessMetricValue_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_AccessQuota_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_AccessQuota_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_AccessQuotaStatus_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_AccessQuotaStatus_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n2google/analytics/admin/v1alpha/access_" - + "report.proto\022\036google.analytics.admin.v1a" - + "lpha\")\n\017AccessDimension\022\026\n\016dimension_nam" - + "e\030\001 \001(\t\"#\n\014AccessMetric\022\023\n\013metric_name\030\001" - + " \001(\t\"7\n\017AccessDateRange\022\022\n\nstart_date\030\001 " - + "\001(\t\022\020\n\010end_date\030\002 \001(\t\"\344\002\n\026AccessFilterEx" - + "pression\022O\n\tand_group\030\001 \001(\0132:.google.ana" - + "lytics.admin.v1alpha.AccessFilterExpress" - + "ionListH\000\022N\n\010or_group\030\002 \001(\0132:.google.ana" - + "lytics.admin.v1alpha.AccessFilterExpress" - + "ionListH\000\022P\n\016not_expression\030\003 \001(\01326.goog" - + "le.analytics.admin.v1alpha.AccessFilterE" - + "xpressionH\000\022E\n\raccess_filter\030\004 \001(\0132,.goo" - + "gle.analytics.admin.v1alpha.AccessFilter" - + "H\000B\020\n\016one_expression\"i\n\032AccessFilterExpr" - + "essionList\022K\n\013expressions\030\001 \003(\01326.google" - + ".analytics.admin.v1alpha.AccessFilterExp" - + "ression\"\351\002\n\014AccessFilter\022K\n\rstring_filte" - + "r\030\002 \001(\01322.google.analytics.admin.v1alpha" - + ".AccessStringFilterH\000\022L\n\016in_list_filter\030" - + "\003 \001(\01322.google.analytics.admin.v1alpha.A" - + "ccessInListFilterH\000\022M\n\016numeric_filter\030\004 " - + "\001(\01323.google.analytics.admin.v1alpha.Acc" - + "essNumericFilterH\000\022M\n\016between_filter\030\005 \001" - + "(\01323.google.analytics.admin.v1alpha.Acce" - + "ssBetweenFilterH\000\022\022\n\nfield_name\030\001 \001(\tB\014\n" - + "\none_filter\"\225\002\n\022AccessStringFilter\022P\n\nma" - + "tch_type\030\001 \001(\0162<.google.analytics.admin." - + "v1alpha.AccessStringFilter.MatchType\022\r\n\005" - + "value\030\002 \001(\t\022\026\n\016case_sensitive\030\003 \001(\010\"\205\001\n\t" - + "MatchType\022\032\n\026MATCH_TYPE_UNSPECIFIED\020\000\022\t\n" - + "\005EXACT\020\001\022\017\n\013BEGINS_WITH\020\002\022\r\n\tENDS_WITH\020\003" - + "\022\014\n\010CONTAINS\020\004\022\017\n\013FULL_REGEXP\020\005\022\022\n\016PARTI" - + "AL_REGEXP\020\006\"<\n\022AccessInListFilter\022\016\n\006val" - + "ues\030\001 \003(\t\022\026\n\016case_sensitive\030\002 \001(\010\"\254\002\n\023Ac" - + "cessNumericFilter\022P\n\toperation\030\001 \001(\0162=.g" - + "oogle.analytics.admin.v1alpha.AccessNume" - + "ricFilter.Operation\022;\n\005value\030\002 \001(\0132,.goo" - + "gle.analytics.admin.v1alpha.NumericValue" - + "\"\205\001\n\tOperation\022\031\n\025OPERATION_UNSPECIFIED\020" - + "\000\022\t\n\005EQUAL\020\001\022\r\n\tLESS_THAN\020\002\022\026\n\022LESS_THAN" - + "_OR_EQUAL\020\003\022\020\n\014GREATER_THAN\020\004\022\031\n\025GREATER" - + "_THAN_OR_EQUAL\020\005\"\227\001\n\023AccessBetweenFilter" - + "\022@\n\nfrom_value\030\001 \001(\0132,.google.analytics." - + "admin.v1alpha.NumericValue\022>\n\010to_value\030\002" - + " \001(\0132,.google.analytics.admin.v1alpha.Nu" - + "mericValue\"J\n\014NumericValue\022\025\n\013int64_valu" - + "e\030\001 \001(\003H\000\022\026\n\014double_value\030\002 \001(\001H\000B\013\n\tone" - + "_value\"\355\003\n\rAccessOrderBy\022M\n\006metric\030\001 \001(\013" - + "2;.google.analytics.admin.v1alpha.Access" - + "OrderBy.MetricOrderByH\000\022S\n\tdimension\030\002 \001" - + "(\0132>.google.analytics.admin.v1alpha.Acce" - + "ssOrderBy.DimensionOrderByH\000\022\014\n\004desc\030\003 \001" - + "(\010\032$\n\rMetricOrderBy\022\023\n\013metric_name\030\001 \001(\t" - + "\032\363\001\n\020DimensionOrderBy\022\026\n\016dimension_name\030" - + "\001 \001(\t\022\\\n\norder_type\030\002 \001(\0162H.google.analy" - + "tics.admin.v1alpha.AccessOrderBy.Dimensi" - + "onOrderBy.OrderType\"i\n\tOrderType\022\032\n\026ORDE" - + "R_TYPE_UNSPECIFIED\020\000\022\020\n\014ALPHANUMERIC\020\001\022!" - + "\n\035CASE_INSENSITIVE_ALPHANUMERIC\020\002\022\013\n\007NUM" - + "ERIC\020\003B\016\n\014one_order_by\"/\n\025AccessDimensio" - + "nHeader\022\026\n\016dimension_name\030\001 \001(\t\")\n\022Acces" - + "sMetricHeader\022\023\n\013metric_name\030\001 \001(\t\"\245\001\n\tA" - + "ccessRow\022N\n\020dimension_values\030\001 \003(\01324.goo" - + "gle.analytics.admin.v1alpha.AccessDimens" - + "ionValue\022H\n\rmetric_values\030\002 \003(\01321.google" - + ".analytics.admin.v1alpha.AccessMetricVal" - + "ue\"%\n\024AccessDimensionValue\022\r\n\005value\030\001 \001(" - + "\t\"\"\n\021AccessMetricValue\022\r\n\005value\030\001 \001(\t\"\323\002" - + "\n\013AccessQuota\022I\n\016tokens_per_day\030\001 \001(\01321." - + "google.analytics.admin.v1alpha.AccessQuo" - + "taStatus\022J\n\017tokens_per_hour\030\002 \001(\01321.goog" - + "le.analytics.admin.v1alpha.AccessQuotaSt" - + "atus\022N\n\023concurrent_requests\030\003 \001(\01321.goog" - + "le.analytics.admin.v1alpha.AccessQuotaSt" - + "atus\022]\n\"server_errors_per_project_per_ho" - + "ur\030\004 \001(\01321.google.analytics.admin.v1alph" - + "a.AccessQuotaStatus\"8\n\021AccessQuotaStatus" - + "\022\020\n\010consumed\030\001 \001(\005\022\021\n\tremaining\030\002 \001(\005B~\n" - + "\"com.google.analytics.admin.v1alphaB\021Acc" - + "essReportProtoP\001ZCgoogle.golang.org/genp" - + "roto/googleapis/analytics/admin/v1alpha;" - + "adminb\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); - internal_static_google_analytics_admin_v1alpha_AccessDimension_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_analytics_admin_v1alpha_AccessDimension_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_AccessDimension_descriptor, - new java.lang.String[] { - "DimensionName", - }); - internal_static_google_analytics_admin_v1alpha_AccessMetric_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_analytics_admin_v1alpha_AccessMetric_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_AccessMetric_descriptor, - new java.lang.String[] { - "MetricName", - }); - internal_static_google_analytics_admin_v1alpha_AccessDateRange_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_analytics_admin_v1alpha_AccessDateRange_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_AccessDateRange_descriptor, - new java.lang.String[] { - "StartDate", "EndDate", - }); - internal_static_google_analytics_admin_v1alpha_AccessFilterExpression_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_analytics_admin_v1alpha_AccessFilterExpression_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_AccessFilterExpression_descriptor, - new java.lang.String[] { - "AndGroup", "OrGroup", "NotExpression", "AccessFilter", "OneExpression", - }); - internal_static_google_analytics_admin_v1alpha_AccessFilterExpressionList_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_analytics_admin_v1alpha_AccessFilterExpressionList_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_AccessFilterExpressionList_descriptor, - new java.lang.String[] { - "Expressions", - }); - internal_static_google_analytics_admin_v1alpha_AccessFilter_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_analytics_admin_v1alpha_AccessFilter_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_AccessFilter_descriptor, - new java.lang.String[] { - "StringFilter", - "InListFilter", - "NumericFilter", - "BetweenFilter", - "FieldName", - "OneFilter", - }); - internal_static_google_analytics_admin_v1alpha_AccessStringFilter_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_analytics_admin_v1alpha_AccessStringFilter_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_AccessStringFilter_descriptor, - new java.lang.String[] { - "MatchType", "Value", "CaseSensitive", - }); - internal_static_google_analytics_admin_v1alpha_AccessInListFilter_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_analytics_admin_v1alpha_AccessInListFilter_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_AccessInListFilter_descriptor, - new java.lang.String[] { - "Values", "CaseSensitive", - }); - internal_static_google_analytics_admin_v1alpha_AccessNumericFilter_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_analytics_admin_v1alpha_AccessNumericFilter_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_AccessNumericFilter_descriptor, - new java.lang.String[] { - "Operation", "Value", - }); - internal_static_google_analytics_admin_v1alpha_AccessBetweenFilter_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_analytics_admin_v1alpha_AccessBetweenFilter_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_AccessBetweenFilter_descriptor, - new java.lang.String[] { - "FromValue", "ToValue", - }); - internal_static_google_analytics_admin_v1alpha_NumericValue_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_analytics_admin_v1alpha_NumericValue_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_NumericValue_descriptor, - new java.lang.String[] { - "Int64Value", "DoubleValue", "OneValue", - }); - internal_static_google_analytics_admin_v1alpha_AccessOrderBy_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_analytics_admin_v1alpha_AccessOrderBy_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_AccessOrderBy_descriptor, - new java.lang.String[] { - "Metric", "Dimension", "Desc", "OneOrderBy", - }); - internal_static_google_analytics_admin_v1alpha_AccessOrderBy_MetricOrderBy_descriptor = - internal_static_google_analytics_admin_v1alpha_AccessOrderBy_descriptor - .getNestedTypes() - .get(0); - internal_static_google_analytics_admin_v1alpha_AccessOrderBy_MetricOrderBy_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_AccessOrderBy_MetricOrderBy_descriptor, - new java.lang.String[] { - "MetricName", - }); - internal_static_google_analytics_admin_v1alpha_AccessOrderBy_DimensionOrderBy_descriptor = - internal_static_google_analytics_admin_v1alpha_AccessOrderBy_descriptor - .getNestedTypes() - .get(1); - internal_static_google_analytics_admin_v1alpha_AccessOrderBy_DimensionOrderBy_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_AccessOrderBy_DimensionOrderBy_descriptor, - new java.lang.String[] { - "DimensionName", "OrderType", - }); - internal_static_google_analytics_admin_v1alpha_AccessDimensionHeader_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_analytics_admin_v1alpha_AccessDimensionHeader_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_AccessDimensionHeader_descriptor, - new java.lang.String[] { - "DimensionName", - }); - internal_static_google_analytics_admin_v1alpha_AccessMetricHeader_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_analytics_admin_v1alpha_AccessMetricHeader_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_AccessMetricHeader_descriptor, - new java.lang.String[] { - "MetricName", - }); - internal_static_google_analytics_admin_v1alpha_AccessRow_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_analytics_admin_v1alpha_AccessRow_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_AccessRow_descriptor, - new java.lang.String[] { - "DimensionValues", "MetricValues", - }); - internal_static_google_analytics_admin_v1alpha_AccessDimensionValue_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_analytics_admin_v1alpha_AccessDimensionValue_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_AccessDimensionValue_descriptor, - new java.lang.String[] { - "Value", - }); - internal_static_google_analytics_admin_v1alpha_AccessMetricValue_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_analytics_admin_v1alpha_AccessMetricValue_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_AccessMetricValue_descriptor, - new java.lang.String[] { - "Value", - }); - internal_static_google_analytics_admin_v1alpha_AccessQuota_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_analytics_admin_v1alpha_AccessQuota_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_AccessQuota_descriptor, - new java.lang.String[] { - "TokensPerDay", - "TokensPerHour", - "ConcurrentRequests", - "ServerErrorsPerProjectPerHour", - }); - internal_static_google_analytics_admin_v1alpha_AccessQuotaStatus_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_analytics_admin_v1alpha_AccessQuotaStatus_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_AccessQuotaStatus_descriptor, - new java.lang.String[] { - "Consumed", "Remaining", - }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessRow.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessRow.java deleted file mode 100644 index fd2806df..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessRow.java +++ /dev/null @@ -1,1515 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/access_report.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * Access report data for each row.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.AccessRow} - */ -public final class AccessRow extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AccessRow) - AccessRowOrBuilder { - private static final long serialVersionUID = 0L; - // Use AccessRow.newBuilder() to construct. - private AccessRow(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private AccessRow() { - dimensionValues_ = java.util.Collections.emptyList(); - metricValues_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new AccessRow(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.AccessReportProto - .internal_static_google_analytics_admin_v1alpha_AccessRow_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AccessReportProto - .internal_static_google_analytics_admin_v1alpha_AccessRow_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.AccessRow.class, - com.google.analytics.admin.v1alpha.AccessRow.Builder.class); - } - - public static final int DIMENSION_VALUES_FIELD_NUMBER = 1; - private java.util.List dimensionValues_; - /** - * - * - *
-   * List of dimension values. These values are in the same order as specified
-   * in the request.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDimensionValue dimension_values = 1; - * - */ - @java.lang.Override - public java.util.List - getDimensionValuesList() { - return dimensionValues_; - } - /** - * - * - *
-   * List of dimension values. These values are in the same order as specified
-   * in the request.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDimensionValue dimension_values = 1; - * - */ - @java.lang.Override - public java.util.List - getDimensionValuesOrBuilderList() { - return dimensionValues_; - } - /** - * - * - *
-   * List of dimension values. These values are in the same order as specified
-   * in the request.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDimensionValue dimension_values = 1; - * - */ - @java.lang.Override - public int getDimensionValuesCount() { - return dimensionValues_.size(); - } - /** - * - * - *
-   * List of dimension values. These values are in the same order as specified
-   * in the request.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDimensionValue dimension_values = 1; - * - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessDimensionValue getDimensionValues(int index) { - return dimensionValues_.get(index); - } - /** - * - * - *
-   * List of dimension values. These values are in the same order as specified
-   * in the request.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDimensionValue dimension_values = 1; - * - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessDimensionValueOrBuilder - getDimensionValuesOrBuilder(int index) { - return dimensionValues_.get(index); - } - - public static final int METRIC_VALUES_FIELD_NUMBER = 2; - private java.util.List metricValues_; - /** - * - * - *
-   * List of metric values. These values are in the same order as specified
-   * in the request.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessMetricValue metric_values = 2; - */ - @java.lang.Override - public java.util.List - getMetricValuesList() { - return metricValues_; - } - /** - * - * - *
-   * List of metric values. These values are in the same order as specified
-   * in the request.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessMetricValue metric_values = 2; - */ - @java.lang.Override - public java.util.List - getMetricValuesOrBuilderList() { - return metricValues_; - } - /** - * - * - *
-   * List of metric values. These values are in the same order as specified
-   * in the request.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessMetricValue metric_values = 2; - */ - @java.lang.Override - public int getMetricValuesCount() { - return metricValues_.size(); - } - /** - * - * - *
-   * List of metric values. These values are in the same order as specified
-   * in the request.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessMetricValue metric_values = 2; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessMetricValue getMetricValues(int index) { - return metricValues_.get(index); - } - /** - * - * - *
-   * List of metric values. These values are in the same order as specified
-   * in the request.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessMetricValue metric_values = 2; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessMetricValueOrBuilder getMetricValuesOrBuilder( - int index) { - return metricValues_.get(index); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - for (int i = 0; i < dimensionValues_.size(); i++) { - output.writeMessage(1, dimensionValues_.get(i)); - } - for (int i = 0; i < metricValues_.size(); i++) { - output.writeMessage(2, metricValues_.get(i)); - } - 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(); - 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); - int from_bitField0_ = bitField0_; - if (dimensionValuesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - dimensionValues_ = java.util.Collections.unmodifiableList(dimensionValues_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.dimensionValues_ = dimensionValues_; - } else { - result.dimensionValues_ = dimensionValuesBuilder_.build(); - } - if (metricValuesBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - metricValues_ = java.util.Collections.unmodifiableList(metricValues_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.metricValues_ = metricValues_; - } else { - result.metricValues_ = metricValuesBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.AccessRow) { - return mergeFrom((com.google.analytics.admin.v1alpha.AccessRow) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.AccessRow other) { - if (other == com.google.analytics.admin.v1alpha.AccessRow.getDefaultInstance()) return this; - if (dimensionValuesBuilder_ == null) { - if (!other.dimensionValues_.isEmpty()) { - if (dimensionValues_.isEmpty()) { - dimensionValues_ = other.dimensionValues_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureDimensionValuesIsMutable(); - dimensionValues_.addAll(other.dimensionValues_); - } - onChanged(); - } - } else { - if (!other.dimensionValues_.isEmpty()) { - if (dimensionValuesBuilder_.isEmpty()) { - dimensionValuesBuilder_.dispose(); - dimensionValuesBuilder_ = null; - dimensionValues_ = other.dimensionValues_; - bitField0_ = (bitField0_ & ~0x00000001); - dimensionValuesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getDimensionValuesFieldBuilder() - : null; - } else { - dimensionValuesBuilder_.addAllMessages(other.dimensionValues_); - } - } - } - if (metricValuesBuilder_ == null) { - if (!other.metricValues_.isEmpty()) { - if (metricValues_.isEmpty()) { - metricValues_ = other.metricValues_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureMetricValuesIsMutable(); - metricValues_.addAll(other.metricValues_); - } - onChanged(); - } - } else { - if (!other.metricValues_.isEmpty()) { - if (metricValuesBuilder_.isEmpty()) { - metricValuesBuilder_.dispose(); - metricValuesBuilder_ = null; - metricValues_ = other.metricValues_; - bitField0_ = (bitField0_ & ~0x00000002); - metricValuesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getMetricValuesFieldBuilder() - : null; - } else { - metricValuesBuilder_.addAllMessages(other.metricValues_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessRowOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessRowOrBuilder.java deleted file mode 100644 index 7c4bb252..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessRowOrBuilder.java +++ /dev/null @@ -1,145 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessStringFilter.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessStringFilter.java deleted file mode 100644 index 34380b44..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessStringFilter.java +++ /dev/null @@ -1,1112 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/access_report.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * The filter for strings.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.AccessStringFilter} - */ -public final class AccessStringFilter extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AccessStringFilter) - AccessStringFilterOrBuilder { - private static final long serialVersionUID = 0L; - // Use AccessStringFilter.newBuilder() to construct. - private AccessStringFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private AccessStringFilter() { - matchType_ = 0; - value_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new AccessStringFilter(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.AccessReportProto - .internal_static_google_analytics_admin_v1alpha_AccessStringFilter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AccessReportProto - .internal_static_google_analytics_admin_v1alpha_AccessStringFilter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.AccessStringFilter.class, - com.google.analytics.admin.v1alpha.AccessStringFilter.Builder.class); - } - - /** - * - * - *
-   * The match type of a string filter.
-   * 
- * - * Protobuf enum {@code google.analytics.admin.v1alpha.AccessStringFilter.MatchType} - */ - public enum MatchType implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * Unspecified
-     * 
- * - * MATCH_TYPE_UNSPECIFIED = 0; - */ - MATCH_TYPE_UNSPECIFIED(0), - /** - * - * - *
-     * Exact match of the string value.
-     * 
- * - * EXACT = 1; - */ - EXACT(1), - /** - * - * - *
-     * Begins with the string value.
-     * 
- * - * BEGINS_WITH = 2; - */ - BEGINS_WITH(2), - /** - * - * - *
-     * Ends with the string value.
-     * 
- * - * ENDS_WITH = 3; - */ - ENDS_WITH(3), - /** - * - * - *
-     * Contains the string value.
-     * 
- * - * CONTAINS = 4; - */ - CONTAINS(4), - /** - * - * - *
-     * Full match for the regular expression with the string value.
-     * 
- * - * FULL_REGEXP = 5; - */ - FULL_REGEXP(5), - /** - * - * - *
-     * Partial match for the regular expression with the string value.
-     * 
- * - * PARTIAL_REGEXP = 6; - */ - PARTIAL_REGEXP(6), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-     * Unspecified
-     * 
- * - * MATCH_TYPE_UNSPECIFIED = 0; - */ - public static final int MATCH_TYPE_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-     * Exact match of the string value.
-     * 
- * - * EXACT = 1; - */ - public static final int EXACT_VALUE = 1; - /** - * - * - *
-     * Begins with the string value.
-     * 
- * - * BEGINS_WITH = 2; - */ - public static final int BEGINS_WITH_VALUE = 2; - /** - * - * - *
-     * Ends with the string value.
-     * 
- * - * ENDS_WITH = 3; - */ - public static final int ENDS_WITH_VALUE = 3; - /** - * - * - *
-     * Contains the string value.
-     * 
- * - * CONTAINS = 4; - */ - public static final int CONTAINS_VALUE = 4; - /** - * - * - *
-     * Full match for the regular expression with the string value.
-     * 
- * - * FULL_REGEXP = 5; - */ - public static final int FULL_REGEXP_VALUE = 5; - /** - * - * - *
-     * Partial match for the regular expression with the string value.
-     * 
- * - * PARTIAL_REGEXP = 6; - */ - public static final int PARTIAL_REGEXP_VALUE = 6; - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static MatchType valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static MatchType forNumber(int value) { - switch (value) { - case 0: - return MATCH_TYPE_UNSPECIFIED; - case 1: - return EXACT; - case 2: - return BEGINS_WITH; - case 3: - return ENDS_WITH; - case 4: - return CONTAINS; - case 5: - return FULL_REGEXP; - case 6: - return PARTIAL_REGEXP; - default: - return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { - return internalValueMap; - } - - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public MatchType findValueByNumber(int number) { - return MatchType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.AccessStringFilter.getDescriptor() - .getEnumTypes() - .get(0); - } - - private static final MatchType[] VALUES = values(); - - public static MatchType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private MatchType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1alpha.AccessStringFilter.MatchType) - } - - public static final int MATCH_TYPE_FIELD_NUMBER = 1; - private int matchType_; - /** - * - * - *
-   * The match type for this filter.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessStringFilter.MatchType match_type = 1; - * - * @return The enum numeric value on the wire for matchType. - */ - @java.lang.Override - public int getMatchTypeValue() { - return matchType_; - } - /** - * - * - *
-   * The match type for this filter.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessStringFilter.MatchType match_type = 1; - * - * @return The matchType. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessStringFilter.MatchType getMatchType() { - @SuppressWarnings("deprecation") - com.google.analytics.admin.v1alpha.AccessStringFilter.MatchType result = - com.google.analytics.admin.v1alpha.AccessStringFilter.MatchType.valueOf(matchType_); - return result == null - ? com.google.analytics.admin.v1alpha.AccessStringFilter.MatchType.UNRECOGNIZED - : result; - } - - public static final int VALUE_FIELD_NUMBER = 2; - private volatile java.lang.Object value_; - /** - * - * - *
-   * The string value used for the matching.
-   * 
- * - * string value = 2; - * - * @return The value. - */ - @java.lang.Override - public java.lang.String getValue() { - java.lang.Object ref = value_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - value_ = s; - return s; - } - } - /** - * - * - *
-   * The string value used for the matching.
-   * 
- * - * string value = 2; - * - * @return The bytes for value. - */ - @java.lang.Override - public com.google.protobuf.ByteString getValueBytes() { - java.lang.Object ref = value_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - value_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CASE_SENSITIVE_FIELD_NUMBER = 3; - private boolean caseSensitive_; - /** - * - * - *
-   * If true, the string value is case sensitive.
-   * 
- * - * bool case_sensitive = 3; - * - * @return The caseSensitive. - */ - @java.lang.Override - public boolean getCaseSensitive() { - return caseSensitive_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (matchType_ - != com.google.analytics.admin.v1alpha.AccessStringFilter.MatchType.MATCH_TYPE_UNSPECIFIED - .getNumber()) { - output.writeEnum(1, matchType_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, value_); - } - if (caseSensitive_ != false) { - output.writeBool(3, caseSensitive_); - } - 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(); - matchType_ = 0; - - value_ = ""; - - caseSensitive_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AccessReportProto - .internal_static_google_analytics_admin_v1alpha_AccessStringFilter_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessStringFilter getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.AccessStringFilter.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessStringFilter build() { - com.google.analytics.admin.v1alpha.AccessStringFilter result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessStringFilter buildPartial() { - com.google.analytics.admin.v1alpha.AccessStringFilter result = - new com.google.analytics.admin.v1alpha.AccessStringFilter(this); - result.matchType_ = matchType_; - result.value_ = value_; - result.caseSensitive_ = caseSensitive_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.AccessStringFilter) { - return mergeFrom((com.google.analytics.admin.v1alpha.AccessStringFilter) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.AccessStringFilter other) { - if (other == com.google.analytics.admin.v1alpha.AccessStringFilter.getDefaultInstance()) - return this; - if (other.matchType_ != 0) { - setMatchTypeValue(other.getMatchTypeValue()); - } - if (!other.getValue().isEmpty()) { - value_ = other.value_; - onChanged(); - } - if (other.getCaseSensitive() != false) { - setCaseSensitive(other.getCaseSensitive()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == 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(); - - break; - } // case 8 - case 18: - { - value_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 24: - { - caseSensitive_ = input.readBool(); - - 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 matchType_ = 0; - /** - * - * - *
-     * The match type for this filter.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessStringFilter.MatchType match_type = 1; - * - * @return The enum numeric value on the wire for matchType. - */ - @java.lang.Override - public int getMatchTypeValue() { - return matchType_; - } - /** - * - * - *
-     * The match type for this filter.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessStringFilter.MatchType match_type = 1; - * - * @param value The enum numeric value on the wire for matchType to set. - * @return This builder for chaining. - */ - public Builder setMatchTypeValue(int value) { - - matchType_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The match type for this filter.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessStringFilter.MatchType match_type = 1; - * - * @return The matchType. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessStringFilter.MatchType getMatchType() { - @SuppressWarnings("deprecation") - com.google.analytics.admin.v1alpha.AccessStringFilter.MatchType result = - com.google.analytics.admin.v1alpha.AccessStringFilter.MatchType.valueOf(matchType_); - return result == null - ? com.google.analytics.admin.v1alpha.AccessStringFilter.MatchType.UNRECOGNIZED - : result; - } - /** - * - * - *
-     * The match type for this filter.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessStringFilter.MatchType match_type = 1; - * - * @param value The matchType to set. - * @return This builder for chaining. - */ - public Builder setMatchType( - com.google.analytics.admin.v1alpha.AccessStringFilter.MatchType value) { - if (value == null) { - throw new NullPointerException(); - } - - matchType_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * The match type for this filter.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessStringFilter.MatchType match_type = 1; - * - * @return This builder for chaining. - */ - public Builder clearMatchType() { - - matchType_ = 0; - onChanged(); - return this; - } - - private java.lang.Object value_ = ""; - /** - * - * - *
-     * The string value used for the matching.
-     * 
- * - * string value = 2; - * - * @return The value. - */ - public java.lang.String getValue() { - java.lang.Object ref = value_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - value_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The string value used for the matching.
-     * 
- * - * string value = 2; - * - * @return The bytes for value. - */ - public com.google.protobuf.ByteString getValueBytes() { - java.lang.Object ref = value_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - value_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The string value used for the matching.
-     * 
- * - * string value = 2; - * - * @param value The value to set. - * @return This builder for chaining. - */ - public Builder setValue(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - value_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The string value used for the matching.
-     * 
- * - * string value = 2; - * - * @return This builder for chaining. - */ - public Builder clearValue() { - - value_ = getDefaultInstance().getValue(); - onChanged(); - return this; - } - /** - * - * - *
-     * The string value used for the matching.
-     * 
- * - * string value = 2; - * - * @param value The bytes for value to set. - * @return This builder for chaining. - */ - public Builder setValueBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - value_ = value; - onChanged(); - return this; - } - - private boolean caseSensitive_; - /** - * - * - *
-     * If true, the string value is case sensitive.
-     * 
- * - * bool case_sensitive = 3; - * - * @return The caseSensitive. - */ - @java.lang.Override - public boolean getCaseSensitive() { - return caseSensitive_; - } - /** - * - * - *
-     * If true, the string value is case sensitive.
-     * 
- * - * bool case_sensitive = 3; - * - * @param value The caseSensitive to set. - * @return This builder for chaining. - */ - public Builder setCaseSensitive(boolean value) { - - caseSensitive_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * If true, the string value is case sensitive.
-     * 
- * - * bool case_sensitive = 3; - * - * @return This builder for chaining. - */ - public Builder clearCaseSensitive() { - - caseSensitive_ = false; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.AccessStringFilter) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AccessStringFilter) - private static final com.google.analytics.admin.v1alpha.AccessStringFilter DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.AccessStringFilter(); - } - - public static com.google.analytics.admin.v1alpha.AccessStringFilter getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AccessStringFilter parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessStringFilterOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessStringFilterOrBuilder.java deleted file mode 100644 index 668d1e56..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessStringFilterOrBuilder.java +++ /dev/null @@ -1,88 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/Account.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/Account.java deleted file mode 100644 index 4539cf55..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/Account.java +++ /dev/null @@ -1,1647 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/resources.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * 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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - 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 getCreateTime(); - } - - 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 getUpdateTime(); - } - - public static final int DISPLAY_NAME_FIELD_NUMBER = 4; - 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; - 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_; - /** - * - * - *
-   * 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(); - name_ = ""; - - if (createTimeBuilder_ == null) { - createTime_ = null; - } else { - createTime_ = null; - createTimeBuilder_ = null; - } - if (updateTimeBuilder_ == null) { - updateTime_ = null; - } else { - updateTime_ = null; - 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); - result.name_ = name_; - if (createTimeBuilder_ == null) { - result.createTime_ = createTime_; - } else { - result.createTime_ = createTimeBuilder_.build(); - } - if (updateTimeBuilder_ == null) { - result.updateTime_ = updateTime_; - } else { - result.updateTime_ = updateTimeBuilder_.build(); - } - result.displayName_ = displayName_; - result.regionCode_ = regionCode_; - result.deleted_ = deleted_; - 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.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_; - onChanged(); - } - if (other.hasCreateTime()) { - mergeCreateTime(other.getCreateTime()); - } - if (other.hasUpdateTime()) { - mergeUpdateTime(other.getUpdateTime()); - } - if (!other.getDisplayName().isEmpty()) { - displayName_ = other.displayName_; - onChanged(); - } - if (!other.getRegionCode().isEmpty()) { - regionCode_ = other.regionCode_; - 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(); - - break; - } // case 10 - case 18: - { - input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - case 26: - { - input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 26 - case 34: - { - displayName_ = input.readStringRequireUtf8(); - - break; - } // case 34 - case 42: - { - regionCode_ = input.readStringRequireUtf8(); - - break; - } // case 42 - case 48: - { - deleted_ = input.readBool(); - - 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 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; - 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(); - 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; - 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 createTimeBuilder_ != null || 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. - */ - 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; - onChanged(); - } else { - createTimeBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - createTimeBuilder_.setMessage(builderForValue.build()); - } - - 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 (createTime_ != null) { - createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); - } else { - createTime_ = value; - } - onChanged(); - } else { - createTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Output only. Time when this account was originally created.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearCreateTime() { - if (createTimeBuilder_ == null) { - createTime_ = null; - onChanged(); - } else { - createTime_ = null; - createTimeBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Output only. Time when this account was originally created.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - - 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 updateTimeBuilder_ != null || 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. - */ - 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; - onChanged(); - } else { - updateTimeBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - updateTimeBuilder_.setMessage(builderForValue.build()); - } - - 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 (updateTime_ != null) { - updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); - } else { - updateTime_ = value; - } - onChanged(); - } else { - updateTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Output only. Time when account payload fields were last updated.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearUpdateTime() { - if (updateTimeBuilder_ == null) { - updateTime_ = null; - onChanged(); - } else { - updateTime_ = null; - updateTimeBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Output only. Time when 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() { - - 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; - 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(); - 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; - 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; - 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(); - 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; - 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; - 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() { - - 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccountName.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccountName.java deleted file mode 100644 index 5621affa..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccountName.java +++ /dev/null @@ -1,168 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 com.google.api.pathtemplate.PathTemplate; -import com.google.api.resourcenames.ResourceName; -import com.google.common.base.Preconditions; -import com.google.common.collect.ImmutableMap; -import java.util.ArrayList; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -@Generated("by gapic-generator-java") -public class AccountName implements ResourceName { - private static final PathTemplate ACCOUNT = - PathTemplate.createWithoutUrlEncoding("accounts/{account}"); - private volatile Map fieldValuesMap; - private final String account; - - @Deprecated - protected AccountName() { - account = null; - } - - private AccountName(Builder builder) { - account = Preconditions.checkNotNull(builder.getAccount()); - } - - public String getAccount() { - return account; - } - - public static Builder newBuilder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder(this); - } - - public static AccountName of(String account) { - return newBuilder().setAccount(account).build(); - } - - public static String format(String account) { - return newBuilder().setAccount(account).build().toString(); - } - - public static AccountName parse(String formattedString) { - if (formattedString.isEmpty()) { - return null; - } - Map matchMap = - ACCOUNT.validatedMatch( - formattedString, "AccountName.parse: formattedString not in valid format"); - return of(matchMap.get("account")); - } - - public static List parseList(List formattedStrings) { - List list = new ArrayList<>(formattedStrings.size()); - for (String formattedString : formattedStrings) { - list.add(parse(formattedString)); - } - return list; - } - - public static List toStringList(List values) { - List list = new ArrayList<>(values.size()); - for (AccountName value : values) { - if (value == null) { - list.add(""); - } else { - list.add(value.toString()); - } - } - return list; - } - - public static boolean isParsableFrom(String formattedString) { - return ACCOUNT.matches(formattedString); - } - - @Override - public Map getFieldValuesMap() { - if (fieldValuesMap == null) { - synchronized (this) { - if (fieldValuesMap == null) { - ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); - if (account != null) { - fieldMapBuilder.put("account", account); - } - fieldValuesMap = fieldMapBuilder.build(); - } - } - } - return fieldValuesMap; - } - - public String getFieldValue(String fieldName) { - return getFieldValuesMap().get(fieldName); - } - - @Override - public String toString() { - return ACCOUNT.instantiate("account", account); - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (o != null || getClass() == o.getClass()) { - AccountName that = ((AccountName) o); - return Objects.equals(this.account, that.account); - } - return false; - } - - @Override - public int hashCode() { - int h = 1; - h *= 1000003; - h ^= Objects.hashCode(account); - return h; - } - - /** Builder for accounts/{account}. */ - public static class Builder { - private String account; - - protected Builder() {} - - public String getAccount() { - return account; - } - - public Builder setAccount(String account) { - this.account = account; - return this; - } - - private Builder(AccountName accountName) { - this.account = accountName.account; - } - - public AccountName build() { - return new AccountName(this); - } - } -} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccountOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccountOrBuilder.java deleted file mode 100644 index 9aae2948..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccountOrBuilder.java +++ /dev/null @@ -1,194 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/resources.proto - -package com.google.analytics.admin.v1alpha; - -public interface 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccountSummary.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccountSummary.java deleted file mode 100644 index e8bcccd9..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccountSummary.java +++ /dev/null @@ -1,1508 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/resources.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * 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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - 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; - 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; - 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; - 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(); - name_ = ""; - - account_ = ""; - - displayName_ = ""; - - if (propertySummariesBuilder_ == null) { - propertySummaries_ = java.util.Collections.emptyList(); - } else { - propertySummaries_ = null; - propertySummariesBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - 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); - int from_bitField0_ = bitField0_; - result.name_ = name_; - result.account_ = account_; - result.displayName_ = displayName_; - if (propertySummariesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - propertySummaries_ = java.util.Collections.unmodifiableList(propertySummaries_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.propertySummaries_ = propertySummaries_; - } else { - result.propertySummaries_ = propertySummariesBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.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_; - onChanged(); - } - if (!other.getAccount().isEmpty()) { - account_ = other.account_; - onChanged(); - } - if (!other.getDisplayName().isEmpty()) { - displayName_ = other.displayName_; - onChanged(); - } - if (propertySummariesBuilder_ == null) { - if (!other.propertySummaries_.isEmpty()) { - if (propertySummaries_.isEmpty()) { - propertySummaries_ = other.propertySummaries_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensurePropertySummariesIsMutable(); - propertySummaries_.addAll(other.propertySummaries_); - } - onChanged(); - } - } else { - if (!other.propertySummaries_.isEmpty()) { - if (propertySummariesBuilder_.isEmpty()) { - propertySummariesBuilder_.dispose(); - propertySummariesBuilder_ = null; - propertySummaries_ = other.propertySummaries_; - bitField0_ = (bitField0_ & ~0x00000001); - 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(); - - break; - } // case 10 - case 18: - { - account_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: - { - displayName_ = input.readStringRequireUtf8(); - - 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; - 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(); - 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; - 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; - 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(); - 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; - 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; - 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(); - 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; - onChanged(); - return this; - } - - private java.util.List propertySummaries_ = - java.util.Collections.emptyList(); - - private void ensurePropertySummariesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - propertySummaries_ = - new java.util.ArrayList( - propertySummaries_); - bitField0_ |= 0x00000001; - } - } - - 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_ & ~0x00000001); - 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_ & 0x00000001) != 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccountSummaryOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccountSummaryOrBuilder.java deleted file mode 100644 index bc3b45fe..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccountSummaryOrBuilder.java +++ /dev/null @@ -1,161 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/resources.proto - -package com.google.analytics.admin.v1alpha; - -public interface 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AcknowledgeUserDataCollectionRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AcknowledgeUserDataCollectionRequest.java deleted file mode 100644 index 74f60d50..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AcknowledgeUserDataCollectionRequest.java +++ /dev/null @@ -1,866 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * Request message for AcknowledgeUserDataCollection RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest} - */ -public final class AcknowledgeUserDataCollectionRequest - extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest) - AcknowledgeUserDataCollectionRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use AcknowledgeUserDataCollectionRequest.newBuilder() to construct. - private AcknowledgeUserDataCollectionRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private AcknowledgeUserDataCollectionRequest() { - property_ = ""; - acknowledgement_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new AcknowledgeUserDataCollectionRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_AcknowledgeUserDataCollectionRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_AcknowledgeUserDataCollectionRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest.class, - com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest.Builder.class); - } - - public static final int PROPERTY_FIELD_NUMBER = 1; - private volatile java.lang.Object property_; - /** - * - * - *
-   * Required. The property for which to acknowledge user data collection.
-   * 
- * - * - * string property = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The property. - */ - @java.lang.Override - public java.lang.String getProperty() { - java.lang.Object ref = property_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - property_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The property for which to acknowledge user data collection.
-   * 
- * - * - * string property = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for property. - */ - @java.lang.Override - public com.google.protobuf.ByteString getPropertyBytes() { - java.lang.Object ref = property_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - property_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ACKNOWLEDGEMENT_FIELD_NUMBER = 2; - private volatile java.lang.Object acknowledgement_; - /** - * - * - *
-   * Required. An acknowledgement that the caller of this method understands the terms
-   * of user data collection.
-   * This field must contain the exact value:
-   * "I acknowledge that I have the necessary privacy disclosures and rights
-   * from my end users for the collection and processing of their data,
-   * including the association of such data with the visitation information
-   * Google Analytics collects from my site and/or app property."
-   * 
- * - * string acknowledgement = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The acknowledgement. - */ - @java.lang.Override - public java.lang.String getAcknowledgement() { - java.lang.Object ref = acknowledgement_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - acknowledgement_ = s; - return s; - } - } - /** - * - * - *
-   * Required. An acknowledgement that the caller of this method understands the terms
-   * of user data collection.
-   * This field must contain the exact value:
-   * "I acknowledge that I have the necessary privacy disclosures and rights
-   * from my end users for the collection and processing of their data,
-   * including the association of such data with the visitation information
-   * Google Analytics collects from my site and/or app property."
-   * 
- * - * string acknowledgement = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for acknowledgement. - */ - @java.lang.Override - public com.google.protobuf.ByteString getAcknowledgementBytes() { - java.lang.Object ref = acknowledgement_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - acknowledgement_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(property_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, property_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(acknowledgement_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, acknowledgement_); - } - getUnknownFields().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(); - property_ = ""; - - acknowledgement_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_AcknowledgeUserDataCollectionRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest - getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest build() { - com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest result = - buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest buildPartial() { - com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest result = - new com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest(this); - result.property_ = property_; - result.acknowledgement_ = acknowledgement_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest) { - return mergeFrom( - (com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest other) { - if (other - == com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest - .getDefaultInstance()) return this; - if (!other.getProperty().isEmpty()) { - property_ = other.property_; - onChanged(); - } - if (!other.getAcknowledgement().isEmpty()) { - acknowledgement_ = other.acknowledgement_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 18: - { - acknowledgement_ = input.readStringRequireUtf8(); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object property_ = ""; - /** - * - * - *
-     * Required. The property for which to acknowledge user data collection.
-     * 
- * - * - * string property = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The property. - */ - public java.lang.String getProperty() { - java.lang.Object ref = property_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - property_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The property for which to acknowledge user data collection.
-     * 
- * - * - * string property = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for property. - */ - public com.google.protobuf.ByteString getPropertyBytes() { - java.lang.Object ref = property_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - property_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The property for which to acknowledge user data collection.
-     * 
- * - * - * string property = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The property to set. - * @return This builder for chaining. - */ - public Builder setProperty(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - property_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The property for which to acknowledge user data collection.
-     * 
- * - * - * string property = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearProperty() { - - property_ = getDefaultInstance().getProperty(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The property for which to acknowledge user data collection.
-     * 
- * - * - * string property = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for property to set. - * @return This builder for chaining. - */ - public Builder setPropertyBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - property_ = value; - onChanged(); - return this; - } - - private java.lang.Object acknowledgement_ = ""; - /** - * - * - *
-     * Required. An acknowledgement that the caller of this method understands the terms
-     * of user data collection.
-     * This field must contain the exact value:
-     * "I acknowledge that I have the necessary privacy disclosures and rights
-     * from my end users for the collection and processing of their data,
-     * including the association of such data with the visitation information
-     * Google Analytics collects from my site and/or app property."
-     * 
- * - * string acknowledgement = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The acknowledgement. - */ - public java.lang.String getAcknowledgement() { - java.lang.Object ref = acknowledgement_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - acknowledgement_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. An acknowledgement that the caller of this method understands the terms
-     * of user data collection.
-     * This field must contain the exact value:
-     * "I acknowledge that I have the necessary privacy disclosures and rights
-     * from my end users for the collection and processing of their data,
-     * including the association of such data with the visitation information
-     * Google Analytics collects from my site and/or app property."
-     * 
- * - * string acknowledgement = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for acknowledgement. - */ - public com.google.protobuf.ByteString getAcknowledgementBytes() { - java.lang.Object ref = acknowledgement_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - acknowledgement_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. An acknowledgement that the caller of this method understands the terms
-     * of user data collection.
-     * This field must contain the exact value:
-     * "I acknowledge that I have the necessary privacy disclosures and rights
-     * from my end users for the collection and processing of their data,
-     * including the association of such data with the visitation information
-     * Google Analytics collects from my site and/or app property."
-     * 
- * - * string acknowledgement = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The acknowledgement to set. - * @return This builder for chaining. - */ - public Builder setAcknowledgement(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - acknowledgement_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. An acknowledgement that the caller of this method understands the terms
-     * of user data collection.
-     * This field must contain the exact value:
-     * "I acknowledge that I have the necessary privacy disclosures and rights
-     * from my end users for the collection and processing of their data,
-     * including the association of such data with the visitation information
-     * Google Analytics collects from my site and/or app property."
-     * 
- * - * string acknowledgement = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearAcknowledgement() { - - acknowledgement_ = getDefaultInstance().getAcknowledgement(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. An acknowledgement that the caller of this method understands the terms
-     * of user data collection.
-     * This field must contain the exact value:
-     * "I acknowledge that I have the necessary privacy disclosures and rights
-     * from my end users for the collection and processing of their data,
-     * including the association of such data with the visitation information
-     * Google Analytics collects from my site and/or app property."
-     * 
- * - * string acknowledgement = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for acknowledgement to set. - * @return This builder for chaining. - */ - public Builder setAcknowledgementBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - acknowledgement_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest) - private static final com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = - new com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest(); - } - - public static com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AcknowledgeUserDataCollectionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AcknowledgeUserDataCollectionRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AcknowledgeUserDataCollectionRequestOrBuilder.java deleted file mode 100644 index 35c9aa57..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AcknowledgeUserDataCollectionRequestOrBuilder.java +++ /dev/null @@ -1,91 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface AcknowledgeUserDataCollectionRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The property for which to acknowledge user data collection.
-   * 
- * - * - * string property = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The property. - */ - java.lang.String getProperty(); - /** - * - * - *
-   * Required. The property for which to acknowledge user data collection.
-   * 
- * - * - * string property = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for property. - */ - com.google.protobuf.ByteString getPropertyBytes(); - - /** - * - * - *
-   * Required. An acknowledgement that the caller of this method understands the terms
-   * of user data collection.
-   * This field must contain the exact value:
-   * "I acknowledge that I have the necessary privacy disclosures and rights
-   * from my end users for the collection and processing of their data,
-   * including the association of such data with the visitation information
-   * Google Analytics collects from my site and/or app property."
-   * 
- * - * string acknowledgement = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The acknowledgement. - */ - java.lang.String getAcknowledgement(); - /** - * - * - *
-   * Required. An acknowledgement that the caller of this method understands the terms
-   * of user data collection.
-   * This field must contain the exact value:
-   * "I acknowledge that I have the necessary privacy disclosures and rights
-   * from my end users for the collection and processing of their data,
-   * including the association of such data with the visitation information
-   * Google Analytics collects from my site and/or app property."
-   * 
- * - * string acknowledgement = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for acknowledgement. - */ - com.google.protobuf.ByteString getAcknowledgementBytes(); -} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AcknowledgeUserDataCollectionResponse.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AcknowledgeUserDataCollectionResponse.java deleted file mode 100644 index f84c754a..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AcknowledgeUserDataCollectionResponse.java +++ /dev/null @@ -1,454 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * Response message for AcknowledgeUserDataCollection RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse} - */ -public final class AcknowledgeUserDataCollectionResponse - extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse) - AcknowledgeUserDataCollectionResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use AcknowledgeUserDataCollectionResponse.newBuilder() to construct. - private AcknowledgeUserDataCollectionResponse( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private AcknowledgeUserDataCollectionResponse() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new AcknowledgeUserDataCollectionResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AcknowledgeUserDataCollectionResponseOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AcknowledgeUserDataCollectionResponseOrBuilder.java deleted file mode 100644 index d67a9c55..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AcknowledgeUserDataCollectionResponseOrBuilder.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface AcknowledgeUserDataCollectionResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse) - com.google.protobuf.MessageOrBuilder {} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ActionType.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ActionType.java deleted file mode 100644 index bdd4ca5b..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ActionType.java +++ /dev/null @@ -1,198 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/resources.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ActorType.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ActorType.java deleted file mode 100644 index b34ddadc..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ActorType.java +++ /dev/null @@ -1,199 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/resources.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminProto.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminProto.java deleted file mode 100644 index a806bba1..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminProto.java +++ /dev/null @@ -1,2150 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public 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_GetUserLinkRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_GetUserLinkRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_BatchGetUserLinksRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_BatchGetUserLinksRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_BatchGetUserLinksResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_BatchGetUserLinksResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_ListUserLinksRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_ListUserLinksRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_ListUserLinksResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_ListUserLinksResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_AuditUserLinksRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_AuditUserLinksRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_AuditUserLinksResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_AuditUserLinksResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_CreateUserLinkRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_CreateUserLinkRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_BatchCreateUserLinksRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_BatchCreateUserLinksRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_BatchCreateUserLinksResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_BatchCreateUserLinksResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_UpdateUserLinkRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_UpdateUserLinkRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_BatchUpdateUserLinksRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_BatchUpdateUserLinksRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_BatchUpdateUserLinksResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_BatchUpdateUserLinksResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_DeleteUserLinkRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_DeleteUserLinkRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_BatchDeleteUserLinksRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_BatchDeleteUserLinksRequest_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_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_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_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; - - 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\032.google/analyt" - + "ics/admin/v1alpha/resources.proto\032\034googl" - + "e/api/annotations.proto\032\027google/api/clie" - + "nt.proto\032\037google/api/field_behavior.prot" - + "o\032\031google/api/resource.proto\032\033google/pro" - + "tobuf/empty.proto\032 google/protobuf/field" - + "_mask.proto\032\037google/protobuf/timestamp.p" - + "roto\"\244\004\n\026RunAccessReportRequest\022\016\n\006entit" - + "y\030\001 \001(\t\022C\n\ndimensions\030\002 \003(\0132/.google.ana" - + "lytics.admin.v1alpha.AccessDimension\022=\n\007" - + "metrics\030\003 \003(\0132,.google.analytics.admin.v" - + "1alpha.AccessMetric\022D\n\013date_ranges\030\004 \003(\013" - + "2/.google.analytics.admin.v1alpha.Access" - + "DateRange\022P\n\020dimension_filter\030\005 \001(\01326.go" - + "ogle.analytics.admin.v1alpha.AccessFilte" - + "rExpression\022M\n\rmetric_filter\030\006 \001(\01326.goo" - + "gle.analytics.admin.v1alpha.AccessFilter" - + "Expression\022\016\n\006offset\030\007 \001(\003\022\r\n\005limit\030\010 \001(" - + "\003\022\021\n\ttime_zone\030\t \001(\t\022@\n\torder_bys\030\n \003(\0132" - + "-.google.analytics.admin.v1alpha.AccessO" - + "rderBy\022\033\n\023return_entity_quota\030\013 \001(\010\"\277\002\n\027" - + "RunAccessReportResponse\022P\n\021dimension_hea" - + "ders\030\001 \003(\01325.google.analytics.admin.v1al" - + "pha.AccessDimensionHeader\022J\n\016metric_head" - + "ers\030\002 \003(\01322.google.analytics.admin.v1alp" - + "ha.AccessMetricHeader\0227\n\004rows\030\003 \003(\0132).go" - + "ogle.analytics.admin.v1alpha.AccessRow\022\021" - + "\n\trow_count\030\004 \001(\005\022:\n\005quota\030\005 \001(\0132+.googl" - + "e.analytics.admin.v1alpha.AccessQuota\"P\n" - + "\021GetAccountRequest\022;\n\004name\030\001 \001(\tB-\340A\002\372A\'" - + "\n%analyticsadmin.googleapis.com/Account\"" - + "R\n\023ListAccountsRequest\022\021\n\tpage_size\030\001 \001(" - + "\005\022\022\n\npage_token\030\002 \001(\t\022\024\n\014show_deleted\030\003 " - + "\001(\010\"j\n\024ListAccountsResponse\0229\n\010accounts\030" - + "\001 \003(\0132\'.google.analytics.admin.v1alpha.A" - + "ccount\022\027\n\017next_page_token\030\002 \001(\t\"S\n\024Delet" - + "eAccountRequest\022;\n\004name\030\001 \001(\tB-\340A\002\372A\'\n%a" - + "nalyticsadmin.googleapis.com/Account\"\213\001\n" - + "\024UpdateAccountRequest\022=\n\007account\030\001 \001(\0132\'" - + ".google.analytics.admin.v1alpha.AccountB" - + "\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.google.proto" - + "buf.FieldMaskB\003\340A\002\"o\n\035ProvisionAccountTi" - + "cketRequest\0228\n\007account\030\001 \001(\0132\'.google.an" - + "alytics.admin.v1alpha.Account\022\024\n\014redirec" - + "t_uri\030\002 \001(\t\";\n\036ProvisionAccountTicketRes" - + "ponse\022\031\n\021account_ticket_id\030\001 \001(\t\"R\n\022GetP" - + "ropertyRequest\022<\n\004name\030\001 \001(\tB.\340A\002\372A(\n&an" - + "alyticsadmin.googleapis.com/Property\"i\n\025" - + "ListPropertiesRequest\022\023\n\006filter\030\001 \001(\tB\003\340" - + "A\002\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(" - + "\t\022\024\n\014show_deleted\030\004 \001(\010\"o\n\026ListPropertie" - + "sResponse\022<\n\nproperties\030\001 \003(\0132(.google.a" - + "nalytics.admin.v1alpha.Property\022\027\n\017next_" - + "page_token\030\002 \001(\t\"\216\001\n\025UpdatePropertyReque" - + "st\022?\n\010property\030\001 \001(\0132(.google.analytics." - + "admin.v1alpha.PropertyB\003\340A\002\0224\n\013update_ma" - + "sk\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A" - + "\002\"X\n\025CreatePropertyRequest\022?\n\010property\030\001" - + " \001(\0132(.google.analytics.admin.v1alpha.Pr" - + "opertyB\003\340A\002\"U\n\025DeletePropertyRequest\022<\n\004" - + "name\030\001 \001(\tB.\340A\002\372A(\n&analyticsadmin.googl" - + "eapis.com/Property\"R\n\022GetUserLinkRequest" - + "\022<\n\004name\030\001 \001(\tB.\340A\002\372A(\n&analyticsadmin.g" - + "oogleapis.com/UserLink\"\231\001\n\030BatchGetUserL" - + "inksRequest\022>\n\006parent\030\001 \001(\tB.\340A\002\372A(\022&ana" - + "lyticsadmin.googleapis.com/UserLink\022=\n\005n" - + "ames\030\002 \003(\tB.\340A\002\372A(\n&analyticsadmin.googl" - + "eapis.com/UserLink\"Y\n\031BatchGetUserLinksR" - + "esponse\022<\n\nuser_links\030\001 \003(\0132(.google.ana" - + "lytics.admin.v1alpha.UserLink\"}\n\024ListUse" - + "rLinksRequest\022>\n\006parent\030\001 \001(\tB.\340A\002\372A(\022&a" - + "nalyticsadmin.googleapis.com/UserLink\022\021\n" - + "\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"n\n\025" - + "ListUserLinksResponse\022<\n\nuser_links\030\001 \003(" - + "\0132(.google.analytics.admin.v1alpha.UserL" - + "ink\022\027\n\017next_page_token\030\002 \001(\t\"~\n\025AuditUse" - + "rLinksRequest\022>\n\006parent\030\001 \001(\tB.\340A\002\372A(\022&a" - + "nalyticsadmin.googleapis.com/UserLink\022\021\n" - + "\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"t\n\026" - + "AuditUserLinksResponse\022A\n\nuser_links\030\001 \003" - + "(\0132-.google.analytics.admin.v1alpha.Audi" - + "tUserLink\022\027\n\017next_page_token\030\002 \001(\t\"\267\001\n\025C" - + "reateUserLinkRequest\022>\n\006parent\030\001 \001(\tB.\340A" - + "\002\372A(\022&analyticsadmin.googleapis.com/User" - + "Link\022\034\n\017notify_new_user\030\002 \001(\010B\003\340A\001\022@\n\tus" - + "er_link\030\003 \001(\0132(.google.analytics.admin.v" - + "1alpha.UserLinkB\003\340A\002\"\312\001\n\033BatchCreateUser" - + "LinksRequest\022>\n\006parent\030\001 \001(\tB.\340A\002\372A(\022&an" - + "alyticsadmin.googleapis.com/UserLink\022\035\n\020" - + "notify_new_users\030\002 \001(\010B\003\340A\001\022L\n\010requests\030" - + "\003 \003(\01325.google.analytics.admin.v1alpha.C" - + "reateUserLinkRequestB\003\340A\002\"\\\n\034BatchCreate" - + "UserLinksResponse\022<\n\nuser_links\030\001 \003(\0132(." - + "google.analytics.admin.v1alpha.UserLink\"" - + "Y\n\025UpdateUserLinkRequest\022@\n\tuser_link\030\001 " - + "\001(\0132(.google.analytics.admin.v1alpha.Use" - + "rLinkB\003\340A\002\"\253\001\n\033BatchUpdateUserLinksReque" - + "st\022>\n\006parent\030\001 \001(\tB.\340A\002\372A(\022&analyticsadm" - + "in.googleapis.com/UserLink\022L\n\010requests\030\002" - + " \003(\01325.google.analytics.admin.v1alpha.Up" - + "dateUserLinkRequestB\003\340A\002\"\\\n\034BatchUpdateU" - + "serLinksResponse\022<\n\nuser_links\030\001 \003(\0132(.g" - + "oogle.analytics.admin.v1alpha.UserLink\"U" - + "\n\025DeleteUserLinkRequest\022<\n\004name\030\001 \001(\tB.\340" - + "A\002\372A(\n&analyticsadmin.googleapis.com/Use" - + "rLink\"\253\001\n\033BatchDeleteUserLinksRequest\022>\n" - + "\006parent\030\001 \001(\tB.\340A\002\372A(\022&analyticsadmin.go" - + "ogleapis.com/UserLink\022L\n\010requests\030\002 \003(\0132" - + "5.google.analytics.admin.v1alpha.DeleteU" - + "serLinkRequestB\003\340A\002\"\251\001\n\031CreateFirebaseLi" - + "nkRequest\022B\n\006parent\030\001 \001(\tB2\340A\002\372A,\022*analy" - + "ticsadmin.googleapis.com/FirebaseLink\022H\n" - + "\rfirebase_link\030\002 \001(\0132,.google.analytics." - + "admin.v1alpha.FirebaseLinkB\003\340A\002\"]\n\031Delet" - + "eFirebaseLinkRequest\022@\n\004name\030\001 \001(\tB2\340A\002\372" - + "A,\n*analyticsadmin.googleapis.com/Fireba" - + "seLink\"\205\001\n\030ListFirebaseLinksRequest\022B\n\006p" - + "arent\030\001 \001(\tB2\340A\002\372A,\022*analyticsadmin.goog" - + "leapis.com/FirebaseLink\022\021\n\tpage_size\030\002 \001" - + "(\005\022\022\n\npage_token\030\003 \001(\t\"z\n\031ListFirebaseLi" - + "nksResponse\022D\n\016firebase_links\030\001 \003(\0132,.go" - + "ogle.analytics.admin.v1alpha.FirebaseLin" - + "k\022\027\n\017next_page_token\030\002 \001(\t\"\\\n\027GetGlobalS" - + "iteTagRequest\022A\n\004name\030\001 \001(\tB3\340A\002\372A-\n+ana" - + "lyticsadmin.googleapis.com/GlobalSiteTag" - + "\"\256\001\n\032CreateGoogleAdsLinkRequest\022C\n\006paren" - + "t\030\001 \001(\tB3\340A\002\372A-\022+analyticsadmin.googleap" - + "is.com/GoogleAdsLink\022K\n\017google_ads_link\030" - + "\002 \001(\0132-.google.analytics.admin.v1alpha.G" - + "oogleAdsLinkB\003\340A\002\"\232\001\n\032UpdateGoogleAdsLin" - + "kRequest\022F\n\017google_ads_link\030\001 \001(\0132-.goog" - + "le.analytics.admin.v1alpha.GoogleAdsLink" - + "\0224\n\013update_mask\030\002 \001(\0132\032.google.protobuf." - + "FieldMaskB\003\340A\002\"_\n\032DeleteGoogleAdsLinkReq" - + "uest\022A\n\004name\030\001 \001(\tB3\340A\002\372A-\n+analyticsadm" - + "in.googleapis.com/GoogleAdsLink\"\207\001\n\031List" - + "GoogleAdsLinksRequest\022C\n\006parent\030\001 \001(\tB3\340" - + "A\002\372A-\022+analyticsadmin.googleapis.com/Goo" - + "gleAdsLink\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_to" - + "ken\030\003 \001(\t\"~\n\032ListGoogleAdsLinksResponse\022" - + "G\n\020google_ads_links\030\001 \003(\0132-.google.analy" - + "tics.admin.v1alpha.GoogleAdsLink\022\027\n\017next" - + "_page_token\030\002 \001(\t\"h\n\035GetDataSharingSetti" - + "ngsRequest\022G\n\004name\030\001 \001(\tB9\340A\002\372A3\n1analyt" - + "icsadmin.googleapis.com/DataSharingSetti" - + "ngs\"D\n\033ListAccountSummariesRequest\022\021\n\tpa" - + "ge_size\030\001 \001(\005\022\022\n\npage_token\030\002 \001(\t\"\202\001\n\034Li" - + "stAccountSummariesResponse\022I\n\021account_su" - + "mmaries\030\001 \003(\0132..google.analytics.admin.v" - + "1alpha.AccountSummary\022\027\n\017next_page_token" - + "\030\002 \001(\t\"\206\001\n$AcknowledgeUserDataCollection" - + "Request\022@\n\010property\030\001 \001(\tB.\340A\002\372A(\n&analy" - + "ticsadmin.googleapis.com/Property\022\034\n\017ack" - + "nowledgement\030\002 \001(\tB\003\340A\002\"\'\n%AcknowledgeUs" - + "erDataCollectionResponse\"\203\004\n SearchChang" - + "eHistoryEventsRequest\022>\n\007account\030\001 \001(\tB-" - + "\340A\002\372A\'\n%analyticsadmin.googleapis.com/Ac" - + "count\022@\n\010property\030\002 \001(\tB.\340A\001\372A(\n&analyti" - + "csadmin.googleapis.com/Property\022U\n\rresou" - + "rce_type\030\003 \003(\01629.google.analytics.admin." - + "v1alpha.ChangeHistoryResourceTypeB\003\340A\001\022?" - + "\n\006action\030\004 \003(\0162*.google.analytics.admin." - + "v1alpha.ActionTypeB\003\340A\001\022\030\n\013actor_email\030\005" - + " \003(\tB\003\340A\001\022=\n\024earliest_change_time\030\006 \001(\0132" - + "\032.google.protobuf.TimestampB\003\340A\001\022;\n\022late" - + "st_change_time\030\007 \001(\0132\032.google.protobuf.T" - + "imestampB\003\340A\001\022\026\n\tpage_size\030\010 \001(\005B\003\340A\001\022\027\n" - + "\npage_token\030\t \001(\tB\003\340A\001\"\217\001\n!SearchChangeH" - + "istoryEventsResponse\022Q\n\025change_history_e" - + "vents\030\001 \003(\01322.google.analytics.admin.v1a" - + "lpha.ChangeHistoryEvent\022\027\n\017next_page_tok" - + "en\030\002 \001(\t\"t\n#GetMeasurementProtocolSecret" - + "Request\022M\n\004name\030\001 \001(\tB?\340A\002\372A9\n7analytics" - + "admin.googleapis.com/MeasurementProtocol" - + "Secret\"\336\001\n&CreateMeasurementProtocolSecr" - + "etRequest\022O\n\006parent\030\001 \001(\tB?\340A\002\372A9\0227analy" - + "ticsadmin.googleapis.com/MeasurementProt" - + "ocolSecret\022c\n\033measurement_protocol_secre" - + "t\030\002 \001(\01329.google.analytics.admin.v1alpha" - + ".MeasurementProtocolSecretB\003\340A\002\"w\n&Delet" - + "eMeasurementProtocolSecretRequest\022M\n\004nam" - + "e\030\001 \001(\tB?\340A\002\372A9\n7analyticsadmin.googleap" - + "is.com/MeasurementProtocolSecret\"\276\001\n&Upd" - + "ateMeasurementProtocolSecretRequest\022c\n\033m" - + "easurement_protocol_secret\030\001 \001(\01329.googl" - + "e.analytics.admin.v1alpha.MeasurementPro" - + "tocolSecretB\003\340A\002\022/\n\013update_mask\030\002 \001(\0132\032." - + "google.protobuf.FieldMask\"\237\001\n%ListMeasur" - + "ementProtocolSecretsRequest\022O\n\006parent\030\001 " - + "\001(\tB?\340A\002\372A9\0227analyticsadmin.googleapis.c" - + "om/MeasurementProtocolSecret\022\021\n\tpage_siz" - + "e\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"\242\001\n&ListMeas" - + "urementProtocolSecretsResponse\022_\n\034measur" - + "ement_protocol_secrets\030\001 \003(\01329.google.an" - + "alytics.admin.v1alpha.MeasurementProtoco" - + "lSecret\022\027\n\017next_page_token\030\002 \001(\t\"l\n\037GetG" - + "oogleSignalsSettingsRequest\022I\n\004name\030\001 \001(" - + "\tB;\340A\002\372A5\n3analyticsadmin.googleapis.com" - + "/GoogleSignalsSettings\"\267\001\n\"UpdateGoogleS" - + "ignalsSettingsRequest\022[\n\027google_signals_" - + "settings\030\001 \001(\01325.google.analytics.admin." - + "v1alpha.GoogleSignalsSettingsB\003\340A\002\0224\n\013up" - + "date_mask\030\002 \001(\0132\032.google.protobuf.FieldM" - + "askB\003\340A\002\"\265\001\n\034CreateConversionEventReques" - + "t\022N\n\020conversion_event\030\001 \001(\0132/.google.ana" - + "lytics.admin.v1alpha.ConversionEventB\003\340A" - + "\002\022E\n\006parent\030\002 \001(\tB5\340A\002\372A/\022-analyticsadmi" - + "n.googleapis.com/ConversionEvent\"`\n\031GetC" - + "onversionEventRequest\022C\n\004name\030\001 \001(\tB5\340A\002" - + "\372A/\n-analyticsadmin.googleapis.com/Conve" - + "rsionEvent\"c\n\034DeleteConversionEventReque" - + "st\022C\n\004name\030\001 \001(\tB5\340A\002\372A/\n-analyticsadmin" - + ".googleapis.com/ConversionEvent\"\213\001\n\033List" - + "ConversionEventsRequest\022E\n\006parent\030\001 \001(\tB" - + "5\340A\002\372A/\022-analyticsadmin.googleapis.com/C" - + "onversionEvent\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npag" - + "e_token\030\003 \001(\t\"\203\001\n\034ListConversionEventsRe" - + "sponse\022J\n\021conversion_events\030\001 \003(\0132/.goog" - + "le.analytics.admin.v1alpha.ConversionEve" - + "nt\022\027\n\017next_page_token\030\002 \001(\t\"|\n\'GetDispla" - + "yVideo360AdvertiserLinkRequest\022Q\n\004name\030\001" - + " \001(\tBC\340A\002\372A=\n;analyticsadmin.googleapis." - + "com/DisplayVideo360AdvertiserLink\"\247\001\n)Li" - + "stDisplayVideo360AdvertiserLinksRequest\022" - + "S\n\006parent\030\001 \001(\tBC\340A\002\372A=\022;analyticsadmin." - + "googleapis.com/DisplayVideo360Advertiser" - + "Link\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 " - + "\001(\t\"\260\001\n*ListDisplayVideo360AdvertiserLin" - + "ksResponse\022i\n\"display_video_360_advertis" - + "er_links\030\001 \003(\0132=.google.analytics.admin." - + "v1alpha.DisplayVideo360AdvertiserLink\022\027\n" - + "\017next_page_token\030\002 \001(\t\"\360\001\n*CreateDisplay" - + "Video360AdvertiserLinkRequest\022S\n\006parent\030" - + "\001 \001(\tBC\340A\002\372A=\022;analyticsadmin.googleapis" - + ".com/DisplayVideo360AdvertiserLink\022m\n!di" - + "splay_video_360_advertiser_link\030\002 \001(\0132=." - + "google.analytics.admin.v1alpha.DisplayVi" - + "deo360AdvertiserLinkB\003\340A\002\"\177\n*DeleteDispl" - + "ayVideo360AdvertiserLinkRequest\022Q\n\004name\030" - + "\001 \001(\tBC\340A\002\372A=\n;analyticsadmin.googleapis" - + ".com/DisplayVideo360AdvertiserLink\"\314\001\n*U" - + "pdateDisplayVideo360AdvertiserLinkReques" - + "t\022h\n!display_video_360_advertiser_link\030\001" - + " \001(\0132=.google.analytics.admin.v1alpha.Di" - + "splayVideo360AdvertiserLink\0224\n\013update_ma" - + "sk\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A" - + "\002\"\214\001\n/GetDisplayVideo360AdvertiserLinkPr" - + "oposalRequest\022Y\n\004name\030\001 \001(\tBK\340A\002\372AE\nCana" - + "lyticsadmin.googleapis.com/DisplayVideo3" - + "60AdvertiserLinkProposal\"\267\001\n1ListDisplay" - + "Video360AdvertiserLinkProposalsRequest\022[" - + "\n\006parent\030\001 \001(\tBK\340A\002\372AE\022Canalyticsadmin.g" - + "oogleapis.com/DisplayVideo360AdvertiserL" - + "inkProposal\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_t" - + "oken\030\003 \001(\t\"\311\001\n2ListDisplayVideo360Advert" - + "iserLinkProposalsResponse\022z\n+display_vid" - + "eo_360_advertiser_link_proposals\030\001 \003(\0132E" - + ".google.analytics.admin.v1alpha.DisplayV" - + "ideo360AdvertiserLinkProposal\022\027\n\017next_pa" - + "ge_token\030\002 \001(\t\"\221\002\n2CreateDisplayVideo360" - + "AdvertiserLinkProposalRequest\022[\n\006parent\030" - + "\001 \001(\tBK\340A\002\372AE\022Canalyticsadmin.googleapis" - + ".com/DisplayVideo360AdvertiserLinkPropos" - + "al\022~\n*display_video_360_advertiser_link_" - + "proposal\030\002 \001(\0132E.google.analytics.admin." - + "v1alpha.DisplayVideo360AdvertiserLinkPro" - + "posalB\003\340A\002\"\217\001\n2DeleteDisplayVideo360Adve" - + "rtiserLinkProposalRequest\022Y\n\004name\030\001 \001(\tB" - + "K\340A\002\372AE\nCanalyticsadmin.googleapis.com/D" - + "isplayVideo360AdvertiserLinkProposal\"\220\001\n" - + "3ApproveDisplayVideo360AdvertiserLinkPro" - + "posalRequest\022Y\n\004name\030\001 \001(\tBK\340A\002\372AE\nCanal" - + "yticsadmin.googleapis.com/DisplayVideo36" - + "0AdvertiserLinkProposal\"\240\001\n4ApproveDispl" - + "ayVideo360AdvertiserLinkProposalResponse" - + "\022h\n!display_video_360_advertiser_link\030\001 " - + "\001(\0132=.google.analytics.admin.v1alpha.Dis" - + "playVideo360AdvertiserLink\"\217\001\n2CancelDis" - + "playVideo360AdvertiserLinkProposalReques" - + "t\022Y\n\004name\030\001 \001(\tBK\340A\002\372AE\nCanalyticsadmin." - + "googleapis.com/DisplayVideo360Advertiser" - + "LinkProposal\"\265\001\n\034CreateCustomDimensionRe" - + "quest\022E\n\006parent\030\001 \001(\tB5\340A\002\372A/\022-analytics" - + "admin.googleapis.com/CustomDimension\022N\n\020" - + "custom_dimension\030\002 \001(\0132/.google.analytic" - + "s.admin.v1alpha.CustomDimensionB\003\340A\002\"\237\001\n" - + "\034UpdateCustomDimensionRequest\022I\n\020custom_" - + "dimension\030\001 \001(\0132/.google.analytics.admin" - + ".v1alpha.CustomDimension\0224\n\013update_mask\030" - + "\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"\213" - + "\001\n\033ListCustomDimensionsRequest\022E\n\006parent" - + "\030\001 \001(\tB5\340A\002\372A/\022-analyticsadmin.googleapi" - + "s.com/CustomDimension\022\021\n\tpage_size\030\002 \001(\005" - + "\022\022\n\npage_token\030\003 \001(\t\"\203\001\n\034ListCustomDimen" - + "sionsResponse\022J\n\021custom_dimensions\030\001 \003(\013" - + "2/.google.analytics.admin.v1alpha.Custom" - + "Dimension\022\027\n\017next_page_token\030\002 \001(\t\"d\n\035Ar" - + "chiveCustomDimensionRequest\022C\n\004name\030\001 \001(" - + "\tB5\340A\002\372A/\n-analyticsadmin.googleapis.com" - + "/CustomDimension\"`\n\031GetCustomDimensionRe" - + "quest\022C\n\004name\030\001 \001(\tB5\340A\002\372A/\n-analyticsad" - + "min.googleapis.com/CustomDimension\"\251\001\n\031C" - + "reateCustomMetricRequest\022B\n\006parent\030\001 \001(\t" - + "B2\340A\002\372A,\022*analyticsadmin.googleapis.com/" - + "CustomMetric\022H\n\rcustom_metric\030\002 \001(\0132,.go" - + "ogle.analytics.admin.v1alpha.CustomMetri" - + "cB\003\340A\002\"\226\001\n\031UpdateCustomMetricRequest\022C\n\r" - + "custom_metric\030\001 \001(\0132,.google.analytics.a" - + "dmin.v1alpha.CustomMetric\0224\n\013update_mask" - + "\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"" - + "\205\001\n\030ListCustomMetricsRequest\022B\n\006parent\030\001" - + " \001(\tB2\340A\002\372A,\022*analyticsadmin.googleapis." - + "com/CustomMetric\022\021\n\tpage_size\030\002 \001(\005\022\022\n\np" - + "age_token\030\003 \001(\t\"z\n\031ListCustomMetricsResp" - + "onse\022D\n\016custom_metrics\030\001 \003(\0132,.google.an" - + "alytics.admin.v1alpha.CustomMetric\022\027\n\017ne" - + "xt_page_token\030\002 \001(\t\"^\n\032ArchiveCustomMetr" - + "icRequest\022@\n\004name\030\001 \001(\tB2\340A\002\372A,\n*analyti" - + "csadmin.googleapis.com/CustomMetric\"Z\n\026G" - + "etCustomMetricRequest\022@\n\004name\030\001 \001(\tB2\340A\002" - + "\372A,\n*analyticsadmin.googleapis.com/Custo" - + "mMetric\"l\n\037GetDataRetentionSettingsReque" - + "st\022I\n\004name\030\001 \001(\tB;\340A\002\372A5\n3analyticsadmin" - + ".googleapis.com/DataRetentionSettings\"\267\001" - + "\n\"UpdateDataRetentionSettingsRequest\022[\n\027" - + "data_retention_settings\030\001 \001(\01325.google.a" - + "nalytics.admin.v1alpha.DataRetentionSett" - + "ingsB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.google." - + "protobuf.FieldMaskB\003\340A\002\"\241\001\n\027CreateDataSt" - + "reamRequest\022@\n\006parent\030\001 \001(\tB0\340A\002\372A*\022(ana" - + "lyticsadmin.googleapis.com/DataStream\022D\n" - + "\013data_stream\030\002 \001(\0132*.google.analytics.ad" - + "min.v1alpha.DataStreamB\003\340A\002\"Y\n\027DeleteDat" - + "aStreamRequest\022>\n\004name\030\001 \001(\tB0\340A\002\372A*\n(an" - + "alyticsadmin.googleapis.com/DataStream\"\220" - + "\001\n\027UpdateDataStreamRequest\022?\n\013data_strea" - + "m\030\001 \001(\0132*.google.analytics.admin.v1alpha" - + ".DataStream\0224\n\013update_mask\030\002 \001(\0132\032.googl" - + "e.protobuf.FieldMaskB\003\340A\002\"\201\001\n\026ListDataSt" - + "reamsRequest\022@\n\006parent\030\001 \001(\tB0\340A\002\372A*\022(an" - + "alyticsadmin.googleapis.com/DataStream\022\021" - + "\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"t\n" - + "\027ListDataStreamsResponse\022@\n\014data_streams" - + "\030\001 \003(\0132*.google.analytics.admin.v1alpha." - + "DataStream\022\027\n\017next_page_token\030\002 \001(\t\"V\n\024G" - + "etDataStreamRequest\022>\n\004name\030\001 \001(\tB0\340A\002\372A" - + "*\n(analyticsadmin.googleapis.com/DataStr" - + "eam\"R\n\022GetAudienceRequest\022<\n\004name\030\001 \001(\tB" - + ".\340A\002\372A(\n&analyticsadmin.googleapis.com/A" - + "udience\"}\n\024ListAudiencesRequest\022>\n\006paren" - + "t\030\001 \001(\tB.\340A\002\372A(\022&analyticsadmin.googleap" - + "is.com/Audience\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npa" - + "ge_token\030\003 \001(\t\"m\n\025ListAudiencesResponse\022" - + ";\n\taudiences\030\001 \003(\0132(.google.analytics.ad" - + "min.v1alpha.Audience\022\027\n\017next_page_token\030" - + "\002 \001(\t\"\230\001\n\025CreateAudienceRequest\022>\n\006paren" - + "t\030\001 \001(\tB.\340A\002\372A(\022&analyticsadmin.googleap" - + "is.com/Audience\022?\n\010audience\030\002 \001(\0132(.goog" - + "le.analytics.admin.v1alpha.AudienceB\003\340A\002" - + "\"\216\001\n\025UpdateAudienceRequest\022?\n\010audience\030\001" - + " \001(\0132(.google.analytics.admin.v1alpha.Au" - + "dienceB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.googl" - + "e.protobuf.FieldMaskB\003\340A\002\"V\n\026ArchiveAudi" - + "enceRequest\022<\n\004name\030\001 \001(\tB.\340A\002\372A(\022&analy" - + "ticsadmin.googleapis.com/Audience\"h\n\035Get" - + "AttributionSettingsRequest\022G\n\004name\030\001 \001(\t" - + "B9\340A\002\372A3\n1analyticsadmin.googleapis.com/" - + "AttributionSettings\"\260\001\n UpdateAttributio" - + "nSettingsRequest\022V\n\024attribution_settings" - + "\030\001 \001(\01323.google.analytics.admin.v1alpha." - + "AttributionSettingsB\003\340A\002\0224\n\013update_mask\030" - + "\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\0022\214" - + "\215\001\n\025AnalyticsAdminService\022\223\001\n\nGetAccount" - + "\0221.google.analytics.admin.v1alpha.GetAcc" - + "ountRequest\032\'.google.analytics.admin.v1a" - + "lpha.Account\")\202\323\344\223\002\034\022\032/v1alpha/{name=acc" - + "ounts/*}\332A\004name\022\224\001\n\014ListAccounts\0223.googl" - + "e.analytics.admin.v1alpha.ListAccountsRe" - + "quest\0324.google.analytics.admin.v1alpha.L" - + "istAccountsResponse\"\031\202\323\344\223\002\023\022\021/v1alpha/ac" - + "counts\022\210\001\n\rDeleteAccount\0224.google.analyt" - + "ics.admin.v1alpha.DeleteAccountRequest\032\026" - + ".google.protobuf.Empty\")\202\323\344\223\002\034*\032/v1alpha" - + "/{name=accounts/*}\332A\004name\022\271\001\n\rUpdateAcco" - + "unt\0224.google.analytics.admin.v1alpha.Upd" - + "ateAccountRequest\032\'.google.analytics.adm" - + "in.v1alpha.Account\"I\202\323\344\223\002-2\"/v1alpha/{ac" - + "count.name=accounts/*}:\007account\332A\023accoun" - + "t,update_mask\022\314\001\n\026ProvisionAccountTicket" - + "\022=.google.analytics.admin.v1alpha.Provis" - + "ionAccountTicketRequest\032>.google.analyti" - + "cs.admin.v1alpha.ProvisionAccountTicketR" - + "esponse\"3\202\323\344\223\002-\"(/v1alpha/accounts:provi" - + "sionAccountTicket:\001*\022\264\001\n\024ListAccountSumm" - + "aries\022;.google.analytics.admin.v1alpha.L" - + "istAccountSummariesRequest\032<.google.anal", - "ytics.admin.v1alpha.ListAccountSummaries" - + "Response\"!\202\323\344\223\002\033\022\031/v1alpha/accountSummar" - + "ies\022\230\001\n\013GetProperty\0222.google.analytics.a" - + "dmin.v1alpha.GetPropertyRequest\032(.google" - + ".analytics.admin.v1alpha.Property\"+\202\323\344\223\002" - + "\036\022\034/v1alpha/{name=properties/*}\332A\004name\022\234" - + "\001\n\016ListProperties\0225.google.analytics.adm" - + "in.v1alpha.ListPropertiesRequest\0326.googl" - + "e.analytics.admin.v1alpha.ListProperties" - + "Response\"\033\202\323\344\223\002\025\022\023/v1alpha/properties\022\243\001" - + "\n\016CreateProperty\0225.google.analytics.admi" - + "n.v1alpha.CreatePropertyRequest\032(.google" - + ".analytics.admin.v1alpha.Property\"0\202\323\344\223\002" - + "\037\"\023/v1alpha/properties:\010property\332A\010prope" - + "rty\022\236\001\n\016DeleteProperty\0225.google.analytic" - + "s.admin.v1alpha.DeletePropertyRequest\032(." - + "google.analytics.admin.v1alpha.Property\"" - + "+\202\323\344\223\002\036*\034/v1alpha/{name=properties/*}\332A\004" - + "name\022\301\001\n\016UpdateProperty\0225.google.analyti" - + "cs.admin.v1alpha.UpdatePropertyRequest\032(" - + ".google.analytics.admin.v1alpha.Property" - + "\"N\202\323\344\223\00212%/v1alpha/{property.name=proper" - + "ties/*}:\010property\332A\024property,update_mask" - + "\022\316\001\n\013GetUserLink\0222.google.analytics.admi" - + "n.v1alpha.GetUserLinkRequest\032(.google.an" - + "alytics.admin.v1alpha.UserLink\"a\202\323\344\223\002T\022&" - + "/v1alpha/{name=accounts/*/userLinks/*}Z*" - + "\022(/v1alpha/{name=properties/*/userLinks/" - + "*}\332A\004name\022\366\001\n\021BatchGetUserLinks\0228.google" - + ".analytics.admin.v1alpha.BatchGetUserLin" - + "ksRequest\0329.google.analytics.admin.v1alp" - + "ha.BatchGetUserLinksResponse\"l\202\323\344\223\002f\022//v" - + "1alpha/{parent=accounts/*}/userLinks:bat" - + "chGetZ3\0221/v1alpha/{parent=properties/*}/" - + "userLinks:batchGet\022\341\001\n\rListUserLinks\0224.g" - + "oogle.analytics.admin.v1alpha.ListUserLi" - + "nksRequest\0325.google.analytics.admin.v1al" - + "pha.ListUserLinksResponse\"c\202\323\344\223\002T\022&/v1al" - + "pha/{parent=accounts/*}/userLinksZ*\022(/v1" - + "alpha/{parent=properties/*}/userLinks\332A\006" - + "parent\022\355\001\n\016AuditUserLinks\0225.google.analy" - + "tics.admin.v1alpha.AuditUserLinksRequest" - + "\0326.google.analytics.admin.v1alpha.AuditU" - + "serLinksResponse\"l\202\323\344\223\002f\",/v1alpha/{pare" - + "nt=accounts/*}/userLinks:audit:\001*Z3\"./v1" - + "alpha/{parent=properties/*}/userLinks:au" - + "dit:\001*\022\367\001\n\016CreateUserLink\0225.google.analy" - + "tics.admin.v1alpha.CreateUserLinkRequest" - + "\032(.google.analytics.admin.v1alpha.UserLi" - + "nk\"\203\001\202\323\344\223\002j\"&/v1alpha/{parent=accounts/*" - + "}/userLinks:\tuser_linkZ5\"(/v1alpha/{pare" - + "nt=properties/*}/userLinks:\tuser_link\332A\020" - + "parent,user_link\022\213\002\n\024BatchCreateUserLink" - + "s\022;.google.analytics.admin.v1alpha.Batch" - + "CreateUserLinksRequest\032<.google.analytic" - + "s.admin.v1alpha.BatchCreateUserLinksResp" - + "onse\"x\202\323\344\223\002r\"2/v1alpha/{parent=accounts/" - + "*}/userLinks:batchCreate:\001*Z9\"4/v1alpha/" - + "{parent=properties/*}/userLinks:batchCre" - + "ate:\001*\022\204\002\n\016UpdateUserLink\0225.google.analy" - + "tics.admin.v1alpha.UpdateUserLinkRequest" - + "\032(.google.analytics.admin.v1alpha.UserLi" - + "nk\"\220\001\202\323\344\223\002~20/v1alpha/{user_link.name=ac" - + "counts/*/userLinks/*}:\tuser_linkZ?22/v1a" - + "lpha/{user_link.name=properties/*/userLi" - + "nks/*}:\tuser_link\332A\tuser_link\022\213\002\n\024BatchU" - + "pdateUserLinks\022;.google.analytics.admin." - + "v1alpha.BatchUpdateUserLinksRequest\032<.go" - + "ogle.analytics.admin.v1alpha.BatchUpdate" - + "UserLinksResponse\"x\202\323\344\223\002r\"2/v1alpha/{par" - + "ent=accounts/*}/userLinks:batchUpdate:\001*" - + "Z9\"4/v1alpha/{parent=properties/*}/userL" - + "inks:batchUpdate:\001*\022\302\001\n\016DeleteUserLink\0225" - + ".google.analytics.admin.v1alpha.DeleteUs" - + "erLinkRequest\032\026.google.protobuf.Empty\"a\202" - + "\323\344\223\002T*&/v1alpha/{name=accounts/*/userLin" - + "ks/*}Z**(/v1alpha/{name=properties/*/use" - + "rLinks/*}\332A\004name\022\345\001\n\024BatchDeleteUserLink" - + "s\022;.google.analytics.admin.v1alpha.Batch" - + "DeleteUserLinksRequest\032\026.google.protobuf" - + ".Empty\"x\202\323\344\223\002r\"2/v1alpha/{parent=account" - + "s/*}/userLinks:batchDelete:\001*Z9\"4/v1alph" - + "a/{parent=properties/*}/userLinks:batchD" - + "elete:\001*\022\331\001\n\022CreateFirebaseLink\0229.google" - + ".analytics.admin.v1alpha.CreateFirebaseL" - + "inkRequest\032,.google.analytics.admin.v1al" - + "pha.FirebaseLink\"Z\202\323\344\223\002=\",/v1alpha/{pare" - + "nt=properties/*}/firebaseLinks:\rfirebase" - + "_link\332A\024parent,firebase_link\022\244\001\n\022DeleteF" - + "irebaseLink\0229.google.analytics.admin.v1a" - + "lpha.DeleteFirebaseLinkRequest\032\026.google." - + "protobuf.Empty\";\202\323\344\223\002.*,/v1alpha/{name=p" - + "roperties/*/firebaseLinks/*}\332A\004name\022\307\001\n\021" - + "ListFirebaseLinks\0228.google.analytics.adm" - + "in.v1alpha.ListFirebaseLinksRequest\0329.go" - + "ogle.analytics.admin.v1alpha.ListFirebas" - + "eLinksResponse\"=\202\323\344\223\002.\022,/v1alpha/{parent" - + "=properties/*}/firebaseLinks\332A\006parent\022\303\001" - + "\n\020GetGlobalSiteTag\0227.google.analytics.ad" - + "min.v1alpha.GetGlobalSiteTagRequest\032-.go" - + "ogle.analytics.admin.v1alpha.GlobalSiteT" - + "ag\"G\202\323\344\223\002:\0228/v1alpha/{name=properties/*/" - + "dataStreams/*/globalSiteTag}\332A\004name\022\341\001\n\023" - + "CreateGoogleAdsLink\022:.google.analytics.a" - + "dmin.v1alpha.CreateGoogleAdsLinkRequest\032" - + "-.google.analytics.admin.v1alpha.GoogleA" - + "dsLink\"_\202\323\344\223\002@\"-/v1alpha/{parent=propert" - + "ies/*}/googleAdsLinks:\017google_ads_link\332A" - + "\026parent,google_ads_link\022\366\001\n\023UpdateGoogle" - + "AdsLink\022:.google.analytics.admin.v1alpha" - + ".UpdateGoogleAdsLinkRequest\032-.google.ana" - + "lytics.admin.v1alpha.GoogleAdsLink\"t\202\323\344\223" - + "\002P2=/v1alpha/{google_ads_link.name=prope" - + "rties/*/googleAdsLinks/*}:\017google_ads_li" - + "nk\332A\033google_ads_link,update_mask\022\247\001\n\023Del" - + "eteGoogleAdsLink\022:.google.analytics.admi" - + "n.v1alpha.DeleteGoogleAdsLinkRequest\032\026.g" - + "oogle.protobuf.Empty\"<\202\323\344\223\002/*-/v1alpha/{" - + "name=properties/*/googleAdsLinks/*}\332A\004na" - + "me\022\313\001\n\022ListGoogleAdsLinks\0229.google.analy" - + "tics.admin.v1alpha.ListGoogleAdsLinksReq" - + "uest\032:.google.analytics.admin.v1alpha.Li" - + "stGoogleAdsLinksResponse\">\202\323\344\223\002/\022-/v1alp" - + "ha/{parent=properties/*}/googleAdsLinks\332" - + "A\006parent\022\313\001\n\026GetDataSharingSettings\022=.go" - + "ogle.analytics.admin.v1alpha.GetDataShar" - + "ingSettingsRequest\0323.google.analytics.ad" - + "min.v1alpha.DataSharingSettings\"=\202\323\344\223\0020\022" - + "./v1alpha/{name=accounts/*/dataSharingSe" - + "ttings}\332A\004name\022\366\001\n\034GetMeasurementProtoco" - + "lSecret\022C.google.analytics.admin.v1alpha" - + ".GetMeasurementProtocolSecretRequest\0329.g" - + "oogle.analytics.admin.v1alpha.Measuremen" - + "tProtocolSecret\"V\202\323\344\223\002I\022G/v1alpha/{name=" - + "properties/*/dataStreams/*/measurementPr" - + "otocolSecrets/*}\332A\004name\022\211\002\n\036ListMeasurem" - + "entProtocolSecrets\022E.google.analytics.ad" - + "min.v1alpha.ListMeasurementProtocolSecre" - + "tsRequest\032F.google.analytics.admin.v1alp" - + "ha.ListMeasurementProtocolSecretsRespons" - + "e\"X\202\323\344\223\002I\022G/v1alpha/{parent=properties/*" - + "/dataStreams/*}/measurementProtocolSecre" - + "ts\332A\006parent\022\270\002\n\037CreateMeasurementProtoco" - + "lSecret\022F.google.analytics.admin.v1alpha" - + ".CreateMeasurementProtocolSecretRequest\032" - + "9.google.analytics.admin.v1alpha.Measure" - + "mentProtocolSecret\"\221\001\202\323\344\223\002f\"G/v1alpha/{p" - + "arent=properties/*/dataStreams/*}/measur" - + "ementProtocolSecrets:\033measurement_protoc" - + "ol_secret\332A\"parent,measurement_protocol_" - + "secret\022\331\001\n\037DeleteMeasurementProtocolSecr" - + "et\022F.google.analytics.admin.v1alpha.Dele" - + "teMeasurementProtocolSecretRequest\032\026.goo" - + "gle.protobuf.Empty\"V\202\323\344\223\002I*G/v1alpha/{na" - + "me=properties/*/dataStreams/*/measuremen" - + "tProtocolSecrets/*}\332A\004name\022\332\002\n\037UpdateMea" - + "surementProtocolSecret\022F.google.analytic" - + "s.admin.v1alpha.UpdateMeasurementProtoco" - + "lSecretRequest\0329.google.analytics.admin." - + "v1alpha.MeasurementProtocolSecret\"\263\001\202\323\344\223" - + "\002\202\0012c/v1alpha/{measurement_protocol_secr" - + "et.name=properties/*/dataStreams/*/measu" - + "rementProtocolSecrets/*}:\033measurement_pr" - + "otocol_secret\332A\'measurement_protocol_sec" - + "ret,update_mask\022\367\001\n\035AcknowledgeUserDataC" - + "ollection\022D.google.analytics.admin.v1alp" - + "ha.AcknowledgeUserDataCollectionRequest\032" - + "E.google.analytics.admin.v1alpha.Acknowl" - + "edgeUserDataCollectionResponse\"I\202\323\344\223\002C\">" - + "/v1alpha/{property=properties/*}:acknowl" - + "edgeUserDataCollection:\001*\022\344\001\n\031SearchChan" - + "geHistoryEvents\022@.google.analytics.admin" - + ".v1alpha.SearchChangeHistoryEventsReques" - + "t\032A.google.analytics.admin.v1alpha.Searc" - + "hChangeHistoryEventsResponse\"B\202\323\344\223\002<\"7/v" - + "1alpha/{account=accounts/*}:searchChange" - + "HistoryEvents:\001*\022\325\001\n\030GetGoogleSignalsSet" - + "tings\022?.google.analytics.admin.v1alpha.G" - + "etGoogleSignalsSettingsRequest\0325.google." - + "analytics.admin.v1alpha.GoogleSignalsSet" - + "tings\"A\202\323\344\223\0024\0222/v1alpha/{name=properties" - + "/*/googleSignalsSettings}\332A\004name\022\254\002\n\033Upd" - + "ateGoogleSignalsSettings\022B.google.analyt" - + "ics.admin.v1alpha.UpdateGoogleSignalsSet" - + "tingsRequest\0325.google.analytics.admin.v1" - + "alpha.GoogleSignalsSettings\"\221\001\202\323\344\223\002e2J/v" - + "1alpha/{google_signals_settings.name=pro" - + "perties/*/googleSignalsSettings}:\027google" - + "_signals_settings\332A#google_signals_setti" - + "ngs,update_mask\022\353\001\n\025CreateConversionEven" - + "t\022<.google.analytics.admin.v1alpha.Creat" - + "eConversionEventRequest\032/.google.analyti" - + "cs.admin.v1alpha.ConversionEvent\"c\202\323\344\223\002C" - + "\"//v1alpha/{parent=properties/*}/convers" - + "ionEvents:\020conversion_event\332A\027parent,con" - + "version_event\022\300\001\n\022GetConversionEvent\0229.g" - + "oogle.analytics.admin.v1alpha.GetConvers" - + "ionEventRequest\032/.google.analytics.admin" - + ".v1alpha.ConversionEvent\">\202\323\344\223\0021\022//v1alp" - + "ha/{name=properties/*/conversionEvents/*" - + "}\332A\004name\022\255\001\n\025DeleteConversionEvent\022<.goo" - + "gle.analytics.admin.v1alpha.DeleteConver" - + "sionEventRequest\032\026.google.protobuf.Empty" - + "\">\202\323\344\223\0021*//v1alpha/{name=properties/*/co" - + "nversionEvents/*}\332A\004name\022\323\001\n\024ListConvers" - + "ionEvents\022;.google.analytics.admin.v1alp" - + "ha.ListConversionEventsRequest\032<.google." - + "analytics.admin.v1alpha.ListConversionEv" - + "entsResponse\"@\202\323\344\223\0021\022//v1alpha/{parent=p" - + "roperties/*}/conversionEvents\332A\006parent\022\370" - + "\001\n GetDisplayVideo360AdvertiserLink\022G.go" - + "ogle.analytics.admin.v1alpha.GetDisplayV" - + "ideo360AdvertiserLinkRequest\032=.google.an" - + "alytics.admin.v1alpha.DisplayVideo360Adv" - + "ertiserLink\"L\202\323\344\223\002?\022=/v1alpha/{name=prop" - + "erties/*/displayVideo360AdvertiserLinks/" - + "*}\332A\004name\022\213\002\n\"ListDisplayVideo360Adverti" - + "serLinks\022I.google.analytics.admin.v1alph" - + "a.ListDisplayVideo360AdvertiserLinksRequ" - + "est\032J.google.analytics.admin.v1alpha.Lis" - + "tDisplayVideo360AdvertiserLinksResponse\"" - + "N\202\323\344\223\002?\022=/v1alpha/{parent=properties/*}/" - + "displayVideo360AdvertiserLinks\332A\006parent\022" - + "\306\002\n#CreateDisplayVideo360AdvertiserLink\022" - + "J.google.analytics.admin.v1alpha.CreateD" - + "isplayVideo360AdvertiserLinkRequest\032=.go" - + "ogle.analytics.admin.v1alpha.DisplayVide" - + "o360AdvertiserLink\"\223\001\202\323\344\223\002b\"=/v1alpha/{p" - + "arent=properties/*}/displayVideo360Adver" - + "tiserLinks:!display_video_360_advertiser" - + "_link\332A(parent,display_video_360_adverti" - + "ser_link\022\327\001\n#DeleteDisplayVideo360Advert" - + "iserLink\022J.google.analytics.admin.v1alph" - + "a.DeleteDisplayVideo360AdvertiserLinkReq" - + "uest\032\026.google.protobuf.Empty\"L\202\323\344\223\002?*=/v" - + "1alpha/{name=properties/*/displayVideo36" - + "0AdvertiserLinks/*}\332A\004name\022\356\002\n#UpdateDis" - + "playVideo360AdvertiserLink\022J.google.anal" - + "ytics.admin.v1alpha.UpdateDisplayVideo36" - + "0AdvertiserLinkRequest\032=.google.analytic" - + "s.admin.v1alpha.DisplayVideo360Advertise" - + "rLink\"\273\001\202\323\344\223\002\204\0012_/v1alpha/{display_video" - + "_360_advertiser_link.name=properties/*/d" - + "isplayVideo360AdvertiserLinks/*}:!displa" - + "y_video_360_advertiser_link\332A-display_vi" - + "deo_360_advertiser_link,update_mask\022\230\002\n(" - + "GetDisplayVideo360AdvertiserLinkProposal" - + "\022O.google.analytics.admin.v1alpha.GetDis" - + "playVideo360AdvertiserLinkProposalReques" - + "t\032E.google.analytics.admin.v1alpha.Displ" - + "ayVideo360AdvertiserLinkProposal\"T\202\323\344\223\002G" - + "\022E/v1alpha/{name=properties/*/displayVid" - + "eo360AdvertiserLinkProposals/*}\332A\004name\022\253" - + "\002\n*ListDisplayVideo360AdvertiserLinkProp" - + "osals\022Q.google.analytics.admin.v1alpha.L" - + "istDisplayVideo360AdvertiserLinkProposal" - + "sRequest\032R.google.analytics.admin.v1alph" - + "a.ListDisplayVideo360AdvertiserLinkPropo" - + "salsResponse\"V\202\323\344\223\002G\022E/v1alpha/{parent=p" - + "roperties/*}/displayVideo360AdvertiserLi" - + "nkProposals\332A\006parent\022\370\002\n+CreateDisplayVi" - + "deo360AdvertiserLinkProposal\022R.google.an" - + "alytics.admin.v1alpha.CreateDisplayVideo" - + "360AdvertiserLinkProposalRequest\032E.googl" - + "e.analytics.admin.v1alpha.DisplayVideo36" - + "0AdvertiserLinkProposal\"\255\001\202\323\344\223\002s\"E/v1alp" - + "ha/{parent=properties/*}/displayVideo360" - + "AdvertiserLinkProposals:*display_video_3" - + "60_advertiser_link_proposal\332A1parent,dis" - + "play_video_360_advertiser_link_proposal\022" - + "\357\001\n+DeleteDisplayVideo360AdvertiserLinkP" - + "roposal\022R.google.analytics.admin.v1alpha" - + ".DeleteDisplayVideo360AdvertiserLinkProp" - + "osalRequest\032\026.google.protobuf.Empty\"T\202\323\344" - + "\223\002G*E/v1alpha/{name=properties/*/display" - + "Video360AdvertiserLinkProposals/*}\332A\004nam" - + "e\022\263\002\n,ApproveDisplayVideo360AdvertiserLi" - + "nkProposal\022S.google.analytics.admin.v1al" - + "pha.ApproveDisplayVideo360AdvertiserLink" - + "ProposalRequest\032T.google.analytics.admin" - + ".v1alpha.ApproveDisplayVideo360Advertise" - + "rLinkProposalResponse\"X\202\323\344\223\002R\"M/v1alpha/" - + "{name=properties/*/displayVideo360Advert" - + "iserLinkProposals/*}:approve:\001*\022\241\002\n+Canc" - + "elDisplayVideo360AdvertiserLinkProposal\022" - + "R.google.analytics.admin.v1alpha.CancelD" - + "isplayVideo360AdvertiserLinkProposalRequ" - + "est\032E.google.analytics.admin.v1alpha.Dis" - + "playVideo360AdvertiserLinkProposal\"W\202\323\344\223" - + "\002Q\"L/v1alpha/{name=properties/*/displayV" - + "ideo360AdvertiserLinkProposals/*}:cancel" - + ":\001*\022\353\001\n\025CreateCustomDimension\022<.google.a" - + "nalytics.admin.v1alpha.CreateCustomDimen" - + "sionRequest\032/.google.analytics.admin.v1a" - + "lpha.CustomDimension\"c\202\323\344\223\002C\"//v1alpha/{" - + "parent=properties/*}/customDimensions:\020c" - + "ustom_dimension\332A\027parent,custom_dimensio" - + "n\022\201\002\n\025UpdateCustomDimension\022<.google.ana" - + "lytics.admin.v1alpha.UpdateCustomDimensi" - + "onRequest\032/.google.analytics.admin.v1alp" - + "ha.CustomDimension\"y\202\323\344\223\002T2@/v1alpha/{cu" - + "stom_dimension.name=properties/*/customD" - + "imensions/*}:\020custom_dimension\332A\034custom_" - + "dimension,update_mask\022\323\001\n\024ListCustomDime" - + "nsions\022;.google.analytics.admin.v1alpha." - + "ListCustomDimensionsRequest\032<.google.ana" - + "lytics.admin.v1alpha.ListCustomDimension" - + "sResponse\"@\202\323\344\223\0021\022//v1alpha/{parent=prop" - + "erties/*}/customDimensions\332A\006parent\022\272\001\n\026" - + "ArchiveCustomDimension\022=.google.analytic" - + "s.admin.v1alpha.ArchiveCustomDimensionRe" - + "quest\032\026.google.protobuf.Empty\"I\202\323\344\223\002<\"7/" - + "v1alpha/{name=properties/*/customDimensi" - + "ons/*}:archive:\001*\332A\004name\022\300\001\n\022GetCustomDi" - + "mension\0229.google.analytics.admin.v1alpha" - + ".GetCustomDimensionRequest\032/.google.anal" - + "ytics.admin.v1alpha.CustomDimension\">\202\323\344" - + "\223\0021\022//v1alpha/{name=properties/*/customD" - + "imensions/*}\332A\004name\022\331\001\n\022CreateCustomMetr" - + "ic\0229.google.analytics.admin.v1alpha.Crea" - + "teCustomMetricRequest\032,.google.analytics" - + ".admin.v1alpha.CustomMetric\"Z\202\323\344\223\002=\",/v1" - + "alpha/{parent=properties/*}/customMetric" - + "s:\rcustom_metric\332A\024parent,custom_metric\022" - + "\354\001\n\022UpdateCustomMetric\0229.google.analytic" - + "s.admin.v1alpha.UpdateCustomMetricReques" - + "t\032,.google.analytics.admin.v1alpha.Custo" - + "mMetric\"m\202\323\344\223\002K2:/v1alpha/{custom_metric" - + ".name=properties/*/customMetrics/*}:\rcus" - + "tom_metric\332A\031custom_metric,update_mask\022\307" - + "\001\n\021ListCustomMetrics\0228.google.analytics." - + "admin.v1alpha.ListCustomMetricsRequest\0329" - + ".google.analytics.admin.v1alpha.ListCust" - + "omMetricsResponse\"=\202\323\344\223\002.\022,/v1alpha/{par" - + "ent=properties/*}/customMetrics\332A\006parent" - + "\022\261\001\n\023ArchiveCustomMetric\022:.google.analyt" - + "ics.admin.v1alpha.ArchiveCustomMetricReq" - + "uest\032\026.google.protobuf.Empty\"F\202\323\344\223\0029\"4/v" - + "1alpha/{name=properties/*/customMetrics/" - + "*}:archive:\001*\332A\004name\022\264\001\n\017GetCustomMetric" - + "\0226.google.analytics.admin.v1alpha.GetCus" - + "tomMetricRequest\032,.google.analytics.admi" - + "n.v1alpha.CustomMetric\";\202\323\344\223\002.\022,/v1alpha" - + "/{name=properties/*/customMetrics/*}\332A\004n" - + "ame\022\325\001\n\030GetDataRetentionSettings\022?.googl" - + "e.analytics.admin.v1alpha.GetDataRetenti" - + "onSettingsRequest\0325.google.analytics.adm" - + "in.v1alpha.DataRetentionSettings\"A\202\323\344\223\0024" - + "\0222/v1alpha/{name=properties/*/dataRetent" - + "ionSettings}\332A\004name\022\254\002\n\033UpdateDataRetent" - + "ionSettings\022B.google.analytics.admin.v1a" - + "lpha.UpdateDataRetentionSettingsRequest\032" - + "5.google.analytics.admin.v1alpha.DataRet" - + "entionSettings\"\221\001\202\323\344\223\002e2J/v1alpha/{data_" - + "retention_settings.name=properties/*/dat" - + "aRetentionSettings}:\027data_retention_sett" - + "ings\332A#data_retention_settings,update_ma" - + "sk\022\315\001\n\020CreateDataStream\0227.google.analyti" - + "cs.admin.v1alpha.CreateDataStreamRequest" - + "\032*.google.analytics.admin.v1alpha.DataSt" - + "ream\"T\202\323\344\223\0029\"*/v1alpha/{parent=propertie" - + "s/*}/dataStreams:\013data_stream\332A\022parent,d" - + "ata_stream\022\236\001\n\020DeleteDataStream\0227.google" - + ".analytics.admin.v1alpha.DeleteDataStrea" - + "mRequest\032\026.google.protobuf.Empty\"9\202\323\344\223\002," - + "**/v1alpha/{name=properties/*/dataStream" - + "s/*}\332A\004name\022\336\001\n\020UpdateDataStream\0227.googl" - + "e.analytics.admin.v1alpha.UpdateDataStre" - + "amRequest\032*.google.analytics.admin.v1alp" - + "ha.DataStream\"e\202\323\344\223\002E26/v1alpha/{data_st" - + "ream.name=properties/*/dataStreams/*}:\013d" - + "ata_stream\332A\027data_stream,update_mask\022\277\001\n" - + "\017ListDataStreams\0226.google.analytics.admi" - + "n.v1alpha.ListDataStreamsRequest\0327.googl" - + "e.analytics.admin.v1alpha.ListDataStream" - + "sResponse\";\202\323\344\223\002,\022*/v1alpha/{parent=prop" - + "erties/*}/dataStreams\332A\006parent\022\254\001\n\rGetDa" - + "taStream\0224.google.analytics.admin.v1alph" - + "a.GetDataStreamRequest\032*.google.analytic" - + "s.admin.v1alpha.DataStream\"9\202\323\344\223\002,\022*/v1a" - + "lpha/{name=properties/*/dataStreams/*}\332A" - + "\004name\022\244\001\n\013GetAudience\0222.google.analytics" - + ".admin.v1alpha.GetAudienceRequest\032(.goog" - + "le.analytics.admin.v1alpha.Audience\"7\202\323\344" - + "\223\002*\022(/v1alpha/{name=properties/*/audienc" - + "es/*}\332A\004name\022\267\001\n\rListAudiences\0224.google." - + "analytics.admin.v1alpha.ListAudiencesReq" - + "uest\0325.google.analytics.admin.v1alpha.Li" - + "stAudiencesResponse\"9\202\323\344\223\002*\022(/v1alpha/{p" - + "arent=properties/*}/audiences\332A\006parent\022\277" - + "\001\n\016CreateAudience\0225.google.analytics.adm" - + "in.v1alpha.CreateAudienceRequest\032(.googl" - + "e.analytics.admin.v1alpha.Audience\"L\202\323\344\223" - + "\0024\"(/v1alpha/{parent=properties/*}/audie" - + "nces:\010audience\332A\017parent,audience\022\315\001\n\016Upd" - + "ateAudience\0225.google.analytics.admin.v1a" - + "lpha.UpdateAudienceRequest\032(.google.anal" - + "ytics.admin.v1alpha.Audience\"Z\202\323\344\223\002=21/v" - + "1alpha/{audience.name=properties/*/audie" - + "nces/*}:\010audience\332A\024audience,update_mask", - "\022\236\001\n\017ArchiveAudience\0226.google.analytics." - + "admin.v1alpha.ArchiveAudienceRequest\032\026.g" - + "oogle.protobuf.Empty\";\202\323\344\223\0025\"0/v1alpha/{" - + "name=properties/*/audiences/*}:archive:\001" - + "*\022\315\001\n\026GetAttributionSettings\022=.google.an" - + "alytics.admin.v1alpha.GetAttributionSett" - + "ingsRequest\0323.google.analytics.admin.v1a" - + "lpha.AttributionSettings\"?\202\323\344\223\0022\0220/v1alp" - + "ha/{name=properties/*/attributionSetting" - + "s}\332A\004name\022\233\002\n\031UpdateAttributionSettings\022" - + "@.google.analytics.admin.v1alpha.UpdateA" - + "ttributionSettingsRequest\0323.google.analy" - + "tics.admin.v1alpha.AttributionSettings\"\206" - + "\001\202\323\344\223\002]2E/v1alpha/{attribution_settings." - + "name=properties/*/attributionSettings}:\024" - + "attribution_settings\332A attribution_setti" - + "ngs,update_mask\022\275\001\n\017RunAccessReport\0226.go" - + "ogle.analytics.admin.v1alpha.RunAccessRe" - + "portRequest\0327.google.analytics.admin.v1a" - + "lpha.RunAccessReportResponse\"9\202\323\344\223\0023\"./v" - + "1alpha/{entity=properties/*}:runAccessRe" - + "port:\001*\032\374\001\312A\035analyticsadmin.googleapis.c" - + "om\322A\330\001https://www.googleapis.com/auth/an" - + "alytics.edit,https://www.googleapis.com/" - + "auth/analytics.manage.users,https://www." - + "googleapis.com/auth/analytics.manage.use" - + "rs.readonly,https://www.googleapis.com/a" - + "uth/analytics.readonlyB\200\001\n\"com.google.an" - + "alytics.admin.v1alphaB\023AnalyticsAdminPro" - + "toP\001ZCgoogle.golang.org/genproto/googlea" - + "pis/analytics/admin/v1alpha;adminb\006proto" - + "3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.analytics.admin.v1alpha.AccessReportProto.getDescriptor(), - com.google.analytics.admin.v1alpha.AudienceProto.getDescriptor(), - com.google.analytics.admin.v1alpha.ResourcesProto.getDescriptor(), - com.google.api.AnnotationsProto.getDescriptor(), - 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", - }); - 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_GetUserLinkRequest_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_analytics_admin_v1alpha_GetUserLinkRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_GetUserLinkRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_analytics_admin_v1alpha_BatchGetUserLinksRequest_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_analytics_admin_v1alpha_BatchGetUserLinksRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_BatchGetUserLinksRequest_descriptor, - new java.lang.String[] { - "Parent", "Names", - }); - internal_static_google_analytics_admin_v1alpha_BatchGetUserLinksResponse_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_analytics_admin_v1alpha_BatchGetUserLinksResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_BatchGetUserLinksResponse_descriptor, - new java.lang.String[] { - "UserLinks", - }); - internal_static_google_analytics_admin_v1alpha_ListUserLinksRequest_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_analytics_admin_v1alpha_ListUserLinksRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_ListUserLinksRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", - }); - internal_static_google_analytics_admin_v1alpha_ListUserLinksResponse_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_google_analytics_admin_v1alpha_ListUserLinksResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_ListUserLinksResponse_descriptor, - new java.lang.String[] { - "UserLinks", "NextPageToken", - }); - internal_static_google_analytics_admin_v1alpha_AuditUserLinksRequest_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_google_analytics_admin_v1alpha_AuditUserLinksRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_AuditUserLinksRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", - }); - internal_static_google_analytics_admin_v1alpha_AuditUserLinksResponse_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_google_analytics_admin_v1alpha_AuditUserLinksResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_AuditUserLinksResponse_descriptor, - new java.lang.String[] { - "UserLinks", "NextPageToken", - }); - internal_static_google_analytics_admin_v1alpha_CreateUserLinkRequest_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_google_analytics_admin_v1alpha_CreateUserLinkRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_CreateUserLinkRequest_descriptor, - new java.lang.String[] { - "Parent", "NotifyNewUser", "UserLink", - }); - internal_static_google_analytics_admin_v1alpha_BatchCreateUserLinksRequest_descriptor = - getDescriptor().getMessageTypes().get(23); - internal_static_google_analytics_admin_v1alpha_BatchCreateUserLinksRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_BatchCreateUserLinksRequest_descriptor, - new java.lang.String[] { - "Parent", "NotifyNewUsers", "Requests", - }); - internal_static_google_analytics_admin_v1alpha_BatchCreateUserLinksResponse_descriptor = - getDescriptor().getMessageTypes().get(24); - internal_static_google_analytics_admin_v1alpha_BatchCreateUserLinksResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_BatchCreateUserLinksResponse_descriptor, - new java.lang.String[] { - "UserLinks", - }); - internal_static_google_analytics_admin_v1alpha_UpdateUserLinkRequest_descriptor = - getDescriptor().getMessageTypes().get(25); - internal_static_google_analytics_admin_v1alpha_UpdateUserLinkRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_UpdateUserLinkRequest_descriptor, - new java.lang.String[] { - "UserLink", - }); - internal_static_google_analytics_admin_v1alpha_BatchUpdateUserLinksRequest_descriptor = - getDescriptor().getMessageTypes().get(26); - internal_static_google_analytics_admin_v1alpha_BatchUpdateUserLinksRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_BatchUpdateUserLinksRequest_descriptor, - new java.lang.String[] { - "Parent", "Requests", - }); - internal_static_google_analytics_admin_v1alpha_BatchUpdateUserLinksResponse_descriptor = - getDescriptor().getMessageTypes().get(27); - internal_static_google_analytics_admin_v1alpha_BatchUpdateUserLinksResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_BatchUpdateUserLinksResponse_descriptor, - new java.lang.String[] { - "UserLinks", - }); - internal_static_google_analytics_admin_v1alpha_DeleteUserLinkRequest_descriptor = - getDescriptor().getMessageTypes().get(28); - internal_static_google_analytics_admin_v1alpha_DeleteUserLinkRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_DeleteUserLinkRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_analytics_admin_v1alpha_BatchDeleteUserLinksRequest_descriptor = - getDescriptor().getMessageTypes().get(29); - internal_static_google_analytics_admin_v1alpha_BatchDeleteUserLinksRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_BatchDeleteUserLinksRequest_descriptor, - new java.lang.String[] { - "Parent", "Requests", - }); - internal_static_google_analytics_admin_v1alpha_CreateFirebaseLinkRequest_descriptor = - getDescriptor().getMessageTypes().get(30); - internal_static_google_analytics_admin_v1alpha_CreateFirebaseLinkRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_CreateFirebaseLinkRequest_descriptor, - new java.lang.String[] { - "Parent", "FirebaseLink", - }); - internal_static_google_analytics_admin_v1alpha_DeleteFirebaseLinkRequest_descriptor = - getDescriptor().getMessageTypes().get(31); - internal_static_google_analytics_admin_v1alpha_DeleteFirebaseLinkRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_DeleteFirebaseLinkRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_analytics_admin_v1alpha_ListFirebaseLinksRequest_descriptor = - getDescriptor().getMessageTypes().get(32); - internal_static_google_analytics_admin_v1alpha_ListFirebaseLinksRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_ListFirebaseLinksRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", - }); - internal_static_google_analytics_admin_v1alpha_ListFirebaseLinksResponse_descriptor = - getDescriptor().getMessageTypes().get(33); - internal_static_google_analytics_admin_v1alpha_ListFirebaseLinksResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_ListFirebaseLinksResponse_descriptor, - new java.lang.String[] { - "FirebaseLinks", "NextPageToken", - }); - internal_static_google_analytics_admin_v1alpha_GetGlobalSiteTagRequest_descriptor = - getDescriptor().getMessageTypes().get(34); - internal_static_google_analytics_admin_v1alpha_GetGlobalSiteTagRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_GetGlobalSiteTagRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_analytics_admin_v1alpha_CreateGoogleAdsLinkRequest_descriptor = - getDescriptor().getMessageTypes().get(35); - internal_static_google_analytics_admin_v1alpha_CreateGoogleAdsLinkRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_CreateGoogleAdsLinkRequest_descriptor, - new java.lang.String[] { - "Parent", "GoogleAdsLink", - }); - internal_static_google_analytics_admin_v1alpha_UpdateGoogleAdsLinkRequest_descriptor = - getDescriptor().getMessageTypes().get(36); - internal_static_google_analytics_admin_v1alpha_UpdateGoogleAdsLinkRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_UpdateGoogleAdsLinkRequest_descriptor, - new java.lang.String[] { - "GoogleAdsLink", "UpdateMask", - }); - internal_static_google_analytics_admin_v1alpha_DeleteGoogleAdsLinkRequest_descriptor = - getDescriptor().getMessageTypes().get(37); - internal_static_google_analytics_admin_v1alpha_DeleteGoogleAdsLinkRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_DeleteGoogleAdsLinkRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_analytics_admin_v1alpha_ListGoogleAdsLinksRequest_descriptor = - getDescriptor().getMessageTypes().get(38); - internal_static_google_analytics_admin_v1alpha_ListGoogleAdsLinksRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_ListGoogleAdsLinksRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", - }); - internal_static_google_analytics_admin_v1alpha_ListGoogleAdsLinksResponse_descriptor = - getDescriptor().getMessageTypes().get(39); - internal_static_google_analytics_admin_v1alpha_ListGoogleAdsLinksResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_ListGoogleAdsLinksResponse_descriptor, - new java.lang.String[] { - "GoogleAdsLinks", "NextPageToken", - }); - internal_static_google_analytics_admin_v1alpha_GetDataSharingSettingsRequest_descriptor = - getDescriptor().getMessageTypes().get(40); - internal_static_google_analytics_admin_v1alpha_GetDataSharingSettingsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_GetDataSharingSettingsRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_analytics_admin_v1alpha_ListAccountSummariesRequest_descriptor = - getDescriptor().getMessageTypes().get(41); - internal_static_google_analytics_admin_v1alpha_ListAccountSummariesRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_ListAccountSummariesRequest_descriptor, - new java.lang.String[] { - "PageSize", "PageToken", - }); - internal_static_google_analytics_admin_v1alpha_ListAccountSummariesResponse_descriptor = - getDescriptor().getMessageTypes().get(42); - internal_static_google_analytics_admin_v1alpha_ListAccountSummariesResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_ListAccountSummariesResponse_descriptor, - new java.lang.String[] { - "AccountSummaries", "NextPageToken", - }); - internal_static_google_analytics_admin_v1alpha_AcknowledgeUserDataCollectionRequest_descriptor = - getDescriptor().getMessageTypes().get(43); - internal_static_google_analytics_admin_v1alpha_AcknowledgeUserDataCollectionRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_AcknowledgeUserDataCollectionRequest_descriptor, - new java.lang.String[] { - "Property", "Acknowledgement", - }); - internal_static_google_analytics_admin_v1alpha_AcknowledgeUserDataCollectionResponse_descriptor = - getDescriptor().getMessageTypes().get(44); - internal_static_google_analytics_admin_v1alpha_AcknowledgeUserDataCollectionResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_AcknowledgeUserDataCollectionResponse_descriptor, - new java.lang.String[] {}); - internal_static_google_analytics_admin_v1alpha_SearchChangeHistoryEventsRequest_descriptor = - getDescriptor().getMessageTypes().get(45); - 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(46); - 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(47); - 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(48); - 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(49); - 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(50); - 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(51); - 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(52); - 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_GetGoogleSignalsSettingsRequest_descriptor = - getDescriptor().getMessageTypes().get(53); - internal_static_google_analytics_admin_v1alpha_GetGoogleSignalsSettingsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_GetGoogleSignalsSettingsRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_analytics_admin_v1alpha_UpdateGoogleSignalsSettingsRequest_descriptor = - getDescriptor().getMessageTypes().get(54); - internal_static_google_analytics_admin_v1alpha_UpdateGoogleSignalsSettingsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_UpdateGoogleSignalsSettingsRequest_descriptor, - new java.lang.String[] { - "GoogleSignalsSettings", "UpdateMask", - }); - internal_static_google_analytics_admin_v1alpha_CreateConversionEventRequest_descriptor = - getDescriptor().getMessageTypes().get(55); - internal_static_google_analytics_admin_v1alpha_CreateConversionEventRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_CreateConversionEventRequest_descriptor, - new java.lang.String[] { - "ConversionEvent", "Parent", - }); - internal_static_google_analytics_admin_v1alpha_GetConversionEventRequest_descriptor = - getDescriptor().getMessageTypes().get(56); - internal_static_google_analytics_admin_v1alpha_GetConversionEventRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_GetConversionEventRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_analytics_admin_v1alpha_DeleteConversionEventRequest_descriptor = - getDescriptor().getMessageTypes().get(57); - internal_static_google_analytics_admin_v1alpha_DeleteConversionEventRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_DeleteConversionEventRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_analytics_admin_v1alpha_ListConversionEventsRequest_descriptor = - getDescriptor().getMessageTypes().get(58); - internal_static_google_analytics_admin_v1alpha_ListConversionEventsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_ListConversionEventsRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", - }); - internal_static_google_analytics_admin_v1alpha_ListConversionEventsResponse_descriptor = - getDescriptor().getMessageTypes().get(59); - internal_static_google_analytics_admin_v1alpha_ListConversionEventsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_ListConversionEventsResponse_descriptor, - new java.lang.String[] { - "ConversionEvents", "NextPageToken", - }); - internal_static_google_analytics_admin_v1alpha_GetDisplayVideo360AdvertiserLinkRequest_descriptor = - getDescriptor().getMessageTypes().get(60); - internal_static_google_analytics_admin_v1alpha_GetDisplayVideo360AdvertiserLinkRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_GetDisplayVideo360AdvertiserLinkRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinksRequest_descriptor = - getDescriptor().getMessageTypes().get(61); - internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinksRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinksRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", - }); - internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinksResponse_descriptor = - getDescriptor().getMessageTypes().get(62); - internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinksResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinksResponse_descriptor, - new java.lang.String[] { - "DisplayVideo360AdvertiserLinks", "NextPageToken", - }); - internal_static_google_analytics_admin_v1alpha_CreateDisplayVideo360AdvertiserLinkRequest_descriptor = - getDescriptor().getMessageTypes().get(63); - internal_static_google_analytics_admin_v1alpha_CreateDisplayVideo360AdvertiserLinkRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_CreateDisplayVideo360AdvertiserLinkRequest_descriptor, - new java.lang.String[] { - "Parent", "DisplayVideo360AdvertiserLink", - }); - internal_static_google_analytics_admin_v1alpha_DeleteDisplayVideo360AdvertiserLinkRequest_descriptor = - getDescriptor().getMessageTypes().get(64); - internal_static_google_analytics_admin_v1alpha_DeleteDisplayVideo360AdvertiserLinkRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_DeleteDisplayVideo360AdvertiserLinkRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_analytics_admin_v1alpha_UpdateDisplayVideo360AdvertiserLinkRequest_descriptor = - getDescriptor().getMessageTypes().get(65); - internal_static_google_analytics_admin_v1alpha_UpdateDisplayVideo360AdvertiserLinkRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_UpdateDisplayVideo360AdvertiserLinkRequest_descriptor, - new java.lang.String[] { - "DisplayVideo360AdvertiserLink", "UpdateMask", - }); - internal_static_google_analytics_admin_v1alpha_GetDisplayVideo360AdvertiserLinkProposalRequest_descriptor = - getDescriptor().getMessageTypes().get(66); - internal_static_google_analytics_admin_v1alpha_GetDisplayVideo360AdvertiserLinkProposalRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_GetDisplayVideo360AdvertiserLinkProposalRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinkProposalsRequest_descriptor = - getDescriptor().getMessageTypes().get(67); - internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinkProposalsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinkProposalsRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", - }); - internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinkProposalsResponse_descriptor = - getDescriptor().getMessageTypes().get(68); - internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinkProposalsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinkProposalsResponse_descriptor, - new java.lang.String[] { - "DisplayVideo360AdvertiserLinkProposals", "NextPageToken", - }); - internal_static_google_analytics_admin_v1alpha_CreateDisplayVideo360AdvertiserLinkProposalRequest_descriptor = - getDescriptor().getMessageTypes().get(69); - internal_static_google_analytics_admin_v1alpha_CreateDisplayVideo360AdvertiserLinkProposalRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_CreateDisplayVideo360AdvertiserLinkProposalRequest_descriptor, - new java.lang.String[] { - "Parent", "DisplayVideo360AdvertiserLinkProposal", - }); - internal_static_google_analytics_admin_v1alpha_DeleteDisplayVideo360AdvertiserLinkProposalRequest_descriptor = - getDescriptor().getMessageTypes().get(70); - internal_static_google_analytics_admin_v1alpha_DeleteDisplayVideo360AdvertiserLinkProposalRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_DeleteDisplayVideo360AdvertiserLinkProposalRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_analytics_admin_v1alpha_ApproveDisplayVideo360AdvertiserLinkProposalRequest_descriptor = - getDescriptor().getMessageTypes().get(71); - internal_static_google_analytics_admin_v1alpha_ApproveDisplayVideo360AdvertiserLinkProposalRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_ApproveDisplayVideo360AdvertiserLinkProposalRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_analytics_admin_v1alpha_ApproveDisplayVideo360AdvertiserLinkProposalResponse_descriptor = - getDescriptor().getMessageTypes().get(72); - internal_static_google_analytics_admin_v1alpha_ApproveDisplayVideo360AdvertiserLinkProposalResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_ApproveDisplayVideo360AdvertiserLinkProposalResponse_descriptor, - new java.lang.String[] { - "DisplayVideo360AdvertiserLink", - }); - internal_static_google_analytics_admin_v1alpha_CancelDisplayVideo360AdvertiserLinkProposalRequest_descriptor = - getDescriptor().getMessageTypes().get(73); - internal_static_google_analytics_admin_v1alpha_CancelDisplayVideo360AdvertiserLinkProposalRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_CancelDisplayVideo360AdvertiserLinkProposalRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_analytics_admin_v1alpha_CreateCustomDimensionRequest_descriptor = - getDescriptor().getMessageTypes().get(74); - internal_static_google_analytics_admin_v1alpha_CreateCustomDimensionRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_CreateCustomDimensionRequest_descriptor, - new java.lang.String[] { - "Parent", "CustomDimension", - }); - internal_static_google_analytics_admin_v1alpha_UpdateCustomDimensionRequest_descriptor = - getDescriptor().getMessageTypes().get(75); - internal_static_google_analytics_admin_v1alpha_UpdateCustomDimensionRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_UpdateCustomDimensionRequest_descriptor, - new java.lang.String[] { - "CustomDimension", "UpdateMask", - }); - internal_static_google_analytics_admin_v1alpha_ListCustomDimensionsRequest_descriptor = - getDescriptor().getMessageTypes().get(76); - internal_static_google_analytics_admin_v1alpha_ListCustomDimensionsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_ListCustomDimensionsRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", - }); - internal_static_google_analytics_admin_v1alpha_ListCustomDimensionsResponse_descriptor = - getDescriptor().getMessageTypes().get(77); - internal_static_google_analytics_admin_v1alpha_ListCustomDimensionsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_ListCustomDimensionsResponse_descriptor, - new java.lang.String[] { - "CustomDimensions", "NextPageToken", - }); - internal_static_google_analytics_admin_v1alpha_ArchiveCustomDimensionRequest_descriptor = - getDescriptor().getMessageTypes().get(78); - internal_static_google_analytics_admin_v1alpha_ArchiveCustomDimensionRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_ArchiveCustomDimensionRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_analytics_admin_v1alpha_GetCustomDimensionRequest_descriptor = - getDescriptor().getMessageTypes().get(79); - internal_static_google_analytics_admin_v1alpha_GetCustomDimensionRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_GetCustomDimensionRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_analytics_admin_v1alpha_CreateCustomMetricRequest_descriptor = - getDescriptor().getMessageTypes().get(80); - internal_static_google_analytics_admin_v1alpha_CreateCustomMetricRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_CreateCustomMetricRequest_descriptor, - new java.lang.String[] { - "Parent", "CustomMetric", - }); - internal_static_google_analytics_admin_v1alpha_UpdateCustomMetricRequest_descriptor = - getDescriptor().getMessageTypes().get(81); - internal_static_google_analytics_admin_v1alpha_UpdateCustomMetricRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_UpdateCustomMetricRequest_descriptor, - new java.lang.String[] { - "CustomMetric", "UpdateMask", - }); - internal_static_google_analytics_admin_v1alpha_ListCustomMetricsRequest_descriptor = - getDescriptor().getMessageTypes().get(82); - internal_static_google_analytics_admin_v1alpha_ListCustomMetricsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_ListCustomMetricsRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", - }); - internal_static_google_analytics_admin_v1alpha_ListCustomMetricsResponse_descriptor = - getDescriptor().getMessageTypes().get(83); - internal_static_google_analytics_admin_v1alpha_ListCustomMetricsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_ListCustomMetricsResponse_descriptor, - new java.lang.String[] { - "CustomMetrics", "NextPageToken", - }); - internal_static_google_analytics_admin_v1alpha_ArchiveCustomMetricRequest_descriptor = - getDescriptor().getMessageTypes().get(84); - internal_static_google_analytics_admin_v1alpha_ArchiveCustomMetricRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_ArchiveCustomMetricRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_analytics_admin_v1alpha_GetCustomMetricRequest_descriptor = - getDescriptor().getMessageTypes().get(85); - internal_static_google_analytics_admin_v1alpha_GetCustomMetricRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_GetCustomMetricRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_analytics_admin_v1alpha_GetDataRetentionSettingsRequest_descriptor = - getDescriptor().getMessageTypes().get(86); - internal_static_google_analytics_admin_v1alpha_GetDataRetentionSettingsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_GetDataRetentionSettingsRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_analytics_admin_v1alpha_UpdateDataRetentionSettingsRequest_descriptor = - getDescriptor().getMessageTypes().get(87); - internal_static_google_analytics_admin_v1alpha_UpdateDataRetentionSettingsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_UpdateDataRetentionSettingsRequest_descriptor, - new java.lang.String[] { - "DataRetentionSettings", "UpdateMask", - }); - internal_static_google_analytics_admin_v1alpha_CreateDataStreamRequest_descriptor = - getDescriptor().getMessageTypes().get(88); - internal_static_google_analytics_admin_v1alpha_CreateDataStreamRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_CreateDataStreamRequest_descriptor, - new java.lang.String[] { - "Parent", "DataStream", - }); - internal_static_google_analytics_admin_v1alpha_DeleteDataStreamRequest_descriptor = - getDescriptor().getMessageTypes().get(89); - internal_static_google_analytics_admin_v1alpha_DeleteDataStreamRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_DeleteDataStreamRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_analytics_admin_v1alpha_UpdateDataStreamRequest_descriptor = - getDescriptor().getMessageTypes().get(90); - internal_static_google_analytics_admin_v1alpha_UpdateDataStreamRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_UpdateDataStreamRequest_descriptor, - new java.lang.String[] { - "DataStream", "UpdateMask", - }); - internal_static_google_analytics_admin_v1alpha_ListDataStreamsRequest_descriptor = - getDescriptor().getMessageTypes().get(91); - internal_static_google_analytics_admin_v1alpha_ListDataStreamsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_ListDataStreamsRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", - }); - internal_static_google_analytics_admin_v1alpha_ListDataStreamsResponse_descriptor = - getDescriptor().getMessageTypes().get(92); - internal_static_google_analytics_admin_v1alpha_ListDataStreamsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_ListDataStreamsResponse_descriptor, - new java.lang.String[] { - "DataStreams", "NextPageToken", - }); - internal_static_google_analytics_admin_v1alpha_GetDataStreamRequest_descriptor = - getDescriptor().getMessageTypes().get(93); - internal_static_google_analytics_admin_v1alpha_GetDataStreamRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_GetDataStreamRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_analytics_admin_v1alpha_GetAudienceRequest_descriptor = - getDescriptor().getMessageTypes().get(94); - internal_static_google_analytics_admin_v1alpha_GetAudienceRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_GetAudienceRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_analytics_admin_v1alpha_ListAudiencesRequest_descriptor = - getDescriptor().getMessageTypes().get(95); - internal_static_google_analytics_admin_v1alpha_ListAudiencesRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_ListAudiencesRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", - }); - internal_static_google_analytics_admin_v1alpha_ListAudiencesResponse_descriptor = - getDescriptor().getMessageTypes().get(96); - internal_static_google_analytics_admin_v1alpha_ListAudiencesResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_ListAudiencesResponse_descriptor, - new java.lang.String[] { - "Audiences", "NextPageToken", - }); - internal_static_google_analytics_admin_v1alpha_CreateAudienceRequest_descriptor = - getDescriptor().getMessageTypes().get(97); - internal_static_google_analytics_admin_v1alpha_CreateAudienceRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_CreateAudienceRequest_descriptor, - new java.lang.String[] { - "Parent", "Audience", - }); - internal_static_google_analytics_admin_v1alpha_UpdateAudienceRequest_descriptor = - getDescriptor().getMessageTypes().get(98); - internal_static_google_analytics_admin_v1alpha_UpdateAudienceRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_UpdateAudienceRequest_descriptor, - new java.lang.String[] { - "Audience", "UpdateMask", - }); - internal_static_google_analytics_admin_v1alpha_ArchiveAudienceRequest_descriptor = - getDescriptor().getMessageTypes().get(99); - internal_static_google_analytics_admin_v1alpha_ArchiveAudienceRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_ArchiveAudienceRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_analytics_admin_v1alpha_GetAttributionSettingsRequest_descriptor = - getDescriptor().getMessageTypes().get(100); - internal_static_google_analytics_admin_v1alpha_GetAttributionSettingsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_GetAttributionSettingsRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_analytics_admin_v1alpha_UpdateAttributionSettingsRequest_descriptor = - getDescriptor().getMessageTypes().get(101); - internal_static_google_analytics_admin_v1alpha_UpdateAttributionSettingsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_UpdateAttributionSettingsRequest_descriptor, - new java.lang.String[] { - "AttributionSettings", "UpdateMask", - }); - 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.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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ApproveDisplayVideo360AdvertiserLinkProposalRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ApproveDisplayVideo360AdvertiserLinkProposalRequest.java deleted file mode 100644 index ec6b765f..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ApproveDisplayVideo360AdvertiserLinkProposalRequest.java +++ /dev/null @@ -1,696 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * Request message for 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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - 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(); - 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); - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.analytics.admin.v1alpha.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_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - 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 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; - 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(); - 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; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ApproveDisplayVideo360AdvertiserLinkProposalRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ApproveDisplayVideo360AdvertiserLinkProposalRequestOrBuilder.java deleted file mode 100644 index db4a4828..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ApproveDisplayVideo360AdvertiserLinkProposalRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ApproveDisplayVideo360AdvertiserLinkProposalResponse.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ApproveDisplayVideo360AdvertiserLinkProposalResponse.java deleted file mode 100644 index b02fb1c1..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ApproveDisplayVideo360AdvertiserLinkProposalResponse.java +++ /dev/null @@ -1,817 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * 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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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 getDisplayVideo360AdvertiserLink(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (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(); - if (displayVideo360AdvertiserLinkBuilder_ == null) { - displayVideo360AdvertiserLink_ = null; - } else { - displayVideo360AdvertiserLink_ = null; - 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 (displayVideo360AdvertiserLinkBuilder_ == null) { - result.displayVideo360AdvertiserLink_ = displayVideo360AdvertiserLink_; - } else { - result.displayVideo360AdvertiserLink_ = displayVideo360AdvertiserLinkBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.analytics.admin.v1alpha.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); - - 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 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 displayVideo360AdvertiserLinkBuilder_ != null - || 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. - */ - 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; - onChanged(); - } else { - displayVideo360AdvertiserLinkBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - displayVideo360AdvertiserLinkBuilder_.setMessage(builderForValue.build()); - } - - 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 (displayVideo360AdvertiserLink_ != null) { - displayVideo360AdvertiserLink_ = - com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.newBuilder( - displayVideo360AdvertiserLink_) - .mergeFrom(value) - .buildPartial(); - } else { - displayVideo360AdvertiserLink_ = value; - } - onChanged(); - } else { - displayVideo360AdvertiserLinkBuilder_.mergeFrom(value); - } - - 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() { - if (displayVideo360AdvertiserLinkBuilder_ == null) { - displayVideo360AdvertiserLink_ = null; - onChanged(); - } else { - displayVideo360AdvertiserLink_ = null; - displayVideo360AdvertiserLinkBuilder_ = null; - } - - 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() { - - 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ApproveDisplayVideo360AdvertiserLinkProposalResponseOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ApproveDisplayVideo360AdvertiserLinkProposalResponseOrBuilder.java deleted file mode 100644 index 3bdcd0ef..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ApproveDisplayVideo360AdvertiserLinkProposalResponseOrBuilder.java +++ /dev/null @@ -1,71 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ArchiveAudienceRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ArchiveAudienceRequest.java deleted file mode 100644 index a91e20d3..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ArchiveAudienceRequest.java +++ /dev/null @@ -1,630 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * Request message for 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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - 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(); - 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); - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.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_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - 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 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; - 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(); - 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; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ArchiveAudienceRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ArchiveAudienceRequestOrBuilder.java deleted file mode 100644 index ecf25c70..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ArchiveAudienceRequestOrBuilder.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ArchiveCustomDimensionRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ArchiveCustomDimensionRequest.java deleted file mode 100644 index 4126dde1..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ArchiveCustomDimensionRequest.java +++ /dev/null @@ -1,643 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * Request message for 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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - 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(); - 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); - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.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_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - 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 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; - 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(); - 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; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ArchiveCustomDimensionRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ArchiveCustomDimensionRequestOrBuilder.java deleted file mode 100644 index 08faf12c..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ArchiveCustomDimensionRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ArchiveCustomMetricRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ArchiveCustomMetricRequest.java deleted file mode 100644 index cd59e2a4..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ArchiveCustomMetricRequest.java +++ /dev/null @@ -1,640 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * Request message for 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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - 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(); - 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); - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.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_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - 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 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; - 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(); - 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; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ArchiveCustomMetricRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ArchiveCustomMetricRequestOrBuilder.java deleted file mode 100644 index f7d638fc..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ArchiveCustomMetricRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AttributionSettings.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AttributionSettings.java deleted file mode 100644 index a15ab2f9..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AttributionSettings.java +++ /dev/null @@ -1,1889 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/resources.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * 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; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new AttributionSettings(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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.
-     * 
- * - * CROSS_CHANNEL_DATA_DRIVEN = 1; - */ - CROSS_CHANNEL_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.
-     * 
- * - * CROSS_CHANNEL_LAST_CLICK = 2; - */ - CROSS_CHANNEL_LAST_CLICK(2), - /** - * - * - *
-     * Gives all credit for the conversion to the first channel that a customer
-     * clicked (or engaged view through for YouTube) before converting.
-     * 
- * - * CROSS_CHANNEL_FIRST_CLICK = 3; - */ - CROSS_CHANNEL_FIRST_CLICK(3), - /** - * - * - *
-     * Distributes the credit for the conversion equally across all the channels
-     * a customer clicked (or engaged view through for YouTube) before
-     * converting.
-     * 
- * - * CROSS_CHANNEL_LINEAR = 4; - */ - CROSS_CHANNEL_LINEAR(4), - /** - * - * - *
-     * Attributes 40% credit to the first and last interaction, and the
-     * remaining 20% credit is distributed evenly to the middle interactions.
-     * 
- * - * CROSS_CHANNEL_POSITION_BASED = 5; - */ - CROSS_CHANNEL_POSITION_BASED(5), - /** - * - * - *
-     * Gives more credit to the touchpoints that happened closer in time to
-     * the conversion.
-     * 
- * - * CROSS_CHANNEL_TIME_DECAY = 6; - */ - CROSS_CHANNEL_TIME_DECAY(6), - /** - * - * - *
-     * Attributes 100% of the conversion value to the last Google Ads channel
-     * that the customer clicked through before converting.
-     * 
- * - * ADS_PREFERRED_LAST_CLICK = 7; - */ - ADS_PREFERRED_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.
-     * 
- * - * CROSS_CHANNEL_DATA_DRIVEN = 1; - */ - public static final int CROSS_CHANNEL_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.
-     * 
- * - * CROSS_CHANNEL_LAST_CLICK = 2; - */ - public static final int CROSS_CHANNEL_LAST_CLICK_VALUE = 2; - /** - * - * - *
-     * Gives all credit for the conversion to the first channel that a customer
-     * clicked (or engaged view through for YouTube) before converting.
-     * 
- * - * CROSS_CHANNEL_FIRST_CLICK = 3; - */ - public static final int CROSS_CHANNEL_FIRST_CLICK_VALUE = 3; - /** - * - * - *
-     * Distributes the credit for the conversion equally across all the channels
-     * a customer clicked (or engaged view through for YouTube) before
-     * converting.
-     * 
- * - * CROSS_CHANNEL_LINEAR = 4; - */ - public static final int CROSS_CHANNEL_LINEAR_VALUE = 4; - /** - * - * - *
-     * Attributes 40% credit to the first and last interaction, and the
-     * remaining 20% credit is distributed evenly to the middle interactions.
-     * 
- * - * CROSS_CHANNEL_POSITION_BASED = 5; - */ - public static final int CROSS_CHANNEL_POSITION_BASED_VALUE = 5; - /** - * - * - *
-     * Gives more credit to the touchpoints that happened closer in time to
-     * the conversion.
-     * 
- * - * CROSS_CHANNEL_TIME_DECAY = 6; - */ - public static final int CROSS_CHANNEL_TIME_DECAY_VALUE = 6; - /** - * - * - *
-     * Attributes 100% of the conversion value to the last Google Ads channel
-     * that the customer clicked through before converting.
-     * 
- * - * ADS_PREFERRED_LAST_CLICK = 7; - */ - public static final int ADS_PREFERRED_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 CROSS_CHANNEL_DATA_DRIVEN; - case 2: - return CROSS_CHANNEL_LAST_CLICK; - case 3: - return CROSS_CHANNEL_FIRST_CLICK; - case 4: - return CROSS_CHANNEL_LINEAR; - case 5: - return CROSS_CHANNEL_POSITION_BASED; - case 6: - return CROSS_CHANNEL_TIME_DECAY; - case 7: - return ADS_PREFERRED_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) - } - - public static final int NAME_FIELD_NUMBER = 1; - 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_; - /** - * - * - *
-   * 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() { - @SuppressWarnings("deprecation") - com.google.analytics.admin.v1alpha.AttributionSettings.AcquisitionConversionEventLookbackWindow - result = - com.google.analytics.admin.v1alpha.AttributionSettings - .AcquisitionConversionEventLookbackWindow.valueOf( - 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_; - /** - * - * - *
-   * 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() { - @SuppressWarnings("deprecation") - com.google.analytics.admin.v1alpha.AttributionSettings.OtherConversionEventLookbackWindow - result = - com.google.analytics.admin.v1alpha.AttributionSettings - .OtherConversionEventLookbackWindow.valueOf(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_; - /** - * - * - *
-   * 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() { - @SuppressWarnings("deprecation") - com.google.analytics.admin.v1alpha.AttributionSettings.ReportingAttributionModel result = - com.google.analytics.admin.v1alpha.AttributionSettings.ReportingAttributionModel.valueOf( - reportingAttributionModel_); - return result == null - ? com.google.analytics.admin.v1alpha.AttributionSettings.ReportingAttributionModel - .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_); - } - getUnknownFields().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_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @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 (!getUnknownFields().equals(other.getUnknownFields())) return false; - 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 = (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(); - name_ = ""; - - acquisitionConversionEventLookbackWindow_ = 0; - - otherConversionEventLookbackWindow_ = 0; - - reportingAttributionModel_ = 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); - result.name_ = name_; - result.acquisitionConversionEventLookbackWindow_ = acquisitionConversionEventLookbackWindow_; - result.otherConversionEventLookbackWindow_ = otherConversionEventLookbackWindow_; - result.reportingAttributionModel_ = reportingAttributionModel_; - 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.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_; - onChanged(); - } - if (other.acquisitionConversionEventLookbackWindow_ != 0) { - setAcquisitionConversionEventLookbackWindowValue( - other.getAcquisitionConversionEventLookbackWindowValue()); - } - if (other.otherConversionEventLookbackWindow_ != 0) { - setOtherConversionEventLookbackWindowValue( - other.getOtherConversionEventLookbackWindowValue()); - } - if (other.reportingAttributionModel_ != 0) { - setReportingAttributionModelValue(other.getReportingAttributionModelValue()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 16: - { - acquisitionConversionEventLookbackWindow_ = input.readEnum(); - - break; - } // case 16 - case 24: - { - otherConversionEventLookbackWindow_ = input.readEnum(); - - break; - } // case 24 - case 32: - { - reportingAttributionModel_ = input.readEnum(); - - 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 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; - 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(); - 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; - 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; - 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() { - @SuppressWarnings("deprecation") - com.google.analytics.admin.v1alpha.AttributionSettings - .AcquisitionConversionEventLookbackWindow - result = - com.google.analytics.admin.v1alpha.AttributionSettings - .AcquisitionConversionEventLookbackWindow.valueOf( - 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(); - } - - 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() { - - 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; - 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() { - @SuppressWarnings("deprecation") - com.google.analytics.admin.v1alpha.AttributionSettings.OtherConversionEventLookbackWindow - result = - com.google.analytics.admin.v1alpha.AttributionSettings - .OtherConversionEventLookbackWindow.valueOf(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(); - } - - 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() { - - 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; - 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() { - @SuppressWarnings("deprecation") - com.google.analytics.admin.v1alpha.AttributionSettings.ReportingAttributionModel result = - com.google.analytics.admin.v1alpha.AttributionSettings.ReportingAttributionModel.valueOf( - 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(); - } - - 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() { - - reportingAttributionModel_ = 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AttributionSettingsName.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AttributionSettingsName.java deleted file mode 100644 index 2043a8d9..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AttributionSettingsName.java +++ /dev/null @@ -1,168 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 com.google.api.pathtemplate.PathTemplate; -import com.google.api.resourcenames.ResourceName; -import com.google.common.base.Preconditions; -import com.google.common.collect.ImmutableMap; -import java.util.ArrayList; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -@Generated("by gapic-generator-java") -public class AttributionSettingsName implements ResourceName { - private static final PathTemplate PROPERTY = - PathTemplate.createWithoutUrlEncoding("properties/{property}/attributionSettings"); - private volatile Map fieldValuesMap; - private final String property; - - @Deprecated - protected AttributionSettingsName() { - property = null; - } - - private AttributionSettingsName(Builder builder) { - property = Preconditions.checkNotNull(builder.getProperty()); - } - - public String getProperty() { - return property; - } - - public static Builder newBuilder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder(this); - } - - public static AttributionSettingsName of(String property) { - return newBuilder().setProperty(property).build(); - } - - public static String format(String property) { - return newBuilder().setProperty(property).build().toString(); - } - - public static AttributionSettingsName parse(String formattedString) { - if (formattedString.isEmpty()) { - return null; - } - Map matchMap = - PROPERTY.validatedMatch( - formattedString, "AttributionSettingsName.parse: formattedString not in valid format"); - return of(matchMap.get("property")); - } - - public static List parseList(List formattedStrings) { - List list = new ArrayList<>(formattedStrings.size()); - for (String formattedString : formattedStrings) { - list.add(parse(formattedString)); - } - return list; - } - - public static List toStringList(List values) { - List list = new ArrayList<>(values.size()); - for (AttributionSettingsName value : values) { - if (value == null) { - list.add(""); - } else { - list.add(value.toString()); - } - } - return list; - } - - public static boolean isParsableFrom(String formattedString) { - return PROPERTY.matches(formattedString); - } - - @Override - public Map getFieldValuesMap() { - if (fieldValuesMap == null) { - synchronized (this) { - if (fieldValuesMap == null) { - ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); - if (property != null) { - fieldMapBuilder.put("property", property); - } - fieldValuesMap = fieldMapBuilder.build(); - } - } - } - return fieldValuesMap; - } - - public String getFieldValue(String fieldName) { - return getFieldValuesMap().get(fieldName); - } - - @Override - public String toString() { - return PROPERTY.instantiate("property", property); - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (o != null || getClass() == o.getClass()) { - AttributionSettingsName that = ((AttributionSettingsName) o); - return Objects.equals(this.property, that.property); - } - return false; - } - - @Override - public int hashCode() { - int h = 1; - h *= 1000003; - h ^= Objects.hashCode(property); - return h; - } - - /** Builder for properties/{property}/attributionSettings. */ - public static class Builder { - private String property; - - protected Builder() {} - - public String getProperty() { - return property; - } - - public Builder setProperty(String property) { - this.property = property; - return this; - } - - private Builder(AttributionSettingsName attributionSettingsName) { - this.property = attributionSettingsName.property; - } - - public AttributionSettingsName build() { - return new AttributionSettingsName(this); - } - } -} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AttributionSettingsOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AttributionSettingsOrBuilder.java deleted file mode 100644 index 2abc0d52..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AttributionSettingsOrBuilder.java +++ /dev/null @@ -1,156 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/resources.proto - -package com.google.analytics.admin.v1alpha; - -public interface 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(); -} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/Audience.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/Audience.java deleted file mode 100644 index f5a38f98..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/Audience.java +++ /dev/null @@ -1,2420 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - 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; - 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; - 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_; - /** - * - * - *
-   * 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_; - /** - * - * - *
-   * 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 getEventTrigger(); - } - - public static final int EXCLUSION_DURATION_MODE_FIELD_NUMBER = 7; - private int 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 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() { - @SuppressWarnings("deprecation") - com.google.analytics.admin.v1alpha.Audience.AudienceExclusionDurationMode result = - com.google.analytics.admin.v1alpha.Audience.AudienceExclusionDurationMode.valueOf( - exclusionDurationMode_); - return result == null - ? com.google.analytics.admin.v1alpha.Audience.AudienceExclusionDurationMode.UNRECOGNIZED - : result; - } - - public static final int FILTER_CLAUSES_FIELD_NUMBER = 8; - private java.util.List filterClauses_; - /** - * - * - *
-   * Required. Immutable. null 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. null 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. null 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. null 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. null 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(); - name_ = ""; - - displayName_ = ""; - - description_ = ""; - - membershipDurationDays_ = 0; - - adsPersonalizationEnabled_ = false; - - if (eventTriggerBuilder_ == null) { - eventTrigger_ = null; - } else { - eventTrigger_ = null; - eventTriggerBuilder_ = null; - } - exclusionDurationMode_ = 0; - - if (filterClausesBuilder_ == null) { - filterClauses_ = java.util.Collections.emptyList(); - } else { - filterClauses_ = null; - filterClausesBuilder_.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_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); - int from_bitField0_ = bitField0_; - result.name_ = name_; - result.displayName_ = displayName_; - result.description_ = description_; - result.membershipDurationDays_ = membershipDurationDays_; - result.adsPersonalizationEnabled_ = adsPersonalizationEnabled_; - if (eventTriggerBuilder_ == null) { - result.eventTrigger_ = eventTrigger_; - } else { - result.eventTrigger_ = eventTriggerBuilder_.build(); - } - result.exclusionDurationMode_ = exclusionDurationMode_; - if (filterClausesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - filterClauses_ = java.util.Collections.unmodifiableList(filterClauses_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.filterClauses_ = filterClauses_; - } else { - result.filterClauses_ = filterClausesBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.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_; - onChanged(); - } - if (!other.getDisplayName().isEmpty()) { - displayName_ = other.displayName_; - onChanged(); - } - if (!other.getDescription().isEmpty()) { - description_ = other.description_; - 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_ & ~0x00000001); - } else { - ensureFilterClausesIsMutable(); - filterClauses_.addAll(other.filterClauses_); - } - onChanged(); - } - } else { - if (!other.filterClauses_.isEmpty()) { - if (filterClausesBuilder_.isEmpty()) { - filterClausesBuilder_.dispose(); - filterClausesBuilder_ = null; - filterClauses_ = other.filterClauses_; - bitField0_ = (bitField0_ & ~0x00000001); - 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(); - - break; - } // case 10 - case 18: - { - displayName_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: - { - description_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 32: - { - membershipDurationDays_ = input.readInt32(); - - break; - } // case 32 - case 40: - { - adsPersonalizationEnabled_ = input.readBool(); - - break; - } // case 40 - case 50: - { - input.readMessage(getEventTriggerFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 50 - case 56: - { - exclusionDurationMode_ = input.readEnum(); - - 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; - 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(); - 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; - 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; - 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(); - 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; - 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; - 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(); - 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; - 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; - 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() { - - 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; - 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() { - - 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 eventTriggerBuilder_ != null || 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. - */ - 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; - onChanged(); - } else { - eventTriggerBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - eventTriggerBuilder_.setMessage(builderForValue.build()); - } - - 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 (eventTrigger_ != null) { - eventTrigger_ = - com.google.analytics.admin.v1alpha.AudienceEventTrigger.newBuilder(eventTrigger_) - .mergeFrom(value) - .buildPartial(); - } else { - eventTrigger_ = value; - } - onChanged(); - } else { - eventTriggerBuilder_.mergeFrom(value); - } - - 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() { - if (eventTriggerBuilder_ == null) { - eventTrigger_ = null; - onChanged(); - } else { - eventTrigger_ = null; - eventTriggerBuilder_ = null; - } - - 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() { - - 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; - 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() { - @SuppressWarnings("deprecation") - com.google.analytics.admin.v1alpha.Audience.AudienceExclusionDurationMode result = - com.google.analytics.admin.v1alpha.Audience.AudienceExclusionDurationMode.valueOf( - 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(); - } - - 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() { - - exclusionDurationMode_ = 0; - onChanged(); - return this; - } - - private java.util.List filterClauses_ = - java.util.Collections.emptyList(); - - private void ensureFilterClausesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - filterClauses_ = - new java.util.ArrayList( - filterClauses_); - bitField0_ |= 0x00000001; - } - } - - 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. null 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. null 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. null 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. null 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. null 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. null 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. null 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. null 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. null 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. null 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. null 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_ & ~0x00000001); - onChanged(); - } else { - filterClausesBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Required. Immutable. null 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. null 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. null 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. null 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. null 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. null 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. null 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_ & 0x00000001) != 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceDimensionOrMetricFilter.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceDimensionOrMetricFilter.java deleted file mode 100644 index 00509688..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceDimensionOrMetricFilter.java +++ /dev/null @@ -1,7827 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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), - /** - * - * - *
-       * Partial regular expression matches 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 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.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_; - /** - * - * - *
-     * 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() { - @SuppressWarnings("deprecation") - com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.MatchType - result = - com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter - .MatchType.valueOf(matchType_); - return result == null - ? com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter - .MatchType.UNRECOGNIZED - : result; - } - - public static final int VALUE_FIELD_NUMBER = 2; - 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_; - /** - * - * - *
-     * 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(); - 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); - result.matchType_ = matchType_; - result.value_ = value_; - result.caseSensitive_ = caseSensitive_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.analytics.admin.v1alpha.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_; - 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(); - - break; - } // case 8 - case 18: - { - value_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 24: - { - caseSensitive_ = input.readBool(); - - 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 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; - 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() { - @SuppressWarnings("deprecation") - com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.MatchType - result = - com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter - .MatchType.valueOf(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(); - } - - 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() { - - 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; - 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(); - 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; - 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; - 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() { - - 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.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new InListFilter(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - private com.google.protobuf.LazyStringList 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 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_; - /** - * - * - *
-     * 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(); - values_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - caseSensitive_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.admin.v1alpha.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); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) != 0)) { - values_ = values_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.values_ = values_; - result.caseSensitive_ = caseSensitive_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.analytics.admin.v1alpha.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_ = (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(); - - 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.LazyStringList values_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureValuesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - 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() { - return values_.getUnmodifiableView(); - } - /** - * - * - *
-       * 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); - 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); - 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_); - 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.EMPTY; - 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); - 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; - 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() { - - 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(); - - public 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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - 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(); - 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 (oneValueCase_ == 1) { - result.oneValue_ = oneValue_; - } - if (oneValueCase_ == 2) { - result.oneValue_ = oneValue_; - } - result.oneValueCase_ = oneValueCase_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.analytics.admin.v1alpha.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; - } - - /** - * - * - *
-       * 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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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), - /** - * - * - *
-       * 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.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_; - /** - * - * - *
-     * 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() { - @SuppressWarnings("deprecation") - com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.Operation - result = - com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter - .Operation.valueOf(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 getValue(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (operation_ - != com.google.analytics.admin.v1alpha.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(); - operation_ = 0; - - if (valueBuilder_ == null) { - value_ = null; - } else { - value_ = null; - valueBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.admin.v1alpha.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); - result.operation_ = operation_; - if (valueBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = valueBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.analytics.admin.v1alpha.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(); - - break; - } // case 8 - case 18: - { - input.readMessage(getValueFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - 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; - 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() { - @SuppressWarnings("deprecation") - com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.Operation - result = - com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter - .Operation.valueOf(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(); - } - - 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() { - - 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 valueBuilder_ != null || 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. - */ - 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; - onChanged(); - } else { - valueBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - valueBuilder_.setMessage(builderForValue.build()); - } - - 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 (value_ != null) { - value_ = - com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue - .newBuilder(value_) - .mergeFrom(value) - .buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - valueBuilder_.mergeFrom(value); - } - - 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() { - if (valueBuilder_ == null) { - value_ = null; - onChanged(); - } else { - value_ = null; - valueBuilder_ = null; - } - - 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() { - - 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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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 getFromValue(); - } - - 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 getToValue(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (fromValue_ != null) { - output.writeMessage(1, getFromValue()); - } - if (toValue_ != null) { - output.writeMessage(2, getToValue()); - } - 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(); - if (fromValueBuilder_ == null) { - fromValue_ = null; - } else { - fromValue_ = null; - fromValueBuilder_ = null; - } - if (toValueBuilder_ == null) { - toValue_ = null; - } else { - toValue_ = null; - toValueBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.admin.v1alpha.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 (fromValueBuilder_ == null) { - result.fromValue_ = fromValue_; - } else { - result.fromValue_ = fromValueBuilder_.build(); - } - if (toValueBuilder_ == null) { - result.toValue_ = toValue_; - } else { - result.toValue_ = toValueBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.analytics.admin.v1alpha.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); - - break; - } // case 10 - case 18: - { - input.readMessage(getToValueFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - 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 fromValueBuilder_ != null || 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. - */ - 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; - onChanged(); - } else { - fromValueBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - fromValueBuilder_.setMessage(builderForValue.build()); - } - - 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 (fromValue_ != null) { - fromValue_ = - com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue - .newBuilder(fromValue_) - .mergeFrom(value) - .buildPartial(); - } else { - fromValue_ = value; - } - onChanged(); - } else { - fromValueBuilder_.mergeFrom(value); - } - - 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() { - if (fromValueBuilder_ == null) { - fromValue_ = null; - onChanged(); - } else { - fromValue_ = null; - fromValueBuilder_ = null; - } - - 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() { - - 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 toValueBuilder_ != null || 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. - */ - 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; - onChanged(); - } else { - toValueBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - toValueBuilder_.setMessage(builderForValue.build()); - } - - 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 (toValue_ != null) { - toValue_ = - com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue - .newBuilder(toValue_) - .mergeFrom(value) - .buildPartial(); - } else { - toValue_ = value; - } - onChanged(); - } else { - toValueBuilder_.mergeFrom(value); - } - - 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() { - if (toValueBuilder_ == null) { - toValue_ = null; - onChanged(); - } else { - toValue_ = null; - toValueBuilder_ = null; - } - - 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() { - - 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; - 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; - private volatile java.lang.Object fieldName_; - /** - * - * - *
-   * Required. Immutable. The dimension name or metric 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 or metric 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; - } - } - - public static final int AT_ANY_POINT_IN_TIME_FIELD_NUMBER = 6; - 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_; - } - - public static final int IN_ANY_N_DAY_PERIOD_FIELD_NUMBER = 7; - 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
-   * (i.e., 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(); - 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 (oneFilterCase_ == 2) { - if (stringFilterBuilder_ == null) { - result.oneFilter_ = oneFilter_; - } else { - result.oneFilter_ = stringFilterBuilder_.build(); - } - } - if (oneFilterCase_ == 3) { - if (inListFilterBuilder_ == null) { - result.oneFilter_ = oneFilter_; - } else { - result.oneFilter_ = inListFilterBuilder_.build(); - } - } - if (oneFilterCase_ == 4) { - if (numericFilterBuilder_ == null) { - result.oneFilter_ = oneFilter_; - } else { - result.oneFilter_ = numericFilterBuilder_.build(); - } - } - if (oneFilterCase_ == 5) { - if (betweenFilterBuilder_ == null) { - result.oneFilter_ = oneFilter_; - } else { - result.oneFilter_ = betweenFilterBuilder_.build(); - } - } - result.fieldName_ = fieldName_; - result.atAnyPointInTime_ = atAnyPointInTime_; - result.inAnyNDayPeriod_ = inAnyNDayPeriod_; - result.oneFilterCase_ = oneFilterCase_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.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_; - 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(); - - 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(); - - break; - } // case 48 - case 56: - { - inAnyNDayPeriod_ = input.readInt32(); - - 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 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.
-     * 
- * - * - * 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.
-     * 
- * - * - * 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.
-     * 
- * - * - * 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; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Immutable. The dimension name or metric 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(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Immutable. The dimension name or metric 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; - 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; - 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() { - - 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
-     * (i.e., 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
-     * (i.e., 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; - 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
-     * (i.e., 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() { - - 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceDimensionOrMetricFilterOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceDimensionOrMetricFilterOrBuilder.java deleted file mode 100644 index 6e04c71f..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceDimensionOrMetricFilterOrBuilder.java +++ /dev/null @@ -1,271 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/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.
-   * 
- * - * - * 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.
-   * 
- * - * - * 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
-   * (i.e., 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(); - - public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.OneFilterCase - getOneFilterCase(); -} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceEventFilter.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceEventFilter.java deleted file mode 100644 index 31758bcd..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceEventFilter.java +++ /dev/null @@ -1,1015 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - 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 (i.e., 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 (i.e., 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 (i.e., 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 getEventParameterFilterExpression(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 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(); - eventName_ = ""; - - if (eventParameterFilterExpressionBuilder_ == null) { - eventParameterFilterExpression_ = null; - } else { - eventParameterFilterExpression_ = null; - 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); - result.eventName_ = eventName_; - if (eventParameterFilterExpressionBuilder_ == null) { - result.eventParameterFilterExpression_ = eventParameterFilterExpression_; - } else { - result.eventParameterFilterExpression_ = eventParameterFilterExpressionBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.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_; - 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(); - - break; - } // case 10 - case 18: - { - input.readMessage( - getEventParameterFilterExpressionFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - 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; - 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(); - 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; - 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 (i.e., 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 eventParameterFilterExpressionBuilder_ != null - || 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 (i.e., 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 (i.e., 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; - onChanged(); - } else { - eventParameterFilterExpressionBuilder_.setMessage(value); - } - - 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 (i.e., 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(); - onChanged(); - } else { - eventParameterFilterExpressionBuilder_.setMessage(builderForValue.build()); - } - - 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 (i.e., 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 (eventParameterFilterExpression_ != null) { - eventParameterFilterExpression_ = - com.google.analytics.admin.v1alpha.AudienceFilterExpression.newBuilder( - eventParameterFilterExpression_) - .mergeFrom(value) - .buildPartial(); - } else { - eventParameterFilterExpression_ = value; - } - onChanged(); - } else { - eventParameterFilterExpressionBuilder_.mergeFrom(value); - } - - 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 (i.e., 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() { - if (eventParameterFilterExpressionBuilder_ == null) { - eventParameterFilterExpression_ = null; - onChanged(); - } else { - eventParameterFilterExpression_ = null; - eventParameterFilterExpressionBuilder_ = null; - } - - 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 (i.e., 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() { - - 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 (i.e., 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 (i.e., 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceEventFilterOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceEventFilterOrBuilder.java deleted file mode 100644 index 1725afaa..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceEventFilterOrBuilder.java +++ /dev/null @@ -1,114 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/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 (i.e., 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 (i.e., 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 (i.e., 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceEventTrigger.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceEventTrigger.java deleted file mode 100644 index 0da41c6a..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceEventTrigger.java +++ /dev/null @@ -1,952 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - 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_; - /** - * - * - *
-   * 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() { - @SuppressWarnings("deprecation") - com.google.analytics.admin.v1alpha.AudienceEventTrigger.LogCondition result = - com.google.analytics.admin.v1alpha.AudienceEventTrigger.LogCondition.valueOf(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(); - 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); - result.eventName_ = eventName_; - result.logCondition_ = logCondition_; - 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.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_; - 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(); - - break; - } // case 10 - case 16: - { - logCondition_ = input.readEnum(); - - 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 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; - 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(); - 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; - 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; - 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() { - @SuppressWarnings("deprecation") - com.google.analytics.admin.v1alpha.AudienceEventTrigger.LogCondition result = - com.google.analytics.admin.v1alpha.AudienceEventTrigger.LogCondition.valueOf( - 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(); - } - - 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() { - - 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceEventTriggerOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceEventTriggerOrBuilder.java deleted file mode 100644 index 82fda45f..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceEventTriggerOrBuilder.java +++ /dev/null @@ -1,79 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceFilterClause.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceFilterClause.java deleted file mode 100644 index 03b086bc..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceFilterClause.java +++ /dev/null @@ -1,1480 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/audience.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * A clause for defining either a simple or sequence filter. A filter can be
- * inclusive (i.e., users satisfying the filter clause are included in the
- * Audience) or exclusive (i.e., 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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - 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_; - /** - * - * - *
-   * 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() { - @SuppressWarnings("deprecation") - com.google.analytics.admin.v1alpha.AudienceFilterClause.AudienceClauseType result = - com.google.analytics.admin.v1alpha.AudienceFilterClause.AudienceClauseType.valueOf( - 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 (i.e., users satisfying the filter clause are included in the
-   * Audience) or exclusive (i.e., 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(); - 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 (filterCase_ == 2) { - if (simpleFilterBuilder_ == null) { - result.filter_ = filter_; - } else { - result.filter_ = simpleFilterBuilder_.build(); - } - } - if (filterCase_ == 3) { - if (sequenceFilterBuilder_ == null) { - result.filter_ = filter_; - } else { - result.filter_ = sequenceFilterBuilder_.build(); - } - } - result.clauseType_ = clauseType_; - result.filterCase_ = filterCase_; - 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.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(); - - 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 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; - 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() { - @SuppressWarnings("deprecation") - com.google.analytics.admin.v1alpha.AudienceFilterClause.AudienceClauseType result = - com.google.analytics.admin.v1alpha.AudienceFilterClause.AudienceClauseType.valueOf( - 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(); - } - - 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() { - - 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceFilterClauseOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceFilterClauseOrBuilder.java deleted file mode 100644 index 7f05d1b2..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceFilterClauseOrBuilder.java +++ /dev/null @@ -1,129 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/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(); - - public com.google.analytics.admin.v1alpha.AudienceFilterClause.FilterCase getFilterCase(); -} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceFilterExpression.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceFilterExpression.java deleted file mode 100644 index 9405c069..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceFilterExpression.java +++ /dev/null @@ -1,2162 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - 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 (i.e., 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 (i.e., 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 (i.e., 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(); - 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 (exprCase_ == 1) { - if (andGroupBuilder_ == null) { - result.expr_ = expr_; - } else { - result.expr_ = andGroupBuilder_.build(); - } - } - if (exprCase_ == 2) { - if (orGroupBuilder_ == null) { - result.expr_ = expr_; - } else { - result.expr_ = orGroupBuilder_.build(); - } - } - if (exprCase_ == 3) { - if (notExpressionBuilder_ == null) { - result.expr_ = expr_; - } else { - result.expr_ = notExpressionBuilder_.build(); - } - } - if (exprCase_ == 4) { - if (dimensionOrMetricFilterBuilder_ == null) { - result.expr_ = expr_; - } else { - result.expr_ = dimensionOrMetricFilterBuilder_.build(); - } - } - if (exprCase_ == 5) { - if (eventFilterBuilder_ == null) { - result.expr_ = expr_; - } else { - result.expr_ = eventFilterBuilder_.build(); - } - } - result.exprCase_ = exprCase_; - 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.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 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 (i.e., 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 (i.e., 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 (i.e., 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 (i.e., 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 (i.e., 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 (i.e., 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 (i.e., 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 (i.e., 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 (i.e., 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceFilterExpressionList.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceFilterExpressionList.java deleted file mode 100644 index daad08bd..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceFilterExpressionList.java +++ /dev/null @@ -1,1003 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - 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(); - 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); - int from_bitField0_ = bitField0_; - if (filterExpressionsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - filterExpressions_ = java.util.Collections.unmodifiableList(filterExpressions_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.filterExpressions_ = filterExpressions_; - } else { - result.filterExpressions_ = filterExpressionsBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceFilterExpressionListOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceFilterExpressionListOrBuilder.java deleted file mode 100644 index db0aaaec..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceFilterExpressionListOrBuilder.java +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceFilterExpressionOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceFilterExpressionOrBuilder.java deleted file mode 100644 index 739242ab..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceFilterExpressionOrBuilder.java +++ /dev/null @@ -1,230 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/audience.proto - -package com.google.analytics.admin.v1alpha; - -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
-   * level AudienceFilterExpression.
-   * 
- * - * .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
-   * level AudienceFilterExpression.
-   * 
- * - * .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
-   * level AudienceFilterExpression.
-   * 
- * - * .google.analytics.admin.v1alpha.AudienceFilterExpressionList and_group = 1; - */ - 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.
-   * 
- * - * .google.analytics.admin.v1alpha.AudienceFilterExpressionList or_group = 2; - */ - com.google.analytics.admin.v1alpha.AudienceFilterExpressionListOrBuilder getOrGroupOrBuilder(); - - /** - * - * - *
-   * A filter expression to be NOT'ed (i.e., 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. - */ - boolean hasNotExpression(); - /** - * - * - *
-   * A filter expression to be NOT'ed (i.e., 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. - */ - com.google.analytics.admin.v1alpha.AudienceFilterExpression getNotExpression(); - /** - * - * - *
-   * A filter expression to be NOT'ed (i.e., 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; - */ - 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; - * - * - * @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; - * - * - * @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; - * - */ - 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.
-   * 
- * - * .google.analytics.admin.v1alpha.AudienceEventFilter event_filter = 5; - */ - com.google.analytics.admin.v1alpha.AudienceEventFilterOrBuilder getEventFilterOrBuilder(); - - public com.google.analytics.admin.v1alpha.AudienceFilterExpression.ExprCase getExprCase(); -} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceFilterScope.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceFilterScope.java deleted file mode 100644 index 4c2c4041..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceFilterScope.java +++ /dev/null @@ -1,207 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceName.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceName.java deleted file mode 100644 index 8656d2d5..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceName.java +++ /dev/null @@ -1,192 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 com.google.api.pathtemplate.PathTemplate; -import com.google.api.resourcenames.ResourceName; -import com.google.common.base.Preconditions; -import com.google.common.collect.ImmutableMap; -import java.util.ArrayList; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -@Generated("by gapic-generator-java") -public class AudienceName implements ResourceName { - private static final PathTemplate PROPERTY_AUDIENCE = - PathTemplate.createWithoutUrlEncoding("properties/{property}/audiences/{audience}"); - private volatile Map fieldValuesMap; - private final String property; - private final String audience; - - @Deprecated - protected AudienceName() { - property = null; - audience = null; - } - - private AudienceName(Builder builder) { - property = Preconditions.checkNotNull(builder.getProperty()); - audience = Preconditions.checkNotNull(builder.getAudience()); - } - - public String getProperty() { - return property; - } - - public String getAudience() { - return audience; - } - - public static Builder newBuilder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder(this); - } - - public static AudienceName of(String property, String audience) { - return newBuilder().setProperty(property).setAudience(audience).build(); - } - - public static String format(String property, String audience) { - return newBuilder().setProperty(property).setAudience(audience).build().toString(); - } - - public static AudienceName parse(String formattedString) { - if (formattedString.isEmpty()) { - return null; - } - Map matchMap = - PROPERTY_AUDIENCE.validatedMatch( - formattedString, "AudienceName.parse: formattedString not in valid format"); - return of(matchMap.get("property"), matchMap.get("audience")); - } - - public static List parseList(List formattedStrings) { - List list = new ArrayList<>(formattedStrings.size()); - for (String formattedString : formattedStrings) { - list.add(parse(formattedString)); - } - return list; - } - - public static List toStringList(List values) { - List list = new ArrayList<>(values.size()); - for (AudienceName value : values) { - if (value == null) { - list.add(""); - } else { - list.add(value.toString()); - } - } - return list; - } - - public static boolean isParsableFrom(String formattedString) { - return PROPERTY_AUDIENCE.matches(formattedString); - } - - @Override - public Map getFieldValuesMap() { - if (fieldValuesMap == null) { - synchronized (this) { - if (fieldValuesMap == null) { - ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); - if (property != null) { - fieldMapBuilder.put("property", property); - } - if (audience != null) { - fieldMapBuilder.put("audience", audience); - } - fieldValuesMap = fieldMapBuilder.build(); - } - } - } - return fieldValuesMap; - } - - public String getFieldValue(String fieldName) { - return getFieldValuesMap().get(fieldName); - } - - @Override - public String toString() { - return PROPERTY_AUDIENCE.instantiate("property", property, "audience", audience); - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (o != null || getClass() == o.getClass()) { - AudienceName that = ((AudienceName) o); - return Objects.equals(this.property, that.property) - && Objects.equals(this.audience, that.audience); - } - return false; - } - - @Override - public int hashCode() { - int h = 1; - h *= 1000003; - h ^= Objects.hashCode(property); - h *= 1000003; - h ^= Objects.hashCode(audience); - return h; - } - - /** Builder for properties/{property}/audiences/{audience}. */ - public static class Builder { - private String property; - private String audience; - - protected Builder() {} - - public String getProperty() { - return property; - } - - public String getAudience() { - return audience; - } - - public Builder setProperty(String property) { - this.property = property; - return this; - } - - public Builder setAudience(String audience) { - this.audience = audience; - return this; - } - - private Builder(AudienceName audienceName) { - this.property = audienceName.property; - this.audience = audienceName.audience; - } - - public AudienceName build() { - return new AudienceName(this); - } - } -} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceOrBuilder.java deleted file mode 100644 index 9fe4d544..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceOrBuilder.java +++ /dev/null @@ -1,278 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/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. null 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. null 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. null 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. null 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. null 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceProto.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceProto.java deleted file mode 100644 index 9e9ce4dc..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceProto.java +++ /dev/null @@ -1,394 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/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\"\305\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\032\n\nfield_name\030\001" - + " \001(\tB\006\340A\002\340A\005\022!\n\024at_any_point_in_time\030\006 \001" - + "(\010B\003\340A\001\022 \n\023in_any_n_day_period\030\007 \001(\005B\003\340A" - + "\001\032\270\002\n\014StringFilter\022o\n\nmatch_type\030\001 \001(\0162V" - + ".google.analytics.admin.v1alpha.Audience" - + "DimensionOrMetricFilter.StringFilter.Mat" - + "chTypeB\003\340A\002\022\022\n\005value\030\002 \001(\tB\003\340A\002\022\033\n\016case_" - + "sensitive\030\003 \001(\010B\003\340A\001\"\205\001\n\tMatchType\022\032\n\026MA" - + "TCH_TYPE_UNSPECIFIED\020\000\022\t\n\005EXACT\020\001\022\017\n\013BEG" - + "INS_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\032@\n\014" - + "InListFilter\022\023\n\006values\030\001 \003(\tB\003\340A\002\022\033\n\016cas" - + "e_sensitive\030\002 \001(\010B\003\340A\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_value\032\352\002\n\rNumericFilter\022o\n\t" - + "operation\030\001 \001(\0162W.google.analytics.admin" - + ".v1alpha.AudienceDimensionOrMetricFilter" - + ".NumericFilter.OperationB\003\340A\002\022`\n\005value\030\002" - + " \001(\0132L.google.analytics.admin.v1alpha.Au" - + "dienceDimensionOrMetricFilter.NumericVal" - + "ueB\003\340A\002\"\205\001\n\tOperation\022\031\n\025OPERATION_UNSPE" - + "CIFIED\020\000\022\t\n\005EQUAL\020\001\022\r\n\tLESS_THAN\020\002\022\026\n\022LE" - + "SS_THAN_OR_EQUAL\020\003\022\020\n\014GREATER_THAN\020\004\022\031\n\025" - + "GREATER_THAN_OR_EQUAL\020\005\032\333\001\n\rBetweenFilte" - + "r\022e\n\nfrom_value\030\001 \001(\0132L.google.analytics" - + ".admin.v1alpha.AudienceDimensionOrMetric" - + "Filter.NumericValueB\003\340A\002\022c\n\010to_value\030\002 \001" - + "(\0132L.google.analytics.admin.v1alpha.Audi" - + "enceDimensionOrMetricFilter.NumericValue" - + "B\003\340A\002B\014\n\none_filter\"\233\001\n\023AudienceEventFil" - + "ter\022\032\n\nevent_name\030\001 \001(\tB\006\340A\002\340A\005\022h\n!event" - + "_parameter_filter_expression\030\002 \001(\01328.goo" - + "gle.analytics.admin.v1alpha.AudienceFilt" - + "erExpressionB\003\340A\001\"\317\003\n\030AudienceFilterExpr" - + "ession\022Q\n\tand_group\030\001 \001(\0132<.google.analy" - + "tics.admin.v1alpha.AudienceFilterExpress" - + "ionListH\000\022P\n\010or_group\030\002 \001(\0132<.google.ana" - + "lytics.admin.v1alpha.AudienceFilterExpre" - + "ssionListH\000\022R\n\016not_expression\030\003 \001(\01328.go" - + "ogle.analytics.admin.v1alpha.AudienceFil" - + "terExpressionH\000\022e\n\032dimension_or_metric_f" - + "ilter\030\004 \001(\0132?.google.analytics.admin.v1a" - + "lpha.AudienceDimensionOrMetricFilterH\000\022K" - + "\n\014event_filter\030\005 \001(\01323.google.analytics." - + "admin.v1alpha.AudienceEventFilterH\000B\006\n\004e" - + "xpr\"t\n\034AudienceFilterExpressionList\022T\n\022f" - + "ilter_expressions\030\001 \003(\01328.google.analyti" - + "cs.admin.v1alpha.AudienceFilterExpressio" - + "n\"\277\001\n\024AudienceSimpleFilter\022J\n\005scope\030\001 \001(" - + "\01623.google.analytics.admin.v1alpha.Audie" - + "nceFilterScopeB\006\340A\002\340A\005\022[\n\021filter_express" - + "ion\030\002 \001(\01328.google.analytics.admin.v1alp" - + "ha.AudienceFilterExpressionB\006\340A\002\340A\005\"\262\004\n\026" - + "AudienceSequenceFilter\022J\n\005scope\030\001 \001(\01623." - + "google.analytics.admin.v1alpha.AudienceF" - + "ilterScopeB\006\340A\002\340A\005\022A\n\031sequence_maximum_d" - + "uration\030\002 \001(\0132\031.google.protobuf.Duration" - + "B\003\340A\001\022h\n\016sequence_steps\030\003 \003(\0132K.google.a" - + "nalytics.admin.v1alpha.AudienceSequenceF" - + "ilter.AudienceSequenceStepB\003\340A\002\032\236\002\n\024Audi" - + "enceSequenceStep\022J\n\005scope\030\001 \001(\01623.google" - + ".analytics.admin.v1alpha.AudienceFilterS" - + "copeB\006\340A\002\340A\005\022 \n\023immediately_follows\030\002 \001(" - + "\010B\003\340A\001\022;\n\023constraint_duration\030\003 \001(\0132\031.go" - + "ogle.protobuf.DurationB\003\340A\001\022[\n\021filter_ex" - + "pression\030\004 \001(\01328.google.analytics.admin." - + "v1alpha.AudienceFilterExpressionB\006\340A\002\340A\005" - + "\"\373\002\n\024AudienceFilterClause\022M\n\rsimple_filt" - + "er\030\002 \001(\01324.google.analytics.admin.v1alph" - + "a.AudienceSimpleFilterH\000\022Q\n\017sequence_fil" - + "ter\030\003 \001(\01326.google.analytics.admin.v1alp" - + "ha.AudienceSequenceFilterH\000\022a\n\013clause_ty" - + "pe\030\001 \001(\0162G.google.analytics.admin.v1alph" - + "a.AudienceFilterClause.AudienceClauseTyp" - + "eB\003\340A\002\"T\n\022AudienceClauseType\022$\n AUDIENCE" - + "_CLAUSE_TYPE_UNSPECIFIED\020\000\022\013\n\007INCLUDE\020\001\022" - + "\013\n\007EXCLUDE\020\002B\010\n\006filter\"\363\001\n\024AudienceEvent" - + "Trigger\022\027\n\nevent_name\030\001 \001(\tB\003\340A\002\022]\n\rlog_" - + "condition\030\002 \001(\0162A.google.analytics.admin" - + ".v1alpha.AudienceEventTrigger.LogConditi" - + "onB\003\340A\002\"c\n\014LogCondition\022\035\n\031LOG_CONDITION" - + "_UNSPECIFIED\020\000\022\023\n\017AUDIENCE_JOINED\020\001\022\037\n\033A" - + "UDIENCE_MEMBERSHIP_RENEWED\020\002\"\236\005\n\010Audienc" - + "e\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\031\n\014display_name\030\002 \001" - + "(\tB\003\340A\002\022\030\n\013description\030\003 \001(\tB\003\340A\002\022(\n\030mem" - + "bership_duration_days\030\004 \001(\005B\006\340A\002\340A\005\022(\n\033a" - + "ds_personalization_enabled\030\005 \001(\010B\003\340A\003\022P\n" - + "\revent_trigger\030\006 \001(\01324.google.analytics." - + "admin.v1alpha.AudienceEventTriggerB\003\340A\001\022" - + "l\n\027exclusion_duration_mode\030\007 \001(\0162F.googl" - + "e.analytics.admin.v1alpha.Audience.Audie" - + "nceExclusionDurationModeB\003\340A\005\022W\n\016filter_" - + "clauses\030\010 \003(\01324.google.analytics.admin.v" - + "1alpha.AudienceFilterClauseB\t\340A\005\340A\002\340A\006\"\203" - + "\001\n\035AudienceExclusionDurationMode\0220\n,AUDI" - + "ENCE_EXCLUSION_DURATION_MODE_UNSPECIFIED" - + "\020\000\022\027\n\023EXCLUDE_TEMPORARILY\020\001\022\027\n\023EXCLUDE_P" - + "ERMANENTLY\020\002:W\352AT\n&analyticsadmin.google" - + "apis.com/Audience\022*properties/{property}" - + "/audiences/{audience}*\307\001\n\023AudienceFilter" - + "Scope\022%\n!AUDIENCE_FILTER_SCOPE_UNSPECIFI" - + "ED\020\000\022+\n\'AUDIENCE_FILTER_SCOPE_WITHIN_SAM" - + "E_EVENT\020\001\022-\n)AUDIENCE_FILTER_SCOPE_WITHI" - + "N_SAME_SESSION\020\002\022-\n)AUDIENCE_FILTER_SCOP" - + "E_ACROSS_ALL_SESSIONS\020\003Bz\n\"com.google.an" - + "alytics.admin.v1alphaB\rAudienceProtoP\001ZC" - + "google.golang.org/genproto/googleapis/an" - + "alytics/admin/v1alpha;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.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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceSequenceFilter.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceSequenceFilter.java deleted file mode 100644 index 71c761c9..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceSequenceFilter.java +++ /dev/null @@ -1,3037 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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 (i.e., 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 (i.e., 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 (i.e., 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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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_; - /** - * - * - *
-     * 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() { - @SuppressWarnings("deprecation") - com.google.analytics.admin.v1alpha.AudienceFilterScope result = - com.google.analytics.admin.v1alpha.AudienceFilterScope.valueOf(scope_); - return result == null - ? com.google.analytics.admin.v1alpha.AudienceFilterScope.UNRECOGNIZED - : result; - } - - public static final int IMMEDIATELY_FOLLOWS_FIELD_NUMBER = 2; - 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_; - } - - 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 (i.e., 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 (i.e., 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 (i.e., 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 getConstraintDuration(); - } - - 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 getFilterExpression(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (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(); - scope_ = 0; - - immediatelyFollows_ = false; - - if (constraintDurationBuilder_ == null) { - constraintDuration_ = null; - } else { - constraintDuration_ = null; - constraintDurationBuilder_ = null; - } - if (filterExpressionBuilder_ == null) { - filterExpression_ = null; - } else { - filterExpression_ = null; - 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); - result.scope_ = scope_; - result.immediatelyFollows_ = immediatelyFollows_; - if (constraintDurationBuilder_ == null) { - result.constraintDuration_ = constraintDuration_; - } else { - result.constraintDuration_ = constraintDurationBuilder_.build(); - } - if (filterExpressionBuilder_ == null) { - result.filterExpression_ = filterExpression_; - } else { - result.filterExpression_ = filterExpressionBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.analytics.admin.v1alpha.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(); - - break; - } // case 8 - case 16: - { - immediatelyFollows_ = input.readBool(); - - break; - } // case 16 - case 26: - { - input.readMessage( - getConstraintDurationFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 26 - case 34: - { - input.readMessage( - getFilterExpressionFieldBuilder().getBuilder(), extensionRegistry); - - 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 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; - 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() { - @SuppressWarnings("deprecation") - com.google.analytics.admin.v1alpha.AudienceFilterScope result = - com.google.analytics.admin.v1alpha.AudienceFilterScope.valueOf(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(); - } - - 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() { - - 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; - 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() { - - 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 (i.e., 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 constraintDurationBuilder_ != null || constraintDuration_ != null; - } - /** - * - * - *
-       * Optional. When set, this step must be satisfied within the constraint_duration of
-       * the previous step (i.e., 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 (i.e., 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; - onChanged(); - } else { - constraintDurationBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-       * Optional. When set, this step must be satisfied within the constraint_duration of
-       * the previous step (i.e., 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(); - onChanged(); - } else { - constraintDurationBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-       * Optional. When set, this step must be satisfied within the constraint_duration of
-       * the previous step (i.e., 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 (constraintDuration_ != null) { - constraintDuration_ = - com.google.protobuf.Duration.newBuilder(constraintDuration_) - .mergeFrom(value) - .buildPartial(); - } else { - constraintDuration_ = value; - } - onChanged(); - } else { - constraintDurationBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-       * Optional. When set, this step must be satisfied within the constraint_duration of
-       * the previous step (i.e., 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() { - if (constraintDurationBuilder_ == null) { - constraintDuration_ = null; - onChanged(); - } else { - constraintDuration_ = null; - constraintDurationBuilder_ = null; - } - - return this; - } - /** - * - * - *
-       * Optional. When set, this step must be satisfied within the constraint_duration of
-       * the previous step (i.e., 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() { - - onChanged(); - return getConstraintDurationFieldBuilder().getBuilder(); - } - /** - * - * - *
-       * Optional. When set, this step must be satisfied within the constraint_duration of
-       * the previous step (i.e., 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 (i.e., 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 filterExpressionBuilder_ != null || 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. - */ - 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; - onChanged(); - } else { - filterExpressionBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - filterExpressionBuilder_.setMessage(builderForValue.build()); - } - - 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 (filterExpression_ != null) { - filterExpression_ = - com.google.analytics.admin.v1alpha.AudienceFilterExpression.newBuilder( - filterExpression_) - .mergeFrom(value) - .buildPartial(); - } else { - filterExpression_ = value; - } - onChanged(); - } else { - filterExpressionBuilder_.mergeFrom(value); - } - - 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() { - if (filterExpressionBuilder_ == null) { - filterExpression_ = null; - onChanged(); - } else { - filterExpression_ = null; - filterExpressionBuilder_ = null; - } - - 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() { - - 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_; - /** - * - * - *
-   * 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() { - @SuppressWarnings("deprecation") - com.google.analytics.admin.v1alpha.AudienceFilterScope result = - com.google.analytics.admin.v1alpha.AudienceFilterScope.valueOf(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 getSequenceMaximumDuration(); - } - - public static final int SEQUENCE_STEPS_FIELD_NUMBER = 3; - 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(); - scope_ = 0; - - if (sequenceMaximumDurationBuilder_ == null) { - sequenceMaximumDuration_ = null; - } else { - sequenceMaximumDuration_ = null; - sequenceMaximumDurationBuilder_ = null; - } - if (sequenceStepsBuilder_ == null) { - sequenceSteps_ = java.util.Collections.emptyList(); - } else { - sequenceSteps_ = null; - sequenceStepsBuilder_.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_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); - int from_bitField0_ = bitField0_; - result.scope_ = scope_; - if (sequenceMaximumDurationBuilder_ == null) { - result.sequenceMaximumDuration_ = sequenceMaximumDuration_; - } else { - result.sequenceMaximumDuration_ = sequenceMaximumDurationBuilder_.build(); - } - if (sequenceStepsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - sequenceSteps_ = java.util.Collections.unmodifiableList(sequenceSteps_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.sequenceSteps_ = sequenceSteps_; - } else { - result.sequenceSteps_ = sequenceStepsBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.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_ & ~0x00000001); - } else { - ensureSequenceStepsIsMutable(); - sequenceSteps_.addAll(other.sequenceSteps_); - } - onChanged(); - } - } else { - if (!other.sequenceSteps_.isEmpty()) { - if (sequenceStepsBuilder_.isEmpty()) { - sequenceStepsBuilder_.dispose(); - sequenceStepsBuilder_ = null; - sequenceSteps_ = other.sequenceSteps_; - bitField0_ = (bitField0_ & ~0x00000001); - 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(); - - break; - } // case 8 - case 18: - { - input.readMessage( - getSequenceMaximumDurationFieldBuilder().getBuilder(), extensionRegistry); - - 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; - 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() { - @SuppressWarnings("deprecation") - com.google.analytics.admin.v1alpha.AudienceFilterScope result = - com.google.analytics.admin.v1alpha.AudienceFilterScope.valueOf(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(); - } - - 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() { - - 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 sequenceMaximumDurationBuilder_ != null || 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. - */ - 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; - onChanged(); - } else { - sequenceMaximumDurationBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - sequenceMaximumDurationBuilder_.setMessage(builderForValue.build()); - } - - 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 (sequenceMaximumDuration_ != null) { - sequenceMaximumDuration_ = - com.google.protobuf.Duration.newBuilder(sequenceMaximumDuration_) - .mergeFrom(value) - .buildPartial(); - } else { - sequenceMaximumDuration_ = value; - } - onChanged(); - } else { - sequenceMaximumDurationBuilder_.mergeFrom(value); - } - - 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() { - if (sequenceMaximumDurationBuilder_ == null) { - sequenceMaximumDuration_ = null; - onChanged(); - } else { - sequenceMaximumDuration_ = null; - sequenceMaximumDurationBuilder_ = null; - } - - 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() { - - 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_ & 0x00000001) != 0)) { - sequenceSteps_ = - new java.util.ArrayList< - com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep>( - sequenceSteps_); - bitField0_ |= 0x00000001; - } - } - - 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_ & ~0x00000001); - 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_ & 0x00000001) != 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceSequenceFilterOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceSequenceFilterOrBuilder.java deleted file mode 100644 index 40549e8b..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceSequenceFilterOrBuilder.java +++ /dev/null @@ -1,168 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceSimpleFilter.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceSimpleFilter.java deleted file mode 100644 index ac18fe4c..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceSimpleFilter.java +++ /dev/null @@ -1,910 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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_; - /** - * - * - *
-   * 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() { - @SuppressWarnings("deprecation") - com.google.analytics.admin.v1alpha.AudienceFilterScope result = - com.google.analytics.admin.v1alpha.AudienceFilterScope.valueOf(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 getFilterExpression(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (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(); - scope_ = 0; - - if (filterExpressionBuilder_ == null) { - filterExpression_ = null; - } else { - filterExpression_ = null; - 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); - result.scope_ = scope_; - if (filterExpressionBuilder_ == null) { - result.filterExpression_ = filterExpression_; - } else { - result.filterExpression_ = filterExpressionBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.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(); - - break; - } // case 8 - case 18: - { - input.readMessage( - getFilterExpressionFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - 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; - 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() { - @SuppressWarnings("deprecation") - com.google.analytics.admin.v1alpha.AudienceFilterScope result = - com.google.analytics.admin.v1alpha.AudienceFilterScope.valueOf(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(); - } - - 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() { - - 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 filterExpressionBuilder_ != null || 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. - */ - 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; - onChanged(); - } else { - filterExpressionBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - filterExpressionBuilder_.setMessage(builderForValue.build()); - } - - 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 (filterExpression_ != null) { - filterExpression_ = - com.google.analytics.admin.v1alpha.AudienceFilterExpression.newBuilder( - filterExpression_) - .mergeFrom(value) - .buildPartial(); - } else { - filterExpression_ = value; - } - onChanged(); - } else { - filterExpressionBuilder_.mergeFrom(value); - } - - 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() { - if (filterExpressionBuilder_ == null) { - filterExpression_ = null; - onChanged(); - } else { - filterExpression_ = null; - filterExpressionBuilder_ = null; - } - - 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() { - - 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceSimpleFilterOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceSimpleFilterOrBuilder.java deleted file mode 100644 index 9dd3a668..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceSimpleFilterOrBuilder.java +++ /dev/null @@ -1,96 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AuditUserLink.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AuditUserLink.java deleted file mode 100644 index bfe1d943..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AuditUserLink.java +++ /dev/null @@ -1,1401 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/resources.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * Read-only resource used to summarize a principal's effective roles.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.AuditUserLink} - */ -public final class AuditUserLink extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AuditUserLink) - AuditUserLinkOrBuilder { - private static final long serialVersionUID = 0L; - // Use AuditUserLink.newBuilder() to construct. - private AuditUserLink(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private AuditUserLink() { - name_ = ""; - emailAddress_ = ""; - directRoles_ = com.google.protobuf.LazyStringArrayList.EMPTY; - effectiveRoles_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new AuditUserLink(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.ResourcesProto - .internal_static_google_analytics_admin_v1alpha_AuditUserLink_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.ResourcesProto - .internal_static_google_analytics_admin_v1alpha_AuditUserLink_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.AuditUserLink.class, - com.google.analytics.admin.v1alpha.AuditUserLink.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * - *
-   * Example format: properties/1234/userLinks/5678
-   * 
- * - * 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; - } - } - /** - * - * - *
-   * Example format: properties/1234/userLinks/5678
-   * 
- * - * 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 EMAIL_ADDRESS_FIELD_NUMBER = 2; - private volatile java.lang.Object emailAddress_; - /** - * - * - *
-   * Email address of the linked user
-   * 
- * - * string email_address = 2; - * - * @return The emailAddress. - */ - @java.lang.Override - public java.lang.String getEmailAddress() { - java.lang.Object ref = emailAddress_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - emailAddress_ = s; - return s; - } - } - /** - * - * - *
-   * Email address of the linked user
-   * 
- * - * string email_address = 2; - * - * @return The bytes for emailAddress. - */ - @java.lang.Override - public com.google.protobuf.ByteString getEmailAddressBytes() { - java.lang.Object ref = emailAddress_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - emailAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DIRECT_ROLES_FIELD_NUMBER = 3; - private com.google.protobuf.LazyStringList directRoles_; - /** - * - * - *
-   * Roles directly assigned to this user for this entity.
-   * Format: predefinedRoles/viewer
-   * Excludes roles that are inherited from an account (if this is for a
-   * property), group, or organization admin role.
-   * 
- * - * repeated string direct_roles = 3; - * - * @return A list containing the directRoles. - */ - public com.google.protobuf.ProtocolStringList getDirectRolesList() { - return directRoles_; - } - /** - * - * - *
-   * Roles directly assigned to this user for this entity.
-   * Format: predefinedRoles/viewer
-   * Excludes roles that are inherited from an account (if this is for a
-   * property), group, or organization admin role.
-   * 
- * - * repeated string direct_roles = 3; - * - * @return The count of directRoles. - */ - public int getDirectRolesCount() { - return directRoles_.size(); - } - /** - * - * - *
-   * Roles directly assigned to this user for this entity.
-   * Format: predefinedRoles/viewer
-   * Excludes roles that are inherited from an account (if this is for a
-   * property), group, or organization admin role.
-   * 
- * - * repeated string direct_roles = 3; - * - * @param index The index of the element to return. - * @return The directRoles at the given index. - */ - public java.lang.String getDirectRoles(int index) { - return directRoles_.get(index); - } - /** - * - * - *
-   * Roles directly assigned to this user for this entity.
-   * Format: predefinedRoles/viewer
-   * Excludes roles that are inherited from an account (if this is for a
-   * property), group, or organization admin role.
-   * 
- * - * repeated string direct_roles = 3; - * - * @param index The index of the value to return. - * @return The bytes of the directRoles at the given index. - */ - public com.google.protobuf.ByteString getDirectRolesBytes(int index) { - return directRoles_.getByteString(index); - } - - public static final int EFFECTIVE_ROLES_FIELD_NUMBER = 4; - private com.google.protobuf.LazyStringList effectiveRoles_; - /** - * - * - *
-   * Union of all permissions a user has at this account or property (includes
-   * direct permissions, group-inherited permissions, etc.).
-   * Format: predefinedRoles/viewer
-   * 
- * - * repeated string effective_roles = 4; - * - * @return A list containing the effectiveRoles. - */ - public com.google.protobuf.ProtocolStringList getEffectiveRolesList() { - return effectiveRoles_; - } - /** - * - * - *
-   * Union of all permissions a user has at this account or property (includes
-   * direct permissions, group-inherited permissions, etc.).
-   * Format: predefinedRoles/viewer
-   * 
- * - * repeated string effective_roles = 4; - * - * @return The count of effectiveRoles. - */ - public int getEffectiveRolesCount() { - return effectiveRoles_.size(); - } - /** - * - * - *
-   * Union of all permissions a user has at this account or property (includes
-   * direct permissions, group-inherited permissions, etc.).
-   * Format: predefinedRoles/viewer
-   * 
- * - * repeated string effective_roles = 4; - * - * @param index The index of the element to return. - * @return The effectiveRoles at the given index. - */ - public java.lang.String getEffectiveRoles(int index) { - return effectiveRoles_.get(index); - } - /** - * - * - *
-   * Union of all permissions a user has at this account or property (includes
-   * direct permissions, group-inherited permissions, etc.).
-   * Format: predefinedRoles/viewer
-   * 
- * - * repeated string effective_roles = 4; - * - * @param index The index of the value to return. - * @return The bytes of the effectiveRoles at the given index. - */ - public com.google.protobuf.ByteString getEffectiveRolesBytes(int index) { - return effectiveRoles_.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(emailAddress_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, emailAddress_); - } - for (int i = 0; i < directRoles_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, directRoles_.getRaw(i)); - } - for (int i = 0; i < effectiveRoles_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, effectiveRoles_.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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(emailAddress_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, emailAddress_); - } - { - int dataSize = 0; - for (int i = 0; i < directRoles_.size(); i++) { - dataSize += computeStringSizeNoTag(directRoles_.getRaw(i)); - } - size += dataSize; - size += 1 * getDirectRolesList().size(); - } - { - int dataSize = 0; - for (int i = 0; i < effectiveRoles_.size(); i++) { - dataSize += computeStringSizeNoTag(effectiveRoles_.getRaw(i)); - } - size += dataSize; - size += 1 * getEffectiveRolesList().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.AuditUserLink)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.AuditUserLink other = - (com.google.analytics.admin.v1alpha.AuditUserLink) obj; - - if (!getName().equals(other.getName())) return false; - if (!getEmailAddress().equals(other.getEmailAddress())) return false; - if (!getDirectRolesList().equals(other.getDirectRolesList())) return false; - if (!getEffectiveRolesList().equals(other.getEffectiveRolesList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - 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_ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getEmailAddress().hashCode(); - if (getDirectRolesCount() > 0) { - hash = (37 * hash) + DIRECT_ROLES_FIELD_NUMBER; - hash = (53 * hash) + getDirectRolesList().hashCode(); - } - if (getEffectiveRolesCount() > 0) { - hash = (37 * hash) + EFFECTIVE_ROLES_FIELD_NUMBER; - hash = (53 * hash) + getEffectiveRolesList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.AuditUserLink parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.AuditUserLink parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.AuditUserLink parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.AuditUserLink parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.AuditUserLink parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.AuditUserLink parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.AuditUserLink parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.AuditUserLink parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.AuditUserLink parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.AuditUserLink parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.AuditUserLink parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.AuditUserLink parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.analytics.admin.v1alpha.AuditUserLink prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 used to summarize a principal's effective roles.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.AuditUserLink} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.AuditUserLink) - com.google.analytics.admin.v1alpha.AuditUserLinkOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.ResourcesProto - .internal_static_google_analytics_admin_v1alpha_AuditUserLink_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.ResourcesProto - .internal_static_google_analytics_admin_v1alpha_AuditUserLink_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.AuditUserLink.class, - com.google.analytics.admin.v1alpha.AuditUserLink.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.AuditUserLink.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - emailAddress_ = ""; - - directRoles_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - effectiveRoles_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - 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_AuditUserLink_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AuditUserLink getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.AuditUserLink.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AuditUserLink build() { - com.google.analytics.admin.v1alpha.AuditUserLink result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AuditUserLink buildPartial() { - com.google.analytics.admin.v1alpha.AuditUserLink result = - new com.google.analytics.admin.v1alpha.AuditUserLink(this); - int from_bitField0_ = bitField0_; - result.name_ = name_; - result.emailAddress_ = emailAddress_; - if (((bitField0_ & 0x00000001) != 0)) { - directRoles_ = directRoles_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.directRoles_ = directRoles_; - if (((bitField0_ & 0x00000002) != 0)) { - effectiveRoles_ = effectiveRoles_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.effectiveRoles_ = effectiveRoles_; - 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.AuditUserLink) { - return mergeFrom((com.google.analytics.admin.v1alpha.AuditUserLink) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.AuditUserLink other) { - if (other == com.google.analytics.admin.v1alpha.AuditUserLink.getDefaultInstance()) - return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (!other.getEmailAddress().isEmpty()) { - emailAddress_ = other.emailAddress_; - onChanged(); - } - if (!other.directRoles_.isEmpty()) { - if (directRoles_.isEmpty()) { - directRoles_ = other.directRoles_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureDirectRolesIsMutable(); - directRoles_.addAll(other.directRoles_); - } - onChanged(); - } - if (!other.effectiveRoles_.isEmpty()) { - if (effectiveRoles_.isEmpty()) { - effectiveRoles_ = other.effectiveRoles_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureEffectiveRolesIsMutable(); - effectiveRoles_.addAll(other.effectiveRoles_); - } - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 18: - { - emailAddress_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureDirectRolesIsMutable(); - directRoles_.add(s); - break; - } // case 26 - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureEffectiveRolesIsMutable(); - effectiveRoles_.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_ = ""; - /** - * - * - *
-     * Example format: properties/1234/userLinks/5678
-     * 
- * - * 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; - } - } - /** - * - * - *
-     * Example format: properties/1234/userLinks/5678
-     * 
- * - * 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; - } - } - /** - * - * - *
-     * Example format: properties/1234/userLinks/5678
-     * 
- * - * 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; - onChanged(); - return this; - } - /** - * - * - *
-     * Example format: properties/1234/userLinks/5678
-     * 
- * - * string name = 1; - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Example format: properties/1234/userLinks/5678
-     * 
- * - * 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; - onChanged(); - return this; - } - - private java.lang.Object emailAddress_ = ""; - /** - * - * - *
-     * Email address of the linked user
-     * 
- * - * string email_address = 2; - * - * @return The emailAddress. - */ - public java.lang.String getEmailAddress() { - java.lang.Object ref = emailAddress_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - emailAddress_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Email address of the linked user
-     * 
- * - * string email_address = 2; - * - * @return The bytes for emailAddress. - */ - public com.google.protobuf.ByteString getEmailAddressBytes() { - java.lang.Object ref = emailAddress_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - emailAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Email address of the linked user
-     * 
- * - * string email_address = 2; - * - * @param value The emailAddress to set. - * @return This builder for chaining. - */ - public Builder setEmailAddress(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - emailAddress_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Email address of the linked user
-     * 
- * - * string email_address = 2; - * - * @return This builder for chaining. - */ - public Builder clearEmailAddress() { - - emailAddress_ = getDefaultInstance().getEmailAddress(); - onChanged(); - return this; - } - /** - * - * - *
-     * Email address of the linked user
-     * 
- * - * string email_address = 2; - * - * @param value The bytes for emailAddress to set. - * @return This builder for chaining. - */ - public Builder setEmailAddressBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - emailAddress_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList directRoles_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureDirectRolesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - directRoles_ = new com.google.protobuf.LazyStringArrayList(directRoles_); - bitField0_ |= 0x00000001; - } - } - /** - * - * - *
-     * Roles directly assigned to this user for this entity.
-     * Format: predefinedRoles/viewer
-     * Excludes roles that are inherited from an account (if this is for a
-     * property), group, or organization admin role.
-     * 
- * - * repeated string direct_roles = 3; - * - * @return A list containing the directRoles. - */ - public com.google.protobuf.ProtocolStringList getDirectRolesList() { - return directRoles_.getUnmodifiableView(); - } - /** - * - * - *
-     * Roles directly assigned to this user for this entity.
-     * Format: predefinedRoles/viewer
-     * Excludes roles that are inherited from an account (if this is for a
-     * property), group, or organization admin role.
-     * 
- * - * repeated string direct_roles = 3; - * - * @return The count of directRoles. - */ - public int getDirectRolesCount() { - return directRoles_.size(); - } - /** - * - * - *
-     * Roles directly assigned to this user for this entity.
-     * Format: predefinedRoles/viewer
-     * Excludes roles that are inherited from an account (if this is for a
-     * property), group, or organization admin role.
-     * 
- * - * repeated string direct_roles = 3; - * - * @param index The index of the element to return. - * @return The directRoles at the given index. - */ - public java.lang.String getDirectRoles(int index) { - return directRoles_.get(index); - } - /** - * - * - *
-     * Roles directly assigned to this user for this entity.
-     * Format: predefinedRoles/viewer
-     * Excludes roles that are inherited from an account (if this is for a
-     * property), group, or organization admin role.
-     * 
- * - * repeated string direct_roles = 3; - * - * @param index The index of the value to return. - * @return The bytes of the directRoles at the given index. - */ - public com.google.protobuf.ByteString getDirectRolesBytes(int index) { - return directRoles_.getByteString(index); - } - /** - * - * - *
-     * Roles directly assigned to this user for this entity.
-     * Format: predefinedRoles/viewer
-     * Excludes roles that are inherited from an account (if this is for a
-     * property), group, or organization admin role.
-     * 
- * - * repeated string direct_roles = 3; - * - * @param index The index to set the value at. - * @param value The directRoles to set. - * @return This builder for chaining. - */ - public Builder setDirectRoles(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureDirectRolesIsMutable(); - directRoles_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * Roles directly assigned to this user for this entity.
-     * Format: predefinedRoles/viewer
-     * Excludes roles that are inherited from an account (if this is for a
-     * property), group, or organization admin role.
-     * 
- * - * repeated string direct_roles = 3; - * - * @param value The directRoles to add. - * @return This builder for chaining. - */ - public Builder addDirectRoles(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureDirectRolesIsMutable(); - directRoles_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * Roles directly assigned to this user for this entity.
-     * Format: predefinedRoles/viewer
-     * Excludes roles that are inherited from an account (if this is for a
-     * property), group, or organization admin role.
-     * 
- * - * repeated string direct_roles = 3; - * - * @param values The directRoles to add. - * @return This builder for chaining. - */ - public Builder addAllDirectRoles(java.lang.Iterable values) { - ensureDirectRolesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, directRoles_); - onChanged(); - return this; - } - /** - * - * - *
-     * Roles directly assigned to this user for this entity.
-     * Format: predefinedRoles/viewer
-     * Excludes roles that are inherited from an account (if this is for a
-     * property), group, or organization admin role.
-     * 
- * - * repeated string direct_roles = 3; - * - * @return This builder for chaining. - */ - public Builder clearDirectRoles() { - directRoles_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Roles directly assigned to this user for this entity.
-     * Format: predefinedRoles/viewer
-     * Excludes roles that are inherited from an account (if this is for a
-     * property), group, or organization admin role.
-     * 
- * - * repeated string direct_roles = 3; - * - * @param value The bytes of the directRoles to add. - * @return This builder for chaining. - */ - public Builder addDirectRolesBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureDirectRolesIsMutable(); - directRoles_.add(value); - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList effectiveRoles_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureEffectiveRolesIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - effectiveRoles_ = new com.google.protobuf.LazyStringArrayList(effectiveRoles_); - bitField0_ |= 0x00000002; - } - } - /** - * - * - *
-     * Union of all permissions a user has at this account or property (includes
-     * direct permissions, group-inherited permissions, etc.).
-     * Format: predefinedRoles/viewer
-     * 
- * - * repeated string effective_roles = 4; - * - * @return A list containing the effectiveRoles. - */ - public com.google.protobuf.ProtocolStringList getEffectiveRolesList() { - return effectiveRoles_.getUnmodifiableView(); - } - /** - * - * - *
-     * Union of all permissions a user has at this account or property (includes
-     * direct permissions, group-inherited permissions, etc.).
-     * Format: predefinedRoles/viewer
-     * 
- * - * repeated string effective_roles = 4; - * - * @return The count of effectiveRoles. - */ - public int getEffectiveRolesCount() { - return effectiveRoles_.size(); - } - /** - * - * - *
-     * Union of all permissions a user has at this account or property (includes
-     * direct permissions, group-inherited permissions, etc.).
-     * Format: predefinedRoles/viewer
-     * 
- * - * repeated string effective_roles = 4; - * - * @param index The index of the element to return. - * @return The effectiveRoles at the given index. - */ - public java.lang.String getEffectiveRoles(int index) { - return effectiveRoles_.get(index); - } - /** - * - * - *
-     * Union of all permissions a user has at this account or property (includes
-     * direct permissions, group-inherited permissions, etc.).
-     * Format: predefinedRoles/viewer
-     * 
- * - * repeated string effective_roles = 4; - * - * @param index The index of the value to return. - * @return The bytes of the effectiveRoles at the given index. - */ - public com.google.protobuf.ByteString getEffectiveRolesBytes(int index) { - return effectiveRoles_.getByteString(index); - } - /** - * - * - *
-     * Union of all permissions a user has at this account or property (includes
-     * direct permissions, group-inherited permissions, etc.).
-     * Format: predefinedRoles/viewer
-     * 
- * - * repeated string effective_roles = 4; - * - * @param index The index to set the value at. - * @param value The effectiveRoles to set. - * @return This builder for chaining. - */ - public Builder setEffectiveRoles(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureEffectiveRolesIsMutable(); - effectiveRoles_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * Union of all permissions a user has at this account or property (includes
-     * direct permissions, group-inherited permissions, etc.).
-     * Format: predefinedRoles/viewer
-     * 
- * - * repeated string effective_roles = 4; - * - * @param value The effectiveRoles to add. - * @return This builder for chaining. - */ - public Builder addEffectiveRoles(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureEffectiveRolesIsMutable(); - effectiveRoles_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * Union of all permissions a user has at this account or property (includes
-     * direct permissions, group-inherited permissions, etc.).
-     * Format: predefinedRoles/viewer
-     * 
- * - * repeated string effective_roles = 4; - * - * @param values The effectiveRoles to add. - * @return This builder for chaining. - */ - public Builder addAllEffectiveRoles(java.lang.Iterable values) { - ensureEffectiveRolesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, effectiveRoles_); - onChanged(); - return this; - } - /** - * - * - *
-     * Union of all permissions a user has at this account or property (includes
-     * direct permissions, group-inherited permissions, etc.).
-     * Format: predefinedRoles/viewer
-     * 
- * - * repeated string effective_roles = 4; - * - * @return This builder for chaining. - */ - public Builder clearEffectiveRoles() { - effectiveRoles_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * - * - *
-     * Union of all permissions a user has at this account or property (includes
-     * direct permissions, group-inherited permissions, etc.).
-     * Format: predefinedRoles/viewer
-     * 
- * - * repeated string effective_roles = 4; - * - * @param value The bytes of the effectiveRoles to add. - * @return This builder for chaining. - */ - public Builder addEffectiveRolesBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureEffectiveRolesIsMutable(); - effectiveRoles_.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.AuditUserLink) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AuditUserLink) - private static final com.google.analytics.admin.v1alpha.AuditUserLink DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.AuditUserLink(); - } - - public static com.google.analytics.admin.v1alpha.AuditUserLink getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AuditUserLink parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AuditUserLink getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AuditUserLinkOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AuditUserLinkOrBuilder.java deleted file mode 100644 index fa33e7f4..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AuditUserLinkOrBuilder.java +++ /dev/null @@ -1,197 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/resources.proto - -package com.google.analytics.admin.v1alpha; - -public interface AuditUserLinkOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.AuditUserLink) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Example format: properties/1234/userLinks/5678
-   * 
- * - * string name = 1; - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Example format: properties/1234/userLinks/5678
-   * 
- * - * string name = 1; - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-   * Email address of the linked user
-   * 
- * - * string email_address = 2; - * - * @return The emailAddress. - */ - java.lang.String getEmailAddress(); - /** - * - * - *
-   * Email address of the linked user
-   * 
- * - * string email_address = 2; - * - * @return The bytes for emailAddress. - */ - com.google.protobuf.ByteString getEmailAddressBytes(); - - /** - * - * - *
-   * Roles directly assigned to this user for this entity.
-   * Format: predefinedRoles/viewer
-   * Excludes roles that are inherited from an account (if this is for a
-   * property), group, or organization admin role.
-   * 
- * - * repeated string direct_roles = 3; - * - * @return A list containing the directRoles. - */ - java.util.List getDirectRolesList(); - /** - * - * - *
-   * Roles directly assigned to this user for this entity.
-   * Format: predefinedRoles/viewer
-   * Excludes roles that are inherited from an account (if this is for a
-   * property), group, or organization admin role.
-   * 
- * - * repeated string direct_roles = 3; - * - * @return The count of directRoles. - */ - int getDirectRolesCount(); - /** - * - * - *
-   * Roles directly assigned to this user for this entity.
-   * Format: predefinedRoles/viewer
-   * Excludes roles that are inherited from an account (if this is for a
-   * property), group, or organization admin role.
-   * 
- * - * repeated string direct_roles = 3; - * - * @param index The index of the element to return. - * @return The directRoles at the given index. - */ - java.lang.String getDirectRoles(int index); - /** - * - * - *
-   * Roles directly assigned to this user for this entity.
-   * Format: predefinedRoles/viewer
-   * Excludes roles that are inherited from an account (if this is for a
-   * property), group, or organization admin role.
-   * 
- * - * repeated string direct_roles = 3; - * - * @param index The index of the value to return. - * @return The bytes of the directRoles at the given index. - */ - com.google.protobuf.ByteString getDirectRolesBytes(int index); - - /** - * - * - *
-   * Union of all permissions a user has at this account or property (includes
-   * direct permissions, group-inherited permissions, etc.).
-   * Format: predefinedRoles/viewer
-   * 
- * - * repeated string effective_roles = 4; - * - * @return A list containing the effectiveRoles. - */ - java.util.List getEffectiveRolesList(); - /** - * - * - *
-   * Union of all permissions a user has at this account or property (includes
-   * direct permissions, group-inherited permissions, etc.).
-   * Format: predefinedRoles/viewer
-   * 
- * - * repeated string effective_roles = 4; - * - * @return The count of effectiveRoles. - */ - int getEffectiveRolesCount(); - /** - * - * - *
-   * Union of all permissions a user has at this account or property (includes
-   * direct permissions, group-inherited permissions, etc.).
-   * Format: predefinedRoles/viewer
-   * 
- * - * repeated string effective_roles = 4; - * - * @param index The index of the element to return. - * @return The effectiveRoles at the given index. - */ - java.lang.String getEffectiveRoles(int index); - /** - * - * - *
-   * Union of all permissions a user has at this account or property (includes
-   * direct permissions, group-inherited permissions, etc.).
-   * Format: predefinedRoles/viewer
-   * 
- * - * repeated string effective_roles = 4; - * - * @param index The index of the value to return. - * @return The bytes of the effectiveRoles at the given index. - */ - com.google.protobuf.ByteString getEffectiveRolesBytes(int index); -} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AuditUserLinksRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AuditUserLinksRequest.java deleted file mode 100644 index e9fdc845..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AuditUserLinksRequest.java +++ /dev/null @@ -1,932 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * Request message for AuditUserLinks RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.AuditUserLinksRequest} - */ -public final class AuditUserLinksRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AuditUserLinksRequest) - AuditUserLinksRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use AuditUserLinksRequest.newBuilder() to construct. - private AuditUserLinksRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private AuditUserLinksRequest() { - parent_ = ""; - pageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new AuditUserLinksRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_AuditUserLinksRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_AuditUserLinksRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.AuditUserLinksRequest.class, - com.google.analytics.admin.v1alpha.AuditUserLinksRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; - /** - * - * - *
-   * Required. Example format: accounts/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: accounts/1234
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PAGE_SIZE_FIELD_NUMBER = 2; - private int pageSize_; - /** - * - * - *
-   * The maximum number of user links to return.
-   * The service may return fewer than this value.
-   * If unspecified, at most 1000 user links will be returned.
-   * The maximum value is 5000; values above 5000 will be coerced to 5000.
-   * 
- * - * int32 page_size = 2; - * - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - - public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - private volatile java.lang.Object pageToken_; - /** - * - * - *
-   * A page token, received from a previous `AuditUserLinks` call.
-   * Provide this to retrieve the subsequent page.
-   * When paginating, all other parameters provided to `AuditUserLinks` 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 `AuditUserLinks` call.
-   * Provide this to retrieve the subsequent page.
-   * When paginating, all other parameters provided to `AuditUserLinks` 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.AuditUserLinksRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.AuditUserLinksRequest other = - (com.google.analytics.admin.v1alpha.AuditUserLinksRequest) 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.AuditUserLinksRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.AuditUserLinksRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.AuditUserLinksRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.AuditUserLinksRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.AuditUserLinksRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.AuditUserLinksRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.AuditUserLinksRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.AuditUserLinksRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.AuditUserLinksRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.AuditUserLinksRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.AuditUserLinksRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.AuditUserLinksRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.analytics.admin.v1alpha.AuditUserLinksRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Request message for AuditUserLinks RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.AuditUserLinksRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.AuditUserLinksRequest) - com.google.analytics.admin.v1alpha.AuditUserLinksRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_AuditUserLinksRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_AuditUserLinksRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.AuditUserLinksRequest.class, - com.google.analytics.admin.v1alpha.AuditUserLinksRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.AuditUserLinksRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - parent_ = ""; - - pageSize_ = 0; - - pageToken_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_AuditUserLinksRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AuditUserLinksRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.AuditUserLinksRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AuditUserLinksRequest build() { - com.google.analytics.admin.v1alpha.AuditUserLinksRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AuditUserLinksRequest buildPartial() { - com.google.analytics.admin.v1alpha.AuditUserLinksRequest result = - new com.google.analytics.admin.v1alpha.AuditUserLinksRequest(this); - result.parent_ = parent_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.AuditUserLinksRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.AuditUserLinksRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.AuditUserLinksRequest other) { - if (other == com.google.analytics.admin.v1alpha.AuditUserLinksRequest.getDefaultInstance()) - return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - onChanged(); - } - if (other.getPageSize() != 0) { - setPageSize(other.getPageSize()); - } - if (!other.getPageToken().isEmpty()) { - pageToken_ = other.pageToken_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - - 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 java.lang.Object parent_ = ""; - /** - * - * - *
-     * Required. Example format: accounts/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: accounts/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: accounts/1234
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - parent_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Example format: accounts/1234
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearParent() { - - parent_ = getDefaultInstance().getParent(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Example format: accounts/1234
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - parent_ = value; - onChanged(); - return this; - } - - private int pageSize_; - /** - * - * - *
-     * The maximum number of user links to return.
-     * The service may return fewer than this value.
-     * If unspecified, at most 1000 user links will be returned.
-     * The maximum value is 5000; values above 5000 will be coerced to 5000.
-     * 
- * - * int32 page_size = 2; - * - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - /** - * - * - *
-     * The maximum number of user links to return.
-     * The service may return fewer than this value.
-     * If unspecified, at most 1000 user links will be returned.
-     * The maximum value is 5000; values above 5000 will be coerced to 5000.
-     * 
- * - * int32 page_size = 2; - * - * @param value The pageSize to set. - * @return This builder for chaining. - */ - public Builder setPageSize(int value) { - - pageSize_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The maximum number of user links to return.
-     * The service may return fewer than this value.
-     * If unspecified, at most 1000 user links will be returned.
-     * The maximum value is 5000; values above 5000 will be coerced to 5000.
-     * 
- * - * int32 page_size = 2; - * - * @return This builder for chaining. - */ - public Builder clearPageSize() { - - pageSize_ = 0; - onChanged(); - return this; - } - - private java.lang.Object pageToken_ = ""; - /** - * - * - *
-     * A page token, received from a previous `AuditUserLinks` call.
-     * Provide this to retrieve the subsequent page.
-     * When paginating, all other parameters provided to `AuditUserLinks` 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 `AuditUserLinks` call.
-     * Provide this to retrieve the subsequent page.
-     * When paginating, all other parameters provided to `AuditUserLinks` 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 `AuditUserLinks` call.
-     * Provide this to retrieve the subsequent page.
-     * When paginating, all other parameters provided to `AuditUserLinks` must
-     * match the call that provided the page token.
-     * 
- * - * string page_token = 3; - * - * @param value The pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - pageToken_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * A page token, received from a previous `AuditUserLinks` call.
-     * Provide this to retrieve the subsequent page.
-     * When paginating, all other parameters provided to `AuditUserLinks` must
-     * match the call that provided the page token.
-     * 
- * - * string page_token = 3; - * - * @return This builder for chaining. - */ - public Builder clearPageToken() { - - pageToken_ = getDefaultInstance().getPageToken(); - onChanged(); - return this; - } - /** - * - * - *
-     * A page token, received from a previous `AuditUserLinks` call.
-     * Provide this to retrieve the subsequent page.
-     * When paginating, all other parameters provided to `AuditUserLinks` must
-     * match the call that provided the page token.
-     * 
- * - * string page_token = 3; - * - * @param value The bytes for pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - pageToken_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.AuditUserLinksRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AuditUserLinksRequest) - private static final com.google.analytics.admin.v1alpha.AuditUserLinksRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.AuditUserLinksRequest(); - } - - public static com.google.analytics.admin.v1alpha.AuditUserLinksRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AuditUserLinksRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AuditUserLinksRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AuditUserLinksRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AuditUserLinksRequestOrBuilder.java deleted file mode 100644 index f673fe5c..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AuditUserLinksRequestOrBuilder.java +++ /dev/null @@ -1,101 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface AuditUserLinksRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.AuditUserLinksRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Example format: accounts/1234
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * Required. Example format: accounts/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 user links to return.
-   * The service may return fewer than this value.
-   * If unspecified, at most 1000 user links will be returned.
-   * The maximum value is 5000; values above 5000 will be coerced to 5000.
-   * 
- * - * int32 page_size = 2; - * - * @return The pageSize. - */ - int getPageSize(); - - /** - * - * - *
-   * A page token, received from a previous `AuditUserLinks` call.
-   * Provide this to retrieve the subsequent page.
-   * When paginating, all other parameters provided to `AuditUserLinks` 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 `AuditUserLinks` call.
-   * Provide this to retrieve the subsequent page.
-   * When paginating, all other parameters provided to `AuditUserLinks` must
-   * match the call that provided the page token.
-   * 
- * - * string page_token = 3; - * - * @return The bytes for pageToken. - */ - com.google.protobuf.ByteString getPageTokenBytes(); -} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AuditUserLinksResponse.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AuditUserLinksResponse.java deleted file mode 100644 index eb2824e6..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AuditUserLinksResponse.java +++ /dev/null @@ -1,1140 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * Response message for AuditUserLinks RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.AuditUserLinksResponse} - */ -public final class AuditUserLinksResponse extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AuditUserLinksResponse) - AuditUserLinksResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use AuditUserLinksResponse.newBuilder() to construct. - private AuditUserLinksResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private AuditUserLinksResponse() { - userLinks_ = java.util.Collections.emptyList(); - nextPageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new AuditUserLinksResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_AuditUserLinksResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_AuditUserLinksResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.AuditUserLinksResponse.class, - com.google.analytics.admin.v1alpha.AuditUserLinksResponse.Builder.class); - } - - public static final int USER_LINKS_FIELD_NUMBER = 1; - private java.util.List userLinks_; - /** - * - * - *
-   * List of AuditUserLinks. These will be ordered stably, but in an arbitrary
-   * order.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AuditUserLink user_links = 1; - */ - @java.lang.Override - public java.util.List getUserLinksList() { - return userLinks_; - } - /** - * - * - *
-   * List of AuditUserLinks. These will be ordered stably, but in an arbitrary
-   * order.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AuditUserLink user_links = 1; - */ - @java.lang.Override - public java.util.List - getUserLinksOrBuilderList() { - return userLinks_; - } - /** - * - * - *
-   * List of AuditUserLinks. These will be ordered stably, but in an arbitrary
-   * order.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AuditUserLink user_links = 1; - */ - @java.lang.Override - public int getUserLinksCount() { - return userLinks_.size(); - } - /** - * - * - *
-   * List of AuditUserLinks. These will be ordered stably, but in an arbitrary
-   * order.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AuditUserLink user_links = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AuditUserLink getUserLinks(int index) { - return userLinks_.get(index); - } - /** - * - * - *
-   * List of AuditUserLinks. These will be ordered stably, but in an arbitrary
-   * order.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AuditUserLink user_links = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AuditUserLinkOrBuilder getUserLinksOrBuilder( - int index) { - return userLinks_.get(index); - } - - public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; - /** - * - * - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * - * @return The nextPageToken. - */ - @java.lang.Override - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } - } - /** - * - * - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * - * @return The bytes for nextPageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - for (int i = 0; i < userLinks_.size(); i++) { - output.writeMessage(1, userLinks_.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 < userLinks_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, userLinks_.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.AuditUserLinksResponse)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.AuditUserLinksResponse other = - (com.google.analytics.admin.v1alpha.AuditUserLinksResponse) obj; - - if (!getUserLinksList().equals(other.getUserLinksList())) 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 (getUserLinksCount() > 0) { - hash = (37 * hash) + USER_LINKS_FIELD_NUMBER; - hash = (53 * hash) + getUserLinksList().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.AuditUserLinksResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.AuditUserLinksResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.AuditUserLinksResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.AuditUserLinksResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.AuditUserLinksResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.AuditUserLinksResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.AuditUserLinksResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.AuditUserLinksResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.AuditUserLinksResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.AuditUserLinksResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.AuditUserLinksResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.AuditUserLinksResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.analytics.admin.v1alpha.AuditUserLinksResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 AuditUserLinks RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.AuditUserLinksResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.AuditUserLinksResponse) - com.google.analytics.admin.v1alpha.AuditUserLinksResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_AuditUserLinksResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_AuditUserLinksResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.AuditUserLinksResponse.class, - com.google.analytics.admin.v1alpha.AuditUserLinksResponse.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.AuditUserLinksResponse.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (userLinksBuilder_ == null) { - userLinks_ = java.util.Collections.emptyList(); - } else { - userLinks_ = null; - userLinksBuilder_.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_AuditUserLinksResponse_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AuditUserLinksResponse getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.AuditUserLinksResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AuditUserLinksResponse build() { - com.google.analytics.admin.v1alpha.AuditUserLinksResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AuditUserLinksResponse buildPartial() { - com.google.analytics.admin.v1alpha.AuditUserLinksResponse result = - new com.google.analytics.admin.v1alpha.AuditUserLinksResponse(this); - int from_bitField0_ = bitField0_; - if (userLinksBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - userLinks_ = java.util.Collections.unmodifiableList(userLinks_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.userLinks_ = userLinks_; - } else { - result.userLinks_ = userLinksBuilder_.build(); - } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.AuditUserLinksResponse) { - return mergeFrom((com.google.analytics.admin.v1alpha.AuditUserLinksResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.AuditUserLinksResponse other) { - if (other == com.google.analytics.admin.v1alpha.AuditUserLinksResponse.getDefaultInstance()) - return this; - if (userLinksBuilder_ == null) { - if (!other.userLinks_.isEmpty()) { - if (userLinks_.isEmpty()) { - userLinks_ = other.userLinks_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureUserLinksIsMutable(); - userLinks_.addAll(other.userLinks_); - } - onChanged(); - } - } else { - if (!other.userLinks_.isEmpty()) { - if (userLinksBuilder_.isEmpty()) { - userLinksBuilder_.dispose(); - userLinksBuilder_ = null; - userLinks_ = other.userLinks_; - bitField0_ = (bitField0_ & ~0x00000001); - userLinksBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getUserLinksFieldBuilder() - : null; - } else { - userLinksBuilder_.addAllMessages(other.userLinks_); - } - } - } - if (!other.getNextPageToken().isEmpty()) { - nextPageToken_ = other.nextPageToken_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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.AuditUserLink m = - input.readMessage( - com.google.analytics.admin.v1alpha.AuditUserLink.parser(), - extensionRegistry); - if (userLinksBuilder_ == null) { - ensureUserLinksIsMutable(); - userLinks_.add(m); - } else { - userLinksBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // 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 userLinks_ = - java.util.Collections.emptyList(); - - private void ensureUserLinksIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - userLinks_ = - new java.util.ArrayList(userLinks_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.AuditUserLink, - com.google.analytics.admin.v1alpha.AuditUserLink.Builder, - com.google.analytics.admin.v1alpha.AuditUserLinkOrBuilder> - userLinksBuilder_; - - /** - * - * - *
-     * List of AuditUserLinks. These will be ordered stably, but in an arbitrary
-     * order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AuditUserLink user_links = 1; - */ - public java.util.List getUserLinksList() { - if (userLinksBuilder_ == null) { - return java.util.Collections.unmodifiableList(userLinks_); - } else { - return userLinksBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * List of AuditUserLinks. These will be ordered stably, but in an arbitrary
-     * order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AuditUserLink user_links = 1; - */ - public int getUserLinksCount() { - if (userLinksBuilder_ == null) { - return userLinks_.size(); - } else { - return userLinksBuilder_.getCount(); - } - } - /** - * - * - *
-     * List of AuditUserLinks. These will be ordered stably, but in an arbitrary
-     * order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AuditUserLink user_links = 1; - */ - public com.google.analytics.admin.v1alpha.AuditUserLink getUserLinks(int index) { - if (userLinksBuilder_ == null) { - return userLinks_.get(index); - } else { - return userLinksBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * List of AuditUserLinks. These will be ordered stably, but in an arbitrary
-     * order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AuditUserLink user_links = 1; - */ - public Builder setUserLinks(int index, com.google.analytics.admin.v1alpha.AuditUserLink value) { - if (userLinksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureUserLinksIsMutable(); - userLinks_.set(index, value); - onChanged(); - } else { - userLinksBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * List of AuditUserLinks. These will be ordered stably, but in an arbitrary
-     * order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AuditUserLink user_links = 1; - */ - public Builder setUserLinks( - int index, com.google.analytics.admin.v1alpha.AuditUserLink.Builder builderForValue) { - if (userLinksBuilder_ == null) { - ensureUserLinksIsMutable(); - userLinks_.set(index, builderForValue.build()); - onChanged(); - } else { - userLinksBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * List of AuditUserLinks. These will be ordered stably, but in an arbitrary
-     * order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AuditUserLink user_links = 1; - */ - public Builder addUserLinks(com.google.analytics.admin.v1alpha.AuditUserLink value) { - if (userLinksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureUserLinksIsMutable(); - userLinks_.add(value); - onChanged(); - } else { - userLinksBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * List of AuditUserLinks. These will be ordered stably, but in an arbitrary
-     * order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AuditUserLink user_links = 1; - */ - public Builder addUserLinks(int index, com.google.analytics.admin.v1alpha.AuditUserLink value) { - if (userLinksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureUserLinksIsMutable(); - userLinks_.add(index, value); - onChanged(); - } else { - userLinksBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * List of AuditUserLinks. These will be ordered stably, but in an arbitrary
-     * order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AuditUserLink user_links = 1; - */ - public Builder addUserLinks( - com.google.analytics.admin.v1alpha.AuditUserLink.Builder builderForValue) { - if (userLinksBuilder_ == null) { - ensureUserLinksIsMutable(); - userLinks_.add(builderForValue.build()); - onChanged(); - } else { - userLinksBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * List of AuditUserLinks. These will be ordered stably, but in an arbitrary
-     * order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AuditUserLink user_links = 1; - */ - public Builder addUserLinks( - int index, com.google.analytics.admin.v1alpha.AuditUserLink.Builder builderForValue) { - if (userLinksBuilder_ == null) { - ensureUserLinksIsMutable(); - userLinks_.add(index, builderForValue.build()); - onChanged(); - } else { - userLinksBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * List of AuditUserLinks. These will be ordered stably, but in an arbitrary
-     * order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AuditUserLink user_links = 1; - */ - public Builder addAllUserLinks( - java.lang.Iterable values) { - if (userLinksBuilder_ == null) { - ensureUserLinksIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, userLinks_); - onChanged(); - } else { - userLinksBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * List of AuditUserLinks. These will be ordered stably, but in an arbitrary
-     * order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AuditUserLink user_links = 1; - */ - public Builder clearUserLinks() { - if (userLinksBuilder_ == null) { - userLinks_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - userLinksBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * List of AuditUserLinks. These will be ordered stably, but in an arbitrary
-     * order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AuditUserLink user_links = 1; - */ - public Builder removeUserLinks(int index) { - if (userLinksBuilder_ == null) { - ensureUserLinksIsMutable(); - userLinks_.remove(index); - onChanged(); - } else { - userLinksBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * List of AuditUserLinks. These will be ordered stably, but in an arbitrary
-     * order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AuditUserLink user_links = 1; - */ - public com.google.analytics.admin.v1alpha.AuditUserLink.Builder getUserLinksBuilder(int index) { - return getUserLinksFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * List of AuditUserLinks. These will be ordered stably, but in an arbitrary
-     * order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AuditUserLink user_links = 1; - */ - public com.google.analytics.admin.v1alpha.AuditUserLinkOrBuilder getUserLinksOrBuilder( - int index) { - if (userLinksBuilder_ == null) { - return userLinks_.get(index); - } else { - return userLinksBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * List of AuditUserLinks. These will be ordered stably, but in an arbitrary
-     * order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AuditUserLink user_links = 1; - */ - public java.util.List - getUserLinksOrBuilderList() { - if (userLinksBuilder_ != null) { - return userLinksBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(userLinks_); - } - } - /** - * - * - *
-     * List of AuditUserLinks. These will be ordered stably, but in an arbitrary
-     * order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AuditUserLink user_links = 1; - */ - public com.google.analytics.admin.v1alpha.AuditUserLink.Builder addUserLinksBuilder() { - return getUserLinksFieldBuilder() - .addBuilder(com.google.analytics.admin.v1alpha.AuditUserLink.getDefaultInstance()); - } - /** - * - * - *
-     * List of AuditUserLinks. These will be ordered stably, but in an arbitrary
-     * order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AuditUserLink user_links = 1; - */ - public com.google.analytics.admin.v1alpha.AuditUserLink.Builder addUserLinksBuilder(int index) { - return getUserLinksFieldBuilder() - .addBuilder(index, com.google.analytics.admin.v1alpha.AuditUserLink.getDefaultInstance()); - } - /** - * - * - *
-     * List of AuditUserLinks. These will be ordered stably, but in an arbitrary
-     * order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AuditUserLink user_links = 1; - */ - public java.util.List - getUserLinksBuilderList() { - return getUserLinksFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.AuditUserLink, - com.google.analytics.admin.v1alpha.AuditUserLink.Builder, - com.google.analytics.admin.v1alpha.AuditUserLinkOrBuilder> - getUserLinksFieldBuilder() { - if (userLinksBuilder_ == null) { - userLinksBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.AuditUserLink, - com.google.analytics.admin.v1alpha.AuditUserLink.Builder, - com.google.analytics.admin.v1alpha.AuditUserLinkOrBuilder>( - userLinks_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); - userLinks_ = null; - } - return userLinksBuilder_; - } - - private java.lang.Object nextPageToken_ = ""; - /** - * - * - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * - * @return The nextPageToken. - */ - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * - * @return The bytes for nextPageToken. - */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * - * @param value The nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - nextPageToken_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * - * @return This builder for chaining. - */ - public Builder clearNextPageToken() { - - nextPageToken_ = getDefaultInstance().getNextPageToken(); - onChanged(); - return this; - } - /** - * - * - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * - * @param value The bytes for nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - nextPageToken_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.AuditUserLinksResponse) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AuditUserLinksResponse) - private static final com.google.analytics.admin.v1alpha.AuditUserLinksResponse DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.AuditUserLinksResponse(); - } - - public static com.google.analytics.admin.v1alpha.AuditUserLinksResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AuditUserLinksResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AuditUserLinksResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AuditUserLinksResponseOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AuditUserLinksResponseOrBuilder.java deleted file mode 100644 index 6f0caa45..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AuditUserLinksResponseOrBuilder.java +++ /dev/null @@ -1,109 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface AuditUserLinksResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.AuditUserLinksResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * List of AuditUserLinks. These will be ordered stably, but in an arbitrary
-   * order.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AuditUserLink user_links = 1; - */ - java.util.List getUserLinksList(); - /** - * - * - *
-   * List of AuditUserLinks. These will be ordered stably, but in an arbitrary
-   * order.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AuditUserLink user_links = 1; - */ - com.google.analytics.admin.v1alpha.AuditUserLink getUserLinks(int index); - /** - * - * - *
-   * List of AuditUserLinks. These will be ordered stably, but in an arbitrary
-   * order.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AuditUserLink user_links = 1; - */ - int getUserLinksCount(); - /** - * - * - *
-   * List of AuditUserLinks. These will be ordered stably, but in an arbitrary
-   * order.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AuditUserLink user_links = 1; - */ - java.util.List - getUserLinksOrBuilderList(); - /** - * - * - *
-   * List of AuditUserLinks. These will be ordered stably, but in an arbitrary
-   * order.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AuditUserLink user_links = 1; - */ - com.google.analytics.admin.v1alpha.AuditUserLinkOrBuilder getUserLinksOrBuilder(int index); - - /** - * - * - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * - * @return The nextPageToken. - */ - java.lang.String getNextPageToken(); - /** - * - * - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * - * @return The bytes for nextPageToken. - */ - com.google.protobuf.ByteString getNextPageTokenBytes(); -} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchCreateUserLinksRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchCreateUserLinksRequest.java deleted file mode 100644 index 3f67b567..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchCreateUserLinksRequest.java +++ /dev/null @@ -1,1331 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * Request message for BatchCreateUserLinks RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.BatchCreateUserLinksRequest} - */ -public final class BatchCreateUserLinksRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.BatchCreateUserLinksRequest) - BatchCreateUserLinksRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use BatchCreateUserLinksRequest.newBuilder() to construct. - private BatchCreateUserLinksRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private BatchCreateUserLinksRequest() { - parent_ = ""; - requests_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new BatchCreateUserLinksRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_BatchCreateUserLinksRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_BatchCreateUserLinksRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest.class, - com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; - /** - * - * - *
-   * Required. The account or property that all user links in the request are for.
-   * This field is required. The parent field in the CreateUserLinkRequest
-   * messages must either be empty or match this field.
-   * Example format: accounts/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 account or property that all user links in the request are for.
-   * This field is required. The parent field in the CreateUserLinkRequest
-   * messages must either be empty or match this field.
-   * Example format: accounts/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 NOTIFY_NEW_USERS_FIELD_NUMBER = 2; - private boolean notifyNewUsers_; - /** - * - * - *
-   * Optional. If set, then email the new users notifying them that they've been granted
-   * permissions to the resource. Regardless of whether this is set or not,
-   * notify_new_user field inside each individual request is ignored.
-   * 
- * - * bool notify_new_users = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The notifyNewUsers. - */ - @java.lang.Override - public boolean getNotifyNewUsers() { - return notifyNewUsers_; - } - - public static final int REQUESTS_FIELD_NUMBER = 3; - private java.util.List requests_; - /** - * - * - *
-   * Required. The requests specifying the user links to create.
-   * A maximum of 1000 user links can be created in a batch.
-   * 
- * - * - * repeated .google.analytics.admin.v1alpha.CreateUserLinkRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public java.util.List - getRequestsList() { - return requests_; - } - /** - * - * - *
-   * Required. The requests specifying the user links to create.
-   * A maximum of 1000 user links can be created in a batch.
-   * 
- * - * - * repeated .google.analytics.admin.v1alpha.CreateUserLinkRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public java.util.List - getRequestsOrBuilderList() { - return requests_; - } - /** - * - * - *
-   * Required. The requests specifying the user links to create.
-   * A maximum of 1000 user links can be created in a batch.
-   * 
- * - * - * repeated .google.analytics.admin.v1alpha.CreateUserLinkRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public int getRequestsCount() { - return requests_.size(); - } - /** - * - * - *
-   * Required. The requests specifying the user links to create.
-   * A maximum of 1000 user links can be created in a batch.
-   * 
- * - * - * repeated .google.analytics.admin.v1alpha.CreateUserLinkRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.CreateUserLinkRequest getRequests(int index) { - return requests_.get(index); - } - /** - * - * - *
-   * Required. The requests specifying the user links to create.
-   * A maximum of 1000 user links can be created in a batch.
-   * 
- * - * - * repeated .google.analytics.admin.v1alpha.CreateUserLinkRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.CreateUserLinkRequestOrBuilder 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_); - } - if (notifyNewUsers_ != false) { - output.writeBool(2, notifyNewUsers_); - } - 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_); - } - if (notifyNewUsers_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, notifyNewUsers_); - } - 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.BatchCreateUserLinksRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest other = - (com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (getNotifyNewUsers() != other.getNotifyNewUsers()) 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(); - hash = (37 * hash) + NOTIFY_NEW_USERS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getNotifyNewUsers()); - 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.BatchCreateUserLinksRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Request message for BatchCreateUserLinks RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.BatchCreateUserLinksRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.BatchCreateUserLinksRequest) - com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_BatchCreateUserLinksRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_BatchCreateUserLinksRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest.class, - com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - parent_ = ""; - - notifyNewUsers_ = false; - - if (requestsBuilder_ == null) { - requests_ = java.util.Collections.emptyList(); - } else { - requests_ = null; - requestsBuilder_.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_BatchCreateUserLinksRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest - getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest build() { - com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest buildPartial() { - com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest result = - new com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest(this); - int from_bitField0_ = bitField0_; - result.parent_ = parent_; - result.notifyNewUsers_ = notifyNewUsers_; - if (requestsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - requests_ = java.util.Collections.unmodifiableList(requests_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.requests_ = requests_; - } else { - result.requests_ = requestsBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest other) { - if (other - == com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest.getDefaultInstance()) - return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - onChanged(); - } - if (other.getNotifyNewUsers() != false) { - setNotifyNewUsers(other.getNotifyNewUsers()); - } - if (requestsBuilder_ == null) { - if (!other.requests_.isEmpty()) { - if (requests_.isEmpty()) { - requests_ = other.requests_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureRequestsIsMutable(); - requests_.addAll(other.requests_); - } - onChanged(); - } - } else { - if (!other.requests_.isEmpty()) { - if (requestsBuilder_.isEmpty()) { - requestsBuilder_.dispose(); - requestsBuilder_ = null; - requests_ = other.requests_; - bitField0_ = (bitField0_ & ~0x00000001); - 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(); - - break; - } // case 10 - case 16: - { - notifyNewUsers_ = input.readBool(); - - break; - } // case 16 - case 26: - { - com.google.analytics.admin.v1alpha.CreateUserLinkRequest m = - input.readMessage( - com.google.analytics.admin.v1alpha.CreateUserLinkRequest.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 all user links in the request are for.
-     * This field is required. The parent field in the CreateUserLinkRequest
-     * messages must either be empty or match this field.
-     * Example format: accounts/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 account or property that all user links in the request are for.
-     * This field is required. The parent field in the CreateUserLinkRequest
-     * messages must either be empty or match this field.
-     * Example format: accounts/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 account or property that all user links in the request are for.
-     * This field is required. The parent field in the CreateUserLinkRequest
-     * messages must either be empty or match this field.
-     * Example format: accounts/1234
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - parent_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The account or property that all user links in the request are for.
-     * This field is required. The parent field in the CreateUserLinkRequest
-     * messages must either be empty or match this field.
-     * Example format: accounts/1234
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearParent() { - - parent_ = getDefaultInstance().getParent(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The account or property that all user links in the request are for.
-     * This field is required. The parent field in the CreateUserLinkRequest
-     * messages must either be empty or match this field.
-     * Example format: accounts/1234
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - parent_ = value; - onChanged(); - return this; - } - - private boolean notifyNewUsers_; - /** - * - * - *
-     * Optional. If set, then email the new users notifying them that they've been granted
-     * permissions to the resource. Regardless of whether this is set or not,
-     * notify_new_user field inside each individual request is ignored.
-     * 
- * - * bool notify_new_users = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The notifyNewUsers. - */ - @java.lang.Override - public boolean getNotifyNewUsers() { - return notifyNewUsers_; - } - /** - * - * - *
-     * Optional. If set, then email the new users notifying them that they've been granted
-     * permissions to the resource. Regardless of whether this is set or not,
-     * notify_new_user field inside each individual request is ignored.
-     * 
- * - * bool notify_new_users = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The notifyNewUsers to set. - * @return This builder for chaining. - */ - public Builder setNotifyNewUsers(boolean value) { - - notifyNewUsers_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. If set, then email the new users notifying them that they've been granted
-     * permissions to the resource. Regardless of whether this is set or not,
-     * notify_new_user field inside each individual request is ignored.
-     * 
- * - * bool notify_new_users = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearNotifyNewUsers() { - - notifyNewUsers_ = false; - onChanged(); - return this; - } - - private java.util.List requests_ = - java.util.Collections.emptyList(); - - private void ensureRequestsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - requests_ = - new java.util.ArrayList( - requests_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.CreateUserLinkRequest, - com.google.analytics.admin.v1alpha.CreateUserLinkRequest.Builder, - com.google.analytics.admin.v1alpha.CreateUserLinkRequestOrBuilder> - requestsBuilder_; - - /** - * - * - *
-     * Required. The requests specifying the user links to create.
-     * A maximum of 1000 user links can be created in a batch.
-     * 
- * - * - * repeated .google.analytics.admin.v1alpha.CreateUserLinkRequest 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 user links to create.
-     * A maximum of 1000 user links can be created in a batch.
-     * 
- * - * - * repeated .google.analytics.admin.v1alpha.CreateUserLinkRequest 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 user links to create.
-     * A maximum of 1000 user links can be created in a batch.
-     * 
- * - * - * repeated .google.analytics.admin.v1alpha.CreateUserLinkRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.analytics.admin.v1alpha.CreateUserLinkRequest getRequests(int index) { - if (requestsBuilder_ == null) { - return requests_.get(index); - } else { - return requestsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * Required. The requests specifying the user links to create.
-     * A maximum of 1000 user links can be created in a batch.
-     * 
- * - * - * repeated .google.analytics.admin.v1alpha.CreateUserLinkRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setRequests( - int index, com.google.analytics.admin.v1alpha.CreateUserLinkRequest 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 user links to create.
-     * A maximum of 1000 user links can be created in a batch.
-     * 
- * - * - * repeated .google.analytics.admin.v1alpha.CreateUserLinkRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setRequests( - int index, - com.google.analytics.admin.v1alpha.CreateUserLinkRequest.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 user links to create.
-     * A maximum of 1000 user links can be created in a batch.
-     * 
- * - * - * repeated .google.analytics.admin.v1alpha.CreateUserLinkRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder addRequests(com.google.analytics.admin.v1alpha.CreateUserLinkRequest 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 user links to create.
-     * A maximum of 1000 user links can be created in a batch.
-     * 
- * - * - * repeated .google.analytics.admin.v1alpha.CreateUserLinkRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder addRequests( - int index, com.google.analytics.admin.v1alpha.CreateUserLinkRequest 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 user links to create.
-     * A maximum of 1000 user links can be created in a batch.
-     * 
- * - * - * repeated .google.analytics.admin.v1alpha.CreateUserLinkRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder addRequests( - com.google.analytics.admin.v1alpha.CreateUserLinkRequest.Builder builderForValue) { - if (requestsBuilder_ == null) { - ensureRequestsIsMutable(); - requests_.add(builderForValue.build()); - onChanged(); - } else { - requestsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Required. The requests specifying the user links to create.
-     * A maximum of 1000 user links can be created in a batch.
-     * 
- * - * - * repeated .google.analytics.admin.v1alpha.CreateUserLinkRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder addRequests( - int index, - com.google.analytics.admin.v1alpha.CreateUserLinkRequest.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 user links to create.
-     * A maximum of 1000 user links can be created in a batch.
-     * 
- * - * - * repeated .google.analytics.admin.v1alpha.CreateUserLinkRequest 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 user links to create.
-     * A maximum of 1000 user links can be created in a batch.
-     * 
- * - * - * repeated .google.analytics.admin.v1alpha.CreateUserLinkRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearRequests() { - if (requestsBuilder_ == null) { - requests_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - requestsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Required. The requests specifying the user links to create.
-     * A maximum of 1000 user links can be created in a batch.
-     * 
- * - * - * repeated .google.analytics.admin.v1alpha.CreateUserLinkRequest 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 user links to create.
-     * A maximum of 1000 user links can be created in a batch.
-     * 
- * - * - * repeated .google.analytics.admin.v1alpha.CreateUserLinkRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.analytics.admin.v1alpha.CreateUserLinkRequest.Builder getRequestsBuilder( - int index) { - return getRequestsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * Required. The requests specifying the user links to create.
-     * A maximum of 1000 user links can be created in a batch.
-     * 
- * - * - * repeated .google.analytics.admin.v1alpha.CreateUserLinkRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.analytics.admin.v1alpha.CreateUserLinkRequestOrBuilder getRequestsOrBuilder( - int index) { - if (requestsBuilder_ == null) { - return requests_.get(index); - } else { - return requestsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * Required. The requests specifying the user links to create.
-     * A maximum of 1000 user links can be created in a batch.
-     * 
- * - * - * repeated .google.analytics.admin.v1alpha.CreateUserLinkRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public java.util.List< - ? extends com.google.analytics.admin.v1alpha.CreateUserLinkRequestOrBuilder> - getRequestsOrBuilderList() { - if (requestsBuilder_ != null) { - return requestsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(requests_); - } - } - /** - * - * - *
-     * Required. The requests specifying the user links to create.
-     * A maximum of 1000 user links can be created in a batch.
-     * 
- * - * - * repeated .google.analytics.admin.v1alpha.CreateUserLinkRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.analytics.admin.v1alpha.CreateUserLinkRequest.Builder addRequestsBuilder() { - return getRequestsFieldBuilder() - .addBuilder( - com.google.analytics.admin.v1alpha.CreateUserLinkRequest.getDefaultInstance()); - } - /** - * - * - *
-     * Required. The requests specifying the user links to create.
-     * A maximum of 1000 user links can be created in a batch.
-     * 
- * - * - * repeated .google.analytics.admin.v1alpha.CreateUserLinkRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.analytics.admin.v1alpha.CreateUserLinkRequest.Builder addRequestsBuilder( - int index) { - return getRequestsFieldBuilder() - .addBuilder( - index, com.google.analytics.admin.v1alpha.CreateUserLinkRequest.getDefaultInstance()); - } - /** - * - * - *
-     * Required. The requests specifying the user links to create.
-     * A maximum of 1000 user links can be created in a batch.
-     * 
- * - * - * repeated .google.analytics.admin.v1alpha.CreateUserLinkRequest 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.CreateUserLinkRequest, - com.google.analytics.admin.v1alpha.CreateUserLinkRequest.Builder, - com.google.analytics.admin.v1alpha.CreateUserLinkRequestOrBuilder> - getRequestsFieldBuilder() { - if (requestsBuilder_ == null) { - requestsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.CreateUserLinkRequest, - com.google.analytics.admin.v1alpha.CreateUserLinkRequest.Builder, - com.google.analytics.admin.v1alpha.CreateUserLinkRequestOrBuilder>( - requests_, ((bitField0_ & 0x00000001) != 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.BatchCreateUserLinksRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.BatchCreateUserLinksRequest) - private static final com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest(); - } - - public static com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BatchCreateUserLinksRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchCreateUserLinksRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchCreateUserLinksRequestOrBuilder.java deleted file mode 100644 index e44710fe..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchCreateUserLinksRequestOrBuilder.java +++ /dev/null @@ -1,142 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface BatchCreateUserLinksRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.BatchCreateUserLinksRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The account or property that all user links in the request are for.
-   * This field is required. The parent field in the CreateUserLinkRequest
-   * messages must either be empty or match this field.
-   * Example format: accounts/1234
-   * 
- * - * - * 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 all user links in the request are for.
-   * This field is required. The parent field in the CreateUserLinkRequest
-   * messages must either be empty or match this field.
-   * Example format: accounts/1234
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); - - /** - * - * - *
-   * Optional. If set, then email the new users notifying them that they've been granted
-   * permissions to the resource. Regardless of whether this is set or not,
-   * notify_new_user field inside each individual request is ignored.
-   * 
- * - * bool notify_new_users = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The notifyNewUsers. - */ - boolean getNotifyNewUsers(); - - /** - * - * - *
-   * Required. The requests specifying the user links to create.
-   * A maximum of 1000 user links can be created in a batch.
-   * 
- * - * - * repeated .google.analytics.admin.v1alpha.CreateUserLinkRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - java.util.List getRequestsList(); - /** - * - * - *
-   * Required. The requests specifying the user links to create.
-   * A maximum of 1000 user links can be created in a batch.
-   * 
- * - * - * repeated .google.analytics.admin.v1alpha.CreateUserLinkRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.analytics.admin.v1alpha.CreateUserLinkRequest getRequests(int index); - /** - * - * - *
-   * Required. The requests specifying the user links to create.
-   * A maximum of 1000 user links can be created in a batch.
-   * 
- * - * - * repeated .google.analytics.admin.v1alpha.CreateUserLinkRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - int getRequestsCount(); - /** - * - * - *
-   * Required. The requests specifying the user links to create.
-   * A maximum of 1000 user links can be created in a batch.
-   * 
- * - * - * repeated .google.analytics.admin.v1alpha.CreateUserLinkRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - java.util.List - getRequestsOrBuilderList(); - /** - * - * - *
-   * Required. The requests specifying the user links to create.
-   * A maximum of 1000 user links can be created in a batch.
-   * 
- * - * - * repeated .google.analytics.admin.v1alpha.CreateUserLinkRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.analytics.admin.v1alpha.CreateUserLinkRequestOrBuilder getRequestsOrBuilder(int index); -} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchCreateUserLinksResponse.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchCreateUserLinksResponse.java deleted file mode 100644 index abdef8fb..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchCreateUserLinksResponse.java +++ /dev/null @@ -1,935 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * Response message for BatchCreateUserLinks RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.BatchCreateUserLinksResponse} - */ -public final class BatchCreateUserLinksResponse extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.BatchCreateUserLinksResponse) - BatchCreateUserLinksResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use BatchCreateUserLinksResponse.newBuilder() to construct. - private BatchCreateUserLinksResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private BatchCreateUserLinksResponse() { - userLinks_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new BatchCreateUserLinksResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_BatchCreateUserLinksResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_BatchCreateUserLinksResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse.class, - com.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse.Builder.class); - } - - public static final int USER_LINKS_FIELD_NUMBER = 1; - private java.util.List userLinks_; - /** - * - * - *
-   * The user links created.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - @java.lang.Override - public java.util.List getUserLinksList() { - return userLinks_; - } - /** - * - * - *
-   * The user links created.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - @java.lang.Override - public java.util.List - getUserLinksOrBuilderList() { - return userLinks_; - } - /** - * - * - *
-   * The user links created.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - @java.lang.Override - public int getUserLinksCount() { - return userLinks_.size(); - } - /** - * - * - *
-   * The user links created.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.UserLink getUserLinks(int index) { - return userLinks_.get(index); - } - /** - * - * - *
-   * The user links created.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.UserLinkOrBuilder getUserLinksOrBuilder(int index) { - return userLinks_.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 < userLinks_.size(); i++) { - output.writeMessage(1, userLinks_.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 < userLinks_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, userLinks_.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.BatchCreateUserLinksResponse)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse other = - (com.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse) obj; - - if (!getUserLinksList().equals(other.getUserLinksList())) return false; - if (!getUnknownFields().equals(other.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 (getUserLinksCount() > 0) { - hash = (37 * hash) + USER_LINKS_FIELD_NUMBER; - hash = (53 * hash) + getUserLinksList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 BatchCreateUserLinks RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.BatchCreateUserLinksResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.BatchCreateUserLinksResponse) - com.google.analytics.admin.v1alpha.BatchCreateUserLinksResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_BatchCreateUserLinksResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_BatchCreateUserLinksResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse.class, - com.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (userLinksBuilder_ == null) { - userLinks_ = java.util.Collections.emptyList(); - } else { - userLinks_ = null; - userLinksBuilder_.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_BatchCreateUserLinksResponse_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse - getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse build() { - com.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse buildPartial() { - com.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse result = - new com.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse(this); - int from_bitField0_ = bitField0_; - if (userLinksBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - userLinks_ = java.util.Collections.unmodifiableList(userLinks_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.userLinks_ = userLinks_; - } else { - result.userLinks_ = userLinksBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse) { - return mergeFrom((com.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse other) { - if (other - == com.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse.getDefaultInstance()) - return this; - if (userLinksBuilder_ == null) { - if (!other.userLinks_.isEmpty()) { - if (userLinks_.isEmpty()) { - userLinks_ = other.userLinks_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureUserLinksIsMutable(); - userLinks_.addAll(other.userLinks_); - } - onChanged(); - } - } else { - if (!other.userLinks_.isEmpty()) { - if (userLinksBuilder_.isEmpty()) { - userLinksBuilder_.dispose(); - userLinksBuilder_ = null; - userLinks_ = other.userLinks_; - bitField0_ = (bitField0_ & ~0x00000001); - userLinksBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getUserLinksFieldBuilder() - : null; - } else { - userLinksBuilder_.addAllMessages(other.userLinks_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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.UserLink m = - input.readMessage( - com.google.analytics.admin.v1alpha.UserLink.parser(), extensionRegistry); - if (userLinksBuilder_ == null) { - ensureUserLinksIsMutable(); - userLinks_.add(m); - } else { - userLinksBuilder_.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 userLinks_ = - java.util.Collections.emptyList(); - - private void ensureUserLinksIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - userLinks_ = - new java.util.ArrayList(userLinks_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.UserLink, - com.google.analytics.admin.v1alpha.UserLink.Builder, - com.google.analytics.admin.v1alpha.UserLinkOrBuilder> - userLinksBuilder_; - - /** - * - * - *
-     * The user links created.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public java.util.List getUserLinksList() { - if (userLinksBuilder_ == null) { - return java.util.Collections.unmodifiableList(userLinks_); - } else { - return userLinksBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * The user links created.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public int getUserLinksCount() { - if (userLinksBuilder_ == null) { - return userLinks_.size(); - } else { - return userLinksBuilder_.getCount(); - } - } - /** - * - * - *
-     * The user links created.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public com.google.analytics.admin.v1alpha.UserLink getUserLinks(int index) { - if (userLinksBuilder_ == null) { - return userLinks_.get(index); - } else { - return userLinksBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * The user links created.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public Builder setUserLinks(int index, com.google.analytics.admin.v1alpha.UserLink value) { - if (userLinksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureUserLinksIsMutable(); - userLinks_.set(index, value); - onChanged(); - } else { - userLinksBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The user links created.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public Builder setUserLinks( - int index, com.google.analytics.admin.v1alpha.UserLink.Builder builderForValue) { - if (userLinksBuilder_ == null) { - ensureUserLinksIsMutable(); - userLinks_.set(index, builderForValue.build()); - onChanged(); - } else { - userLinksBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The user links created.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public Builder addUserLinks(com.google.analytics.admin.v1alpha.UserLink value) { - if (userLinksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureUserLinksIsMutable(); - userLinks_.add(value); - onChanged(); - } else { - userLinksBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * The user links created.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public Builder addUserLinks(int index, com.google.analytics.admin.v1alpha.UserLink value) { - if (userLinksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureUserLinksIsMutable(); - userLinks_.add(index, value); - onChanged(); - } else { - userLinksBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The user links created.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public Builder addUserLinks( - com.google.analytics.admin.v1alpha.UserLink.Builder builderForValue) { - if (userLinksBuilder_ == null) { - ensureUserLinksIsMutable(); - userLinks_.add(builderForValue.build()); - onChanged(); - } else { - userLinksBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The user links created.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public Builder addUserLinks( - int index, com.google.analytics.admin.v1alpha.UserLink.Builder builderForValue) { - if (userLinksBuilder_ == null) { - ensureUserLinksIsMutable(); - userLinks_.add(index, builderForValue.build()); - onChanged(); - } else { - userLinksBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The user links created.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public Builder addAllUserLinks( - java.lang.Iterable values) { - if (userLinksBuilder_ == null) { - ensureUserLinksIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, userLinks_); - onChanged(); - } else { - userLinksBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * The user links created.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public Builder clearUserLinks() { - if (userLinksBuilder_ == null) { - userLinks_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - userLinksBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * The user links created.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public Builder removeUserLinks(int index) { - if (userLinksBuilder_ == null) { - ensureUserLinksIsMutable(); - userLinks_.remove(index); - onChanged(); - } else { - userLinksBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * The user links created.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public com.google.analytics.admin.v1alpha.UserLink.Builder getUserLinksBuilder(int index) { - return getUserLinksFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * The user links created.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public com.google.analytics.admin.v1alpha.UserLinkOrBuilder getUserLinksOrBuilder(int index) { - if (userLinksBuilder_ == null) { - return userLinks_.get(index); - } else { - return userLinksBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * The user links created.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public java.util.List - getUserLinksOrBuilderList() { - if (userLinksBuilder_ != null) { - return userLinksBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(userLinks_); - } - } - /** - * - * - *
-     * The user links created.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public com.google.analytics.admin.v1alpha.UserLink.Builder addUserLinksBuilder() { - return getUserLinksFieldBuilder() - .addBuilder(com.google.analytics.admin.v1alpha.UserLink.getDefaultInstance()); - } - /** - * - * - *
-     * The user links created.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public com.google.analytics.admin.v1alpha.UserLink.Builder addUserLinksBuilder(int index) { - return getUserLinksFieldBuilder() - .addBuilder(index, com.google.analytics.admin.v1alpha.UserLink.getDefaultInstance()); - } - /** - * - * - *
-     * The user links created.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public java.util.List - getUserLinksBuilderList() { - return getUserLinksFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.UserLink, - com.google.analytics.admin.v1alpha.UserLink.Builder, - com.google.analytics.admin.v1alpha.UserLinkOrBuilder> - getUserLinksFieldBuilder() { - if (userLinksBuilder_ == null) { - userLinksBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.UserLink, - com.google.analytics.admin.v1alpha.UserLink.Builder, - com.google.analytics.admin.v1alpha.UserLinkOrBuilder>( - userLinks_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); - userLinks_ = null; - } - return userLinksBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.BatchCreateUserLinksResponse) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.BatchCreateUserLinksResponse) - private static final com.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse(); - } - - public static com.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BatchCreateUserLinksResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchCreateUserLinksResponseOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchCreateUserLinksResponseOrBuilder.java deleted file mode 100644 index ed0c92aa..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchCreateUserLinksResponseOrBuilder.java +++ /dev/null @@ -1,77 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface BatchCreateUserLinksResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.BatchCreateUserLinksResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The user links created.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - java.util.List getUserLinksList(); - /** - * - * - *
-   * The user links created.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - com.google.analytics.admin.v1alpha.UserLink getUserLinks(int index); - /** - * - * - *
-   * The user links created.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - int getUserLinksCount(); - /** - * - * - *
-   * The user links created.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - java.util.List - getUserLinksOrBuilderList(); - /** - * - * - *
-   * The user links created.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - com.google.analytics.admin.v1alpha.UserLinkOrBuilder getUserLinksOrBuilder(int index); -} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchDeleteUserLinksRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchDeleteUserLinksRequest.java deleted file mode 100644 index 494f9a29..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchDeleteUserLinksRequest.java +++ /dev/null @@ -1,1232 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * Request message for BatchDeleteUserLinks RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest} - */ -public final class BatchDeleteUserLinksRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest) - BatchDeleteUserLinksRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use BatchDeleteUserLinksRequest.newBuilder() to construct. - private BatchDeleteUserLinksRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private BatchDeleteUserLinksRequest() { - parent_ = ""; - requests_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new BatchDeleteUserLinksRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_BatchDeleteUserLinksRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_BatchDeleteUserLinksRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest.class, - com.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; - /** - * - * - *
-   * Required. The account or property that all user links in the request are
-   * for. The parent of all values for user link names to delete must match this
-   * field.
-   * Example format: accounts/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 account or property that all user links in the request are
-   * for. The parent of all values for user link names to delete must match this
-   * field.
-   * Example format: accounts/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 REQUESTS_FIELD_NUMBER = 2; - private java.util.List requests_; - /** - * - * - *
-   * Required. The requests specifying the user links to update.
-   * A maximum of 1000 user links can be updated in a batch.
-   * 
- * - * - * repeated .google.analytics.admin.v1alpha.DeleteUserLinkRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public java.util.List - getRequestsList() { - return requests_; - } - /** - * - * - *
-   * Required. The requests specifying the user links to update.
-   * A maximum of 1000 user links can be updated in a batch.
-   * 
- * - * - * repeated .google.analytics.admin.v1alpha.DeleteUserLinkRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public java.util.List - getRequestsOrBuilderList() { - return requests_; - } - /** - * - * - *
-   * Required. The requests specifying the user links to update.
-   * A maximum of 1000 user links can be updated in a batch.
-   * 
- * - * - * repeated .google.analytics.admin.v1alpha.DeleteUserLinkRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public int getRequestsCount() { - return requests_.size(); - } - /** - * - * - *
-   * Required. The requests specifying the user links to update.
-   * A maximum of 1000 user links can be updated in a batch.
-   * 
- * - * - * repeated .google.analytics.admin.v1alpha.DeleteUserLinkRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.DeleteUserLinkRequest getRequests(int index) { - return requests_.get(index); - } - /** - * - * - *
-   * Required. The requests specifying the user links to update.
-   * A maximum of 1000 user links can be updated in a batch.
-   * 
- * - * - * repeated .google.analytics.admin.v1alpha.DeleteUserLinkRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.DeleteUserLinkRequestOrBuilder 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.BatchDeleteUserLinksRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest other = - (com.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest) 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.BatchDeleteUserLinksRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Request message for BatchDeleteUserLinks RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest) - com.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_BatchDeleteUserLinksRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_BatchDeleteUserLinksRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest.class, - com.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - parent_ = ""; - - if (requestsBuilder_ == null) { - requests_ = java.util.Collections.emptyList(); - } else { - requests_ = null; - requestsBuilder_.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_BatchDeleteUserLinksRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest - getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest build() { - com.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest buildPartial() { - com.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest result = - new com.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest(this); - int from_bitField0_ = bitField0_; - result.parent_ = parent_; - if (requestsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - requests_ = java.util.Collections.unmodifiableList(requests_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.requests_ = requests_; - } else { - result.requests_ = requestsBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest other) { - if (other - == com.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest.getDefaultInstance()) - return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - onChanged(); - } - if (requestsBuilder_ == null) { - if (!other.requests_.isEmpty()) { - if (requests_.isEmpty()) { - requests_ = other.requests_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureRequestsIsMutable(); - requests_.addAll(other.requests_); - } - onChanged(); - } - } else { - if (!other.requests_.isEmpty()) { - if (requestsBuilder_.isEmpty()) { - requestsBuilder_.dispose(); - requestsBuilder_ = null; - requests_ = other.requests_; - bitField0_ = (bitField0_ & ~0x00000001); - 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(); - - break; - } // case 10 - case 18: - { - com.google.analytics.admin.v1alpha.DeleteUserLinkRequest m = - input.readMessage( - com.google.analytics.admin.v1alpha.DeleteUserLinkRequest.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 all user links in the request are
-     * for. The parent of all values for user link names to delete must match this
-     * field.
-     * Example format: accounts/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 account or property that all user links in the request are
-     * for. The parent of all values for user link names to delete must match this
-     * field.
-     * Example format: accounts/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 account or property that all user links in the request are
-     * for. The parent of all values for user link names to delete must match this
-     * field.
-     * Example format: accounts/1234
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - parent_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The account or property that all user links in the request are
-     * for. The parent of all values for user link names to delete must match this
-     * field.
-     * Example format: accounts/1234
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearParent() { - - parent_ = getDefaultInstance().getParent(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The account or property that all user links in the request are
-     * for. The parent of all values for user link names to delete must match this
-     * field.
-     * Example format: accounts/1234
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - parent_ = value; - onChanged(); - return this; - } - - private java.util.List requests_ = - java.util.Collections.emptyList(); - - private void ensureRequestsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - requests_ = - new java.util.ArrayList( - requests_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.DeleteUserLinkRequest, - com.google.analytics.admin.v1alpha.DeleteUserLinkRequest.Builder, - com.google.analytics.admin.v1alpha.DeleteUserLinkRequestOrBuilder> - requestsBuilder_; - - /** - * - * - *
-     * Required. The requests specifying the user links to update.
-     * A maximum of 1000 user links can be updated in a batch.
-     * 
- * - * - * repeated .google.analytics.admin.v1alpha.DeleteUserLinkRequest 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 user links to update.
-     * A maximum of 1000 user links can be updated in a batch.
-     * 
- * - * - * repeated .google.analytics.admin.v1alpha.DeleteUserLinkRequest 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 user links to update.
-     * A maximum of 1000 user links can be updated in a batch.
-     * 
- * - * - * repeated .google.analytics.admin.v1alpha.DeleteUserLinkRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.analytics.admin.v1alpha.DeleteUserLinkRequest getRequests(int index) { - if (requestsBuilder_ == null) { - return requests_.get(index); - } else { - return requestsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * Required. The requests specifying the user links to update.
-     * A maximum of 1000 user links can be updated in a batch.
-     * 
- * - * - * repeated .google.analytics.admin.v1alpha.DeleteUserLinkRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setRequests( - int index, com.google.analytics.admin.v1alpha.DeleteUserLinkRequest 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 user links to update.
-     * A maximum of 1000 user links can be updated in a batch.
-     * 
- * - * - * repeated .google.analytics.admin.v1alpha.DeleteUserLinkRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setRequests( - int index, - com.google.analytics.admin.v1alpha.DeleteUserLinkRequest.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 user links to update.
-     * A maximum of 1000 user links can be updated in a batch.
-     * 
- * - * - * repeated .google.analytics.admin.v1alpha.DeleteUserLinkRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder addRequests(com.google.analytics.admin.v1alpha.DeleteUserLinkRequest 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 user links to update.
-     * A maximum of 1000 user links can be updated in a batch.
-     * 
- * - * - * repeated .google.analytics.admin.v1alpha.DeleteUserLinkRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder addRequests( - int index, com.google.analytics.admin.v1alpha.DeleteUserLinkRequest 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 user links to update.
-     * A maximum of 1000 user links can be updated in a batch.
-     * 
- * - * - * repeated .google.analytics.admin.v1alpha.DeleteUserLinkRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder addRequests( - com.google.analytics.admin.v1alpha.DeleteUserLinkRequest.Builder builderForValue) { - if (requestsBuilder_ == null) { - ensureRequestsIsMutable(); - requests_.add(builderForValue.build()); - onChanged(); - } else { - requestsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Required. The requests specifying the user links to update.
-     * A maximum of 1000 user links can be updated in a batch.
-     * 
- * - * - * repeated .google.analytics.admin.v1alpha.DeleteUserLinkRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder addRequests( - int index, - com.google.analytics.admin.v1alpha.DeleteUserLinkRequest.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 user links to update.
-     * A maximum of 1000 user links can be updated in a batch.
-     * 
- * - * - * repeated .google.analytics.admin.v1alpha.DeleteUserLinkRequest 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 user links to update.
-     * A maximum of 1000 user links can be updated in a batch.
-     * 
- * - * - * repeated .google.analytics.admin.v1alpha.DeleteUserLinkRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearRequests() { - if (requestsBuilder_ == null) { - requests_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - requestsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Required. The requests specifying the user links to update.
-     * A maximum of 1000 user links can be updated in a batch.
-     * 
- * - * - * repeated .google.analytics.admin.v1alpha.DeleteUserLinkRequest 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 user links to update.
-     * A maximum of 1000 user links can be updated in a batch.
-     * 
- * - * - * repeated .google.analytics.admin.v1alpha.DeleteUserLinkRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.analytics.admin.v1alpha.DeleteUserLinkRequest.Builder getRequestsBuilder( - int index) { - return getRequestsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * Required. The requests specifying the user links to update.
-     * A maximum of 1000 user links can be updated in a batch.
-     * 
- * - * - * repeated .google.analytics.admin.v1alpha.DeleteUserLinkRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.analytics.admin.v1alpha.DeleteUserLinkRequestOrBuilder getRequestsOrBuilder( - int index) { - if (requestsBuilder_ == null) { - return requests_.get(index); - } else { - return requestsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * Required. The requests specifying the user links to update.
-     * A maximum of 1000 user links can be updated in a batch.
-     * 
- * - * - * repeated .google.analytics.admin.v1alpha.DeleteUserLinkRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public java.util.List< - ? extends com.google.analytics.admin.v1alpha.DeleteUserLinkRequestOrBuilder> - getRequestsOrBuilderList() { - if (requestsBuilder_ != null) { - return requestsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(requests_); - } - } - /** - * - * - *
-     * Required. The requests specifying the user links to update.
-     * A maximum of 1000 user links can be updated in a batch.
-     * 
- * - * - * repeated .google.analytics.admin.v1alpha.DeleteUserLinkRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.analytics.admin.v1alpha.DeleteUserLinkRequest.Builder addRequestsBuilder() { - return getRequestsFieldBuilder() - .addBuilder( - com.google.analytics.admin.v1alpha.DeleteUserLinkRequest.getDefaultInstance()); - } - /** - * - * - *
-     * Required. The requests specifying the user links to update.
-     * A maximum of 1000 user links can be updated in a batch.
-     * 
- * - * - * repeated .google.analytics.admin.v1alpha.DeleteUserLinkRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.analytics.admin.v1alpha.DeleteUserLinkRequest.Builder addRequestsBuilder( - int index) { - return getRequestsFieldBuilder() - .addBuilder( - index, com.google.analytics.admin.v1alpha.DeleteUserLinkRequest.getDefaultInstance()); - } - /** - * - * - *
-     * Required. The requests specifying the user links to update.
-     * A maximum of 1000 user links can be updated in a batch.
-     * 
- * - * - * repeated .google.analytics.admin.v1alpha.DeleteUserLinkRequest 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.DeleteUserLinkRequest, - com.google.analytics.admin.v1alpha.DeleteUserLinkRequest.Builder, - com.google.analytics.admin.v1alpha.DeleteUserLinkRequestOrBuilder> - getRequestsFieldBuilder() { - if (requestsBuilder_ == null) { - requestsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.DeleteUserLinkRequest, - com.google.analytics.admin.v1alpha.DeleteUserLinkRequest.Builder, - com.google.analytics.admin.v1alpha.DeleteUserLinkRequestOrBuilder>( - requests_, ((bitField0_ & 0x00000001) != 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.BatchDeleteUserLinksRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest) - private static final com.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest(); - } - - public static com.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BatchDeleteUserLinksRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchDeleteUserLinksRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchDeleteUserLinksRequestOrBuilder.java deleted file mode 100644 index d6f29cd1..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchDeleteUserLinksRequestOrBuilder.java +++ /dev/null @@ -1,127 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface BatchDeleteUserLinksRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The account or property that all user links in the request are
-   * for. The parent of all values for user link names to delete must match this
-   * field.
-   * Example format: accounts/1234
-   * 
- * - * - * 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 all user links in the request are
-   * for. The parent of all values for user link names to delete must match this
-   * field.
-   * Example format: accounts/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 requests specifying the user links to update.
-   * A maximum of 1000 user links can be updated in a batch.
-   * 
- * - * - * repeated .google.analytics.admin.v1alpha.DeleteUserLinkRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - java.util.List getRequestsList(); - /** - * - * - *
-   * Required. The requests specifying the user links to update.
-   * A maximum of 1000 user links can be updated in a batch.
-   * 
- * - * - * repeated .google.analytics.admin.v1alpha.DeleteUserLinkRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.analytics.admin.v1alpha.DeleteUserLinkRequest getRequests(int index); - /** - * - * - *
-   * Required. The requests specifying the user links to update.
-   * A maximum of 1000 user links can be updated in a batch.
-   * 
- * - * - * repeated .google.analytics.admin.v1alpha.DeleteUserLinkRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - int getRequestsCount(); - /** - * - * - *
-   * Required. The requests specifying the user links to update.
-   * A maximum of 1000 user links can be updated in a batch.
-   * 
- * - * - * repeated .google.analytics.admin.v1alpha.DeleteUserLinkRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - java.util.List - getRequestsOrBuilderList(); - /** - * - * - *
-   * Required. The requests specifying the user links to update.
-   * A maximum of 1000 user links can be updated in a batch.
-   * 
- * - * - * repeated .google.analytics.admin.v1alpha.DeleteUserLinkRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.analytics.admin.v1alpha.DeleteUserLinkRequestOrBuilder getRequestsOrBuilder(int index); -} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchGetUserLinksRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchGetUserLinksRequest.java deleted file mode 100644 index 1aab28ba..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchGetUserLinksRequest.java +++ /dev/null @@ -1,976 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * Request message for BatchGetUserLinks RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.BatchGetUserLinksRequest} - */ -public final class BatchGetUserLinksRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.BatchGetUserLinksRequest) - BatchGetUserLinksRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use BatchGetUserLinksRequest.newBuilder() to construct. - private BatchGetUserLinksRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private BatchGetUserLinksRequest() { - parent_ = ""; - names_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new BatchGetUserLinksRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_BatchGetUserLinksRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_BatchGetUserLinksRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.BatchGetUserLinksRequest.class, - com.google.analytics.admin.v1alpha.BatchGetUserLinksRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; - /** - * - * - *
-   * Required. The account or property that all user links in the request are
-   * for. The parent of all provided values for the 'names' field must match
-   * this field.
-   * Example format: accounts/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 account or property that all user links in the request are
-   * for. The parent of all provided values for the 'names' field must match
-   * this field.
-   * Example format: accounts/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 NAMES_FIELD_NUMBER = 2; - private com.google.protobuf.LazyStringList names_; - /** - * - * - *
-   * Required. The names of the user links to retrieve.
-   * A maximum of 1000 user links can be retrieved in a batch.
-   * Format: accounts/{accountId}/userLinks/{userLinkId}
-   * 
- * - * - * 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 user links to retrieve.
-   * A maximum of 1000 user links can be retrieved in a batch.
-   * Format: accounts/{accountId}/userLinks/{userLinkId}
-   * 
- * - * - * 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 user links to retrieve.
-   * A maximum of 1000 user links can be retrieved in a batch.
-   * Format: accounts/{accountId}/userLinks/{userLinkId}
-   * 
- * - * - * 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 user links to retrieve.
-   * A maximum of 1000 user links can be retrieved in a batch.
-   * Format: accounts/{accountId}/userLinks/{userLinkId}
-   * 
- * - * - * 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.BatchGetUserLinksRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.BatchGetUserLinksRequest other = - (com.google.analytics.admin.v1alpha.BatchGetUserLinksRequest) 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.BatchGetUserLinksRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.BatchGetUserLinksRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.BatchGetUserLinksRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.BatchGetUserLinksRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.BatchGetUserLinksRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.BatchGetUserLinksRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.BatchGetUserLinksRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.BatchGetUserLinksRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.BatchGetUserLinksRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.BatchGetUserLinksRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.BatchGetUserLinksRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.BatchGetUserLinksRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.analytics.admin.v1alpha.BatchGetUserLinksRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Request message for BatchGetUserLinks RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.BatchGetUserLinksRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.BatchGetUserLinksRequest) - com.google.analytics.admin.v1alpha.BatchGetUserLinksRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_BatchGetUserLinksRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_BatchGetUserLinksRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.BatchGetUserLinksRequest.class, - com.google.analytics.admin.v1alpha.BatchGetUserLinksRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.BatchGetUserLinksRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - parent_ = ""; - - names_ = com.google.protobuf.LazyStringArrayList.EMPTY; - 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_BatchGetUserLinksRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.BatchGetUserLinksRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.BatchGetUserLinksRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.BatchGetUserLinksRequest build() { - com.google.analytics.admin.v1alpha.BatchGetUserLinksRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.BatchGetUserLinksRequest buildPartial() { - com.google.analytics.admin.v1alpha.BatchGetUserLinksRequest result = - new com.google.analytics.admin.v1alpha.BatchGetUserLinksRequest(this); - int from_bitField0_ = bitField0_; - result.parent_ = parent_; - if (((bitField0_ & 0x00000001) != 0)) { - names_ = names_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.names_ = names_; - 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.BatchGetUserLinksRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.BatchGetUserLinksRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.BatchGetUserLinksRequest other) { - if (other == com.google.analytics.admin.v1alpha.BatchGetUserLinksRequest.getDefaultInstance()) - return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - onChanged(); - } - if (!other.names_.isEmpty()) { - if (names_.isEmpty()) { - names_ = other.names_; - bitField0_ = (bitField0_ & ~0x00000001); - } 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(); - - 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 all user links in the request are
-     * for. The parent of all provided values for the 'names' field must match
-     * this field.
-     * Example format: accounts/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 account or property that all user links in the request are
-     * for. The parent of all provided values for the 'names' field must match
-     * this field.
-     * Example format: accounts/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 account or property that all user links in the request are
-     * for. The parent of all provided values for the 'names' field must match
-     * this field.
-     * Example format: accounts/1234
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - parent_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The account or property that all user links in the request are
-     * for. The parent of all provided values for the 'names' field must match
-     * this field.
-     * Example format: accounts/1234
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearParent() { - - parent_ = getDefaultInstance().getParent(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The account or property that all user links in the request are
-     * for. The parent of all provided values for the 'names' field must match
-     * this field.
-     * Example format: accounts/1234
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - parent_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList names_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureNamesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - names_ = new com.google.protobuf.LazyStringArrayList(names_); - bitField0_ |= 0x00000001; - } - } - /** - * - * - *
-     * Required. The names of the user links to retrieve.
-     * A maximum of 1000 user links can be retrieved in a batch.
-     * Format: accounts/{accountId}/userLinks/{userLinkId}
-     * 
- * - * - * 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_.getUnmodifiableView(); - } - /** - * - * - *
-     * Required. The names of the user links to retrieve.
-     * A maximum of 1000 user links can be retrieved in a batch.
-     * Format: accounts/{accountId}/userLinks/{userLinkId}
-     * 
- * - * - * 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 user links to retrieve.
-     * A maximum of 1000 user links can be retrieved in a batch.
-     * Format: accounts/{accountId}/userLinks/{userLinkId}
-     * 
- * - * - * 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 user links to retrieve.
-     * A maximum of 1000 user links can be retrieved in a batch.
-     * Format: accounts/{accountId}/userLinks/{userLinkId}
-     * 
- * - * - * 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 user links to retrieve.
-     * A maximum of 1000 user links can be retrieved in a batch.
-     * Format: accounts/{accountId}/userLinks/{userLinkId}
-     * 
- * - * - * 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); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The names of the user links to retrieve.
-     * A maximum of 1000 user links can be retrieved in a batch.
-     * Format: accounts/{accountId}/userLinks/{userLinkId}
-     * 
- * - * - * 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); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The names of the user links to retrieve.
-     * A maximum of 1000 user links can be retrieved in a batch.
-     * Format: accounts/{accountId}/userLinks/{userLinkId}
-     * 
- * - * - * 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_); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The names of the user links to retrieve.
-     * A maximum of 1000 user links can be retrieved in a batch.
-     * Format: accounts/{accountId}/userLinks/{userLinkId}
-     * 
- * - * - * 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.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The names of the user links to retrieve.
-     * A maximum of 1000 user links can be retrieved in a batch.
-     * Format: accounts/{accountId}/userLinks/{userLinkId}
-     * 
- * - * - * 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); - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.BatchGetUserLinksRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.BatchGetUserLinksRequest) - private static final com.google.analytics.admin.v1alpha.BatchGetUserLinksRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.BatchGetUserLinksRequest(); - } - - public static com.google.analytics.admin.v1alpha.BatchGetUserLinksRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BatchGetUserLinksRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.BatchGetUserLinksRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchGetUserLinksRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchGetUserLinksRequestOrBuilder.java deleted file mode 100644 index 7d5b1fc7..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchGetUserLinksRequestOrBuilder.java +++ /dev/null @@ -1,127 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface BatchGetUserLinksRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.BatchGetUserLinksRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The account or property that all user links in the request are
-   * for. The parent of all provided values for the 'names' field must match
-   * this field.
-   * Example format: accounts/1234
-   * 
- * - * - * 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 all user links in the request are
-   * for. The parent of all provided values for the 'names' field must match
-   * this field.
-   * Example format: accounts/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 names of the user links to retrieve.
-   * A maximum of 1000 user links can be retrieved in a batch.
-   * Format: accounts/{accountId}/userLinks/{userLinkId}
-   * 
- * - * - * 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 user links to retrieve.
-   * A maximum of 1000 user links can be retrieved in a batch.
-   * Format: accounts/{accountId}/userLinks/{userLinkId}
-   * 
- * - * - * 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 user links to retrieve.
-   * A maximum of 1000 user links can be retrieved in a batch.
-   * Format: accounts/{accountId}/userLinks/{userLinkId}
-   * 
- * - * - * 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 user links to retrieve.
-   * A maximum of 1000 user links can be retrieved in a batch.
-   * Format: accounts/{accountId}/userLinks/{userLinkId}
-   * 
- * - * - * 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchGetUserLinksResponse.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchGetUserLinksResponse.java deleted file mode 100644 index 37fb8352..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchGetUserLinksResponse.java +++ /dev/null @@ -1,932 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * Response message for BatchGetUserLinks RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.BatchGetUserLinksResponse} - */ -public final class BatchGetUserLinksResponse extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.BatchGetUserLinksResponse) - BatchGetUserLinksResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use BatchGetUserLinksResponse.newBuilder() to construct. - private BatchGetUserLinksResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private BatchGetUserLinksResponse() { - userLinks_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new BatchGetUserLinksResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_BatchGetUserLinksResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_BatchGetUserLinksResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.BatchGetUserLinksResponse.class, - com.google.analytics.admin.v1alpha.BatchGetUserLinksResponse.Builder.class); - } - - public static final int USER_LINKS_FIELD_NUMBER = 1; - private java.util.List userLinks_; - /** - * - * - *
-   * The requested user links.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - @java.lang.Override - public java.util.List getUserLinksList() { - return userLinks_; - } - /** - * - * - *
-   * The requested user links.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - @java.lang.Override - public java.util.List - getUserLinksOrBuilderList() { - return userLinks_; - } - /** - * - * - *
-   * The requested user links.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - @java.lang.Override - public int getUserLinksCount() { - return userLinks_.size(); - } - /** - * - * - *
-   * The requested user links.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.UserLink getUserLinks(int index) { - return userLinks_.get(index); - } - /** - * - * - *
-   * The requested user links.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.UserLinkOrBuilder getUserLinksOrBuilder(int index) { - return userLinks_.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 < userLinks_.size(); i++) { - output.writeMessage(1, userLinks_.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 < userLinks_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, userLinks_.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.BatchGetUserLinksResponse)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.BatchGetUserLinksResponse other = - (com.google.analytics.admin.v1alpha.BatchGetUserLinksResponse) obj; - - if (!getUserLinksList().equals(other.getUserLinksList())) return false; - if (!getUnknownFields().equals(other.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 (getUserLinksCount() > 0) { - hash = (37 * hash) + USER_LINKS_FIELD_NUMBER; - hash = (53 * hash) + getUserLinksList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.BatchGetUserLinksResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.BatchGetUserLinksResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.BatchGetUserLinksResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.BatchGetUserLinksResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.BatchGetUserLinksResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.BatchGetUserLinksResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.BatchGetUserLinksResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.BatchGetUserLinksResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.BatchGetUserLinksResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.BatchGetUserLinksResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.BatchGetUserLinksResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.BatchGetUserLinksResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.analytics.admin.v1alpha.BatchGetUserLinksResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 BatchGetUserLinks RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.BatchGetUserLinksResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.BatchGetUserLinksResponse) - com.google.analytics.admin.v1alpha.BatchGetUserLinksResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_BatchGetUserLinksResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_BatchGetUserLinksResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.BatchGetUserLinksResponse.class, - com.google.analytics.admin.v1alpha.BatchGetUserLinksResponse.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.BatchGetUserLinksResponse.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (userLinksBuilder_ == null) { - userLinks_ = java.util.Collections.emptyList(); - } else { - userLinks_ = null; - userLinksBuilder_.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_BatchGetUserLinksResponse_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.BatchGetUserLinksResponse - getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.BatchGetUserLinksResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.BatchGetUserLinksResponse build() { - com.google.analytics.admin.v1alpha.BatchGetUserLinksResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.BatchGetUserLinksResponse buildPartial() { - com.google.analytics.admin.v1alpha.BatchGetUserLinksResponse result = - new com.google.analytics.admin.v1alpha.BatchGetUserLinksResponse(this); - int from_bitField0_ = bitField0_; - if (userLinksBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - userLinks_ = java.util.Collections.unmodifiableList(userLinks_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.userLinks_ = userLinks_; - } else { - result.userLinks_ = userLinksBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.BatchGetUserLinksResponse) { - return mergeFrom((com.google.analytics.admin.v1alpha.BatchGetUserLinksResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.BatchGetUserLinksResponse other) { - if (other - == com.google.analytics.admin.v1alpha.BatchGetUserLinksResponse.getDefaultInstance()) - return this; - if (userLinksBuilder_ == null) { - if (!other.userLinks_.isEmpty()) { - if (userLinks_.isEmpty()) { - userLinks_ = other.userLinks_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureUserLinksIsMutable(); - userLinks_.addAll(other.userLinks_); - } - onChanged(); - } - } else { - if (!other.userLinks_.isEmpty()) { - if (userLinksBuilder_.isEmpty()) { - userLinksBuilder_.dispose(); - userLinksBuilder_ = null; - userLinks_ = other.userLinks_; - bitField0_ = (bitField0_ & ~0x00000001); - userLinksBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getUserLinksFieldBuilder() - : null; - } else { - userLinksBuilder_.addAllMessages(other.userLinks_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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.UserLink m = - input.readMessage( - com.google.analytics.admin.v1alpha.UserLink.parser(), extensionRegistry); - if (userLinksBuilder_ == null) { - ensureUserLinksIsMutable(); - userLinks_.add(m); - } else { - userLinksBuilder_.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 userLinks_ = - java.util.Collections.emptyList(); - - private void ensureUserLinksIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - userLinks_ = - new java.util.ArrayList(userLinks_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.UserLink, - com.google.analytics.admin.v1alpha.UserLink.Builder, - com.google.analytics.admin.v1alpha.UserLinkOrBuilder> - userLinksBuilder_; - - /** - * - * - *
-     * The requested user links.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public java.util.List getUserLinksList() { - if (userLinksBuilder_ == null) { - return java.util.Collections.unmodifiableList(userLinks_); - } else { - return userLinksBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * The requested user links.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public int getUserLinksCount() { - if (userLinksBuilder_ == null) { - return userLinks_.size(); - } else { - return userLinksBuilder_.getCount(); - } - } - /** - * - * - *
-     * The requested user links.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public com.google.analytics.admin.v1alpha.UserLink getUserLinks(int index) { - if (userLinksBuilder_ == null) { - return userLinks_.get(index); - } else { - return userLinksBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * The requested user links.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public Builder setUserLinks(int index, com.google.analytics.admin.v1alpha.UserLink value) { - if (userLinksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureUserLinksIsMutable(); - userLinks_.set(index, value); - onChanged(); - } else { - userLinksBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The requested user links.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public Builder setUserLinks( - int index, com.google.analytics.admin.v1alpha.UserLink.Builder builderForValue) { - if (userLinksBuilder_ == null) { - ensureUserLinksIsMutable(); - userLinks_.set(index, builderForValue.build()); - onChanged(); - } else { - userLinksBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The requested user links.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public Builder addUserLinks(com.google.analytics.admin.v1alpha.UserLink value) { - if (userLinksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureUserLinksIsMutable(); - userLinks_.add(value); - onChanged(); - } else { - userLinksBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * The requested user links.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public Builder addUserLinks(int index, com.google.analytics.admin.v1alpha.UserLink value) { - if (userLinksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureUserLinksIsMutable(); - userLinks_.add(index, value); - onChanged(); - } else { - userLinksBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The requested user links.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public Builder addUserLinks( - com.google.analytics.admin.v1alpha.UserLink.Builder builderForValue) { - if (userLinksBuilder_ == null) { - ensureUserLinksIsMutable(); - userLinks_.add(builderForValue.build()); - onChanged(); - } else { - userLinksBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The requested user links.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public Builder addUserLinks( - int index, com.google.analytics.admin.v1alpha.UserLink.Builder builderForValue) { - if (userLinksBuilder_ == null) { - ensureUserLinksIsMutable(); - userLinks_.add(index, builderForValue.build()); - onChanged(); - } else { - userLinksBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The requested user links.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public Builder addAllUserLinks( - java.lang.Iterable values) { - if (userLinksBuilder_ == null) { - ensureUserLinksIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, userLinks_); - onChanged(); - } else { - userLinksBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * The requested user links.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public Builder clearUserLinks() { - if (userLinksBuilder_ == null) { - userLinks_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - userLinksBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * The requested user links.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public Builder removeUserLinks(int index) { - if (userLinksBuilder_ == null) { - ensureUserLinksIsMutable(); - userLinks_.remove(index); - onChanged(); - } else { - userLinksBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * The requested user links.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public com.google.analytics.admin.v1alpha.UserLink.Builder getUserLinksBuilder(int index) { - return getUserLinksFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * The requested user links.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public com.google.analytics.admin.v1alpha.UserLinkOrBuilder getUserLinksOrBuilder(int index) { - if (userLinksBuilder_ == null) { - return userLinks_.get(index); - } else { - return userLinksBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * The requested user links.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public java.util.List - getUserLinksOrBuilderList() { - if (userLinksBuilder_ != null) { - return userLinksBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(userLinks_); - } - } - /** - * - * - *
-     * The requested user links.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public com.google.analytics.admin.v1alpha.UserLink.Builder addUserLinksBuilder() { - return getUserLinksFieldBuilder() - .addBuilder(com.google.analytics.admin.v1alpha.UserLink.getDefaultInstance()); - } - /** - * - * - *
-     * The requested user links.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public com.google.analytics.admin.v1alpha.UserLink.Builder addUserLinksBuilder(int index) { - return getUserLinksFieldBuilder() - .addBuilder(index, com.google.analytics.admin.v1alpha.UserLink.getDefaultInstance()); - } - /** - * - * - *
-     * The requested user links.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public java.util.List - getUserLinksBuilderList() { - return getUserLinksFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.UserLink, - com.google.analytics.admin.v1alpha.UserLink.Builder, - com.google.analytics.admin.v1alpha.UserLinkOrBuilder> - getUserLinksFieldBuilder() { - if (userLinksBuilder_ == null) { - userLinksBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.UserLink, - com.google.analytics.admin.v1alpha.UserLink.Builder, - com.google.analytics.admin.v1alpha.UserLinkOrBuilder>( - userLinks_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); - userLinks_ = null; - } - return userLinksBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.BatchGetUserLinksResponse) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.BatchGetUserLinksResponse) - private static final com.google.analytics.admin.v1alpha.BatchGetUserLinksResponse - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.BatchGetUserLinksResponse(); - } - - public static com.google.analytics.admin.v1alpha.BatchGetUserLinksResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BatchGetUserLinksResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.BatchGetUserLinksResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchGetUserLinksResponseOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchGetUserLinksResponseOrBuilder.java deleted file mode 100644 index fafcc49b..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchGetUserLinksResponseOrBuilder.java +++ /dev/null @@ -1,77 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface BatchGetUserLinksResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.BatchGetUserLinksResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The requested user links.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - java.util.List getUserLinksList(); - /** - * - * - *
-   * The requested user links.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - com.google.analytics.admin.v1alpha.UserLink getUserLinks(int index); - /** - * - * - *
-   * The requested user links.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - int getUserLinksCount(); - /** - * - * - *
-   * The requested user links.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - java.util.List - getUserLinksOrBuilderList(); - /** - * - * - *
-   * The requested user links.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - com.google.analytics.admin.v1alpha.UserLinkOrBuilder getUserLinksOrBuilder(int index); -} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchUpdateUserLinksRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchUpdateUserLinksRequest.java deleted file mode 100644 index d2c713e0..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchUpdateUserLinksRequest.java +++ /dev/null @@ -1,1232 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * Request message for BatchUpdateUserLinks RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest} - */ -public final class BatchUpdateUserLinksRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest) - BatchUpdateUserLinksRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use BatchUpdateUserLinksRequest.newBuilder() to construct. - private BatchUpdateUserLinksRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private BatchUpdateUserLinksRequest() { - parent_ = ""; - requests_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new BatchUpdateUserLinksRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_BatchUpdateUserLinksRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_BatchUpdateUserLinksRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest.class, - com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; - /** - * - * - *
-   * Required. The account or property that all user links in the request are
-   * for. The parent field in the UpdateUserLinkRequest messages must either be
-   * empty or match this field.
-   * Example format: accounts/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 account or property that all user links in the request are
-   * for. The parent field in the UpdateUserLinkRequest messages must either be
-   * empty or match this field.
-   * Example format: accounts/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 REQUESTS_FIELD_NUMBER = 2; - private java.util.List requests_; - /** - * - * - *
-   * Required. The requests specifying the user links to update.
-   * A maximum of 1000 user links can be updated in a batch.
-   * 
- * - * - * repeated .google.analytics.admin.v1alpha.UpdateUserLinkRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public java.util.List - getRequestsList() { - return requests_; - } - /** - * - * - *
-   * Required. The requests specifying the user links to update.
-   * A maximum of 1000 user links can be updated in a batch.
-   * 
- * - * - * repeated .google.analytics.admin.v1alpha.UpdateUserLinkRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public java.util.List - getRequestsOrBuilderList() { - return requests_; - } - /** - * - * - *
-   * Required. The requests specifying the user links to update.
-   * A maximum of 1000 user links can be updated in a batch.
-   * 
- * - * - * repeated .google.analytics.admin.v1alpha.UpdateUserLinkRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public int getRequestsCount() { - return requests_.size(); - } - /** - * - * - *
-   * Required. The requests specifying the user links to update.
-   * A maximum of 1000 user links can be updated in a batch.
-   * 
- * - * - * repeated .google.analytics.admin.v1alpha.UpdateUserLinkRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.UpdateUserLinkRequest getRequests(int index) { - return requests_.get(index); - } - /** - * - * - *
-   * Required. The requests specifying the user links to update.
-   * A maximum of 1000 user links can be updated in a batch.
-   * 
- * - * - * repeated .google.analytics.admin.v1alpha.UpdateUserLinkRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.UpdateUserLinkRequestOrBuilder 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.BatchUpdateUserLinksRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest other = - (com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest) 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.BatchUpdateUserLinksRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Request message for BatchUpdateUserLinks RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest) - com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_BatchUpdateUserLinksRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_BatchUpdateUserLinksRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest.class, - com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - parent_ = ""; - - if (requestsBuilder_ == null) { - requests_ = java.util.Collections.emptyList(); - } else { - requests_ = null; - requestsBuilder_.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_BatchUpdateUserLinksRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest - getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest build() { - com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest buildPartial() { - com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest result = - new com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest(this); - int from_bitField0_ = bitField0_; - result.parent_ = parent_; - if (requestsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - requests_ = java.util.Collections.unmodifiableList(requests_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.requests_ = requests_; - } else { - result.requests_ = requestsBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest other) { - if (other - == com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest.getDefaultInstance()) - return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - onChanged(); - } - if (requestsBuilder_ == null) { - if (!other.requests_.isEmpty()) { - if (requests_.isEmpty()) { - requests_ = other.requests_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureRequestsIsMutable(); - requests_.addAll(other.requests_); - } - onChanged(); - } - } else { - if (!other.requests_.isEmpty()) { - if (requestsBuilder_.isEmpty()) { - requestsBuilder_.dispose(); - requestsBuilder_ = null; - requests_ = other.requests_; - bitField0_ = (bitField0_ & ~0x00000001); - 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(); - - break; - } // case 10 - case 18: - { - com.google.analytics.admin.v1alpha.UpdateUserLinkRequest m = - input.readMessage( - com.google.analytics.admin.v1alpha.UpdateUserLinkRequest.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 all user links in the request are
-     * for. The parent field in the UpdateUserLinkRequest messages must either be
-     * empty or match this field.
-     * Example format: accounts/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 account or property that all user links in the request are
-     * for. The parent field in the UpdateUserLinkRequest messages must either be
-     * empty or match this field.
-     * Example format: accounts/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 account or property that all user links in the request are
-     * for. The parent field in the UpdateUserLinkRequest messages must either be
-     * empty or match this field.
-     * Example format: accounts/1234
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - parent_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The account or property that all user links in the request are
-     * for. The parent field in the UpdateUserLinkRequest messages must either be
-     * empty or match this field.
-     * Example format: accounts/1234
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearParent() { - - parent_ = getDefaultInstance().getParent(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The account or property that all user links in the request are
-     * for. The parent field in the UpdateUserLinkRequest messages must either be
-     * empty or match this field.
-     * Example format: accounts/1234
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - parent_ = value; - onChanged(); - return this; - } - - private java.util.List requests_ = - java.util.Collections.emptyList(); - - private void ensureRequestsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - requests_ = - new java.util.ArrayList( - requests_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.UpdateUserLinkRequest, - com.google.analytics.admin.v1alpha.UpdateUserLinkRequest.Builder, - com.google.analytics.admin.v1alpha.UpdateUserLinkRequestOrBuilder> - requestsBuilder_; - - /** - * - * - *
-     * Required. The requests specifying the user links to update.
-     * A maximum of 1000 user links can be updated in a batch.
-     * 
- * - * - * repeated .google.analytics.admin.v1alpha.UpdateUserLinkRequest 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 user links to update.
-     * A maximum of 1000 user links can be updated in a batch.
-     * 
- * - * - * repeated .google.analytics.admin.v1alpha.UpdateUserLinkRequest 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 user links to update.
-     * A maximum of 1000 user links can be updated in a batch.
-     * 
- * - * - * repeated .google.analytics.admin.v1alpha.UpdateUserLinkRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.analytics.admin.v1alpha.UpdateUserLinkRequest getRequests(int index) { - if (requestsBuilder_ == null) { - return requests_.get(index); - } else { - return requestsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * Required. The requests specifying the user links to update.
-     * A maximum of 1000 user links can be updated in a batch.
-     * 
- * - * - * repeated .google.analytics.admin.v1alpha.UpdateUserLinkRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setRequests( - int index, com.google.analytics.admin.v1alpha.UpdateUserLinkRequest 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 user links to update.
-     * A maximum of 1000 user links can be updated in a batch.
-     * 
- * - * - * repeated .google.analytics.admin.v1alpha.UpdateUserLinkRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setRequests( - int index, - com.google.analytics.admin.v1alpha.UpdateUserLinkRequest.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 user links to update.
-     * A maximum of 1000 user links can be updated in a batch.
-     * 
- * - * - * repeated .google.analytics.admin.v1alpha.UpdateUserLinkRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder addRequests(com.google.analytics.admin.v1alpha.UpdateUserLinkRequest 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 user links to update.
-     * A maximum of 1000 user links can be updated in a batch.
-     * 
- * - * - * repeated .google.analytics.admin.v1alpha.UpdateUserLinkRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder addRequests( - int index, com.google.analytics.admin.v1alpha.UpdateUserLinkRequest 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 user links to update.
-     * A maximum of 1000 user links can be updated in a batch.
-     * 
- * - * - * repeated .google.analytics.admin.v1alpha.UpdateUserLinkRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder addRequests( - com.google.analytics.admin.v1alpha.UpdateUserLinkRequest.Builder builderForValue) { - if (requestsBuilder_ == null) { - ensureRequestsIsMutable(); - requests_.add(builderForValue.build()); - onChanged(); - } else { - requestsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Required. The requests specifying the user links to update.
-     * A maximum of 1000 user links can be updated in a batch.
-     * 
- * - * - * repeated .google.analytics.admin.v1alpha.UpdateUserLinkRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder addRequests( - int index, - com.google.analytics.admin.v1alpha.UpdateUserLinkRequest.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 user links to update.
-     * A maximum of 1000 user links can be updated in a batch.
-     * 
- * - * - * repeated .google.analytics.admin.v1alpha.UpdateUserLinkRequest 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 user links to update.
-     * A maximum of 1000 user links can be updated in a batch.
-     * 
- * - * - * repeated .google.analytics.admin.v1alpha.UpdateUserLinkRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearRequests() { - if (requestsBuilder_ == null) { - requests_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - requestsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Required. The requests specifying the user links to update.
-     * A maximum of 1000 user links can be updated in a batch.
-     * 
- * - * - * repeated .google.analytics.admin.v1alpha.UpdateUserLinkRequest 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 user links to update.
-     * A maximum of 1000 user links can be updated in a batch.
-     * 
- * - * - * repeated .google.analytics.admin.v1alpha.UpdateUserLinkRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.analytics.admin.v1alpha.UpdateUserLinkRequest.Builder getRequestsBuilder( - int index) { - return getRequestsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * Required. The requests specifying the user links to update.
-     * A maximum of 1000 user links can be updated in a batch.
-     * 
- * - * - * repeated .google.analytics.admin.v1alpha.UpdateUserLinkRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.analytics.admin.v1alpha.UpdateUserLinkRequestOrBuilder getRequestsOrBuilder( - int index) { - if (requestsBuilder_ == null) { - return requests_.get(index); - } else { - return requestsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * Required. The requests specifying the user links to update.
-     * A maximum of 1000 user links can be updated in a batch.
-     * 
- * - * - * repeated .google.analytics.admin.v1alpha.UpdateUserLinkRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public java.util.List< - ? extends com.google.analytics.admin.v1alpha.UpdateUserLinkRequestOrBuilder> - getRequestsOrBuilderList() { - if (requestsBuilder_ != null) { - return requestsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(requests_); - } - } - /** - * - * - *
-     * Required. The requests specifying the user links to update.
-     * A maximum of 1000 user links can be updated in a batch.
-     * 
- * - * - * repeated .google.analytics.admin.v1alpha.UpdateUserLinkRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.analytics.admin.v1alpha.UpdateUserLinkRequest.Builder addRequestsBuilder() { - return getRequestsFieldBuilder() - .addBuilder( - com.google.analytics.admin.v1alpha.UpdateUserLinkRequest.getDefaultInstance()); - } - /** - * - * - *
-     * Required. The requests specifying the user links to update.
-     * A maximum of 1000 user links can be updated in a batch.
-     * 
- * - * - * repeated .google.analytics.admin.v1alpha.UpdateUserLinkRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.analytics.admin.v1alpha.UpdateUserLinkRequest.Builder addRequestsBuilder( - int index) { - return getRequestsFieldBuilder() - .addBuilder( - index, com.google.analytics.admin.v1alpha.UpdateUserLinkRequest.getDefaultInstance()); - } - /** - * - * - *
-     * Required. The requests specifying the user links to update.
-     * A maximum of 1000 user links can be updated in a batch.
-     * 
- * - * - * repeated .google.analytics.admin.v1alpha.UpdateUserLinkRequest 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.UpdateUserLinkRequest, - com.google.analytics.admin.v1alpha.UpdateUserLinkRequest.Builder, - com.google.analytics.admin.v1alpha.UpdateUserLinkRequestOrBuilder> - getRequestsFieldBuilder() { - if (requestsBuilder_ == null) { - requestsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.UpdateUserLinkRequest, - com.google.analytics.admin.v1alpha.UpdateUserLinkRequest.Builder, - com.google.analytics.admin.v1alpha.UpdateUserLinkRequestOrBuilder>( - requests_, ((bitField0_ & 0x00000001) != 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.BatchUpdateUserLinksRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest) - private static final com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest(); - } - - public static com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BatchUpdateUserLinksRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchUpdateUserLinksRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchUpdateUserLinksRequestOrBuilder.java deleted file mode 100644 index fbaf9c26..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchUpdateUserLinksRequestOrBuilder.java +++ /dev/null @@ -1,127 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface BatchUpdateUserLinksRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The account or property that all user links in the request are
-   * for. The parent field in the UpdateUserLinkRequest messages must either be
-   * empty or match this field.
-   * Example format: accounts/1234
-   * 
- * - * - * 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 all user links in the request are
-   * for. The parent field in the UpdateUserLinkRequest messages must either be
-   * empty or match this field.
-   * Example format: accounts/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 requests specifying the user links to update.
-   * A maximum of 1000 user links can be updated in a batch.
-   * 
- * - * - * repeated .google.analytics.admin.v1alpha.UpdateUserLinkRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - java.util.List getRequestsList(); - /** - * - * - *
-   * Required. The requests specifying the user links to update.
-   * A maximum of 1000 user links can be updated in a batch.
-   * 
- * - * - * repeated .google.analytics.admin.v1alpha.UpdateUserLinkRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.analytics.admin.v1alpha.UpdateUserLinkRequest getRequests(int index); - /** - * - * - *
-   * Required. The requests specifying the user links to update.
-   * A maximum of 1000 user links can be updated in a batch.
-   * 
- * - * - * repeated .google.analytics.admin.v1alpha.UpdateUserLinkRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - int getRequestsCount(); - /** - * - * - *
-   * Required. The requests specifying the user links to update.
-   * A maximum of 1000 user links can be updated in a batch.
-   * 
- * - * - * repeated .google.analytics.admin.v1alpha.UpdateUserLinkRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - java.util.List - getRequestsOrBuilderList(); - /** - * - * - *
-   * Required. The requests specifying the user links to update.
-   * A maximum of 1000 user links can be updated in a batch.
-   * 
- * - * - * repeated .google.analytics.admin.v1alpha.UpdateUserLinkRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.analytics.admin.v1alpha.UpdateUserLinkRequestOrBuilder getRequestsOrBuilder(int index); -} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchUpdateUserLinksResponse.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchUpdateUserLinksResponse.java deleted file mode 100644 index 2ca01ca0..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchUpdateUserLinksResponse.java +++ /dev/null @@ -1,935 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * Response message for BatchUpdateUserLinks RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse} - */ -public final class BatchUpdateUserLinksResponse extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse) - BatchUpdateUserLinksResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use BatchUpdateUserLinksResponse.newBuilder() to construct. - private BatchUpdateUserLinksResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private BatchUpdateUserLinksResponse() { - userLinks_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new BatchUpdateUserLinksResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_BatchUpdateUserLinksResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_BatchUpdateUserLinksResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse.class, - com.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse.Builder.class); - } - - public static final int USER_LINKS_FIELD_NUMBER = 1; - private java.util.List userLinks_; - /** - * - * - *
-   * The user links updated.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - @java.lang.Override - public java.util.List getUserLinksList() { - return userLinks_; - } - /** - * - * - *
-   * The user links updated.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - @java.lang.Override - public java.util.List - getUserLinksOrBuilderList() { - return userLinks_; - } - /** - * - * - *
-   * The user links updated.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - @java.lang.Override - public int getUserLinksCount() { - return userLinks_.size(); - } - /** - * - * - *
-   * The user links updated.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.UserLink getUserLinks(int index) { - return userLinks_.get(index); - } - /** - * - * - *
-   * The user links updated.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.UserLinkOrBuilder getUserLinksOrBuilder(int index) { - return userLinks_.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 < userLinks_.size(); i++) { - output.writeMessage(1, userLinks_.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 < userLinks_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, userLinks_.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.BatchUpdateUserLinksResponse)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse other = - (com.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse) obj; - - if (!getUserLinksList().equals(other.getUserLinksList())) return false; - if (!getUnknownFields().equals(other.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 (getUserLinksCount() > 0) { - hash = (37 * hash) + USER_LINKS_FIELD_NUMBER; - hash = (53 * hash) + getUserLinksList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 BatchUpdateUserLinks RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse) - com.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_BatchUpdateUserLinksResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_BatchUpdateUserLinksResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse.class, - com.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (userLinksBuilder_ == null) { - userLinks_ = java.util.Collections.emptyList(); - } else { - userLinks_ = null; - userLinksBuilder_.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_BatchUpdateUserLinksResponse_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse - getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse build() { - com.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse buildPartial() { - com.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse result = - new com.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse(this); - int from_bitField0_ = bitField0_; - if (userLinksBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - userLinks_ = java.util.Collections.unmodifiableList(userLinks_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.userLinks_ = userLinks_; - } else { - result.userLinks_ = userLinksBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse) { - return mergeFrom((com.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse other) { - if (other - == com.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse.getDefaultInstance()) - return this; - if (userLinksBuilder_ == null) { - if (!other.userLinks_.isEmpty()) { - if (userLinks_.isEmpty()) { - userLinks_ = other.userLinks_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureUserLinksIsMutable(); - userLinks_.addAll(other.userLinks_); - } - onChanged(); - } - } else { - if (!other.userLinks_.isEmpty()) { - if (userLinksBuilder_.isEmpty()) { - userLinksBuilder_.dispose(); - userLinksBuilder_ = null; - userLinks_ = other.userLinks_; - bitField0_ = (bitField0_ & ~0x00000001); - userLinksBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getUserLinksFieldBuilder() - : null; - } else { - userLinksBuilder_.addAllMessages(other.userLinks_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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.UserLink m = - input.readMessage( - com.google.analytics.admin.v1alpha.UserLink.parser(), extensionRegistry); - if (userLinksBuilder_ == null) { - ensureUserLinksIsMutable(); - userLinks_.add(m); - } else { - userLinksBuilder_.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 userLinks_ = - java.util.Collections.emptyList(); - - private void ensureUserLinksIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - userLinks_ = - new java.util.ArrayList(userLinks_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.UserLink, - com.google.analytics.admin.v1alpha.UserLink.Builder, - com.google.analytics.admin.v1alpha.UserLinkOrBuilder> - userLinksBuilder_; - - /** - * - * - *
-     * The user links updated.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public java.util.List getUserLinksList() { - if (userLinksBuilder_ == null) { - return java.util.Collections.unmodifiableList(userLinks_); - } else { - return userLinksBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * The user links updated.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public int getUserLinksCount() { - if (userLinksBuilder_ == null) { - return userLinks_.size(); - } else { - return userLinksBuilder_.getCount(); - } - } - /** - * - * - *
-     * The user links updated.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public com.google.analytics.admin.v1alpha.UserLink getUserLinks(int index) { - if (userLinksBuilder_ == null) { - return userLinks_.get(index); - } else { - return userLinksBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * The user links updated.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public Builder setUserLinks(int index, com.google.analytics.admin.v1alpha.UserLink value) { - if (userLinksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureUserLinksIsMutable(); - userLinks_.set(index, value); - onChanged(); - } else { - userLinksBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The user links updated.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public Builder setUserLinks( - int index, com.google.analytics.admin.v1alpha.UserLink.Builder builderForValue) { - if (userLinksBuilder_ == null) { - ensureUserLinksIsMutable(); - userLinks_.set(index, builderForValue.build()); - onChanged(); - } else { - userLinksBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The user links updated.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public Builder addUserLinks(com.google.analytics.admin.v1alpha.UserLink value) { - if (userLinksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureUserLinksIsMutable(); - userLinks_.add(value); - onChanged(); - } else { - userLinksBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * The user links updated.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public Builder addUserLinks(int index, com.google.analytics.admin.v1alpha.UserLink value) { - if (userLinksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureUserLinksIsMutable(); - userLinks_.add(index, value); - onChanged(); - } else { - userLinksBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The user links updated.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public Builder addUserLinks( - com.google.analytics.admin.v1alpha.UserLink.Builder builderForValue) { - if (userLinksBuilder_ == null) { - ensureUserLinksIsMutable(); - userLinks_.add(builderForValue.build()); - onChanged(); - } else { - userLinksBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The user links updated.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public Builder addUserLinks( - int index, com.google.analytics.admin.v1alpha.UserLink.Builder builderForValue) { - if (userLinksBuilder_ == null) { - ensureUserLinksIsMutable(); - userLinks_.add(index, builderForValue.build()); - onChanged(); - } else { - userLinksBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The user links updated.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public Builder addAllUserLinks( - java.lang.Iterable values) { - if (userLinksBuilder_ == null) { - ensureUserLinksIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, userLinks_); - onChanged(); - } else { - userLinksBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * The user links updated.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public Builder clearUserLinks() { - if (userLinksBuilder_ == null) { - userLinks_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - userLinksBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * The user links updated.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public Builder removeUserLinks(int index) { - if (userLinksBuilder_ == null) { - ensureUserLinksIsMutable(); - userLinks_.remove(index); - onChanged(); - } else { - userLinksBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * The user links updated.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public com.google.analytics.admin.v1alpha.UserLink.Builder getUserLinksBuilder(int index) { - return getUserLinksFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * The user links updated.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public com.google.analytics.admin.v1alpha.UserLinkOrBuilder getUserLinksOrBuilder(int index) { - if (userLinksBuilder_ == null) { - return userLinks_.get(index); - } else { - return userLinksBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * The user links updated.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public java.util.List - getUserLinksOrBuilderList() { - if (userLinksBuilder_ != null) { - return userLinksBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(userLinks_); - } - } - /** - * - * - *
-     * The user links updated.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public com.google.analytics.admin.v1alpha.UserLink.Builder addUserLinksBuilder() { - return getUserLinksFieldBuilder() - .addBuilder(com.google.analytics.admin.v1alpha.UserLink.getDefaultInstance()); - } - /** - * - * - *
-     * The user links updated.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public com.google.analytics.admin.v1alpha.UserLink.Builder addUserLinksBuilder(int index) { - return getUserLinksFieldBuilder() - .addBuilder(index, com.google.analytics.admin.v1alpha.UserLink.getDefaultInstance()); - } - /** - * - * - *
-     * The user links updated.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public java.util.List - getUserLinksBuilderList() { - return getUserLinksFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.UserLink, - com.google.analytics.admin.v1alpha.UserLink.Builder, - com.google.analytics.admin.v1alpha.UserLinkOrBuilder> - getUserLinksFieldBuilder() { - if (userLinksBuilder_ == null) { - userLinksBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.UserLink, - com.google.analytics.admin.v1alpha.UserLink.Builder, - com.google.analytics.admin.v1alpha.UserLinkOrBuilder>( - userLinks_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); - userLinks_ = null; - } - return userLinksBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse) - private static final com.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse(); - } - - public static com.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BatchUpdateUserLinksResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchUpdateUserLinksResponseOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchUpdateUserLinksResponseOrBuilder.java deleted file mode 100644 index a00931b1..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchUpdateUserLinksResponseOrBuilder.java +++ /dev/null @@ -1,77 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface BatchUpdateUserLinksResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The user links updated.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - java.util.List getUserLinksList(); - /** - * - * - *
-   * The user links updated.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - com.google.analytics.admin.v1alpha.UserLink getUserLinks(int index); - /** - * - * - *
-   * The user links updated.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - int getUserLinksCount(); - /** - * - * - *
-   * The user links updated.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - java.util.List - getUserLinksOrBuilderList(); - /** - * - * - *
-   * The user links updated.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - com.google.analytics.admin.v1alpha.UserLinkOrBuilder getUserLinksOrBuilder(int index); -} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CancelDisplayVideo360AdvertiserLinkProposalRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CancelDisplayVideo360AdvertiserLinkProposalRequest.java deleted file mode 100644 index c700d084..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CancelDisplayVideo360AdvertiserLinkProposalRequest.java +++ /dev/null @@ -1,693 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * Request message for 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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - 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(); - 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); - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.analytics.admin.v1alpha.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_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - 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 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; - 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(); - 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; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CancelDisplayVideo360AdvertiserLinkProposalRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CancelDisplayVideo360AdvertiserLinkProposalRequestOrBuilder.java deleted file mode 100644 index 9f4a2a4d..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CancelDisplayVideo360AdvertiserLinkProposalRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryChange.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryChange.java deleted file mode 100644 index a595ef28..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryChange.java +++ /dev/null @@ -1,6896 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/resources.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * 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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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 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(); - - public 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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - 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), - DATA_STREAM(18), - ATTRIBUTION_SETTINGS(20), - 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 18: - return DATA_STREAM; - case 20: - return ATTRIBUTION_SETTINGS; - 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 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(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (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_ == 18) { - output.writeMessage(18, (com.google.analytics.admin.v1alpha.DataStream) resource_); - } - if (resourceCase_ == 20) { - output.writeMessage(20, (com.google.analytics.admin.v1alpha.AttributionSettings) 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_ == 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_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @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 18: - if (!getDataStream().equals(other.getDataStream())) return false; - break; - case 20: - if (!getAttributionSettings().equals(other.getAttributionSettings())) 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 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 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(); - 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 (dataStreamBuilder_ != null) { - dataStreamBuilder_.clear(); - } - if (attributionSettingsBuilder_ != null) { - attributionSettingsBuilder_.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 (resourceCase_ == 1) { - if (accountBuilder_ == null) { - result.resource_ = resource_; - } else { - result.resource_ = accountBuilder_.build(); - } - } - if (resourceCase_ == 2) { - if (propertyBuilder_ == null) { - result.resource_ = resource_; - } else { - result.resource_ = propertyBuilder_.build(); - } - } - if (resourceCase_ == 6) { - if (firebaseLinkBuilder_ == null) { - result.resource_ = resource_; - } else { - result.resource_ = firebaseLinkBuilder_.build(); - } - } - if (resourceCase_ == 7) { - if (googleAdsLinkBuilder_ == null) { - result.resource_ = resource_; - } else { - result.resource_ = googleAdsLinkBuilder_.build(); - } - } - if (resourceCase_ == 8) { - if (googleSignalsSettingsBuilder_ == null) { - result.resource_ = resource_; - } else { - result.resource_ = googleSignalsSettingsBuilder_.build(); - } - } - if (resourceCase_ == 9) { - if (displayVideo360AdvertiserLinkBuilder_ == null) { - result.resource_ = resource_; - } else { - result.resource_ = displayVideo360AdvertiserLinkBuilder_.build(); - } - } - if (resourceCase_ == 10) { - if (displayVideo360AdvertiserLinkProposalBuilder_ == null) { - result.resource_ = resource_; - } else { - result.resource_ = displayVideo360AdvertiserLinkProposalBuilder_.build(); - } - } - if (resourceCase_ == 11) { - if (conversionEventBuilder_ == null) { - result.resource_ = resource_; - } else { - result.resource_ = conversionEventBuilder_.build(); - } - } - if (resourceCase_ == 12) { - if (measurementProtocolSecretBuilder_ == null) { - result.resource_ = resource_; - } else { - result.resource_ = measurementProtocolSecretBuilder_.build(); - } - } - if (resourceCase_ == 13) { - if (customDimensionBuilder_ == null) { - result.resource_ = resource_; - } else { - result.resource_ = customDimensionBuilder_.build(); - } - } - if (resourceCase_ == 14) { - if (customMetricBuilder_ == null) { - result.resource_ = resource_; - } else { - result.resource_ = customMetricBuilder_.build(); - } - } - if (resourceCase_ == 15) { - if (dataRetentionSettingsBuilder_ == null) { - result.resource_ = resource_; - } else { - result.resource_ = dataRetentionSettingsBuilder_.build(); - } - } - if (resourceCase_ == 18) { - if (dataStreamBuilder_ == null) { - result.resource_ = resource_; - } else { - result.resource_ = dataStreamBuilder_.build(); - } - } - if (resourceCase_ == 20) { - if (attributionSettingsBuilder_ == null) { - result.resource_ = resource_; - } else { - result.resource_ = attributionSettingsBuilder_.build(); - } - } - result.resourceCase_ = resourceCase_; - 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.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 DATA_STREAM: - { - mergeDataStream(other.getDataStream()); - break; - } - case ATTRIBUTION_SETTINGS: - { - mergeAttributionSettings(other.getAttributionSettings()); - 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 146: - { - input.readMessage(getDataStreamFieldBuilder().getBuilder(), extensionRegistry); - resourceCase_ = 18; - break; - } // case 146 - case 162: - { - input.readMessage( - getAttributionSettingsFieldBuilder().getBuilder(), extensionRegistry); - resourceCase_ = 20; - break; - } // case 162 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an 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 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.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_; - } - - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.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; - 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_; - /** - * - * - *
-   * 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() { - @SuppressWarnings("deprecation") - com.google.analytics.admin.v1alpha.ActionType result = - com.google.analytics.admin.v1alpha.ActionType.valueOf(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 getResourceBeforeChange(); - } - - 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 getResourceAfterChange(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 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(); - resource_ = ""; - - action_ = 0; - - if (resourceBeforeChangeBuilder_ == null) { - resourceBeforeChange_ = null; - } else { - resourceBeforeChange_ = null; - resourceBeforeChangeBuilder_ = null; - } - if (resourceAfterChangeBuilder_ == null) { - resourceAfterChange_ = null; - } else { - resourceAfterChange_ = null; - 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); - result.resource_ = resource_; - result.action_ = action_; - if (resourceBeforeChangeBuilder_ == null) { - result.resourceBeforeChange_ = resourceBeforeChange_; - } else { - result.resourceBeforeChange_ = resourceBeforeChangeBuilder_.build(); - } - if (resourceAfterChangeBuilder_ == null) { - result.resourceAfterChange_ = resourceAfterChange_; - } else { - result.resourceAfterChange_ = resourceAfterChangeBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.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_; - 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(); - - break; - } // case 10 - case 16: - { - action_ = input.readEnum(); - - break; - } // case 16 - case 26: - { - input.readMessage( - getResourceBeforeChangeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 26 - case 34: - { - input.readMessage( - getResourceAfterChangeFieldBuilder().getBuilder(), extensionRegistry); - - 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 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; - 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(); - 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; - 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; - 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() { - @SuppressWarnings("deprecation") - com.google.analytics.admin.v1alpha.ActionType result = - com.google.analytics.admin.v1alpha.ActionType.valueOf(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(); - } - - 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() { - - 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 resourceBeforeChangeBuilder_ != null || 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. - */ - 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; - onChanged(); - } else { - resourceBeforeChangeBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - resourceBeforeChangeBuilder_.setMessage(builderForValue.build()); - } - - 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 (resourceBeforeChange_ != null) { - resourceBeforeChange_ = - com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource - .newBuilder(resourceBeforeChange_) - .mergeFrom(value) - .buildPartial(); - } else { - resourceBeforeChange_ = value; - } - onChanged(); - } else { - resourceBeforeChangeBuilder_.mergeFrom(value); - } - - 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() { - if (resourceBeforeChangeBuilder_ == null) { - resourceBeforeChange_ = null; - onChanged(); - } else { - resourceBeforeChange_ = null; - resourceBeforeChangeBuilder_ = null; - } - - 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() { - - 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 resourceAfterChangeBuilder_ != null || 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. - */ - 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; - onChanged(); - } else { - resourceAfterChangeBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - resourceAfterChangeBuilder_.setMessage(builderForValue.build()); - } - - 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 (resourceAfterChange_ != null) { - resourceAfterChange_ = - com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource - .newBuilder(resourceAfterChange_) - .mergeFrom(value) - .buildPartial(); - } else { - resourceAfterChange_ = value; - } - onChanged(); - } else { - resourceAfterChangeBuilder_.mergeFrom(value); - } - - 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() { - if (resourceAfterChangeBuilder_ == null) { - resourceAfterChange_ = null; - onChanged(); - } else { - resourceAfterChange_ = null; - resourceAfterChangeBuilder_ = null; - } - - 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() { - - 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryChangeOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryChangeOrBuilder.java deleted file mode 100644 index bb3c0817..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryChangeOrBuilder.java +++ /dev/null @@ -1,167 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/resources.proto - -package com.google.analytics.admin.v1alpha; - -public interface 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryEvent.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryEvent.java deleted file mode 100644 index 71ee7070..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryEvent.java +++ /dev/null @@ -1,1847 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/resources.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * 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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - 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 getChangeTime(); - } - - public static final int ACTOR_TYPE_FIELD_NUMBER = 3; - private int actorType_; - /** - * - * - *
-   * 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() { - @SuppressWarnings("deprecation") - com.google.analytics.admin.v1alpha.ActorType result = - com.google.analytics.admin.v1alpha.ActorType.valueOf(actorType_); - return result == null ? com.google.analytics.admin.v1alpha.ActorType.UNRECOGNIZED : result; - } - - public static final int USER_ACTOR_EMAIL_FIELD_NUMBER = 4; - 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_; - /** - * - * - *
-   * 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; - 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(); - id_ = ""; - - if (changeTimeBuilder_ == null) { - changeTime_ = null; - } else { - changeTime_ = null; - changeTimeBuilder_ = null; - } - actorType_ = 0; - - userActorEmail_ = ""; - - changesFiltered_ = false; - - if (changesBuilder_ == null) { - changes_ = java.util.Collections.emptyList(); - } else { - changes_ = null; - changesBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - 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); - int from_bitField0_ = bitField0_; - result.id_ = id_; - if (changeTimeBuilder_ == null) { - result.changeTime_ = changeTime_; - } else { - result.changeTime_ = changeTimeBuilder_.build(); - } - result.actorType_ = actorType_; - result.userActorEmail_ = userActorEmail_; - result.changesFiltered_ = changesFiltered_; - if (changesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - changes_ = java.util.Collections.unmodifiableList(changes_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.changes_ = changes_; - } else { - result.changes_ = changesBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.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_; - onChanged(); - } - if (other.hasChangeTime()) { - mergeChangeTime(other.getChangeTime()); - } - if (other.actorType_ != 0) { - setActorTypeValue(other.getActorTypeValue()); - } - if (!other.getUserActorEmail().isEmpty()) { - userActorEmail_ = other.userActorEmail_; - onChanged(); - } - if (other.getChangesFiltered() != false) { - setChangesFiltered(other.getChangesFiltered()); - } - if (changesBuilder_ == null) { - if (!other.changes_.isEmpty()) { - if (changes_.isEmpty()) { - changes_ = other.changes_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureChangesIsMutable(); - changes_.addAll(other.changes_); - } - onChanged(); - } - } else { - if (!other.changes_.isEmpty()) { - if (changesBuilder_.isEmpty()) { - changesBuilder_.dispose(); - changesBuilder_ = null; - changes_ = other.changes_; - bitField0_ = (bitField0_ & ~0x00000001); - 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(); - - break; - } // case 10 - case 18: - { - input.readMessage(getChangeTimeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - case 24: - { - actorType_ = input.readEnum(); - - break; - } // case 24 - case 34: - { - userActorEmail_ = input.readStringRequireUtf8(); - - break; - } // case 34 - case 40: - { - changesFiltered_ = input.readBool(); - - 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; - 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(); - 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; - 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 changeTimeBuilder_ != null || changeTime_ != null; - } - /** - * - * - *
-     * 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; - onChanged(); - } else { - changeTimeBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - changeTimeBuilder_.setMessage(builderForValue.build()); - } - - 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 (changeTime_ != null) { - changeTime_ = - com.google.protobuf.Timestamp.newBuilder(changeTime_).mergeFrom(value).buildPartial(); - } else { - changeTime_ = value; - } - onChanged(); - } else { - changeTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Time when change was made.
-     * 
- * - * .google.protobuf.Timestamp change_time = 2; - */ - public Builder clearChangeTime() { - if (changeTimeBuilder_ == null) { - changeTime_ = null; - onChanged(); - } else { - changeTime_ = null; - changeTimeBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Time when change was made.
-     * 
- * - * .google.protobuf.Timestamp change_time = 2; - */ - public com.google.protobuf.Timestamp.Builder getChangeTimeBuilder() { - - 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; - 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() { - @SuppressWarnings("deprecation") - com.google.analytics.admin.v1alpha.ActorType result = - com.google.analytics.admin.v1alpha.ActorType.valueOf(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(); - } - - 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() { - - 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; - 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(); - 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; - 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; - 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() { - - changesFiltered_ = false; - onChanged(); - return this; - } - - private java.util.List changes_ = - java.util.Collections.emptyList(); - - private void ensureChangesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - changes_ = - new java.util.ArrayList( - changes_); - bitField0_ |= 0x00000001; - } - } - - 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_ & ~0x00000001); - 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_ & 0x00000001) != 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryEventOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryEventOrBuilder.java deleted file mode 100644 index 0229a14c..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryEventOrBuilder.java +++ /dev/null @@ -1,210 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/resources.proto - -package com.google.analytics.admin.v1alpha; - -public interface 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryResourceType.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryResourceType.java deleted file mode 100644 index 55c4efb1..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryResourceType.java +++ /dev/null @@ -1,465 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/resources.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * 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), - 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; - - 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; - 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ConversionEvent.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ConversionEvent.java deleted file mode 100644 index 06a384fe..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ConversionEvent.java +++ /dev/null @@ -1,1293 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/resources.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * 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_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ConversionEvent(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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); - } - - public static final int NAME_FIELD_NUMBER = 1; - 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; - 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 getCreateTime(); - } - - public static final int DELETABLE_FIELD_NUMBER = 4; - private boolean deletable_; - /** - * - * - *
-   * Output only. If set, this event can currently be deleted via 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_; - /** - * - * - *
-   * 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_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 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_); - } - getUnknownFields().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_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @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 (!getUnknownFields().equals(other.getUnknownFields())) return false; - 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 = (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(); - name_ = ""; - - eventName_ = ""; - - if (createTimeBuilder_ == null) { - createTime_ = null; - } else { - createTime_ = null; - createTimeBuilder_ = null; - } - deletable_ = false; - - custom_ = 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_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); - result.name_ = name_; - result.eventName_ = eventName_; - if (createTimeBuilder_ == null) { - result.createTime_ = createTime_; - } else { - result.createTime_ = createTimeBuilder_.build(); - } - result.deletable_ = deletable_; - result.custom_ = custom_; - 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.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_; - onChanged(); - } - if (!other.getEventName().isEmpty()) { - eventName_ = other.eventName_; - onChanged(); - } - if (other.hasCreateTime()) { - mergeCreateTime(other.getCreateTime()); - } - if (other.getDeletable() != false) { - setDeletable(other.getDeletable()); - } - if (other.getCustom() != false) { - setCustom(other.getCustom()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 18: - { - eventName_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: - { - input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 26 - case 32: - { - deletable_ = input.readBool(); - - break; - } // case 32 - case 40: - { - custom_ = input.readBool(); - - 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 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; - 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(); - 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; - 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; - 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(); - 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; - 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 createTimeBuilder_ != null || 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. - */ - 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; - onChanged(); - } else { - createTimeBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - createTimeBuilder_.setMessage(builderForValue.build()); - } - - 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 (createTime_ != null) { - createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); - } else { - createTime_ = value; - } - onChanged(); - } else { - createTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Output only. Time when this conversion event was created in the property.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearCreateTime() { - if (createTimeBuilder_ == null) { - createTime_ = null; - onChanged(); - } else { - createTime_ = null; - createTimeBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Output only. Time when this 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() { - - 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 via 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 via 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; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. If set, this event can currently be deleted via DeleteConversionEvent.
-     * 
- * - * bool deletable = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearDeletable() { - - 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; - 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() { - - custom_ = 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.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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ConversionEventName.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ConversionEventName.java deleted file mode 100644 index 8e3b8e15..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ConversionEventName.java +++ /dev/null @@ -1,198 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 com.google.api.pathtemplate.PathTemplate; -import com.google.api.resourcenames.ResourceName; -import com.google.common.base.Preconditions; -import com.google.common.collect.ImmutableMap; -import java.util.ArrayList; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -@Generated("by gapic-generator-java") -public class ConversionEventName implements ResourceName { - private static final PathTemplate PROPERTY_CONVERSION_EVENT = - PathTemplate.createWithoutUrlEncoding( - "properties/{property}/conversionEvents/{conversion_event}"); - private volatile Map fieldValuesMap; - private final String property; - private final String conversionEvent; - - @Deprecated - protected ConversionEventName() { - property = null; - conversionEvent = null; - } - - private ConversionEventName(Builder builder) { - property = Preconditions.checkNotNull(builder.getProperty()); - conversionEvent = Preconditions.checkNotNull(builder.getConversionEvent()); - } - - public String getProperty() { - return property; - } - - public String getConversionEvent() { - return conversionEvent; - } - - public static Builder newBuilder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder(this); - } - - public static ConversionEventName of(String property, String conversionEvent) { - return newBuilder().setProperty(property).setConversionEvent(conversionEvent).build(); - } - - public static String format(String property, String conversionEvent) { - return newBuilder() - .setProperty(property) - .setConversionEvent(conversionEvent) - .build() - .toString(); - } - - public static ConversionEventName parse(String formattedString) { - if (formattedString.isEmpty()) { - return null; - } - Map matchMap = - PROPERTY_CONVERSION_EVENT.validatedMatch( - formattedString, "ConversionEventName.parse: formattedString not in valid format"); - return of(matchMap.get("property"), matchMap.get("conversion_event")); - } - - public static List parseList(List formattedStrings) { - List list = new ArrayList<>(formattedStrings.size()); - for (String formattedString : formattedStrings) { - list.add(parse(formattedString)); - } - return list; - } - - public static List toStringList(List values) { - List list = new ArrayList<>(values.size()); - for (ConversionEventName value : values) { - if (value == null) { - list.add(""); - } else { - list.add(value.toString()); - } - } - return list; - } - - public static boolean isParsableFrom(String formattedString) { - return PROPERTY_CONVERSION_EVENT.matches(formattedString); - } - - @Override - public Map getFieldValuesMap() { - if (fieldValuesMap == null) { - synchronized (this) { - if (fieldValuesMap == null) { - ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); - if (property != null) { - fieldMapBuilder.put("property", property); - } - if (conversionEvent != null) { - fieldMapBuilder.put("conversion_event", conversionEvent); - } - fieldValuesMap = fieldMapBuilder.build(); - } - } - } - return fieldValuesMap; - } - - public String getFieldValue(String fieldName) { - return getFieldValuesMap().get(fieldName); - } - - @Override - public String toString() { - return PROPERTY_CONVERSION_EVENT.instantiate( - "property", property, "conversion_event", conversionEvent); - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (o != null || getClass() == o.getClass()) { - ConversionEventName that = ((ConversionEventName) o); - return Objects.equals(this.property, that.property) - && Objects.equals(this.conversionEvent, that.conversionEvent); - } - return false; - } - - @Override - public int hashCode() { - int h = 1; - h *= 1000003; - h ^= Objects.hashCode(property); - h *= 1000003; - h ^= Objects.hashCode(conversionEvent); - return h; - } - - /** Builder for properties/{property}/conversionEvents/{conversion_event}. */ - public static class Builder { - private String property; - private String conversionEvent; - - protected Builder() {} - - public String getProperty() { - return property; - } - - public String getConversionEvent() { - return conversionEvent; - } - - public Builder setProperty(String property) { - this.property = property; - return this; - } - - public Builder setConversionEvent(String conversionEvent) { - this.conversionEvent = conversionEvent; - return this; - } - - private Builder(ConversionEventName conversionEventName) { - this.property = conversionEventName.property; - this.conversionEvent = conversionEventName.conversionEvent; - } - - public ConversionEventName build() { - return new ConversionEventName(this); - } - } -} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ConversionEventOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ConversionEventOrBuilder.java deleted file mode 100644 index b42b2f98..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ConversionEventOrBuilder.java +++ /dev/null @@ -1,148 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/resources.proto - -package com.google.analytics.admin.v1alpha; - -public interface 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 via 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(); -} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateAudienceRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateAudienceRequest.java deleted file mode 100644 index bb6c7639..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateAudienceRequest.java +++ /dev/null @@ -1,922 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * Request message for 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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - 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 getAudience(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 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(); - parent_ = ""; - - if (audienceBuilder_ == null) { - audience_ = null; - } else { - audience_ = null; - 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); - result.parent_ = parent_; - if (audienceBuilder_ == null) { - result.audience_ = audience_; - } else { - result.audience_ = audienceBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.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_; - 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(); - - break; - } // case 10 - case 18: - { - input.readMessage(getAudienceFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object parent_ = ""; - /** - * - * - *
-     * Required. Example format: properties/1234
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. Example format: properties/1234
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. Example format: properties/1234
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - parent_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Example format: properties/1234
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearParent() { - - parent_ = getDefaultInstance().getParent(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Example format: properties/1234
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - parent_ = value; - onChanged(); - return this; - } - - private com.google.analytics.admin.v1alpha.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 audienceBuilder_ != null || audience_ != null; - } - /** - * - * - *
-     * 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; - onChanged(); - } else { - audienceBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - audienceBuilder_.setMessage(builderForValue.build()); - } - - 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 (audience_ != null) { - audience_ = - com.google.analytics.admin.v1alpha.Audience.newBuilder(audience_) - .mergeFrom(value) - .buildPartial(); - } else { - audience_ = value; - } - onChanged(); - } else { - audienceBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. The audience to create.
-     * 
- * - * - * .google.analytics.admin.v1alpha.Audience audience = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearAudience() { - if (audienceBuilder_ == null) { - audience_ = null; - onChanged(); - } else { - audience_ = null; - audienceBuilder_ = null; - } - - 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() { - - 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateAudienceRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateAudienceRequestOrBuilder.java deleted file mode 100644 index bc459160..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateAudienceRequestOrBuilder.java +++ /dev/null @@ -1,95 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateConversionEventRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateConversionEventRequest.java deleted file mode 100644 index 56910bef..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateConversionEventRequest.java +++ /dev/null @@ -1,936 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * Request message for 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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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 getConversionEvent(); - } - - public static final int PARENT_FIELD_NUMBER = 2; - 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(); - if (conversionEventBuilder_ == null) { - conversionEvent_ = null; - } else { - conversionEvent_ = null; - 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 (conversionEventBuilder_ == null) { - result.conversionEvent_ = conversionEvent_; - } else { - result.conversionEvent_ = conversionEventBuilder_.build(); - } - result.parent_ = parent_; - 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.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_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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); - - break; - } // case 10 - case 18: - { - parent_ = input.readStringRequireUtf8(); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - 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 conversionEventBuilder_ != null || conversionEvent_ != null; - } - /** - * - * - *
-     * 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; - onChanged(); - } else { - conversionEventBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - conversionEventBuilder_.setMessage(builderForValue.build()); - } - - 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 (conversionEvent_ != null) { - conversionEvent_ = - com.google.analytics.admin.v1alpha.ConversionEvent.newBuilder(conversionEvent_) - .mergeFrom(value) - .buildPartial(); - } else { - conversionEvent_ = value; - } - onChanged(); - } else { - conversionEventBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. The conversion event to create.
-     * 
- * - * - * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearConversionEvent() { - if (conversionEventBuilder_ == null) { - conversionEvent_ = null; - onChanged(); - } else { - conversionEvent_ = null; - conversionEventBuilder_ = null; - } - - 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() { - - 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; - 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(); - 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; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateConversionEventRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateConversionEventRequestOrBuilder.java deleted file mode 100644 index 9efd85dc..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateConversionEventRequestOrBuilder.java +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateCustomDimensionRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateCustomDimensionRequest.java deleted file mode 100644 index 1b5b435a..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateCustomDimensionRequest.java +++ /dev/null @@ -1,929 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * Request message for 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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - 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 getCustomDimension(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 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(); - parent_ = ""; - - if (customDimensionBuilder_ == null) { - customDimension_ = null; - } else { - customDimension_ = null; - 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); - result.parent_ = parent_; - if (customDimensionBuilder_ == null) { - result.customDimension_ = customDimension_; - } else { - result.customDimension_ = customDimensionBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.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_; - 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(); - - break; - } // case 10 - case 18: - { - input.readMessage(getCustomDimensionFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object parent_ = ""; - /** - * - * - *
-     * Required. Example format: properties/1234
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. Example format: properties/1234
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. Example format: properties/1234
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - parent_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Example format: properties/1234
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearParent() { - - parent_ = getDefaultInstance().getParent(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Example format: properties/1234
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - parent_ = value; - onChanged(); - return this; - } - - private com.google.analytics.admin.v1alpha.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 customDimensionBuilder_ != null || customDimension_ != null; - } - /** - * - * - *
-     * 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; - onChanged(); - } else { - customDimensionBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - customDimensionBuilder_.setMessage(builderForValue.build()); - } - - 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 (customDimension_ != null) { - customDimension_ = - com.google.analytics.admin.v1alpha.CustomDimension.newBuilder(customDimension_) - .mergeFrom(value) - .buildPartial(); - } else { - customDimension_ = value; - } - onChanged(); - } else { - customDimensionBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. The CustomDimension to create.
-     * 
- * - * - * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearCustomDimension() { - if (customDimensionBuilder_ == null) { - customDimension_ = null; - onChanged(); - } else { - customDimension_ = null; - customDimensionBuilder_ = null; - } - - 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() { - - 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateCustomDimensionRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateCustomDimensionRequestOrBuilder.java deleted file mode 100644 index a49f402b..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateCustomDimensionRequestOrBuilder.java +++ /dev/null @@ -1,95 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateCustomMetricRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateCustomMetricRequest.java deleted file mode 100644 index f6f1d859..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateCustomMetricRequest.java +++ /dev/null @@ -1,925 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * Request message for 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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - 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 getCustomMetric(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 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(); - parent_ = ""; - - if (customMetricBuilder_ == null) { - customMetric_ = null; - } else { - customMetric_ = null; - 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); - result.parent_ = parent_; - if (customMetricBuilder_ == null) { - result.customMetric_ = customMetric_; - } else { - result.customMetric_ = customMetricBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.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_; - 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(); - - break; - } // case 10 - case 18: - { - input.readMessage(getCustomMetricFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object parent_ = ""; - /** - * - * - *
-     * Required. Example format: properties/1234
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. Example format: properties/1234
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. Example format: properties/1234
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - parent_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Example format: properties/1234
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearParent() { - - parent_ = getDefaultInstance().getParent(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Example format: properties/1234
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - parent_ = value; - onChanged(); - return this; - } - - private com.google.analytics.admin.v1alpha.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 customMetricBuilder_ != null || customMetric_ != null; - } - /** - * - * - *
-     * 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; - onChanged(); - } else { - customMetricBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - customMetricBuilder_.setMessage(builderForValue.build()); - } - - 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 (customMetric_ != null) { - customMetric_ = - com.google.analytics.admin.v1alpha.CustomMetric.newBuilder(customMetric_) - .mergeFrom(value) - .buildPartial(); - } else { - customMetric_ = value; - } - onChanged(); - } else { - customMetricBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. The CustomMetric to create.
-     * 
- * - * - * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearCustomMetric() { - if (customMetricBuilder_ == null) { - customMetric_ = null; - onChanged(); - } else { - customMetric_ = null; - customMetricBuilder_ = null; - } - - 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() { - - 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateCustomMetricRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateCustomMetricRequestOrBuilder.java deleted file mode 100644 index 1cf913ab..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateCustomMetricRequestOrBuilder.java +++ /dev/null @@ -1,95 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateDataStreamRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateDataStreamRequest.java deleted file mode 100644 index 88b72583..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateDataStreamRequest.java +++ /dev/null @@ -1,922 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * Request message for CreateDataStream RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.CreateDataStreamRequest} - */ -public final class CreateDataStreamRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.CreateDataStreamRequest) - CreateDataStreamRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use CreateDataStreamRequest.newBuilder() to construct. - private CreateDataStreamRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private CreateDataStreamRequest() { - parent_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new CreateDataStreamRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_CreateDataStreamRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_CreateDataStreamRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.CreateDataStreamRequest.class, - com.google.analytics.admin.v1alpha.CreateDataStreamRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; - /** - * - * - *
-   * Required. Example format: properties/1234
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - * - * - *
-   * Required. Example format: properties/1234
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DATA_STREAM_FIELD_NUMBER = 2; - private com.google.analytics.admin.v1alpha.DataStream dataStream_; - /** - * - * - *
-   * Required. The DataStream to create.
-   * 
- * - * - * .google.analytics.admin.v1alpha.DataStream data_stream = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the dataStream field is set. - */ - @java.lang.Override - public boolean hasDataStream() { - return dataStream_ != null; - } - /** - * - * - *
-   * Required. The DataStream to create.
-   * 
- * - * - * .google.analytics.admin.v1alpha.DataStream data_stream = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The dataStream. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.DataStream getDataStream() { - return dataStream_ == null - ? com.google.analytics.admin.v1alpha.DataStream.getDefaultInstance() - : dataStream_; - } - /** - * - * - *
-   * Required. The DataStream to create.
-   * 
- * - * - * .google.analytics.admin.v1alpha.DataStream data_stream = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.DataStreamOrBuilder getDataStreamOrBuilder() { - return getDataStream(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (dataStream_ != null) { - output.writeMessage(2, getDataStream()); - } - getUnknownFields().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(); - parent_ = ""; - - if (dataStreamBuilder_ == null) { - dataStream_ = null; - } else { - dataStream_ = null; - dataStreamBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_CreateDataStreamRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CreateDataStreamRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.CreateDataStreamRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CreateDataStreamRequest build() { - com.google.analytics.admin.v1alpha.CreateDataStreamRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CreateDataStreamRequest buildPartial() { - com.google.analytics.admin.v1alpha.CreateDataStreamRequest result = - new com.google.analytics.admin.v1alpha.CreateDataStreamRequest(this); - result.parent_ = parent_; - if (dataStreamBuilder_ == null) { - result.dataStream_ = dataStream_; - } else { - result.dataStream_ = dataStreamBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.CreateDataStreamRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.CreateDataStreamRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.CreateDataStreamRequest other) { - if (other == com.google.analytics.admin.v1alpha.CreateDataStreamRequest.getDefaultInstance()) - return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - onChanged(); - } - if (other.hasDataStream()) { - mergeDataStream(other.getDataStream()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 18: - { - input.readMessage(getDataStreamFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object parent_ = ""; - /** - * - * - *
-     * Required. Example format: properties/1234
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. Example format: properties/1234
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. Example format: properties/1234
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - parent_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Example format: properties/1234
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearParent() { - - parent_ = getDefaultInstance().getParent(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Example format: properties/1234
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - parent_ = value; - onChanged(); - return this; - } - - private com.google.analytics.admin.v1alpha.DataStream dataStream_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.DataStream, - com.google.analytics.admin.v1alpha.DataStream.Builder, - com.google.analytics.admin.v1alpha.DataStreamOrBuilder> - dataStreamBuilder_; - /** - * - * - *
-     * Required. The DataStream to create.
-     * 
- * - * - * .google.analytics.admin.v1alpha.DataStream data_stream = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the dataStream field is set. - */ - public boolean hasDataStream() { - return dataStreamBuilder_ != null || dataStream_ != null; - } - /** - * - * - *
-     * Required. The DataStream to create.
-     * 
- * - * - * .google.analytics.admin.v1alpha.DataStream data_stream = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The dataStream. - */ - public com.google.analytics.admin.v1alpha.DataStream getDataStream() { - if (dataStreamBuilder_ == null) { - return dataStream_ == null - ? com.google.analytics.admin.v1alpha.DataStream.getDefaultInstance() - : dataStream_; - } else { - return dataStreamBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. The DataStream to create.
-     * 
- * - * - * .google.analytics.admin.v1alpha.DataStream data_stream = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setDataStream(com.google.analytics.admin.v1alpha.DataStream value) { - if (dataStreamBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - dataStream_ = value; - onChanged(); - } else { - dataStreamBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. The DataStream to create.
-     * 
- * - * - * .google.analytics.admin.v1alpha.DataStream data_stream = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setDataStream( - com.google.analytics.admin.v1alpha.DataStream.Builder builderForValue) { - if (dataStreamBuilder_ == null) { - dataStream_ = builderForValue.build(); - onChanged(); - } else { - dataStreamBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. The DataStream to create.
-     * 
- * - * - * .google.analytics.admin.v1alpha.DataStream data_stream = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeDataStream(com.google.analytics.admin.v1alpha.DataStream value) { - if (dataStreamBuilder_ == null) { - if (dataStream_ != null) { - dataStream_ = - com.google.analytics.admin.v1alpha.DataStream.newBuilder(dataStream_) - .mergeFrom(value) - .buildPartial(); - } else { - dataStream_ = value; - } - onChanged(); - } else { - dataStreamBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. The DataStream to create.
-     * 
- * - * - * .google.analytics.admin.v1alpha.DataStream data_stream = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearDataStream() { - if (dataStreamBuilder_ == null) { - dataStream_ = null; - onChanged(); - } else { - dataStream_ = null; - dataStreamBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. The DataStream to create.
-     * 
- * - * - * .google.analytics.admin.v1alpha.DataStream data_stream = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.analytics.admin.v1alpha.DataStream.Builder getDataStreamBuilder() { - - onChanged(); - return getDataStreamFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The DataStream to create.
-     * 
- * - * - * .google.analytics.admin.v1alpha.DataStream data_stream = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.analytics.admin.v1alpha.DataStreamOrBuilder getDataStreamOrBuilder() { - if (dataStreamBuilder_ != null) { - return dataStreamBuilder_.getMessageOrBuilder(); - } else { - return dataStream_ == null - ? com.google.analytics.admin.v1alpha.DataStream.getDefaultInstance() - : dataStream_; - } - } - /** - * - * - *
-     * Required. The DataStream to create.
-     * 
- * - * - * .google.analytics.admin.v1alpha.DataStream data_stream = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.DataStream, - com.google.analytics.admin.v1alpha.DataStream.Builder, - com.google.analytics.admin.v1alpha.DataStreamOrBuilder> - getDataStreamFieldBuilder() { - if (dataStreamBuilder_ == null) { - dataStreamBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.DataStream, - com.google.analytics.admin.v1alpha.DataStream.Builder, - com.google.analytics.admin.v1alpha.DataStreamOrBuilder>( - getDataStream(), getParentForChildren(), isClean()); - dataStream_ = null; - } - return dataStreamBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.CreateDataStreamRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.CreateDataStreamRequest) - private static final com.google.analytics.admin.v1alpha.CreateDataStreamRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.CreateDataStreamRequest(); - } - - public static com.google.analytics.admin.v1alpha.CreateDataStreamRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateDataStreamRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CreateDataStreamRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateDataStreamRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateDataStreamRequestOrBuilder.java deleted file mode 100644 index cce680f1..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateDataStreamRequestOrBuilder.java +++ /dev/null @@ -1,95 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface CreateDataStreamRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.CreateDataStreamRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Example format: properties/1234
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * Required. Example format: properties/1234
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); - - /** - * - * - *
-   * Required. The DataStream to create.
-   * 
- * - * - * .google.analytics.admin.v1alpha.DataStream data_stream = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the dataStream field is set. - */ - boolean hasDataStream(); - /** - * - * - *
-   * Required. The DataStream to create.
-   * 
- * - * - * .google.analytics.admin.v1alpha.DataStream data_stream = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The dataStream. - */ - com.google.analytics.admin.v1alpha.DataStream getDataStream(); - /** - * - * - *
-   * Required. The DataStream to create.
-   * 
- * - * - * .google.analytics.admin.v1alpha.DataStream data_stream = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.analytics.admin.v1alpha.DataStreamOrBuilder getDataStreamOrBuilder(); -} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateDisplayVideo360AdvertiserLinkProposalRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateDisplayVideo360AdvertiserLinkProposalRequest.java deleted file mode 100644 index 39d42e7b..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateDisplayVideo360AdvertiserLinkProposalRequest.java +++ /dev/null @@ -1,1001 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * Request message for 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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - 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 getDisplayVideo360AdvertiserLinkProposal(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 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(); - parent_ = ""; - - if (displayVideo360AdvertiserLinkProposalBuilder_ == null) { - displayVideo360AdvertiserLinkProposal_ = null; - } else { - displayVideo360AdvertiserLinkProposal_ = null; - 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); - result.parent_ = parent_; - if (displayVideo360AdvertiserLinkProposalBuilder_ == null) { - result.displayVideo360AdvertiserLinkProposal_ = displayVideo360AdvertiserLinkProposal_; - } else { - result.displayVideo360AdvertiserLinkProposal_ = - displayVideo360AdvertiserLinkProposalBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.analytics.admin.v1alpha.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_; - 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(); - - break; - } // case 10 - case 18: - { - input.readMessage( - getDisplayVideo360AdvertiserLinkProposalFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object parent_ = ""; - /** - * - * - *
-     * Required. Example format: properties/1234
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. Example format: properties/1234
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. Example format: properties/1234
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - parent_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Example format: properties/1234
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearParent() { - - parent_ = getDefaultInstance().getParent(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Example format: properties/1234
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - parent_ = value; - onChanged(); - return this; - } - - private com.google.analytics.admin.v1alpha.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 displayVideo360AdvertiserLinkProposalBuilder_ != null - || 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. - */ - 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; - onChanged(); - } else { - displayVideo360AdvertiserLinkProposalBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - displayVideo360AdvertiserLinkProposalBuilder_.setMessage(builderForValue.build()); - } - - 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 (displayVideo360AdvertiserLinkProposal_ != null) { - displayVideo360AdvertiserLinkProposal_ = - com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.newBuilder( - displayVideo360AdvertiserLinkProposal_) - .mergeFrom(value) - .buildPartial(); - } else { - displayVideo360AdvertiserLinkProposal_ = value; - } - onChanged(); - } else { - displayVideo360AdvertiserLinkProposalBuilder_.mergeFrom(value); - } - - 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() { - if (displayVideo360AdvertiserLinkProposalBuilder_ == null) { - displayVideo360AdvertiserLinkProposal_ = null; - onChanged(); - } else { - displayVideo360AdvertiserLinkProposal_ = null; - displayVideo360AdvertiserLinkProposalBuilder_ = null; - } - - 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() { - - 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateDisplayVideo360AdvertiserLinkProposalRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateDisplayVideo360AdvertiserLinkProposalRequestOrBuilder.java deleted file mode 100644 index 91d8814f..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateDisplayVideo360AdvertiserLinkProposalRequestOrBuilder.java +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateDisplayVideo360AdvertiserLinkRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateDisplayVideo360AdvertiserLinkRequest.java deleted file mode 100644 index ee5455d0..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateDisplayVideo360AdvertiserLinkRequest.java +++ /dev/null @@ -1,965 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * Request message for 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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - 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 getDisplayVideo360AdvertiserLink(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 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(); - parent_ = ""; - - if (displayVideo360AdvertiserLinkBuilder_ == null) { - displayVideo360AdvertiserLink_ = null; - } else { - displayVideo360AdvertiserLink_ = null; - 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); - result.parent_ = parent_; - if (displayVideo360AdvertiserLinkBuilder_ == null) { - result.displayVideo360AdvertiserLink_ = displayVideo360AdvertiserLink_; - } else { - result.displayVideo360AdvertiserLink_ = displayVideo360AdvertiserLinkBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.analytics.admin.v1alpha.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_; - 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(); - - break; - } // case 10 - case 18: - { - input.readMessage( - getDisplayVideo360AdvertiserLinkFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object parent_ = ""; - /** - * - * - *
-     * Required. Example format: properties/1234
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. Example format: properties/1234
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. Example format: properties/1234
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - parent_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Example format: properties/1234
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearParent() { - - parent_ = getDefaultInstance().getParent(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Example format: properties/1234
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - parent_ = value; - onChanged(); - return this; - } - - private com.google.analytics.admin.v1alpha.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 displayVideo360AdvertiserLinkBuilder_ != null - || 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. - */ - 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; - onChanged(); - } else { - displayVideo360AdvertiserLinkBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - displayVideo360AdvertiserLinkBuilder_.setMessage(builderForValue.build()); - } - - 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 (displayVideo360AdvertiserLink_ != null) { - displayVideo360AdvertiserLink_ = - com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.newBuilder( - displayVideo360AdvertiserLink_) - .mergeFrom(value) - .buildPartial(); - } else { - displayVideo360AdvertiserLink_ = value; - } - onChanged(); - } else { - displayVideo360AdvertiserLinkBuilder_.mergeFrom(value); - } - - 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() { - if (displayVideo360AdvertiserLinkBuilder_ == null) { - displayVideo360AdvertiserLink_ = null; - onChanged(); - } else { - displayVideo360AdvertiserLink_ = null; - displayVideo360AdvertiserLinkBuilder_ = null; - } - - 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() { - - 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateDisplayVideo360AdvertiserLinkRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateDisplayVideo360AdvertiserLinkRequestOrBuilder.java deleted file mode 100644 index 53dabbab..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateDisplayVideo360AdvertiserLinkRequestOrBuilder.java +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateFirebaseLinkRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateFirebaseLinkRequest.java deleted file mode 100644 index ec2b6210..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateFirebaseLinkRequest.java +++ /dev/null @@ -1,932 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * Request message for 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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - 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 getFirebaseLink(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 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(); - parent_ = ""; - - if (firebaseLinkBuilder_ == null) { - firebaseLink_ = null; - } else { - firebaseLink_ = null; - 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); - result.parent_ = parent_; - if (firebaseLinkBuilder_ == null) { - result.firebaseLink_ = firebaseLink_; - } else { - result.firebaseLink_ = firebaseLinkBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.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_; - 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(); - - break; - } // case 10 - case 18: - { - input.readMessage(getFirebaseLinkFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - 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; - 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(); - 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; - 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 firebaseLinkBuilder_ != null || firebaseLink_ != null; - } - /** - * - * - *
-     * 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; - onChanged(); - } else { - firebaseLinkBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - firebaseLinkBuilder_.setMessage(builderForValue.build()); - } - - 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 (firebaseLink_ != null) { - firebaseLink_ = - com.google.analytics.admin.v1alpha.FirebaseLink.newBuilder(firebaseLink_) - .mergeFrom(value) - .buildPartial(); - } else { - firebaseLink_ = value; - } - onChanged(); - } else { - firebaseLinkBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. The Firebase link to create.
-     * 
- * - * - * .google.analytics.admin.v1alpha.FirebaseLink firebase_link = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearFirebaseLink() { - if (firebaseLinkBuilder_ == null) { - firebaseLink_ = null; - onChanged(); - } else { - firebaseLink_ = null; - firebaseLinkBuilder_ = null; - } - - 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() { - - 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateFirebaseLinkRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateFirebaseLinkRequestOrBuilder.java deleted file mode 100644 index af6b2f56..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateFirebaseLinkRequestOrBuilder.java +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateGoogleAdsLinkRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateGoogleAdsLinkRequest.java deleted file mode 100644 index eba1dd3e..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateGoogleAdsLinkRequest.java +++ /dev/null @@ -1,925 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * Request message for 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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - 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 getGoogleAdsLink(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 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(); - parent_ = ""; - - if (googleAdsLinkBuilder_ == null) { - googleAdsLink_ = null; - } else { - googleAdsLink_ = null; - 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); - result.parent_ = parent_; - if (googleAdsLinkBuilder_ == null) { - result.googleAdsLink_ = googleAdsLink_; - } else { - result.googleAdsLink_ = googleAdsLinkBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.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_; - 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(); - - break; - } // case 10 - case 18: - { - input.readMessage(getGoogleAdsLinkFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object parent_ = ""; - /** - * - * - *
-     * Required. Example format: properties/1234
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. Example format: properties/1234
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. Example format: properties/1234
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - parent_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Example format: properties/1234
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearParent() { - - parent_ = getDefaultInstance().getParent(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Example format: properties/1234
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - parent_ = value; - onChanged(); - return this; - } - - private com.google.analytics.admin.v1alpha.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 googleAdsLinkBuilder_ != null || googleAdsLink_ != null; - } - /** - * - * - *
-     * 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; - onChanged(); - } else { - googleAdsLinkBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - googleAdsLinkBuilder_.setMessage(builderForValue.build()); - } - - 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 (googleAdsLink_ != null) { - googleAdsLink_ = - com.google.analytics.admin.v1alpha.GoogleAdsLink.newBuilder(googleAdsLink_) - .mergeFrom(value) - .buildPartial(); - } else { - googleAdsLink_ = value; - } - onChanged(); - } else { - googleAdsLinkBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. The GoogleAdsLink to create.
-     * 
- * - * - * .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearGoogleAdsLink() { - if (googleAdsLinkBuilder_ == null) { - googleAdsLink_ = null; - onChanged(); - } else { - googleAdsLink_ = null; - googleAdsLinkBuilder_ = null; - } - - 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() { - - 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateGoogleAdsLinkRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateGoogleAdsLinkRequestOrBuilder.java deleted file mode 100644 index bd09628d..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateGoogleAdsLinkRequestOrBuilder.java +++ /dev/null @@ -1,95 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateMeasurementProtocolSecretRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateMeasurementProtocolSecretRequest.java deleted file mode 100644 index f32fa4f7..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateMeasurementProtocolSecretRequest.java +++ /dev/null @@ -1,960 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * Request message for 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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - 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 getMeasurementProtocolSecret(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 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(); - parent_ = ""; - - if (measurementProtocolSecretBuilder_ == null) { - measurementProtocolSecret_ = null; - } else { - measurementProtocolSecret_ = null; - 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); - result.parent_ = parent_; - if (measurementProtocolSecretBuilder_ == null) { - result.measurementProtocolSecret_ = measurementProtocolSecret_; - } else { - result.measurementProtocolSecret_ = measurementProtocolSecretBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof com.google.analytics.admin.v1alpha.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_; - 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(); - - break; - } // case 10 - case 18: - { - input.readMessage( - getMeasurementProtocolSecretFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - 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; - 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(); - 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; - 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 measurementProtocolSecretBuilder_ != null || 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. - */ - 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; - onChanged(); - } else { - measurementProtocolSecretBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - measurementProtocolSecretBuilder_.setMessage(builderForValue.build()); - } - - 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 (measurementProtocolSecret_ != null) { - measurementProtocolSecret_ = - com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.newBuilder( - measurementProtocolSecret_) - .mergeFrom(value) - .buildPartial(); - } else { - measurementProtocolSecret_ = value; - } - onChanged(); - } else { - measurementProtocolSecretBuilder_.mergeFrom(value); - } - - 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() { - if (measurementProtocolSecretBuilder_ == null) { - measurementProtocolSecret_ = null; - onChanged(); - } else { - measurementProtocolSecret_ = null; - measurementProtocolSecretBuilder_ = null; - } - - 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() { - - 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateMeasurementProtocolSecretRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateMeasurementProtocolSecretRequestOrBuilder.java deleted file mode 100644 index eccfaa34..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateMeasurementProtocolSecretRequestOrBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreatePropertyRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreatePropertyRequest.java deleted file mode 100644 index d5443bdc..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreatePropertyRequest.java +++ /dev/null @@ -1,741 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * Request message for 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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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 getProperty(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (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(); - if (propertyBuilder_ == null) { - property_ = null; - } else { - property_ = null; - 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 (propertyBuilder_ == null) { - result.property_ = property_; - } else { - result.property_ = propertyBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.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); - - 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 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 propertyBuilder_ != null || 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. - */ - 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; - onChanged(); - } else { - propertyBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - propertyBuilder_.setMessage(builderForValue.build()); - } - - 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 (property_ != null) { - property_ = - com.google.analytics.admin.v1alpha.Property.newBuilder(property_) - .mergeFrom(value) - .buildPartial(); - } else { - property_ = value; - } - onChanged(); - } else { - propertyBuilder_.mergeFrom(value); - } - - 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() { - if (propertyBuilder_ == null) { - property_ = null; - onChanged(); - } else { - property_ = null; - propertyBuilder_ = null; - } - - 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() { - - 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreatePropertyRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreatePropertyRequestOrBuilder.java deleted file mode 100644 index 0cc75c3e..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreatePropertyRequestOrBuilder.java +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateUserLinkRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateUserLinkRequest.java deleted file mode 100644 index 630759d6..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateUserLinkRequest.java +++ /dev/null @@ -1,1029 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * Request message for CreateUserLink RPC.
- * Users can have multiple email addresses associated with their Google
- * account, and one of these email addresses is the "primary" email address.
- * Any of the email addresses associated with a Google account may be used
- * for a new UserLink, but the returned UserLink will always contain the
- * "primary" email address. As a result, the input and output email address
- * for this request may differ.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.CreateUserLinkRequest} - */ -public final class CreateUserLinkRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.CreateUserLinkRequest) - CreateUserLinkRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use CreateUserLinkRequest.newBuilder() to construct. - private CreateUserLinkRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private CreateUserLinkRequest() { - parent_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new CreateUserLinkRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_CreateUserLinkRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_CreateUserLinkRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.CreateUserLinkRequest.class, - com.google.analytics.admin.v1alpha.CreateUserLinkRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; - /** - * - * - *
-   * Required. Example format: accounts/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: accounts/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 NOTIFY_NEW_USER_FIELD_NUMBER = 2; - private boolean notifyNewUser_; - /** - * - * - *
-   * Optional. If set, then email the new user notifying them that they've been granted
-   * permissions to the resource.
-   * 
- * - * bool notify_new_user = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The notifyNewUser. - */ - @java.lang.Override - public boolean getNotifyNewUser() { - return notifyNewUser_; - } - - public static final int USER_LINK_FIELD_NUMBER = 3; - private com.google.analytics.admin.v1alpha.UserLink userLink_; - /** - * - * - *
-   * Required. The user link to create.
-   * 
- * - * - * .google.analytics.admin.v1alpha.UserLink user_link = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the userLink field is set. - */ - @java.lang.Override - public boolean hasUserLink() { - return userLink_ != null; - } - /** - * - * - *
-   * Required. The user link to create.
-   * 
- * - * - * .google.analytics.admin.v1alpha.UserLink user_link = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The userLink. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.UserLink getUserLink() { - return userLink_ == null - ? com.google.analytics.admin.v1alpha.UserLink.getDefaultInstance() - : userLink_; - } - /** - * - * - *
-   * Required. The user link to create.
-   * 
- * - * - * .google.analytics.admin.v1alpha.UserLink user_link = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.UserLinkOrBuilder getUserLinkOrBuilder() { - return getUserLink(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 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 (notifyNewUser_ != false) { - output.writeBool(2, notifyNewUser_); - } - if (userLink_ != null) { - output.writeMessage(3, getUserLink()); - } - getUnknownFields().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 (notifyNewUser_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, notifyNewUser_); - } - if (userLink_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUserLink()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.admin.v1alpha.CreateUserLinkRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.CreateUserLinkRequest other = - (com.google.analytics.admin.v1alpha.CreateUserLinkRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (getNotifyNewUser() != other.getNotifyNewUser()) return false; - if (hasUserLink() != other.hasUserLink()) return false; - if (hasUserLink()) { - if (!getUserLink().equals(other.getUserLink())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - 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) + NOTIFY_NEW_USER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getNotifyNewUser()); - if (hasUserLink()) { - hash = (37 * hash) + USER_LINK_FIELD_NUMBER; - hash = (53 * hash) + getUserLink().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.CreateUserLinkRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.CreateUserLinkRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.CreateUserLinkRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.CreateUserLinkRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.CreateUserLinkRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.CreateUserLinkRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.CreateUserLinkRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.CreateUserLinkRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.CreateUserLinkRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.CreateUserLinkRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.CreateUserLinkRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.CreateUserLinkRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.analytics.admin.v1alpha.CreateUserLinkRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Request message for CreateUserLink RPC.
-   * Users can have multiple email addresses associated with their Google
-   * account, and one of these email addresses is the "primary" email address.
-   * Any of the email addresses associated with a Google account may be used
-   * for a new UserLink, but the returned UserLink will always contain the
-   * "primary" email address. As a result, the input and output email address
-   * for this request may differ.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.CreateUserLinkRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.CreateUserLinkRequest) - com.google.analytics.admin.v1alpha.CreateUserLinkRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_CreateUserLinkRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_CreateUserLinkRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.CreateUserLinkRequest.class, - com.google.analytics.admin.v1alpha.CreateUserLinkRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.CreateUserLinkRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - parent_ = ""; - - notifyNewUser_ = false; - - if (userLinkBuilder_ == null) { - userLink_ = null; - } else { - userLink_ = null; - userLinkBuilder_ = 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_CreateUserLinkRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CreateUserLinkRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.CreateUserLinkRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CreateUserLinkRequest build() { - com.google.analytics.admin.v1alpha.CreateUserLinkRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CreateUserLinkRequest buildPartial() { - com.google.analytics.admin.v1alpha.CreateUserLinkRequest result = - new com.google.analytics.admin.v1alpha.CreateUserLinkRequest(this); - result.parent_ = parent_; - result.notifyNewUser_ = notifyNewUser_; - if (userLinkBuilder_ == null) { - result.userLink_ = userLink_; - } else { - result.userLink_ = userLinkBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.CreateUserLinkRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.CreateUserLinkRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.CreateUserLinkRequest other) { - if (other == com.google.analytics.admin.v1alpha.CreateUserLinkRequest.getDefaultInstance()) - return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - onChanged(); - } - if (other.getNotifyNewUser() != false) { - setNotifyNewUser(other.getNotifyNewUser()); - } - if (other.hasUserLink()) { - mergeUserLink(other.getUserLink()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 16: - { - notifyNewUser_ = input.readBool(); - - break; - } // case 16 - case 26: - { - input.readMessage(getUserLinkFieldBuilder().getBuilder(), extensionRegistry); - - 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 java.lang.Object parent_ = ""; - /** - * - * - *
-     * Required. Example format: accounts/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: accounts/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: accounts/1234
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - parent_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Example format: accounts/1234
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearParent() { - - parent_ = getDefaultInstance().getParent(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Example format: accounts/1234
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - parent_ = value; - onChanged(); - return this; - } - - private boolean notifyNewUser_; - /** - * - * - *
-     * Optional. If set, then email the new user notifying them that they've been granted
-     * permissions to the resource.
-     * 
- * - * bool notify_new_user = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The notifyNewUser. - */ - @java.lang.Override - public boolean getNotifyNewUser() { - return notifyNewUser_; - } - /** - * - * - *
-     * Optional. If set, then email the new user notifying them that they've been granted
-     * permissions to the resource.
-     * 
- * - * bool notify_new_user = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The notifyNewUser to set. - * @return This builder for chaining. - */ - public Builder setNotifyNewUser(boolean value) { - - notifyNewUser_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. If set, then email the new user notifying them that they've been granted
-     * permissions to the resource.
-     * 
- * - * bool notify_new_user = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearNotifyNewUser() { - - notifyNewUser_ = false; - onChanged(); - return this; - } - - private com.google.analytics.admin.v1alpha.UserLink userLink_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.UserLink, - com.google.analytics.admin.v1alpha.UserLink.Builder, - com.google.analytics.admin.v1alpha.UserLinkOrBuilder> - userLinkBuilder_; - /** - * - * - *
-     * Required. The user link to create.
-     * 
- * - * - * .google.analytics.admin.v1alpha.UserLink user_link = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the userLink field is set. - */ - public boolean hasUserLink() { - return userLinkBuilder_ != null || userLink_ != null; - } - /** - * - * - *
-     * Required. The user link to create.
-     * 
- * - * - * .google.analytics.admin.v1alpha.UserLink user_link = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The userLink. - */ - public com.google.analytics.admin.v1alpha.UserLink getUserLink() { - if (userLinkBuilder_ == null) { - return userLink_ == null - ? com.google.analytics.admin.v1alpha.UserLink.getDefaultInstance() - : userLink_; - } else { - return userLinkBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. The user link to create.
-     * 
- * - * - * .google.analytics.admin.v1alpha.UserLink user_link = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setUserLink(com.google.analytics.admin.v1alpha.UserLink value) { - if (userLinkBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - userLink_ = value; - onChanged(); - } else { - userLinkBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. The user link to create.
-     * 
- * - * - * .google.analytics.admin.v1alpha.UserLink user_link = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setUserLink( - com.google.analytics.admin.v1alpha.UserLink.Builder builderForValue) { - if (userLinkBuilder_ == null) { - userLink_ = builderForValue.build(); - onChanged(); - } else { - userLinkBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. The user link to create.
-     * 
- * - * - * .google.analytics.admin.v1alpha.UserLink user_link = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeUserLink(com.google.analytics.admin.v1alpha.UserLink value) { - if (userLinkBuilder_ == null) { - if (userLink_ != null) { - userLink_ = - com.google.analytics.admin.v1alpha.UserLink.newBuilder(userLink_) - .mergeFrom(value) - .buildPartial(); - } else { - userLink_ = value; - } - onChanged(); - } else { - userLinkBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. The user link to create.
-     * 
- * - * - * .google.analytics.admin.v1alpha.UserLink user_link = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearUserLink() { - if (userLinkBuilder_ == null) { - userLink_ = null; - onChanged(); - } else { - userLink_ = null; - userLinkBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. The user link to create.
-     * 
- * - * - * .google.analytics.admin.v1alpha.UserLink user_link = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.analytics.admin.v1alpha.UserLink.Builder getUserLinkBuilder() { - - onChanged(); - return getUserLinkFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The user link to create.
-     * 
- * - * - * .google.analytics.admin.v1alpha.UserLink user_link = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.analytics.admin.v1alpha.UserLinkOrBuilder getUserLinkOrBuilder() { - if (userLinkBuilder_ != null) { - return userLinkBuilder_.getMessageOrBuilder(); - } else { - return userLink_ == null - ? com.google.analytics.admin.v1alpha.UserLink.getDefaultInstance() - : userLink_; - } - } - /** - * - * - *
-     * Required. The user link to create.
-     * 
- * - * - * .google.analytics.admin.v1alpha.UserLink user_link = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.UserLink, - com.google.analytics.admin.v1alpha.UserLink.Builder, - com.google.analytics.admin.v1alpha.UserLinkOrBuilder> - getUserLinkFieldBuilder() { - if (userLinkBuilder_ == null) { - userLinkBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.UserLink, - com.google.analytics.admin.v1alpha.UserLink.Builder, - com.google.analytics.admin.v1alpha.UserLinkOrBuilder>( - getUserLink(), getParentForChildren(), isClean()); - userLink_ = null; - } - return userLinkBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.CreateUserLinkRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.CreateUserLinkRequest) - private static final com.google.analytics.admin.v1alpha.CreateUserLinkRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.CreateUserLinkRequest(); - } - - public static com.google.analytics.admin.v1alpha.CreateUserLinkRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateUserLinkRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CreateUserLinkRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateUserLinkRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateUserLinkRequestOrBuilder.java deleted file mode 100644 index c6291c96..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateUserLinkRequestOrBuilder.java +++ /dev/null @@ -1,109 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface CreateUserLinkRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.CreateUserLinkRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Example format: accounts/1234
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * Required. Example format: accounts/1234
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); - - /** - * - * - *
-   * Optional. If set, then email the new user notifying them that they've been granted
-   * permissions to the resource.
-   * 
- * - * bool notify_new_user = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The notifyNewUser. - */ - boolean getNotifyNewUser(); - - /** - * - * - *
-   * Required. The user link to create.
-   * 
- * - * - * .google.analytics.admin.v1alpha.UserLink user_link = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the userLink field is set. - */ - boolean hasUserLink(); - /** - * - * - *
-   * Required. The user link to create.
-   * 
- * - * - * .google.analytics.admin.v1alpha.UserLink user_link = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The userLink. - */ - com.google.analytics.admin.v1alpha.UserLink getUserLink(); - /** - * - * - *
-   * Required. The user link to create.
-   * 
- * - * - * .google.analytics.admin.v1alpha.UserLink user_link = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.analytics.admin.v1alpha.UserLinkOrBuilder getUserLinkOrBuilder(); -} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomDimension.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomDimension.java deleted file mode 100644 index aa8bc0a0..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomDimension.java +++ /dev/null @@ -1,1672 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/resources.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * 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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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), - 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; - - 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; - 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; - 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; - 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.
-   * 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.
-   * 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; - 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; - 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_; - /** - * - * - *
-   * 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() { - @SuppressWarnings("deprecation") - com.google.analytics.admin.v1alpha.CustomDimension.DimensionScope result = - com.google.analytics.admin.v1alpha.CustomDimension.DimensionScope.valueOf(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_; - /** - * - * - *
-   * 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(); - 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); - result.name_ = name_; - result.parameterName_ = parameterName_; - result.displayName_ = displayName_; - result.description_ = description_; - result.scope_ = scope_; - result.disallowAdsPersonalization_ = disallowAdsPersonalization_; - 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.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_; - onChanged(); - } - if (!other.getParameterName().isEmpty()) { - parameterName_ = other.parameterName_; - onChanged(); - } - if (!other.getDisplayName().isEmpty()) { - displayName_ = other.displayName_; - onChanged(); - } - if (!other.getDescription().isEmpty()) { - description_ = other.description_; - 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(); - - break; - } // case 10 - case 18: - { - parameterName_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: - { - displayName_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 34: - { - description_ = input.readStringRequireUtf8(); - - break; - } // case 34 - case 40: - { - scope_ = input.readEnum(); - - break; - } // case 40 - case 48: - { - disallowAdsPersonalization_ = input.readBool(); - - 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 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; - 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(); - 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; - 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.
-     * 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.
-     * 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.
-     * 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; - 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.
-     * 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(); - 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.
-     * 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; - 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; - 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(); - 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; - 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; - 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(); - 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; - 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; - 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() { - @SuppressWarnings("deprecation") - com.google.analytics.admin.v1alpha.CustomDimension.DimensionScope result = - com.google.analytics.admin.v1alpha.CustomDimension.DimensionScope.valueOf(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(); - } - - 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() { - - 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; - 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() { - - 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomDimensionName.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomDimensionName.java deleted file mode 100644 index 0c734ae4..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomDimensionName.java +++ /dev/null @@ -1,198 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 com.google.api.pathtemplate.PathTemplate; -import com.google.api.resourcenames.ResourceName; -import com.google.common.base.Preconditions; -import com.google.common.collect.ImmutableMap; -import java.util.ArrayList; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -@Generated("by gapic-generator-java") -public class CustomDimensionName implements ResourceName { - private static final PathTemplate PROPERTY_CUSTOM_DIMENSION = - PathTemplate.createWithoutUrlEncoding( - "properties/{property}/customDimensions/{custom_dimension}"); - private volatile Map fieldValuesMap; - private final String property; - private final String customDimension; - - @Deprecated - protected CustomDimensionName() { - property = null; - customDimension = null; - } - - private CustomDimensionName(Builder builder) { - property = Preconditions.checkNotNull(builder.getProperty()); - customDimension = Preconditions.checkNotNull(builder.getCustomDimension()); - } - - public String getProperty() { - return property; - } - - public String getCustomDimension() { - return customDimension; - } - - public static Builder newBuilder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder(this); - } - - public static CustomDimensionName of(String property, String customDimension) { - return newBuilder().setProperty(property).setCustomDimension(customDimension).build(); - } - - public static String format(String property, String customDimension) { - return newBuilder() - .setProperty(property) - .setCustomDimension(customDimension) - .build() - .toString(); - } - - public static CustomDimensionName parse(String formattedString) { - if (formattedString.isEmpty()) { - return null; - } - Map matchMap = - PROPERTY_CUSTOM_DIMENSION.validatedMatch( - formattedString, "CustomDimensionName.parse: formattedString not in valid format"); - return of(matchMap.get("property"), matchMap.get("custom_dimension")); - } - - public static List parseList(List formattedStrings) { - List list = new ArrayList<>(formattedStrings.size()); - for (String formattedString : formattedStrings) { - list.add(parse(formattedString)); - } - return list; - } - - public static List toStringList(List values) { - List list = new ArrayList<>(values.size()); - for (CustomDimensionName value : values) { - if (value == null) { - list.add(""); - } else { - list.add(value.toString()); - } - } - return list; - } - - public static boolean isParsableFrom(String formattedString) { - return PROPERTY_CUSTOM_DIMENSION.matches(formattedString); - } - - @Override - public Map getFieldValuesMap() { - if (fieldValuesMap == null) { - synchronized (this) { - if (fieldValuesMap == null) { - ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); - if (property != null) { - fieldMapBuilder.put("property", property); - } - if (customDimension != null) { - fieldMapBuilder.put("custom_dimension", customDimension); - } - fieldValuesMap = fieldMapBuilder.build(); - } - } - } - return fieldValuesMap; - } - - public String getFieldValue(String fieldName) { - return getFieldValuesMap().get(fieldName); - } - - @Override - public String toString() { - return PROPERTY_CUSTOM_DIMENSION.instantiate( - "property", property, "custom_dimension", customDimension); - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (o != null || getClass() == o.getClass()) { - CustomDimensionName that = ((CustomDimensionName) o); - return Objects.equals(this.property, that.property) - && Objects.equals(this.customDimension, that.customDimension); - } - return false; - } - - @Override - public int hashCode() { - int h = 1; - h *= 1000003; - h ^= Objects.hashCode(property); - h *= 1000003; - h ^= Objects.hashCode(customDimension); - return h; - } - - /** Builder for properties/{property}/customDimensions/{custom_dimension}. */ - public static class Builder { - private String property; - private String customDimension; - - protected Builder() {} - - public String getProperty() { - return property; - } - - public String getCustomDimension() { - return customDimension; - } - - public Builder setProperty(String property) { - this.property = property; - return this; - } - - public Builder setCustomDimension(String customDimension) { - this.customDimension = customDimension; - return this; - } - - private Builder(CustomDimensionName customDimensionName) { - this.property = customDimensionName.property; - this.customDimension = customDimensionName.customDimension; - } - - public CustomDimensionName build() { - return new CustomDimensionName(this); - } - } -} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomDimensionOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomDimensionOrBuilder.java deleted file mode 100644 index a7041dc5..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomDimensionOrBuilder.java +++ /dev/null @@ -1,195 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/resources.proto - -package com.google.analytics.admin.v1alpha; - -public interface 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.
-   * 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.
-   * 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomMetric.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomMetric.java deleted file mode 100644 index ef7cbeb6..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomMetric.java +++ /dev/null @@ -1,2678 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/resources.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * 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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - 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; - 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; - 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; - 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_; - /** - * - * - *
-   * 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() { - @SuppressWarnings("deprecation") - com.google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit result = - com.google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit.valueOf(measurementUnit_); - return result == null - ? com.google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit.UNRECOGNIZED - : result; - } - - public static final int SCOPE_FIELD_NUMBER = 6; - private int 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 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() { - @SuppressWarnings("deprecation") - com.google.analytics.admin.v1alpha.CustomMetric.MetricScope result = - com.google.analytics.admin.v1alpha.CustomMetric.MetricScope.valueOf(scope_); - return result == null - ? com.google.analytics.admin.v1alpha.CustomMetric.MetricScope.UNRECOGNIZED - : result; - } - - public static final int RESTRICTED_METRIC_TYPE_FIELD_NUMBER = 8; - 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) { - @SuppressWarnings("deprecation") - com.google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType result = - com.google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType.valueOf( - 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(); - name_ = ""; - - parameterName_ = ""; - - displayName_ = ""; - - description_ = ""; - - measurementUnit_ = 0; - - scope_ = 0; - - restrictedMetricType_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - 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); - int from_bitField0_ = bitField0_; - result.name_ = name_; - result.parameterName_ = parameterName_; - result.displayName_ = displayName_; - result.description_ = description_; - result.measurementUnit_ = measurementUnit_; - result.scope_ = scope_; - if (((bitField0_ & 0x00000001) != 0)) { - restrictedMetricType_ = java.util.Collections.unmodifiableList(restrictedMetricType_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.restrictedMetricType_ = restrictedMetricType_; - 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.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_; - onChanged(); - } - if (!other.getParameterName().isEmpty()) { - parameterName_ = other.parameterName_; - onChanged(); - } - if (!other.getDisplayName().isEmpty()) { - displayName_ = other.displayName_; - onChanged(); - } - if (!other.getDescription().isEmpty()) { - description_ = other.description_; - 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_ & ~0x00000001); - } 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(); - - break; - } // case 10 - case 18: - { - parameterName_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: - { - displayName_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 34: - { - description_ = input.readStringRequireUtf8(); - - break; - } // case 34 - case 40: - { - measurementUnit_ = input.readEnum(); - - break; - } // case 40 - case 48: - { - scope_ = input.readEnum(); - - 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; - 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(); - 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; - 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; - 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(); - 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; - 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; - 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(); - 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; - 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; - 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(); - 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; - 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; - 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() { - @SuppressWarnings("deprecation") - com.google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit result = - com.google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit.valueOf(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(); - } - - 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() { - - 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; - 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() { - @SuppressWarnings("deprecation") - com.google.analytics.admin.v1alpha.CustomMetric.MetricScope result = - com.google.analytics.admin.v1alpha.CustomMetric.MetricScope.valueOf(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(); - } - - 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() { - - scope_ = 0; - onChanged(); - return this; - } - - private java.util.List restrictedMetricType_ = - java.util.Collections.emptyList(); - - private void ensureRestrictedMetricTypeIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - restrictedMetricType_ = new java.util.ArrayList(restrictedMetricType_); - bitField0_ |= 0x00000001; - } - } - /** - * - * - *
-     * 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_ & ~0x00000001); - 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomMetricName.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomMetricName.java deleted file mode 100644 index 24ba33bb..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomMetricName.java +++ /dev/null @@ -1,192 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 com.google.api.pathtemplate.PathTemplate; -import com.google.api.resourcenames.ResourceName; -import com.google.common.base.Preconditions; -import com.google.common.collect.ImmutableMap; -import java.util.ArrayList; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -@Generated("by gapic-generator-java") -public class CustomMetricName implements ResourceName { - private static final PathTemplate PROPERTY_CUSTOM_METRIC = - PathTemplate.createWithoutUrlEncoding("properties/{property}/customMetrics/{custom_metric}"); - private volatile Map fieldValuesMap; - private final String property; - private final String customMetric; - - @Deprecated - protected CustomMetricName() { - property = null; - customMetric = null; - } - - private CustomMetricName(Builder builder) { - property = Preconditions.checkNotNull(builder.getProperty()); - customMetric = Preconditions.checkNotNull(builder.getCustomMetric()); - } - - public String getProperty() { - return property; - } - - public String getCustomMetric() { - return customMetric; - } - - public static Builder newBuilder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder(this); - } - - public static CustomMetricName of(String property, String customMetric) { - return newBuilder().setProperty(property).setCustomMetric(customMetric).build(); - } - - public static String format(String property, String customMetric) { - return newBuilder().setProperty(property).setCustomMetric(customMetric).build().toString(); - } - - public static CustomMetricName parse(String formattedString) { - if (formattedString.isEmpty()) { - return null; - } - Map matchMap = - PROPERTY_CUSTOM_METRIC.validatedMatch( - formattedString, "CustomMetricName.parse: formattedString not in valid format"); - return of(matchMap.get("property"), matchMap.get("custom_metric")); - } - - public static List parseList(List formattedStrings) { - List list = new ArrayList<>(formattedStrings.size()); - for (String formattedString : formattedStrings) { - list.add(parse(formattedString)); - } - return list; - } - - public static List toStringList(List values) { - List list = new ArrayList<>(values.size()); - for (CustomMetricName value : values) { - if (value == null) { - list.add(""); - } else { - list.add(value.toString()); - } - } - return list; - } - - public static boolean isParsableFrom(String formattedString) { - return PROPERTY_CUSTOM_METRIC.matches(formattedString); - } - - @Override - public Map getFieldValuesMap() { - if (fieldValuesMap == null) { - synchronized (this) { - if (fieldValuesMap == null) { - ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); - if (property != null) { - fieldMapBuilder.put("property", property); - } - if (customMetric != null) { - fieldMapBuilder.put("custom_metric", customMetric); - } - fieldValuesMap = fieldMapBuilder.build(); - } - } - } - return fieldValuesMap; - } - - public String getFieldValue(String fieldName) { - return getFieldValuesMap().get(fieldName); - } - - @Override - public String toString() { - return PROPERTY_CUSTOM_METRIC.instantiate("property", property, "custom_metric", customMetric); - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (o != null || getClass() == o.getClass()) { - CustomMetricName that = ((CustomMetricName) o); - return Objects.equals(this.property, that.property) - && Objects.equals(this.customMetric, that.customMetric); - } - return false; - } - - @Override - public int hashCode() { - int h = 1; - h *= 1000003; - h ^= Objects.hashCode(property); - h *= 1000003; - h ^= Objects.hashCode(customMetric); - return h; - } - - /** Builder for properties/{property}/customMetrics/{custom_metric}. */ - public static class Builder { - private String property; - private String customMetric; - - protected Builder() {} - - public String getProperty() { - return property; - } - - public String getCustomMetric() { - return customMetric; - } - - public Builder setProperty(String property) { - this.property = property; - return this; - } - - public Builder setCustomMetric(String customMetric) { - this.customMetric = customMetric; - return this; - } - - private Builder(CustomMetricName customMetricName) { - this.property = customMetricName.property; - this.customMetric = customMetricName.customMetric; - } - - public CustomMetricName build() { - return new CustomMetricName(this); - } - } -} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomMetricOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomMetricOrBuilder.java deleted file mode 100644 index f124a476..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomMetricOrBuilder.java +++ /dev/null @@ -1,292 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/resources.proto - -package com.google.analytics.admin.v1alpha; - -public interface 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataRetentionSettings.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataRetentionSettings.java deleted file mode 100644 index 41c48537..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataRetentionSettings.java +++ /dev/null @@ -1,1130 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/resources.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * 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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - 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_; - /** - * - * - *
-   * 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() { - @SuppressWarnings("deprecation") - com.google.analytics.admin.v1alpha.DataRetentionSettings.RetentionDuration result = - com.google.analytics.admin.v1alpha.DataRetentionSettings.RetentionDuration.valueOf( - 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_; - /** - * - * - *
-   * 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(); - 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); - result.name_ = name_; - result.eventDataRetention_ = eventDataRetention_; - result.resetUserDataOnNewActivity_ = resetUserDataOnNewActivity_; - 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.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_; - 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(); - - break; - } // case 10 - case 16: - { - eventDataRetention_ = input.readEnum(); - - break; - } // case 16 - case 24: - { - resetUserDataOnNewActivity_ = input.readBool(); - - 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 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; - 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(); - 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; - 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; - 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() { - @SuppressWarnings("deprecation") - com.google.analytics.admin.v1alpha.DataRetentionSettings.RetentionDuration result = - com.google.analytics.admin.v1alpha.DataRetentionSettings.RetentionDuration.valueOf( - 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(); - } - - 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() { - - 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; - 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() { - - 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataRetentionSettingsName.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataRetentionSettingsName.java deleted file mode 100644 index a21b6e84..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataRetentionSettingsName.java +++ /dev/null @@ -1,169 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 com.google.api.pathtemplate.PathTemplate; -import com.google.api.resourcenames.ResourceName; -import com.google.common.base.Preconditions; -import com.google.common.collect.ImmutableMap; -import java.util.ArrayList; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -@Generated("by gapic-generator-java") -public class DataRetentionSettingsName implements ResourceName { - private static final PathTemplate PROPERTY = - PathTemplate.createWithoutUrlEncoding("properties/{property}/dataRetentionSettings"); - private volatile Map fieldValuesMap; - private final String property; - - @Deprecated - protected DataRetentionSettingsName() { - property = null; - } - - private DataRetentionSettingsName(Builder builder) { - property = Preconditions.checkNotNull(builder.getProperty()); - } - - public String getProperty() { - return property; - } - - public static Builder newBuilder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder(this); - } - - public static DataRetentionSettingsName of(String property) { - return newBuilder().setProperty(property).build(); - } - - public static String format(String property) { - return newBuilder().setProperty(property).build().toString(); - } - - public static DataRetentionSettingsName parse(String formattedString) { - if (formattedString.isEmpty()) { - return null; - } - Map matchMap = - PROPERTY.validatedMatch( - formattedString, - "DataRetentionSettingsName.parse: formattedString not in valid format"); - return of(matchMap.get("property")); - } - - public static List parseList(List formattedStrings) { - List list = new ArrayList<>(formattedStrings.size()); - for (String formattedString : formattedStrings) { - list.add(parse(formattedString)); - } - return list; - } - - public static List toStringList(List values) { - List list = new ArrayList<>(values.size()); - for (DataRetentionSettingsName value : values) { - if (value == null) { - list.add(""); - } else { - list.add(value.toString()); - } - } - return list; - } - - public static boolean isParsableFrom(String formattedString) { - return PROPERTY.matches(formattedString); - } - - @Override - public Map getFieldValuesMap() { - if (fieldValuesMap == null) { - synchronized (this) { - if (fieldValuesMap == null) { - ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); - if (property != null) { - fieldMapBuilder.put("property", property); - } - fieldValuesMap = fieldMapBuilder.build(); - } - } - } - return fieldValuesMap; - } - - public String getFieldValue(String fieldName) { - return getFieldValuesMap().get(fieldName); - } - - @Override - public String toString() { - return PROPERTY.instantiate("property", property); - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (o != null || getClass() == o.getClass()) { - DataRetentionSettingsName that = ((DataRetentionSettingsName) o); - return Objects.equals(this.property, that.property); - } - return false; - } - - @Override - public int hashCode() { - int h = 1; - h *= 1000003; - h ^= Objects.hashCode(property); - return h; - } - - /** Builder for properties/{property}/dataRetentionSettings. */ - public static class Builder { - private String property; - - protected Builder() {} - - public String getProperty() { - return property; - } - - public Builder setProperty(String property) { - this.property = property; - return this; - } - - private Builder(DataRetentionSettingsName dataRetentionSettingsName) { - this.property = dataRetentionSettingsName.property; - } - - public DataRetentionSettingsName build() { - return new DataRetentionSettingsName(this); - } - } -} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataRetentionSettingsOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataRetentionSettingsOrBuilder.java deleted file mode 100644 index b7b92511..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataRetentionSettingsOrBuilder.java +++ /dev/null @@ -1,96 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/resources.proto - -package com.google.analytics.admin.v1alpha; - -public interface 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataSharingSettings.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataSharingSettings.java deleted file mode 100644 index dce8b44a..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataSharingSettings.java +++ /dev/null @@ -1,1123 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/resources.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * 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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - 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_; - /** - * - * - *
-   * 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_; - /** - * - * - *
-   * 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_; - /** - * - * - *
-   * 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_; - /** - * - * - *
-   * 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_; - /** - * - * - *
-   * 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(); - 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); - result.name_ = name_; - result.sharingWithGoogleSupportEnabled_ = sharingWithGoogleSupportEnabled_; - result.sharingWithGoogleAssignedSalesEnabled_ = sharingWithGoogleAssignedSalesEnabled_; - result.sharingWithGoogleAnySalesEnabled_ = sharingWithGoogleAnySalesEnabled_; - result.sharingWithGoogleProductsEnabled_ = sharingWithGoogleProductsEnabled_; - result.sharingWithOthersEnabled_ = sharingWithOthersEnabled_; - 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.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_; - 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(); - - break; - } // case 10 - case 16: - { - sharingWithGoogleSupportEnabled_ = input.readBool(); - - break; - } // case 16 - case 24: - { - sharingWithGoogleAssignedSalesEnabled_ = input.readBool(); - - break; - } // case 24 - case 32: - { - sharingWithGoogleAnySalesEnabled_ = input.readBool(); - - break; - } // case 32 - case 40: - { - sharingWithGoogleProductsEnabled_ = input.readBool(); - - break; - } // case 40 - case 48: - { - sharingWithOthersEnabled_ = input.readBool(); - - 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 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; - 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(); - 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; - 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; - 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() { - - 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; - 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() { - - 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; - 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() { - - 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; - 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() { - - 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; - 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() { - - 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataSharingSettingsName.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataSharingSettingsName.java deleted file mode 100644 index 91fa1ab0..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataSharingSettingsName.java +++ /dev/null @@ -1,168 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 com.google.api.pathtemplate.PathTemplate; -import com.google.api.resourcenames.ResourceName; -import com.google.common.base.Preconditions; -import com.google.common.collect.ImmutableMap; -import java.util.ArrayList; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -@Generated("by gapic-generator-java") -public class DataSharingSettingsName implements ResourceName { - private static final PathTemplate ACCOUNT = - PathTemplate.createWithoutUrlEncoding("accounts/{account}/dataSharingSettings"); - private volatile Map fieldValuesMap; - private final String account; - - @Deprecated - protected DataSharingSettingsName() { - account = null; - } - - private DataSharingSettingsName(Builder builder) { - account = Preconditions.checkNotNull(builder.getAccount()); - } - - public String getAccount() { - return account; - } - - public static Builder newBuilder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder(this); - } - - public static DataSharingSettingsName of(String account) { - return newBuilder().setAccount(account).build(); - } - - public static String format(String account) { - return newBuilder().setAccount(account).build().toString(); - } - - public static DataSharingSettingsName parse(String formattedString) { - if (formattedString.isEmpty()) { - return null; - } - Map matchMap = - ACCOUNT.validatedMatch( - formattedString, "DataSharingSettingsName.parse: formattedString not in valid format"); - return of(matchMap.get("account")); - } - - public static List parseList(List formattedStrings) { - List list = new ArrayList<>(formattedStrings.size()); - for (String formattedString : formattedStrings) { - list.add(parse(formattedString)); - } - return list; - } - - public static List toStringList(List values) { - List list = new ArrayList<>(values.size()); - for (DataSharingSettingsName value : values) { - if (value == null) { - list.add(""); - } else { - list.add(value.toString()); - } - } - return list; - } - - public static boolean isParsableFrom(String formattedString) { - return ACCOUNT.matches(formattedString); - } - - @Override - public Map getFieldValuesMap() { - if (fieldValuesMap == null) { - synchronized (this) { - if (fieldValuesMap == null) { - ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); - if (account != null) { - fieldMapBuilder.put("account", account); - } - fieldValuesMap = fieldMapBuilder.build(); - } - } - } - return fieldValuesMap; - } - - public String getFieldValue(String fieldName) { - return getFieldValuesMap().get(fieldName); - } - - @Override - public String toString() { - return ACCOUNT.instantiate("account", account); - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (o != null || getClass() == o.getClass()) { - DataSharingSettingsName that = ((DataSharingSettingsName) o); - return Objects.equals(this.account, that.account); - } - return false; - } - - @Override - public int hashCode() { - int h = 1; - h *= 1000003; - h ^= Objects.hashCode(account); - return h; - } - - /** Builder for accounts/{account}/dataSharingSettings. */ - public static class Builder { - private String account; - - protected Builder() {} - - public String getAccount() { - return account; - } - - public Builder setAccount(String account) { - this.account = account; - return this; - } - - private Builder(DataSharingSettingsName dataSharingSettingsName) { - this.account = dataSharingSettingsName.account; - } - - public DataSharingSettingsName build() { - return new DataSharingSettingsName(this); - } - } -} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataSharingSettingsOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataSharingSettingsOrBuilder.java deleted file mode 100644 index d7a115e8..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataSharingSettingsOrBuilder.java +++ /dev/null @@ -1,123 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/resources.proto - -package com.google.analytics.admin.v1alpha; - -public interface 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataStream.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataStream.java deleted file mode 100644 index ba9597ea..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataStream.java +++ /dev/null @@ -1,5631 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/resources.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * A resource message representing a data stream.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.DataStream} - */ -public final class DataStream extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.DataStream) - DataStreamOrBuilder { - private static final long serialVersionUID = 0L; - // Use DataStream.newBuilder() to construct. - private DataStream(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private DataStream() { - name_ = ""; - type_ = 0; - displayName_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new DataStream(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.ResourcesProto - .internal_static_google_analytics_admin_v1alpha_DataStream_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.ResourcesProto - .internal_static_google_analytics_admin_v1alpha_DataStream_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.DataStream.class, - com.google.analytics.admin.v1alpha.DataStream.Builder.class); - } - - /** - * - * - *
-   * The type of the data stream.
-   * 
- * - * Protobuf enum {@code google.analytics.admin.v1alpha.DataStream.DataStreamType} - */ - public enum DataStreamType implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * Type unknown or not specified.
-     * 
- * - * DATA_STREAM_TYPE_UNSPECIFIED = 0; - */ - DATA_STREAM_TYPE_UNSPECIFIED(0), - /** - * - * - *
-     * Web data stream.
-     * 
- * - * WEB_DATA_STREAM = 1; - */ - WEB_DATA_STREAM(1), - /** - * - * - *
-     * Android app data stream.
-     * 
- * - * ANDROID_APP_DATA_STREAM = 2; - */ - ANDROID_APP_DATA_STREAM(2), - /** - * - * - *
-     * iOS app data stream.
-     * 
- * - * IOS_APP_DATA_STREAM = 3; - */ - IOS_APP_DATA_STREAM(3), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-     * Type unknown or not specified.
-     * 
- * - * DATA_STREAM_TYPE_UNSPECIFIED = 0; - */ - public static final int DATA_STREAM_TYPE_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-     * Web data stream.
-     * 
- * - * WEB_DATA_STREAM = 1; - */ - public static final int WEB_DATA_STREAM_VALUE = 1; - /** - * - * - *
-     * Android app data stream.
-     * 
- * - * ANDROID_APP_DATA_STREAM = 2; - */ - public static final int ANDROID_APP_DATA_STREAM_VALUE = 2; - /** - * - * - *
-     * iOS app data stream.
-     * 
- * - * IOS_APP_DATA_STREAM = 3; - */ - public static final int IOS_APP_DATA_STREAM_VALUE = 3; - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static DataStreamType valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static DataStreamType forNumber(int value) { - switch (value) { - case 0: - return DATA_STREAM_TYPE_UNSPECIFIED; - case 1: - return WEB_DATA_STREAM; - case 2: - return ANDROID_APP_DATA_STREAM; - case 3: - return IOS_APP_DATA_STREAM; - default: - return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { - return internalValueMap; - } - - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public DataStreamType findValueByNumber(int number) { - return DataStreamType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.DataStream.getDescriptor().getEnumTypes().get(0); - } - - private static final DataStreamType[] VALUES = values(); - - public static DataStreamType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private DataStreamType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1alpha.DataStream.DataStreamType) - } - - public interface WebStreamDataOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.DataStream.WebStreamData) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-     * Output only. Analytics "Measurement ID", without the "G-" prefix.
-     * Example: "G-1A2BCD345E" would just be "1A2BCD345E"
-     * 
- * - * string measurement_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The measurementId. - */ - java.lang.String getMeasurementId(); - /** - * - * - *
-     * Output only. Analytics "Measurement ID", without the "G-" prefix.
-     * Example: "G-1A2BCD345E" would just be "1A2BCD345E"
-     * 
- * - * string measurement_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for measurementId. - */ - com.google.protobuf.ByteString getMeasurementIdBytes(); - - /** - * - * - *
-     * Output only. ID of the corresponding web app in Firebase, if any.
-     * This ID can change if the web app is deleted and recreated.
-     * 
- * - * string firebase_app_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The firebaseAppId. - */ - java.lang.String getFirebaseAppId(); - /** - * - * - *
-     * Output only. ID of the corresponding web app in Firebase, if any.
-     * This ID can change if the web app is deleted and recreated.
-     * 
- * - * string firebase_app_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for firebaseAppId. - */ - com.google.protobuf.ByteString getFirebaseAppIdBytes(); - - /** - * - * - *
-     * Immutable. Domain name of the web app being measured, or empty.
-     * Example: "http://www.google.com", "https://www.google.com"
-     * 
- * - * string default_uri = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @return The defaultUri. - */ - java.lang.String getDefaultUri(); - /** - * - * - *
-     * Immutable. Domain name of the web app being measured, or empty.
-     * Example: "http://www.google.com", "https://www.google.com"
-     * 
- * - * string default_uri = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @return The bytes for defaultUri. - */ - com.google.protobuf.ByteString getDefaultUriBytes(); - } - /** - * - * - *
-   * Data specific to web streams.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.DataStream.WebStreamData} - */ - public static final class WebStreamData extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.DataStream.WebStreamData) - WebStreamDataOrBuilder { - private static final long serialVersionUID = 0L; - // Use WebStreamData.newBuilder() to construct. - private WebStreamData(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private WebStreamData() { - measurementId_ = ""; - firebaseAppId_ = ""; - defaultUri_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new WebStreamData(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.ResourcesProto - .internal_static_google_analytics_admin_v1alpha_DataStream_WebStreamData_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.ResourcesProto - .internal_static_google_analytics_admin_v1alpha_DataStream_WebStreamData_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.DataStream.WebStreamData.class, - com.google.analytics.admin.v1alpha.DataStream.WebStreamData.Builder.class); - } - - public static final int MEASUREMENT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object measurementId_; - /** - * - * - *
-     * Output only. Analytics "Measurement ID", without the "G-" prefix.
-     * Example: "G-1A2BCD345E" would just be "1A2BCD345E"
-     * 
- * - * string measurement_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The measurementId. - */ - @java.lang.Override - public java.lang.String getMeasurementId() { - java.lang.Object ref = measurementId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - measurementId_ = s; - return s; - } - } - /** - * - * - *
-     * Output only. Analytics "Measurement ID", without the "G-" prefix.
-     * Example: "G-1A2BCD345E" would just be "1A2BCD345E"
-     * 
- * - * string measurement_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for measurementId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getMeasurementIdBytes() { - java.lang.Object ref = measurementId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - measurementId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int FIREBASE_APP_ID_FIELD_NUMBER = 2; - private volatile java.lang.Object firebaseAppId_; - /** - * - * - *
-     * Output only. ID of the corresponding web app in Firebase, if any.
-     * This ID can change if the web app is deleted and recreated.
-     * 
- * - * string firebase_app_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The firebaseAppId. - */ - @java.lang.Override - public java.lang.String getFirebaseAppId() { - java.lang.Object ref = firebaseAppId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - firebaseAppId_ = s; - return s; - } - } - /** - * - * - *
-     * Output only. ID of the corresponding web app in Firebase, if any.
-     * This ID can change if the web app is deleted and recreated.
-     * 
- * - * string firebase_app_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for firebaseAppId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getFirebaseAppIdBytes() { - java.lang.Object ref = firebaseAppId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - firebaseAppId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DEFAULT_URI_FIELD_NUMBER = 3; - private volatile java.lang.Object defaultUri_; - /** - * - * - *
-     * Immutable. Domain name of the web app being measured, or empty.
-     * Example: "http://www.google.com", "https://www.google.com"
-     * 
- * - * string default_uri = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @return The defaultUri. - */ - @java.lang.Override - public java.lang.String getDefaultUri() { - java.lang.Object ref = defaultUri_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - defaultUri_ = s; - return s; - } - } - /** - * - * - *
-     * Immutable. Domain name of the web app being measured, or empty.
-     * Example: "http://www.google.com", "https://www.google.com"
-     * 
- * - * string default_uri = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @return The bytes for defaultUri. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDefaultUriBytes() { - java.lang.Object ref = defaultUri_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - defaultUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(measurementId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, measurementId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(firebaseAppId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, firebaseAppId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultUri_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, defaultUri_); - } - getUnknownFields().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(); - measurementId_ = ""; - - firebaseAppId_ = ""; - - defaultUri_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.admin.v1alpha.ResourcesProto - .internal_static_google_analytics_admin_v1alpha_DataStream_WebStreamData_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DataStream.WebStreamData - getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.DataStream.WebStreamData.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DataStream.WebStreamData build() { - com.google.analytics.admin.v1alpha.DataStream.WebStreamData result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DataStream.WebStreamData buildPartial() { - com.google.analytics.admin.v1alpha.DataStream.WebStreamData result = - new com.google.analytics.admin.v1alpha.DataStream.WebStreamData(this); - result.measurementId_ = measurementId_; - result.firebaseAppId_ = firebaseAppId_; - result.defaultUri_ = defaultUri_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.DataStream.WebStreamData) { - return mergeFrom((com.google.analytics.admin.v1alpha.DataStream.WebStreamData) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.DataStream.WebStreamData other) { - if (other - == com.google.analytics.admin.v1alpha.DataStream.WebStreamData.getDefaultInstance()) - return this; - if (!other.getMeasurementId().isEmpty()) { - measurementId_ = other.measurementId_; - onChanged(); - } - if (!other.getFirebaseAppId().isEmpty()) { - firebaseAppId_ = other.firebaseAppId_; - onChanged(); - } - if (!other.getDefaultUri().isEmpty()) { - defaultUri_ = other.defaultUri_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 18: - { - firebaseAppId_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: - { - defaultUri_ = input.readStringRequireUtf8(); - - 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 java.lang.Object measurementId_ = ""; - /** - * - * - *
-       * Output only. Analytics "Measurement ID", without the "G-" prefix.
-       * Example: "G-1A2BCD345E" would just be "1A2BCD345E"
-       * 
- * - * string measurement_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The measurementId. - */ - public java.lang.String getMeasurementId() { - java.lang.Object ref = measurementId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - measurementId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-       * Output only. Analytics "Measurement ID", without the "G-" prefix.
-       * Example: "G-1A2BCD345E" would just be "1A2BCD345E"
-       * 
- * - * string measurement_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for measurementId. - */ - public com.google.protobuf.ByteString getMeasurementIdBytes() { - java.lang.Object ref = measurementId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - measurementId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-       * Output only. Analytics "Measurement ID", without the "G-" prefix.
-       * Example: "G-1A2BCD345E" would just be "1A2BCD345E"
-       * 
- * - * string measurement_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The measurementId to set. - * @return This builder for chaining. - */ - public Builder setMeasurementId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - measurementId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-       * Output only. Analytics "Measurement ID", without the "G-" prefix.
-       * Example: "G-1A2BCD345E" would just be "1A2BCD345E"
-       * 
- * - * string measurement_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearMeasurementId() { - - measurementId_ = getDefaultInstance().getMeasurementId(); - onChanged(); - return this; - } - /** - * - * - *
-       * Output only. Analytics "Measurement ID", without the "G-" prefix.
-       * Example: "G-1A2BCD345E" would just be "1A2BCD345E"
-       * 
- * - * string measurement_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes for measurementId to set. - * @return This builder for chaining. - */ - public Builder setMeasurementIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - measurementId_ = value; - onChanged(); - return this; - } - - private java.lang.Object firebaseAppId_ = ""; - /** - * - * - *
-       * Output only. ID of the corresponding web app in Firebase, if any.
-       * This ID can change if the web app is deleted and recreated.
-       * 
- * - * string firebase_app_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The firebaseAppId. - */ - public java.lang.String getFirebaseAppId() { - java.lang.Object ref = firebaseAppId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - firebaseAppId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-       * Output only. ID of the corresponding web app in Firebase, if any.
-       * This ID can change if the web app is deleted and recreated.
-       * 
- * - * string firebase_app_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for firebaseAppId. - */ - public com.google.protobuf.ByteString getFirebaseAppIdBytes() { - java.lang.Object ref = firebaseAppId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - firebaseAppId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-       * Output only. ID of the corresponding web app in Firebase, if any.
-       * This ID can change if the web app is deleted and recreated.
-       * 
- * - * string firebase_app_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The firebaseAppId to set. - * @return This builder for chaining. - */ - public Builder setFirebaseAppId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - firebaseAppId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-       * Output only. ID of the corresponding web app in Firebase, if any.
-       * This ID can change if the web app is deleted and recreated.
-       * 
- * - * string firebase_app_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearFirebaseAppId() { - - firebaseAppId_ = getDefaultInstance().getFirebaseAppId(); - onChanged(); - return this; - } - /** - * - * - *
-       * Output only. ID of the corresponding web app in Firebase, if any.
-       * This ID can change if the web app is deleted and recreated.
-       * 
- * - * string firebase_app_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes for firebaseAppId to set. - * @return This builder for chaining. - */ - public Builder setFirebaseAppIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - firebaseAppId_ = value; - onChanged(); - return this; - } - - private java.lang.Object defaultUri_ = ""; - /** - * - * - *
-       * Immutable. Domain name of the web app being measured, or empty.
-       * Example: "http://www.google.com", "https://www.google.com"
-       * 
- * - * string default_uri = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @return The defaultUri. - */ - public java.lang.String getDefaultUri() { - java.lang.Object ref = defaultUri_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - defaultUri_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-       * Immutable. Domain name of the web app being measured, or empty.
-       * Example: "http://www.google.com", "https://www.google.com"
-       * 
- * - * string default_uri = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @return The bytes for defaultUri. - */ - public com.google.protobuf.ByteString getDefaultUriBytes() { - java.lang.Object ref = defaultUri_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - defaultUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-       * Immutable. Domain name of the web app being measured, or empty.
-       * Example: "http://www.google.com", "https://www.google.com"
-       * 
- * - * string default_uri = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @param value The defaultUri to set. - * @return This builder for chaining. - */ - public Builder setDefaultUri(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - defaultUri_ = value; - onChanged(); - return this; - } - /** - * - * - *
-       * Immutable. Domain name of the web app being measured, or empty.
-       * Example: "http://www.google.com", "https://www.google.com"
-       * 
- * - * string default_uri = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @return This builder for chaining. - */ - public Builder clearDefaultUri() { - - defaultUri_ = getDefaultInstance().getDefaultUri(); - onChanged(); - return this; - } - /** - * - * - *
-       * Immutable. Domain name of the web app being measured, or empty.
-       * Example: "http://www.google.com", "https://www.google.com"
-       * 
- * - * string default_uri = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @param value The bytes for defaultUri to set. - * @return This builder for chaining. - */ - public Builder setDefaultUriBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - defaultUri_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.DataStream.WebStreamData) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.DataStream.WebStreamData) - private static final com.google.analytics.admin.v1alpha.DataStream.WebStreamData - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.DataStream.WebStreamData(); - } - - public static com.google.analytics.admin.v1alpha.DataStream.WebStreamData getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WebStreamData parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DataStream.WebStreamData getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface AndroidAppStreamDataOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-     * Output only. ID of the corresponding Android app in Firebase, if any.
-     * This ID can change if the Android app is deleted and recreated.
-     * 
- * - * string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The firebaseAppId. - */ - java.lang.String getFirebaseAppId(); - /** - * - * - *
-     * Output only. ID of the corresponding Android app in Firebase, if any.
-     * This ID can change if the Android app is deleted and recreated.
-     * 
- * - * string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for firebaseAppId. - */ - com.google.protobuf.ByteString getFirebaseAppIdBytes(); - - /** - * - * - *
-     * Immutable. The package name for the app being measured.
-     * Example: "com.example.myandroidapp"
-     * 
- * - * string package_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @return The packageName. - */ - java.lang.String getPackageName(); - /** - * - * - *
-     * Immutable. The package name for the app being measured.
-     * Example: "com.example.myandroidapp"
-     * 
- * - * string package_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @return The bytes for packageName. - */ - com.google.protobuf.ByteString getPackageNameBytes(); - } - /** - * - * - *
-   * Data specific to Android app streams.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData} - */ - public static final class AndroidAppStreamData extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData) - AndroidAppStreamDataOrBuilder { - private static final long serialVersionUID = 0L; - // Use AndroidAppStreamData.newBuilder() to construct. - private AndroidAppStreamData(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private AndroidAppStreamData() { - firebaseAppId_ = ""; - packageName_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new AndroidAppStreamData(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.ResourcesProto - .internal_static_google_analytics_admin_v1alpha_DataStream_AndroidAppStreamData_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.ResourcesProto - .internal_static_google_analytics_admin_v1alpha_DataStream_AndroidAppStreamData_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData.class, - com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData.Builder.class); - } - - public static final int FIREBASE_APP_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object firebaseAppId_; - /** - * - * - *
-     * Output only. ID of the corresponding Android app in Firebase, if any.
-     * This ID can change if the Android app is deleted and recreated.
-     * 
- * - * string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The firebaseAppId. - */ - @java.lang.Override - public java.lang.String getFirebaseAppId() { - java.lang.Object ref = firebaseAppId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - firebaseAppId_ = s; - return s; - } - } - /** - * - * - *
-     * Output only. ID of the corresponding Android app in Firebase, if any.
-     * This ID can change if the Android app is deleted and recreated.
-     * 
- * - * string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for firebaseAppId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getFirebaseAppIdBytes() { - java.lang.Object ref = firebaseAppId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - firebaseAppId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PACKAGE_NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object packageName_; - /** - * - * - *
-     * Immutable. The package name for the app being measured.
-     * Example: "com.example.myandroidapp"
-     * 
- * - * string package_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @return The packageName. - */ - @java.lang.Override - public java.lang.String getPackageName() { - java.lang.Object ref = packageName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - packageName_ = s; - return s; - } - } - /** - * - * - *
-     * Immutable. The package name for the app being measured.
-     * Example: "com.example.myandroidapp"
-     * 
- * - * string package_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @return The bytes for packageName. - */ - @java.lang.Override - public com.google.protobuf.ByteString getPackageNameBytes() { - java.lang.Object ref = packageName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - packageName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(firebaseAppId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, firebaseAppId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(packageName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, packageName_); - } - getUnknownFields().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(); - firebaseAppId_ = ""; - - packageName_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.admin.v1alpha.ResourcesProto - .internal_static_google_analytics_admin_v1alpha_DataStream_AndroidAppStreamData_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData - getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData build() { - com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData buildPartial() { - com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData result = - new com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData(this); - result.firebaseAppId_ = firebaseAppId_; - result.packageName_ = packageName_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData) { - return mergeFrom( - (com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData other) { - if (other - == com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData - .getDefaultInstance()) return this; - if (!other.getFirebaseAppId().isEmpty()) { - firebaseAppId_ = other.firebaseAppId_; - onChanged(); - } - if (!other.getPackageName().isEmpty()) { - packageName_ = other.packageName_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 18: - { - packageName_ = input.readStringRequireUtf8(); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object firebaseAppId_ = ""; - /** - * - * - *
-       * Output only. ID of the corresponding Android app in Firebase, if any.
-       * This ID can change if the Android app is deleted and recreated.
-       * 
- * - * string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The firebaseAppId. - */ - public java.lang.String getFirebaseAppId() { - java.lang.Object ref = firebaseAppId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - firebaseAppId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-       * Output only. ID of the corresponding Android app in Firebase, if any.
-       * This ID can change if the Android app is deleted and recreated.
-       * 
- * - * string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for firebaseAppId. - */ - public com.google.protobuf.ByteString getFirebaseAppIdBytes() { - java.lang.Object ref = firebaseAppId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - firebaseAppId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-       * Output only. ID of the corresponding Android app in Firebase, if any.
-       * This ID can change if the Android app is deleted and recreated.
-       * 
- * - * string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The firebaseAppId to set. - * @return This builder for chaining. - */ - public Builder setFirebaseAppId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - firebaseAppId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-       * Output only. ID of the corresponding Android app in Firebase, if any.
-       * This ID can change if the Android app is deleted and recreated.
-       * 
- * - * string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearFirebaseAppId() { - - firebaseAppId_ = getDefaultInstance().getFirebaseAppId(); - onChanged(); - return this; - } - /** - * - * - *
-       * Output only. ID of the corresponding Android app in Firebase, if any.
-       * This ID can change if the Android app is deleted and recreated.
-       * 
- * - * string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes for firebaseAppId to set. - * @return This builder for chaining. - */ - public Builder setFirebaseAppIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - firebaseAppId_ = value; - onChanged(); - return this; - } - - private java.lang.Object packageName_ = ""; - /** - * - * - *
-       * Immutable. The package name for the app being measured.
-       * Example: "com.example.myandroidapp"
-       * 
- * - * string package_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @return The packageName. - */ - public java.lang.String getPackageName() { - java.lang.Object ref = packageName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - packageName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-       * Immutable. The package name for the app being measured.
-       * Example: "com.example.myandroidapp"
-       * 
- * - * string package_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @return The bytes for packageName. - */ - public com.google.protobuf.ByteString getPackageNameBytes() { - java.lang.Object ref = packageName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - packageName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-       * Immutable. The package name for the app being measured.
-       * Example: "com.example.myandroidapp"
-       * 
- * - * string package_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @param value The packageName to set. - * @return This builder for chaining. - */ - public Builder setPackageName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - packageName_ = value; - onChanged(); - return this; - } - /** - * - * - *
-       * Immutable. The package name for the app being measured.
-       * Example: "com.example.myandroidapp"
-       * 
- * - * string package_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @return This builder for chaining. - */ - public Builder clearPackageName() { - - packageName_ = getDefaultInstance().getPackageName(); - onChanged(); - return this; - } - /** - * - * - *
-       * Immutable. The package name for the app being measured.
-       * Example: "com.example.myandroidapp"
-       * 
- * - * string package_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @param value The bytes for packageName to set. - * @return This builder for chaining. - */ - public Builder setPackageNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - packageName_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData) - private static final com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData(); - } - - public static com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AndroidAppStreamData parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface IosAppStreamDataOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.DataStream.IosAppStreamData) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-     * Output only. ID of the corresponding iOS app in Firebase, if any.
-     * This ID can change if the iOS app is deleted and recreated.
-     * 
- * - * string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The firebaseAppId. - */ - java.lang.String getFirebaseAppId(); - /** - * - * - *
-     * Output only. ID of the corresponding iOS app in Firebase, if any.
-     * This ID can change if the iOS app is deleted and recreated.
-     * 
- * - * string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for firebaseAppId. - */ - com.google.protobuf.ByteString getFirebaseAppIdBytes(); - - /** - * - * - *
-     * Required. Immutable. The Apple App Store Bundle ID for the app
-     * Example: "com.example.myiosapp"
-     * 
- * - * - * string bundle_id = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - * - * - * @return The bundleId. - */ - java.lang.String getBundleId(); - /** - * - * - *
-     * Required. Immutable. The Apple App Store Bundle ID for the app
-     * Example: "com.example.myiosapp"
-     * 
- * - * - * string bundle_id = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - * - * - * @return The bytes for bundleId. - */ - com.google.protobuf.ByteString getBundleIdBytes(); - } - /** - * - * - *
-   * Data specific to iOS app streams.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.DataStream.IosAppStreamData} - */ - public static final class IosAppStreamData extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.DataStream.IosAppStreamData) - IosAppStreamDataOrBuilder { - private static final long serialVersionUID = 0L; - // Use IosAppStreamData.newBuilder() to construct. - private IosAppStreamData(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private IosAppStreamData() { - firebaseAppId_ = ""; - bundleId_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new IosAppStreamData(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.ResourcesProto - .internal_static_google_analytics_admin_v1alpha_DataStream_IosAppStreamData_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.ResourcesProto - .internal_static_google_analytics_admin_v1alpha_DataStream_IosAppStreamData_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData.class, - com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData.Builder.class); - } - - public static final int FIREBASE_APP_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object firebaseAppId_; - /** - * - * - *
-     * Output only. ID of the corresponding iOS app in Firebase, if any.
-     * This ID can change if the iOS app is deleted and recreated.
-     * 
- * - * string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The firebaseAppId. - */ - @java.lang.Override - public java.lang.String getFirebaseAppId() { - java.lang.Object ref = firebaseAppId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - firebaseAppId_ = s; - return s; - } - } - /** - * - * - *
-     * Output only. ID of the corresponding iOS app in Firebase, if any.
-     * This ID can change if the iOS app is deleted and recreated.
-     * 
- * - * string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for firebaseAppId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getFirebaseAppIdBytes() { - java.lang.Object ref = firebaseAppId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - firebaseAppId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int BUNDLE_ID_FIELD_NUMBER = 2; - private volatile java.lang.Object bundleId_; - /** - * - * - *
-     * Required. Immutable. The Apple App Store Bundle ID for the app
-     * Example: "com.example.myiosapp"
-     * 
- * - * - * string bundle_id = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - * - * - * @return The bundleId. - */ - @java.lang.Override - public java.lang.String getBundleId() { - java.lang.Object ref = bundleId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - bundleId_ = s; - return s; - } - } - /** - * - * - *
-     * Required. Immutable. The Apple App Store Bundle ID for the app
-     * Example: "com.example.myiosapp"
-     * 
- * - * - * string bundle_id = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - * - * - * @return The bytes for bundleId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getBundleIdBytes() { - java.lang.Object ref = bundleId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - bundleId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(firebaseAppId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, firebaseAppId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bundleId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, bundleId_); - } - getUnknownFields().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(); - firebaseAppId_ = ""; - - bundleId_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.admin.v1alpha.ResourcesProto - .internal_static_google_analytics_admin_v1alpha_DataStream_IosAppStreamData_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData - getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData build() { - com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData buildPartial() { - com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData result = - new com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData(this); - result.firebaseAppId_ = firebaseAppId_; - result.bundleId_ = bundleId_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData) { - return mergeFrom((com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData other) { - if (other - == com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData.getDefaultInstance()) - return this; - if (!other.getFirebaseAppId().isEmpty()) { - firebaseAppId_ = other.firebaseAppId_; - onChanged(); - } - if (!other.getBundleId().isEmpty()) { - bundleId_ = other.bundleId_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 18: - { - bundleId_ = input.readStringRequireUtf8(); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object firebaseAppId_ = ""; - /** - * - * - *
-       * Output only. ID of the corresponding iOS app in Firebase, if any.
-       * This ID can change if the iOS app is deleted and recreated.
-       * 
- * - * string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The firebaseAppId. - */ - public java.lang.String getFirebaseAppId() { - java.lang.Object ref = firebaseAppId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - firebaseAppId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-       * Output only. ID of the corresponding iOS app in Firebase, if any.
-       * This ID can change if the iOS app is deleted and recreated.
-       * 
- * - * string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for firebaseAppId. - */ - public com.google.protobuf.ByteString getFirebaseAppIdBytes() { - java.lang.Object ref = firebaseAppId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - firebaseAppId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-       * Output only. ID of the corresponding iOS app in Firebase, if any.
-       * This ID can change if the iOS app is deleted and recreated.
-       * 
- * - * string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The firebaseAppId to set. - * @return This builder for chaining. - */ - public Builder setFirebaseAppId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - firebaseAppId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-       * Output only. ID of the corresponding iOS app in Firebase, if any.
-       * This ID can change if the iOS app is deleted and recreated.
-       * 
- * - * string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearFirebaseAppId() { - - firebaseAppId_ = getDefaultInstance().getFirebaseAppId(); - onChanged(); - return this; - } - /** - * - * - *
-       * Output only. ID of the corresponding iOS app in Firebase, if any.
-       * This ID can change if the iOS app is deleted and recreated.
-       * 
- * - * string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes for firebaseAppId to set. - * @return This builder for chaining. - */ - public Builder setFirebaseAppIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - firebaseAppId_ = value; - onChanged(); - return this; - } - - private java.lang.Object bundleId_ = ""; - /** - * - * - *
-       * Required. Immutable. The Apple App Store Bundle ID for the app
-       * Example: "com.example.myiosapp"
-       * 
- * - * - * string bundle_id = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - * - * - * @return The bundleId. - */ - public java.lang.String getBundleId() { - java.lang.Object ref = bundleId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - bundleId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-       * Required. Immutable. The Apple App Store Bundle ID for the app
-       * Example: "com.example.myiosapp"
-       * 
- * - * - * string bundle_id = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - * - * - * @return The bytes for bundleId. - */ - public com.google.protobuf.ByteString getBundleIdBytes() { - java.lang.Object ref = bundleId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - bundleId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-       * Required. Immutable. The Apple App Store Bundle ID for the app
-       * Example: "com.example.myiosapp"
-       * 
- * - * - * string bundle_id = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - * - * - * @param value The bundleId to set. - * @return This builder for chaining. - */ - public Builder setBundleId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - bundleId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-       * Required. Immutable. The Apple App Store Bundle ID for the app
-       * Example: "com.example.myiosapp"
-       * 
- * - * - * string bundle_id = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - * - * - * @return This builder for chaining. - */ - public Builder clearBundleId() { - - bundleId_ = getDefaultInstance().getBundleId(); - onChanged(); - return this; - } - /** - * - * - *
-       * Required. Immutable. The Apple App Store Bundle ID for the app
-       * Example: "com.example.myiosapp"
-       * 
- * - * - * string bundle_id = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - * - * - * @param value The bytes for bundleId to set. - * @return This builder for chaining. - */ - public Builder setBundleIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - bundleId_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.DataStream.IosAppStreamData) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.DataStream.IosAppStreamData) - private static final com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData(); - } - - public static com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IosAppStreamData parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - private int streamDataCase_ = 0; - private java.lang.Object streamData_; - - public enum StreamDataCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - WEB_STREAM_DATA(6), - ANDROID_APP_STREAM_DATA(7), - IOS_APP_STREAM_DATA(8), - STREAMDATA_NOT_SET(0); - private final int value; - - private StreamDataCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static StreamDataCase valueOf(int value) { - return forNumber(value); - } - - public static StreamDataCase forNumber(int value) { - switch (value) { - case 6: - return WEB_STREAM_DATA; - case 7: - return ANDROID_APP_STREAM_DATA; - case 8: - return IOS_APP_STREAM_DATA; - case 0: - return STREAMDATA_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public StreamDataCase getStreamDataCase() { - return StreamDataCase.forNumber(streamDataCase_); - } - - public static final int WEB_STREAM_DATA_FIELD_NUMBER = 6; - /** - * - * - *
-   * Data specific to web streams. Must be populated if type is
-   * WEB_DATA_STREAM.
-   * 
- * - * .google.analytics.admin.v1alpha.DataStream.WebStreamData web_stream_data = 6; - * - * @return Whether the webStreamData field is set. - */ - @java.lang.Override - public boolean hasWebStreamData() { - return streamDataCase_ == 6; - } - /** - * - * - *
-   * Data specific to web streams. Must be populated if type is
-   * WEB_DATA_STREAM.
-   * 
- * - * .google.analytics.admin.v1alpha.DataStream.WebStreamData web_stream_data = 6; - * - * @return The webStreamData. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.DataStream.WebStreamData getWebStreamData() { - if (streamDataCase_ == 6) { - return (com.google.analytics.admin.v1alpha.DataStream.WebStreamData) streamData_; - } - return com.google.analytics.admin.v1alpha.DataStream.WebStreamData.getDefaultInstance(); - } - /** - * - * - *
-   * Data specific to web streams. Must be populated if type is
-   * WEB_DATA_STREAM.
-   * 
- * - * .google.analytics.admin.v1alpha.DataStream.WebStreamData web_stream_data = 6; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.DataStream.WebStreamDataOrBuilder - getWebStreamDataOrBuilder() { - if (streamDataCase_ == 6) { - return (com.google.analytics.admin.v1alpha.DataStream.WebStreamData) streamData_; - } - return com.google.analytics.admin.v1alpha.DataStream.WebStreamData.getDefaultInstance(); - } - - public static final int ANDROID_APP_STREAM_DATA_FIELD_NUMBER = 7; - /** - * - * - *
-   * Data specific to Android app streams. Must be populated if type is
-   * ANDROID_APP_DATA_STREAM.
-   * 
- * - * - * .google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData android_app_stream_data = 7; - * - * - * @return Whether the androidAppStreamData field is set. - */ - @java.lang.Override - public boolean hasAndroidAppStreamData() { - return streamDataCase_ == 7; - } - /** - * - * - *
-   * Data specific to Android app streams. Must be populated if type is
-   * ANDROID_APP_DATA_STREAM.
-   * 
- * - * - * .google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData android_app_stream_data = 7; - * - * - * @return The androidAppStreamData. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData - getAndroidAppStreamData() { - if (streamDataCase_ == 7) { - return (com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData) streamData_; - } - return com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData.getDefaultInstance(); - } - /** - * - * - *
-   * Data specific to Android app streams. Must be populated if type is
-   * ANDROID_APP_DATA_STREAM.
-   * 
- * - * - * .google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData android_app_stream_data = 7; - * - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamDataOrBuilder - getAndroidAppStreamDataOrBuilder() { - if (streamDataCase_ == 7) { - return (com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData) streamData_; - } - return com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData.getDefaultInstance(); - } - - public static final int IOS_APP_STREAM_DATA_FIELD_NUMBER = 8; - /** - * - * - *
-   * Data specific to iOS app streams. Must be populated if type is
-   * IOS_APP_DATA_STREAM.
-   * 
- * - * .google.analytics.admin.v1alpha.DataStream.IosAppStreamData ios_app_stream_data = 8; - * - * - * @return Whether the iosAppStreamData field is set. - */ - @java.lang.Override - public boolean hasIosAppStreamData() { - return streamDataCase_ == 8; - } - /** - * - * - *
-   * Data specific to iOS app streams. Must be populated if type is
-   * IOS_APP_DATA_STREAM.
-   * 
- * - * .google.analytics.admin.v1alpha.DataStream.IosAppStreamData ios_app_stream_data = 8; - * - * - * @return The iosAppStreamData. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData getIosAppStreamData() { - if (streamDataCase_ == 8) { - return (com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData) streamData_; - } - return com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData.getDefaultInstance(); - } - /** - * - * - *
-   * Data specific to iOS app streams. Must be populated if type is
-   * IOS_APP_DATA_STREAM.
-   * 
- * - * .google.analytics.admin.v1alpha.DataStream.IosAppStreamData ios_app_stream_data = 8; - * - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.DataStream.IosAppStreamDataOrBuilder - getIosAppStreamDataOrBuilder() { - if (streamDataCase_ == 8) { - return (com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData) streamData_; - } - return com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData.getDefaultInstance(); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * - *
-   * Output only. Resource name of this Data Stream.
-   * Format: properties/{property_id}/dataStreams/{stream_id}
-   * Example: "properties/1000/dataStreams/2000"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * Output only. Resource name of this Data Stream.
-   * Format: properties/{property_id}/dataStreams/{stream_id}
-   * Example: "properties/1000/dataStreams/2000"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TYPE_FIELD_NUMBER = 2; - private int type_; - /** - * - * - *
-   * Required. Immutable. The type of this DataStream resource.
-   * 
- * - * - * .google.analytics.admin.v1alpha.DataStream.DataStreamType type = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - * - * - * @return The enum numeric value on the wire for type. - */ - @java.lang.Override - public int getTypeValue() { - return type_; - } - /** - * - * - *
-   * Required. Immutable. The type of this DataStream resource.
-   * 
- * - * - * .google.analytics.admin.v1alpha.DataStream.DataStreamType type = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - * - * - * @return The type. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.DataStream.DataStreamType getType() { - @SuppressWarnings("deprecation") - com.google.analytics.admin.v1alpha.DataStream.DataStreamType result = - com.google.analytics.admin.v1alpha.DataStream.DataStreamType.valueOf(type_); - return result == null - ? com.google.analytics.admin.v1alpha.DataStream.DataStreamType.UNRECOGNIZED - : result; - } - - public static final int DISPLAY_NAME_FIELD_NUMBER = 3; - private volatile java.lang.Object displayName_; - /** - * - * - *
-   * Human-readable display name for the Data Stream.
-   * Required for web data streams.
-   * The max allowed display name length is 255 UTF-16 code units.
-   * 
- * - * string display_name = 3; - * - * @return The displayName. - */ - @java.lang.Override - public java.lang.String getDisplayName() { - java.lang.Object ref = displayName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - displayName_ = s; - return s; - } - } - /** - * - * - *
-   * Human-readable display name for the Data Stream.
-   * Required for web data streams.
-   * The max allowed display name length is 255 UTF-16 code units.
-   * 
- * - * string display_name = 3; - * - * @return The bytes for displayName. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDisplayNameBytes() { - java.lang.Object ref = displayName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - displayName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CREATE_TIME_FIELD_NUMBER = 4; - private com.google.protobuf.Timestamp createTime_; - /** - * - * - *
-   * Output only. Time when this stream was originally created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the createTime field is set. - */ - @java.lang.Override - public boolean hasCreateTime() { - return createTime_ != null; - } - /** - * - * - *
-   * Output only. Time when this stream was originally created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The createTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getCreateTime() { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; - } - /** - * - * - *
-   * Output only. Time when this stream was originally created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return getCreateTime(); - } - - public static final int UPDATE_TIME_FIELD_NUMBER = 5; - private com.google.protobuf.Timestamp updateTime_; - /** - * - * - *
-   * Output only. Time when stream payload fields were last updated.
-   * 
- * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the updateTime field is set. - */ - @java.lang.Override - public boolean hasUpdateTime() { - return updateTime_ != null; - } - /** - * - * - *
-   * Output only. Time when stream payload fields were last updated.
-   * 
- * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The updateTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getUpdateTime() { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; - } - /** - * - * - *
-   * Output only. Time when stream payload fields were last updated.
-   * 
- * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - return getUpdateTime(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (type_ - != com.google.analytics.admin.v1alpha.DataStream.DataStreamType.DATA_STREAM_TYPE_UNSPECIFIED - .getNumber()) { - output.writeEnum(2, type_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, displayName_); - } - if (createTime_ != null) { - output.writeMessage(4, getCreateTime()); - } - if (updateTime_ != null) { - output.writeMessage(5, getUpdateTime()); - } - if (streamDataCase_ == 6) { - output.writeMessage( - 6, (com.google.analytics.admin.v1alpha.DataStream.WebStreamData) streamData_); - } - if (streamDataCase_ == 7) { - output.writeMessage( - 7, (com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData) streamData_); - } - if (streamDataCase_ == 8) { - output.writeMessage( - 8, (com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData) streamData_); - } - getUnknownFields().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(); - if (webStreamDataBuilder_ != null) { - webStreamDataBuilder_.clear(); - } - if (androidAppStreamDataBuilder_ != null) { - androidAppStreamDataBuilder_.clear(); - } - if (iosAppStreamDataBuilder_ != null) { - iosAppStreamDataBuilder_.clear(); - } - name_ = ""; - - type_ = 0; - - displayName_ = ""; - - if (createTimeBuilder_ == null) { - createTime_ = null; - } else { - createTime_ = null; - createTimeBuilder_ = null; - } - if (updateTimeBuilder_ == null) { - updateTime_ = null; - } else { - updateTime_ = null; - updateTimeBuilder_ = null; - } - streamDataCase_ = 0; - streamData_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.admin.v1alpha.ResourcesProto - .internal_static_google_analytics_admin_v1alpha_DataStream_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DataStream getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.DataStream.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DataStream build() { - com.google.analytics.admin.v1alpha.DataStream result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DataStream buildPartial() { - com.google.analytics.admin.v1alpha.DataStream result = - new com.google.analytics.admin.v1alpha.DataStream(this); - if (streamDataCase_ == 6) { - if (webStreamDataBuilder_ == null) { - result.streamData_ = streamData_; - } else { - result.streamData_ = webStreamDataBuilder_.build(); - } - } - if (streamDataCase_ == 7) { - if (androidAppStreamDataBuilder_ == null) { - result.streamData_ = streamData_; - } else { - result.streamData_ = androidAppStreamDataBuilder_.build(); - } - } - if (streamDataCase_ == 8) { - if (iosAppStreamDataBuilder_ == null) { - result.streamData_ = streamData_; - } else { - result.streamData_ = iosAppStreamDataBuilder_.build(); - } - } - result.name_ = name_; - result.type_ = type_; - result.displayName_ = displayName_; - if (createTimeBuilder_ == null) { - result.createTime_ = createTime_; - } else { - result.createTime_ = createTimeBuilder_.build(); - } - if (updateTimeBuilder_ == null) { - result.updateTime_ = updateTime_; - } else { - result.updateTime_ = updateTimeBuilder_.build(); - } - result.streamDataCase_ = streamDataCase_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.DataStream) { - return mergeFrom((com.google.analytics.admin.v1alpha.DataStream) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.DataStream other) { - if (other == com.google.analytics.admin.v1alpha.DataStream.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (other.type_ != 0) { - setTypeValue(other.getTypeValue()); - } - if (!other.getDisplayName().isEmpty()) { - displayName_ = other.displayName_; - onChanged(); - } - if (other.hasCreateTime()) { - mergeCreateTime(other.getCreateTime()); - } - if (other.hasUpdateTime()) { - mergeUpdateTime(other.getUpdateTime()); - } - switch (other.getStreamDataCase()) { - case WEB_STREAM_DATA: - { - mergeWebStreamData(other.getWebStreamData()); - break; - } - case ANDROID_APP_STREAM_DATA: - { - mergeAndroidAppStreamData(other.getAndroidAppStreamData()); - break; - } - case IOS_APP_STREAM_DATA: - { - mergeIosAppStreamData(other.getIosAppStreamData()); - break; - } - case STREAMDATA_NOT_SET: - { - break; - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 16: - { - type_ = input.readEnum(); - - break; - } // case 16 - case 26: - { - displayName_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 34: - { - input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 34 - case 42: - { - input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - - 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 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; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Resource name of this Data Stream.
-     * Format: properties/{property_id}/dataStreams/{stream_id}
-     * Example: "properties/1000/dataStreams/2000"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Resource name of this Data Stream.
-     * Format: properties/{property_id}/dataStreams/{stream_id}
-     * Example: "properties/1000/dataStreams/2000"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private int type_ = 0; - /** - * - * - *
-     * Required. Immutable. The type of this DataStream resource.
-     * 
- * - * - * .google.analytics.admin.v1alpha.DataStream.DataStreamType type = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - * - * - * @return The enum numeric value on the wire for type. - */ - @java.lang.Override - public int getTypeValue() { - return type_; - } - /** - * - * - *
-     * Required. Immutable. The type of this DataStream resource.
-     * 
- * - * - * .google.analytics.admin.v1alpha.DataStream.DataStreamType type = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - * - * - * @param value The enum numeric value on the wire for type to set. - * @return This builder for chaining. - */ - public Builder setTypeValue(int value) { - - type_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Immutable. The type of this DataStream resource.
-     * 
- * - * - * .google.analytics.admin.v1alpha.DataStream.DataStreamType type = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - * - * - * @return The type. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.DataStream.DataStreamType getType() { - @SuppressWarnings("deprecation") - com.google.analytics.admin.v1alpha.DataStream.DataStreamType result = - com.google.analytics.admin.v1alpha.DataStream.DataStreamType.valueOf(type_); - return result == null - ? com.google.analytics.admin.v1alpha.DataStream.DataStreamType.UNRECOGNIZED - : result; - } - /** - * - * - *
-     * Required. Immutable. The type of this DataStream resource.
-     * 
- * - * - * .google.analytics.admin.v1alpha.DataStream.DataStreamType type = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - * - * - * @param value The type to set. - * @return This builder for chaining. - */ - public Builder setType(com.google.analytics.admin.v1alpha.DataStream.DataStreamType value) { - if (value == null) { - throw new NullPointerException(); - } - - type_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Immutable. The type of this DataStream resource.
-     * 
- * - * - * .google.analytics.admin.v1alpha.DataStream.DataStreamType type = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - * - * - * @return This builder for chaining. - */ - public Builder clearType() { - - type_ = 0; - onChanged(); - return this; - } - - private java.lang.Object displayName_ = ""; - /** - * - * - *
-     * Human-readable display name for the Data Stream.
-     * Required for web data streams.
-     * The max allowed display name length is 255 UTF-16 code units.
-     * 
- * - * string display_name = 3; - * - * @return The displayName. - */ - public java.lang.String getDisplayName() { - java.lang.Object ref = displayName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - displayName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Human-readable display name for the Data Stream.
-     * Required for web data streams.
-     * The max allowed display name length is 255 UTF-16 code units.
-     * 
- * - * string display_name = 3; - * - * @return The bytes for displayName. - */ - public com.google.protobuf.ByteString getDisplayNameBytes() { - java.lang.Object ref = displayName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - displayName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Human-readable display name for the Data Stream.
-     * Required for web data streams.
-     * The max allowed display name length is 255 UTF-16 code units.
-     * 
- * - * string display_name = 3; - * - * @param value The displayName to set. - * @return This builder for chaining. - */ - public Builder setDisplayName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - displayName_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Human-readable display name for the Data Stream.
-     * Required for web data streams.
-     * The max allowed display name length is 255 UTF-16 code units.
-     * 
- * - * string display_name = 3; - * - * @return This builder for chaining. - */ - public Builder clearDisplayName() { - - displayName_ = getDefaultInstance().getDisplayName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Human-readable display name for the Data Stream.
-     * Required for web data streams.
-     * The max allowed display name length is 255 UTF-16 code units.
-     * 
- * - * string display_name = 3; - * - * @param value The bytes for displayName to set. - * @return This builder for chaining. - */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - displayName_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.Timestamp createTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; - /** - * - * - *
-     * Output only. Time when this stream was originally created.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the createTime field is set. - */ - public boolean hasCreateTime() { - return createTimeBuilder_ != null || createTime_ != null; - } - /** - * - * - *
-     * Output only. Time when this stream was originally created.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The createTime. - */ - public com.google.protobuf.Timestamp getCreateTime() { - if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; - } else { - return createTimeBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Output only. Time when this stream was originally created.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setCreateTime(com.google.protobuf.Timestamp value) { - if (createTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - createTime_ = value; - onChanged(); - } else { - createTimeBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Output only. Time when this stream was originally created.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (createTimeBuilder_ == null) { - createTime_ = builderForValue.build(); - onChanged(); - } else { - createTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Output only. Time when this stream was originally created.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { - if (createTimeBuilder_ == null) { - if (createTime_ != null) { - createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); - } else { - createTime_ = value; - } - onChanged(); - } else { - createTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Output only. Time when this stream was originally created.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearCreateTime() { - if (createTimeBuilder_ == null) { - createTime_ = null; - onChanged(); - } else { - createTime_ = null; - createTimeBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Output only. Time when this stream was originally created.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - - onChanged(); - return getCreateTimeFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Output only. Time when this stream was originally created.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - if (createTimeBuilder_ != null) { - return createTimeBuilder_.getMessageOrBuilder(); - } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; - } - } - /** - * - * - *
-     * Output only. Time when this stream was originally created.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - getCreateTimeFieldBuilder() { - if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); - createTime_ = null; - } - return createTimeBuilder_; - } - - private com.google.protobuf.Timestamp updateTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; - /** - * - * - *
-     * Output only. Time when stream payload fields were last updated.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the updateTime field is set. - */ - public boolean hasUpdateTime() { - return updateTimeBuilder_ != null || updateTime_ != null; - } - /** - * - * - *
-     * Output only. Time when stream payload fields were last updated.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The updateTime. - */ - public com.google.protobuf.Timestamp getUpdateTime() { - if (updateTimeBuilder_ == null) { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; - } else { - return updateTimeBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Output only. Time when stream payload fields were last updated.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setUpdateTime(com.google.protobuf.Timestamp value) { - if (updateTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateTime_ = value; - onChanged(); - } else { - updateTimeBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Output only. Time when stream payload fields were last updated.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (updateTimeBuilder_ == null) { - updateTime_ = builderForValue.build(); - onChanged(); - } else { - updateTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Output only. Time when stream payload fields were last updated.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { - if (updateTimeBuilder_ == null) { - if (updateTime_ != null) { - updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); - } else { - updateTime_ = value; - } - onChanged(); - } else { - updateTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Output only. Time when stream payload fields were last updated.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearUpdateTime() { - if (updateTimeBuilder_ == null) { - updateTime_ = null; - onChanged(); - } else { - updateTime_ = null; - updateTimeBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Output only. Time when stream payload fields were last updated.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - - onChanged(); - return getUpdateTimeFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Output only. Time when stream payload fields were last updated.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - if (updateTimeBuilder_ != null) { - return updateTimeBuilder_.getMessageOrBuilder(); - } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; - } - } - /** - * - * - *
-     * Output only. Time when stream payload fields were last updated.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - getUpdateTimeFieldBuilder() { - if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), getParentForChildren(), isClean()); - updateTime_ = null; - } - return updateTimeBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.DataStream) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.DataStream) - private static final com.google.analytics.admin.v1alpha.DataStream DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.DataStream(); - } - - public static com.google.analytics.admin.v1alpha.DataStream getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DataStream parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DataStream getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataStreamName.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataStreamName.java deleted file mode 100644 index fe178ed0..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataStreamName.java +++ /dev/null @@ -1,192 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 com.google.api.pathtemplate.PathTemplate; -import com.google.api.resourcenames.ResourceName; -import com.google.common.base.Preconditions; -import com.google.common.collect.ImmutableMap; -import java.util.ArrayList; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -@Generated("by gapic-generator-java") -public class DataStreamName implements ResourceName { - private static final PathTemplate PROPERTY_DATA_STREAM = - PathTemplate.createWithoutUrlEncoding("properties/{property}/dataStreams/{data_stream}"); - private volatile Map fieldValuesMap; - private final String property; - private final String dataStream; - - @Deprecated - protected DataStreamName() { - property = null; - dataStream = null; - } - - private DataStreamName(Builder builder) { - property = Preconditions.checkNotNull(builder.getProperty()); - dataStream = Preconditions.checkNotNull(builder.getDataStream()); - } - - public String getProperty() { - return property; - } - - public String getDataStream() { - return dataStream; - } - - public static Builder newBuilder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder(this); - } - - public static DataStreamName of(String property, String dataStream) { - return newBuilder().setProperty(property).setDataStream(dataStream).build(); - } - - public static String format(String property, String dataStream) { - return newBuilder().setProperty(property).setDataStream(dataStream).build().toString(); - } - - public static DataStreamName parse(String formattedString) { - if (formattedString.isEmpty()) { - return null; - } - Map matchMap = - PROPERTY_DATA_STREAM.validatedMatch( - formattedString, "DataStreamName.parse: formattedString not in valid format"); - return of(matchMap.get("property"), matchMap.get("data_stream")); - } - - public static List parseList(List formattedStrings) { - List list = new ArrayList<>(formattedStrings.size()); - for (String formattedString : formattedStrings) { - list.add(parse(formattedString)); - } - return list; - } - - public static List toStringList(List values) { - List list = new ArrayList<>(values.size()); - for (DataStreamName value : values) { - if (value == null) { - list.add(""); - } else { - list.add(value.toString()); - } - } - return list; - } - - public static boolean isParsableFrom(String formattedString) { - return PROPERTY_DATA_STREAM.matches(formattedString); - } - - @Override - public Map getFieldValuesMap() { - if (fieldValuesMap == null) { - synchronized (this) { - if (fieldValuesMap == null) { - ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); - if (property != null) { - fieldMapBuilder.put("property", property); - } - if (dataStream != null) { - fieldMapBuilder.put("data_stream", dataStream); - } - fieldValuesMap = fieldMapBuilder.build(); - } - } - } - return fieldValuesMap; - } - - public String getFieldValue(String fieldName) { - return getFieldValuesMap().get(fieldName); - } - - @Override - public String toString() { - return PROPERTY_DATA_STREAM.instantiate("property", property, "data_stream", dataStream); - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (o != null || getClass() == o.getClass()) { - DataStreamName that = ((DataStreamName) o); - return Objects.equals(this.property, that.property) - && Objects.equals(this.dataStream, that.dataStream); - } - return false; - } - - @Override - public int hashCode() { - int h = 1; - h *= 1000003; - h ^= Objects.hashCode(property); - h *= 1000003; - h ^= Objects.hashCode(dataStream); - return h; - } - - /** Builder for properties/{property}/dataStreams/{data_stream}. */ - public static class Builder { - private String property; - private String dataStream; - - protected Builder() {} - - public String getProperty() { - return property; - } - - public String getDataStream() { - return dataStream; - } - - public Builder setProperty(String property) { - this.property = property; - return this; - } - - public Builder setDataStream(String dataStream) { - this.dataStream = dataStream; - return this; - } - - private Builder(DataStreamName dataStreamName) { - this.property = dataStreamName.property; - this.dataStream = dataStreamName.dataStream; - } - - public DataStreamName build() { - return new DataStreamName(this); - } - } -} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataStreamOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataStreamOrBuilder.java deleted file mode 100644 index fdcad603..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataStreamOrBuilder.java +++ /dev/null @@ -1,315 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/resources.proto - -package com.google.analytics.admin.v1alpha; - -public interface DataStreamOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.DataStream) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Data specific to web streams. Must be populated if type is
-   * WEB_DATA_STREAM.
-   * 
- * - * .google.analytics.admin.v1alpha.DataStream.WebStreamData web_stream_data = 6; - * - * @return Whether the webStreamData field is set. - */ - boolean hasWebStreamData(); - /** - * - * - *
-   * Data specific to web streams. Must be populated if type is
-   * WEB_DATA_STREAM.
-   * 
- * - * .google.analytics.admin.v1alpha.DataStream.WebStreamData web_stream_data = 6; - * - * @return The webStreamData. - */ - com.google.analytics.admin.v1alpha.DataStream.WebStreamData getWebStreamData(); - /** - * - * - *
-   * Data specific to web streams. Must be populated if type is
-   * WEB_DATA_STREAM.
-   * 
- * - * .google.analytics.admin.v1alpha.DataStream.WebStreamData web_stream_data = 6; - */ - com.google.analytics.admin.v1alpha.DataStream.WebStreamDataOrBuilder getWebStreamDataOrBuilder(); - - /** - * - * - *
-   * Data specific to Android app streams. Must be populated if type is
-   * ANDROID_APP_DATA_STREAM.
-   * 
- * - * - * .google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData android_app_stream_data = 7; - * - * - * @return Whether the androidAppStreamData field is set. - */ - boolean hasAndroidAppStreamData(); - /** - * - * - *
-   * Data specific to Android app streams. Must be populated if type is
-   * ANDROID_APP_DATA_STREAM.
-   * 
- * - * - * .google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData android_app_stream_data = 7; - * - * - * @return The androidAppStreamData. - */ - com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData getAndroidAppStreamData(); - /** - * - * - *
-   * Data specific to Android app streams. Must be populated if type is
-   * ANDROID_APP_DATA_STREAM.
-   * 
- * - * - * .google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData android_app_stream_data = 7; - * - */ - com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamDataOrBuilder - getAndroidAppStreamDataOrBuilder(); - - /** - * - * - *
-   * Data specific to iOS app streams. Must be populated if type is
-   * IOS_APP_DATA_STREAM.
-   * 
- * - * .google.analytics.admin.v1alpha.DataStream.IosAppStreamData ios_app_stream_data = 8; - * - * - * @return Whether the iosAppStreamData field is set. - */ - boolean hasIosAppStreamData(); - /** - * - * - *
-   * Data specific to iOS app streams. Must be populated if type is
-   * IOS_APP_DATA_STREAM.
-   * 
- * - * .google.analytics.admin.v1alpha.DataStream.IosAppStreamData ios_app_stream_data = 8; - * - * - * @return The iosAppStreamData. - */ - com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData getIosAppStreamData(); - /** - * - * - *
-   * Data specific to iOS app streams. Must be populated if type is
-   * IOS_APP_DATA_STREAM.
-   * 
- * - * .google.analytics.admin.v1alpha.DataStream.IosAppStreamData ios_app_stream_data = 8; - * - */ - com.google.analytics.admin.v1alpha.DataStream.IosAppStreamDataOrBuilder - getIosAppStreamDataOrBuilder(); - - /** - * - * - *
-   * Output only. Resource name of this Data Stream.
-   * Format: properties/{property_id}/dataStreams/{stream_id}
-   * Example: "properties/1000/dataStreams/2000"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Output only. Resource name of this Data Stream.
-   * Format: properties/{property_id}/dataStreams/{stream_id}
-   * Example: "properties/1000/dataStreams/2000"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-   * Required. Immutable. The type of this DataStream resource.
-   * 
- * - * - * .google.analytics.admin.v1alpha.DataStream.DataStreamType type = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - * - * - * @return The enum numeric value on the wire for type. - */ - int getTypeValue(); - /** - * - * - *
-   * Required. Immutable. The type of this DataStream resource.
-   * 
- * - * - * .google.analytics.admin.v1alpha.DataStream.DataStreamType type = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - * - * - * @return The type. - */ - com.google.analytics.admin.v1alpha.DataStream.DataStreamType getType(); - - /** - * - * - *
-   * Human-readable display name for the Data Stream.
-   * Required for web data streams.
-   * The max allowed display name length is 255 UTF-16 code units.
-   * 
- * - * string display_name = 3; - * - * @return The displayName. - */ - java.lang.String getDisplayName(); - /** - * - * - *
-   * Human-readable display name for the Data Stream.
-   * Required for web data streams.
-   * The max allowed display name length is 255 UTF-16 code units.
-   * 
- * - * string display_name = 3; - * - * @return The bytes for displayName. - */ - com.google.protobuf.ByteString getDisplayNameBytes(); - - /** - * - * - *
-   * Output only. Time when this stream was originally created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the createTime field is set. - */ - boolean hasCreateTime(); - /** - * - * - *
-   * Output only. Time when this stream was originally created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The createTime. - */ - com.google.protobuf.Timestamp getCreateTime(); - /** - * - * - *
-   * Output only. Time when this stream was originally created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); - - /** - * - * - *
-   * Output only. Time when stream payload fields were last updated.
-   * 
- * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the updateTime field is set. - */ - boolean hasUpdateTime(); - /** - * - * - *
-   * Output only. Time when stream payload fields were last updated.
-   * 
- * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The updateTime. - */ - com.google.protobuf.Timestamp getUpdateTime(); - /** - * - * - *
-   * Output only. Time when stream payload fields were last updated.
-   * 
- * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); - - public com.google.analytics.admin.v1alpha.DataStream.StreamDataCase getStreamDataCase(); -} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteAccountRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteAccountRequest.java deleted file mode 100644 index 88812402..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteAccountRequest.java +++ /dev/null @@ -1,644 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * Request message for 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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - 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(); - 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); - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.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_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - 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 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; - 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(); - 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; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteAccountRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteAccountRequestOrBuilder.java deleted file mode 100644 index 80336640..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteAccountRequestOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteConversionEventRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteConversionEventRequest.java deleted file mode 100644 index 9b0ed58f..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteConversionEventRequest.java +++ /dev/null @@ -1,650 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * Request message for 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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - 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(); - 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); - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.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_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - 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 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; - 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(); - 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; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteConversionEventRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteConversionEventRequestOrBuilder.java deleted file mode 100644 index 251995e6..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteConversionEventRequestOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteDataStreamRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteDataStreamRequest.java deleted file mode 100644 index c5de8b5c..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteDataStreamRequest.java +++ /dev/null @@ -1,637 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * Request message for 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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - 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(); - 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); - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.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_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - 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 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; - 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(); - 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; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteDataStreamRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteDataStreamRequestOrBuilder.java deleted file mode 100644 index 36a590e4..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteDataStreamRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteDisplayVideo360AdvertiserLinkProposalRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteDisplayVideo360AdvertiserLinkProposalRequest.java deleted file mode 100644 index 64dea9b8..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteDisplayVideo360AdvertiserLinkProposalRequest.java +++ /dev/null @@ -1,693 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * Request message for 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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - 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(); - 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); - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.analytics.admin.v1alpha.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_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - 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 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; - 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(); - 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; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteDisplayVideo360AdvertiserLinkProposalRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteDisplayVideo360AdvertiserLinkProposalRequestOrBuilder.java deleted file mode 100644 index ae5ef085..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteDisplayVideo360AdvertiserLinkProposalRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteDisplayVideo360AdvertiserLinkRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteDisplayVideo360AdvertiserLinkRequest.java deleted file mode 100644 index 27a75312..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteDisplayVideo360AdvertiserLinkRequest.java +++ /dev/null @@ -1,664 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * Request message for 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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - 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(); - 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); - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.analytics.admin.v1alpha.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_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - 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 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; - 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(); - 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; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteDisplayVideo360AdvertiserLinkRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteDisplayVideo360AdvertiserLinkRequestOrBuilder.java deleted file mode 100644 index 0bbad963..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteDisplayVideo360AdvertiserLinkRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteFirebaseLinkRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteFirebaseLinkRequest.java deleted file mode 100644 index 3629abd5..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteFirebaseLinkRequest.java +++ /dev/null @@ -1,640 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * Request message for 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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - 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(); - 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); - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.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_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - 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 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; - 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(); - 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; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteFirebaseLinkRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteFirebaseLinkRequestOrBuilder.java deleted file mode 100644 index 19376846..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteFirebaseLinkRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteGoogleAdsLinkRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteGoogleAdsLinkRequest.java deleted file mode 100644 index 232b4d58..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteGoogleAdsLinkRequest.java +++ /dev/null @@ -1,633 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * Request message for 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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - 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(); - 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); - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.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_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - 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 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; - 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(); - 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; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteGoogleAdsLinkRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteGoogleAdsLinkRequestOrBuilder.java deleted file mode 100644 index 7a0b6064..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteGoogleAdsLinkRequestOrBuilder.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteMeasurementProtocolSecretRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteMeasurementProtocolSecretRequest.java deleted file mode 100644 index b0cd51bc..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteMeasurementProtocolSecretRequest.java +++ /dev/null @@ -1,663 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * Request message for 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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - 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(); - 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); - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof com.google.analytics.admin.v1alpha.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_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - 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 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; - 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(); - 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; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteMeasurementProtocolSecretRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteMeasurementProtocolSecretRequestOrBuilder.java deleted file mode 100644 index eaf860fd..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteMeasurementProtocolSecretRequestOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeletePropertyRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeletePropertyRequest.java deleted file mode 100644 index 671d596d..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeletePropertyRequest.java +++ /dev/null @@ -1,644 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * Request message for 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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - 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(); - 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); - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.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_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - 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 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; - 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(); - 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; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeletePropertyRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeletePropertyRequestOrBuilder.java deleted file mode 100644 index a987d0fc..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeletePropertyRequestOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteUserLinkRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteUserLinkRequest.java deleted file mode 100644 index 848ed1a4..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteUserLinkRequest.java +++ /dev/null @@ -1,630 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * Request message for DeleteUserLink RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.DeleteUserLinkRequest} - */ -public final class DeleteUserLinkRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.DeleteUserLinkRequest) - DeleteUserLinkRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use DeleteUserLinkRequest.newBuilder() to construct. - private DeleteUserLinkRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private DeleteUserLinkRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new DeleteUserLinkRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_DeleteUserLinkRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_DeleteUserLinkRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.DeleteUserLinkRequest.class, - com.google.analytics.admin.v1alpha.DeleteUserLinkRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * - *
-   * Required. Example format: accounts/1234/userLinks/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: accounts/1234/userLinks/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.DeleteUserLinkRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.DeleteUserLinkRequest other = - (com.google.analytics.admin.v1alpha.DeleteUserLinkRequest) 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.DeleteUserLinkRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.DeleteUserLinkRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.DeleteUserLinkRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.DeleteUserLinkRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.DeleteUserLinkRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.DeleteUserLinkRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.DeleteUserLinkRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.DeleteUserLinkRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.DeleteUserLinkRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.DeleteUserLinkRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.DeleteUserLinkRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.DeleteUserLinkRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.analytics.admin.v1alpha.DeleteUserLinkRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Request message for DeleteUserLink RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.DeleteUserLinkRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.DeleteUserLinkRequest) - com.google.analytics.admin.v1alpha.DeleteUserLinkRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_DeleteUserLinkRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_DeleteUserLinkRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.DeleteUserLinkRequest.class, - com.google.analytics.admin.v1alpha.DeleteUserLinkRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.DeleteUserLinkRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_DeleteUserLinkRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DeleteUserLinkRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.DeleteUserLinkRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DeleteUserLinkRequest build() { - com.google.analytics.admin.v1alpha.DeleteUserLinkRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DeleteUserLinkRequest buildPartial() { - com.google.analytics.admin.v1alpha.DeleteUserLinkRequest result = - new com.google.analytics.admin.v1alpha.DeleteUserLinkRequest(this); - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.DeleteUserLinkRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.DeleteUserLinkRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.DeleteUserLinkRequest other) { - if (other == com.google.analytics.admin.v1alpha.DeleteUserLinkRequest.getDefaultInstance()) - return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - 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 java.lang.Object name_ = ""; - /** - * - * - *
-     * Required. Example format: accounts/1234/userLinks/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: accounts/1234/userLinks/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: accounts/1234/userLinks/5678
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Example format: accounts/1234/userLinks/5678
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Example format: accounts/1234/userLinks/5678
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.DeleteUserLinkRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.DeleteUserLinkRequest) - private static final com.google.analytics.admin.v1alpha.DeleteUserLinkRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.DeleteUserLinkRequest(); - } - - public static com.google.analytics.admin.v1alpha.DeleteUserLinkRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteUserLinkRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DeleteUserLinkRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteUserLinkRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteUserLinkRequestOrBuilder.java deleted file mode 100644 index d264010f..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteUserLinkRequestOrBuilder.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface DeleteUserLinkRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.DeleteUserLinkRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Example format: accounts/1234/userLinks/5678
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Example format: accounts/1234/userLinks/5678
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLink.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLink.java deleted file mode 100644 index f6031c94..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLink.java +++ /dev/null @@ -1,1950 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/resources.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * 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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - 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; - 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; - 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 getAdsPersonalizationEnabled(); - } - - 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 getCampaignDataSharingEnabled(); - } - - 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 getCostDataSharingEnabled(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 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(); - name_ = ""; - - advertiserId_ = ""; - - advertiserDisplayName_ = ""; - - if (adsPersonalizationEnabledBuilder_ == null) { - adsPersonalizationEnabled_ = null; - } else { - adsPersonalizationEnabled_ = null; - adsPersonalizationEnabledBuilder_ = null; - } - if (campaignDataSharingEnabledBuilder_ == null) { - campaignDataSharingEnabled_ = null; - } else { - campaignDataSharingEnabled_ = null; - campaignDataSharingEnabledBuilder_ = null; - } - if (costDataSharingEnabledBuilder_ == null) { - costDataSharingEnabled_ = null; - } else { - costDataSharingEnabled_ = null; - 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); - result.name_ = name_; - result.advertiserId_ = advertiserId_; - result.advertiserDisplayName_ = advertiserDisplayName_; - if (adsPersonalizationEnabledBuilder_ == null) { - result.adsPersonalizationEnabled_ = adsPersonalizationEnabled_; - } else { - result.adsPersonalizationEnabled_ = adsPersonalizationEnabledBuilder_.build(); - } - if (campaignDataSharingEnabledBuilder_ == null) { - result.campaignDataSharingEnabled_ = campaignDataSharingEnabled_; - } else { - result.campaignDataSharingEnabled_ = campaignDataSharingEnabledBuilder_.build(); - } - if (costDataSharingEnabledBuilder_ == null) { - result.costDataSharingEnabled_ = costDataSharingEnabled_; - } else { - result.costDataSharingEnabled_ = costDataSharingEnabledBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.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_; - onChanged(); - } - if (!other.getAdvertiserId().isEmpty()) { - advertiserId_ = other.advertiserId_; - onChanged(); - } - if (!other.getAdvertiserDisplayName().isEmpty()) { - advertiserDisplayName_ = other.advertiserDisplayName_; - 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(); - - break; - } // case 10 - case 18: - { - advertiserId_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: - { - advertiserDisplayName_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 34: - { - input.readMessage( - getAdsPersonalizationEnabledFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 34 - case 42: - { - input.readMessage( - getCampaignDataSharingEnabledFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 42 - case 50: - { - input.readMessage( - getCostDataSharingEnabledFieldBuilder().getBuilder(), extensionRegistry); - - 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 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; - 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(); - 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; - 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; - 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(); - 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; - 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; - 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(); - 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; - 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 adsPersonalizationEnabledBuilder_ != null || 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. - */ - 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; - onChanged(); - } else { - adsPersonalizationEnabledBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - adsPersonalizationEnabledBuilder_.setMessage(builderForValue.build()); - } - - 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 (adsPersonalizationEnabled_ != null) { - adsPersonalizationEnabled_ = - com.google.protobuf.BoolValue.newBuilder(adsPersonalizationEnabled_) - .mergeFrom(value) - .buildPartial(); - } else { - adsPersonalizationEnabled_ = value; - } - onChanged(); - } else { - adsPersonalizationEnabledBuilder_.mergeFrom(value); - } - - 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() { - if (adsPersonalizationEnabledBuilder_ == null) { - adsPersonalizationEnabled_ = null; - onChanged(); - } else { - adsPersonalizationEnabled_ = null; - adsPersonalizationEnabledBuilder_ = null; - } - - 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() { - - 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 campaignDataSharingEnabledBuilder_ != null || 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. - */ - 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; - onChanged(); - } else { - campaignDataSharingEnabledBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - campaignDataSharingEnabledBuilder_.setMessage(builderForValue.build()); - } - - 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 (campaignDataSharingEnabled_ != null) { - campaignDataSharingEnabled_ = - com.google.protobuf.BoolValue.newBuilder(campaignDataSharingEnabled_) - .mergeFrom(value) - .buildPartial(); - } else { - campaignDataSharingEnabled_ = value; - } - onChanged(); - } else { - campaignDataSharingEnabledBuilder_.mergeFrom(value); - } - - 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() { - if (campaignDataSharingEnabledBuilder_ == null) { - campaignDataSharingEnabled_ = null; - onChanged(); - } else { - campaignDataSharingEnabled_ = null; - campaignDataSharingEnabledBuilder_ = null; - } - - 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() { - - 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 costDataSharingEnabledBuilder_ != null || 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. - */ - 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; - onChanged(); - } else { - costDataSharingEnabledBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - costDataSharingEnabledBuilder_.setMessage(builderForValue.build()); - } - - 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 (costDataSharingEnabled_ != null) { - costDataSharingEnabled_ = - com.google.protobuf.BoolValue.newBuilder(costDataSharingEnabled_) - .mergeFrom(value) - .buildPartial(); - } else { - costDataSharingEnabled_ = value; - } - onChanged(); - } else { - costDataSharingEnabledBuilder_.mergeFrom(value); - } - - 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() { - if (costDataSharingEnabledBuilder_ == null) { - costDataSharingEnabled_ = null; - onChanged(); - } else { - costDataSharingEnabled_ = null; - costDataSharingEnabledBuilder_ = null; - } - - 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() { - - 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLinkName.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLinkName.java deleted file mode 100644 index 44c52e88..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLinkName.java +++ /dev/null @@ -1,208 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 com.google.api.pathtemplate.PathTemplate; -import com.google.api.resourcenames.ResourceName; -import com.google.common.base.Preconditions; -import com.google.common.collect.ImmutableMap; -import java.util.ArrayList; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -@Generated("by gapic-generator-java") -public class DisplayVideo360AdvertiserLinkName implements ResourceName { - private static final PathTemplate PROPERTY_DISPLAY_VIDEO360_ADVERTISER_LINK = - PathTemplate.createWithoutUrlEncoding( - "properties/{property}/displayVideo360AdvertiserLinks/{display_video_360_advertiser_link}"); - private volatile Map fieldValuesMap; - private final String property; - private final String displayVideo360AdvertiserLink; - - @Deprecated - protected DisplayVideo360AdvertiserLinkName() { - property = null; - displayVideo360AdvertiserLink = null; - } - - private DisplayVideo360AdvertiserLinkName(Builder builder) { - property = Preconditions.checkNotNull(builder.getProperty()); - displayVideo360AdvertiserLink = - Preconditions.checkNotNull(builder.getDisplayVideo360AdvertiserLink()); - } - - public String getProperty() { - return property; - } - - public String getDisplayVideo360AdvertiserLink() { - return displayVideo360AdvertiserLink; - } - - public static Builder newBuilder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder(this); - } - - public static DisplayVideo360AdvertiserLinkName of( - String property, String displayVideo360AdvertiserLink) { - return newBuilder() - .setProperty(property) - .setDisplayVideo360AdvertiserLink(displayVideo360AdvertiserLink) - .build(); - } - - public static String format(String property, String displayVideo360AdvertiserLink) { - return newBuilder() - .setProperty(property) - .setDisplayVideo360AdvertiserLink(displayVideo360AdvertiserLink) - .build() - .toString(); - } - - public static DisplayVideo360AdvertiserLinkName parse(String formattedString) { - if (formattedString.isEmpty()) { - return null; - } - Map matchMap = - PROPERTY_DISPLAY_VIDEO360_ADVERTISER_LINK.validatedMatch( - formattedString, - "DisplayVideo360AdvertiserLinkName.parse: formattedString not in valid format"); - return of(matchMap.get("property"), matchMap.get("display_video_360_advertiser_link")); - } - - public static List parseList(List formattedStrings) { - List list = new ArrayList<>(formattedStrings.size()); - for (String formattedString : formattedStrings) { - list.add(parse(formattedString)); - } - return list; - } - - public static List toStringList(List values) { - List list = new ArrayList<>(values.size()); - for (DisplayVideo360AdvertiserLinkName value : values) { - if (value == null) { - list.add(""); - } else { - list.add(value.toString()); - } - } - return list; - } - - public static boolean isParsableFrom(String formattedString) { - return PROPERTY_DISPLAY_VIDEO360_ADVERTISER_LINK.matches(formattedString); - } - - @Override - public Map getFieldValuesMap() { - if (fieldValuesMap == null) { - synchronized (this) { - if (fieldValuesMap == null) { - ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); - if (property != null) { - fieldMapBuilder.put("property", property); - } - if (displayVideo360AdvertiserLink != null) { - fieldMapBuilder.put("display_video_360_advertiser_link", displayVideo360AdvertiserLink); - } - fieldValuesMap = fieldMapBuilder.build(); - } - } - } - return fieldValuesMap; - } - - public String getFieldValue(String fieldName) { - return getFieldValuesMap().get(fieldName); - } - - @Override - public String toString() { - return PROPERTY_DISPLAY_VIDEO360_ADVERTISER_LINK.instantiate( - "property", property, "display_video_360_advertiser_link", displayVideo360AdvertiserLink); - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (o != null || getClass() == o.getClass()) { - DisplayVideo360AdvertiserLinkName that = ((DisplayVideo360AdvertiserLinkName) o); - return Objects.equals(this.property, that.property) - && Objects.equals(this.displayVideo360AdvertiserLink, that.displayVideo360AdvertiserLink); - } - return false; - } - - @Override - public int hashCode() { - int h = 1; - h *= 1000003; - h ^= Objects.hashCode(property); - h *= 1000003; - h ^= Objects.hashCode(displayVideo360AdvertiserLink); - return h; - } - - /** - * Builder for - * properties/{property}/displayVideo360AdvertiserLinks/{display_video_360_advertiser_link}. - */ - public static class Builder { - private String property; - private String displayVideo360AdvertiserLink; - - protected Builder() {} - - public String getProperty() { - return property; - } - - public String getDisplayVideo360AdvertiserLink() { - return displayVideo360AdvertiserLink; - } - - public Builder setProperty(String property) { - this.property = property; - return this; - } - - public Builder setDisplayVideo360AdvertiserLink(String displayVideo360AdvertiserLink) { - this.displayVideo360AdvertiserLink = displayVideo360AdvertiserLink; - return this; - } - - private Builder(DisplayVideo360AdvertiserLinkName displayVideo360AdvertiserLinkName) { - this.property = displayVideo360AdvertiserLinkName.property; - this.displayVideo360AdvertiserLink = - displayVideo360AdvertiserLinkName.displayVideo360AdvertiserLink; - } - - public DisplayVideo360AdvertiserLinkName build() { - return new DisplayVideo360AdvertiserLinkName(this); - } - } -} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLinkOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLinkOrBuilder.java deleted file mode 100644 index 5ec64486..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLinkOrBuilder.java +++ /dev/null @@ -1,245 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/resources.proto - -package com.google.analytics.admin.v1alpha; - -public interface 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: 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.String getName(); - /** - * - * - *
-   * 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. - */ - 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 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(); - - /** - * - * - *
-   * 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.
-   * 
- * - * .google.protobuf.BoolValue ads_personalization_enabled = 4; - */ - 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 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. - */ - 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 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. - */ - 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 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]; - * - */ - 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 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. - */ - 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 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. - */ - 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 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]; - * - */ - com.google.protobuf.BoolValueOrBuilder getCostDataSharingEnabledOrBuilder(); -} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLinkProposal.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLinkProposal.java deleted file mode 100644 index 512d403f..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLinkProposal.java +++ /dev/null @@ -1,2476 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/resources.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * 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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - 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; - 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 getLinkProposalStatusDetails(); - } - - public static final int ADVERTISER_DISPLAY_NAME_FIELD_NUMBER = 4; - 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; - 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 getAdsPersonalizationEnabled(); - } - - 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 getCampaignDataSharingEnabled(); - } - - 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 getCostDataSharingEnabled(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 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(); - name_ = ""; - - advertiserId_ = ""; - - if (linkProposalStatusDetailsBuilder_ == null) { - linkProposalStatusDetails_ = null; - } else { - linkProposalStatusDetails_ = null; - linkProposalStatusDetailsBuilder_ = null; - } - advertiserDisplayName_ = ""; - - validationEmail_ = ""; - - if (adsPersonalizationEnabledBuilder_ == null) { - adsPersonalizationEnabled_ = null; - } else { - adsPersonalizationEnabled_ = null; - adsPersonalizationEnabledBuilder_ = null; - } - if (campaignDataSharingEnabledBuilder_ == null) { - campaignDataSharingEnabled_ = null; - } else { - campaignDataSharingEnabled_ = null; - campaignDataSharingEnabledBuilder_ = null; - } - if (costDataSharingEnabledBuilder_ == null) { - costDataSharingEnabled_ = null; - } else { - costDataSharingEnabled_ = null; - 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); - result.name_ = name_; - result.advertiserId_ = advertiserId_; - if (linkProposalStatusDetailsBuilder_ == null) { - result.linkProposalStatusDetails_ = linkProposalStatusDetails_; - } else { - result.linkProposalStatusDetails_ = linkProposalStatusDetailsBuilder_.build(); - } - result.advertiserDisplayName_ = advertiserDisplayName_; - result.validationEmail_ = validationEmail_; - if (adsPersonalizationEnabledBuilder_ == null) { - result.adsPersonalizationEnabled_ = adsPersonalizationEnabled_; - } else { - result.adsPersonalizationEnabled_ = adsPersonalizationEnabledBuilder_.build(); - } - if (campaignDataSharingEnabledBuilder_ == null) { - result.campaignDataSharingEnabled_ = campaignDataSharingEnabled_; - } else { - result.campaignDataSharingEnabled_ = campaignDataSharingEnabledBuilder_.build(); - } - if (costDataSharingEnabledBuilder_ == null) { - result.costDataSharingEnabled_ = costDataSharingEnabled_; - } else { - result.costDataSharingEnabled_ = costDataSharingEnabledBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof com.google.analytics.admin.v1alpha.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_; - onChanged(); - } - if (!other.getAdvertiserId().isEmpty()) { - advertiserId_ = other.advertiserId_; - onChanged(); - } - if (other.hasLinkProposalStatusDetails()) { - mergeLinkProposalStatusDetails(other.getLinkProposalStatusDetails()); - } - if (!other.getAdvertiserDisplayName().isEmpty()) { - advertiserDisplayName_ = other.advertiserDisplayName_; - onChanged(); - } - if (!other.getValidationEmail().isEmpty()) { - validationEmail_ = other.validationEmail_; - 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(); - - break; - } // case 10 - case 18: - { - advertiserId_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: - { - input.readMessage( - getLinkProposalStatusDetailsFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 26 - case 34: - { - advertiserDisplayName_ = input.readStringRequireUtf8(); - - break; - } // case 34 - case 42: - { - validationEmail_ = input.readStringRequireUtf8(); - - break; - } // case 42 - case 50: - { - input.readMessage( - getAdsPersonalizationEnabledFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 50 - case 58: - { - input.readMessage( - getCampaignDataSharingEnabledFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 58 - case 66: - { - input.readMessage( - getCostDataSharingEnabledFieldBuilder().getBuilder(), extensionRegistry); - - 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 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; - 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(); - 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; - 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; - 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(); - 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; - 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 linkProposalStatusDetailsBuilder_ != null || 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. - */ - 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; - onChanged(); - } else { - linkProposalStatusDetailsBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - linkProposalStatusDetailsBuilder_.setMessage(builderForValue.build()); - } - - 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 (linkProposalStatusDetails_ != null) { - linkProposalStatusDetails_ = - com.google.analytics.admin.v1alpha.LinkProposalStatusDetails.newBuilder( - linkProposalStatusDetails_) - .mergeFrom(value) - .buildPartial(); - } else { - linkProposalStatusDetails_ = value; - } - onChanged(); - } else { - linkProposalStatusDetailsBuilder_.mergeFrom(value); - } - - 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() { - if (linkProposalStatusDetailsBuilder_ == null) { - linkProposalStatusDetails_ = null; - onChanged(); - } else { - linkProposalStatusDetails_ = null; - linkProposalStatusDetailsBuilder_ = null; - } - - 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() { - - 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; - 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(); - 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; - 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; - 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(); - 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; - 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 adsPersonalizationEnabledBuilder_ != null || 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. - */ - 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; - onChanged(); - } else { - adsPersonalizationEnabledBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - adsPersonalizationEnabledBuilder_.setMessage(builderForValue.build()); - } - - 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 (adsPersonalizationEnabled_ != null) { - adsPersonalizationEnabled_ = - com.google.protobuf.BoolValue.newBuilder(adsPersonalizationEnabled_) - .mergeFrom(value) - .buildPartial(); - } else { - adsPersonalizationEnabled_ = value; - } - onChanged(); - } else { - adsPersonalizationEnabledBuilder_.mergeFrom(value); - } - - 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() { - if (adsPersonalizationEnabledBuilder_ == null) { - adsPersonalizationEnabled_ = null; - onChanged(); - } else { - adsPersonalizationEnabled_ = null; - adsPersonalizationEnabledBuilder_ = null; - } - - 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() { - - 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 campaignDataSharingEnabledBuilder_ != null || 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. - */ - 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; - onChanged(); - } else { - campaignDataSharingEnabledBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - campaignDataSharingEnabledBuilder_.setMessage(builderForValue.build()); - } - - 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 (campaignDataSharingEnabled_ != null) { - campaignDataSharingEnabled_ = - com.google.protobuf.BoolValue.newBuilder(campaignDataSharingEnabled_) - .mergeFrom(value) - .buildPartial(); - } else { - campaignDataSharingEnabled_ = value; - } - onChanged(); - } else { - campaignDataSharingEnabledBuilder_.mergeFrom(value); - } - - 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() { - if (campaignDataSharingEnabledBuilder_ == null) { - campaignDataSharingEnabled_ = null; - onChanged(); - } else { - campaignDataSharingEnabled_ = null; - campaignDataSharingEnabledBuilder_ = null; - } - - 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() { - - 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 costDataSharingEnabledBuilder_ != null || 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. - */ - 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; - onChanged(); - } else { - costDataSharingEnabledBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - costDataSharingEnabledBuilder_.setMessage(builderForValue.build()); - } - - 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 (costDataSharingEnabled_ != null) { - costDataSharingEnabled_ = - com.google.protobuf.BoolValue.newBuilder(costDataSharingEnabled_) - .mergeFrom(value) - .buildPartial(); - } else { - costDataSharingEnabled_ = value; - } - onChanged(); - } else { - costDataSharingEnabledBuilder_.mergeFrom(value); - } - - 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() { - if (costDataSharingEnabledBuilder_ == null) { - costDataSharingEnabled_ = null; - onChanged(); - } else { - costDataSharingEnabled_ = null; - costDataSharingEnabledBuilder_ = null; - } - - 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() { - - 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLinkProposalName.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLinkProposalName.java deleted file mode 100644 index 4b743754..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLinkProposalName.java +++ /dev/null @@ -1,219 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 com.google.api.pathtemplate.PathTemplate; -import com.google.api.resourcenames.ResourceName; -import com.google.common.base.Preconditions; -import com.google.common.collect.ImmutableMap; -import java.util.ArrayList; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -@Generated("by gapic-generator-java") -public class DisplayVideo360AdvertiserLinkProposalName implements ResourceName { - private static final PathTemplate PROPERTY_DISPLAY_VIDEO360_ADVERTISER_LINK_PROPOSAL = - PathTemplate.createWithoutUrlEncoding( - "properties/{property}/displayVideo360AdvertiserLinkProposals/{display_video_360_advertiser_link_proposal}"); - private volatile Map fieldValuesMap; - private final String property; - private final String displayVideo360AdvertiserLinkProposal; - - @Deprecated - protected DisplayVideo360AdvertiserLinkProposalName() { - property = null; - displayVideo360AdvertiserLinkProposal = null; - } - - private DisplayVideo360AdvertiserLinkProposalName(Builder builder) { - property = Preconditions.checkNotNull(builder.getProperty()); - displayVideo360AdvertiserLinkProposal = - Preconditions.checkNotNull(builder.getDisplayVideo360AdvertiserLinkProposal()); - } - - public String getProperty() { - return property; - } - - public String getDisplayVideo360AdvertiserLinkProposal() { - return displayVideo360AdvertiserLinkProposal; - } - - public static Builder newBuilder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder(this); - } - - public static DisplayVideo360AdvertiserLinkProposalName of( - String property, String displayVideo360AdvertiserLinkProposal) { - return newBuilder() - .setProperty(property) - .setDisplayVideo360AdvertiserLinkProposal(displayVideo360AdvertiserLinkProposal) - .build(); - } - - public static String format(String property, String displayVideo360AdvertiserLinkProposal) { - return newBuilder() - .setProperty(property) - .setDisplayVideo360AdvertiserLinkProposal(displayVideo360AdvertiserLinkProposal) - .build() - .toString(); - } - - public static DisplayVideo360AdvertiserLinkProposalName parse(String formattedString) { - if (formattedString.isEmpty()) { - return null; - } - Map matchMap = - PROPERTY_DISPLAY_VIDEO360_ADVERTISER_LINK_PROPOSAL.validatedMatch( - formattedString, - "DisplayVideo360AdvertiserLinkProposalName.parse: formattedString not in valid format"); - return of(matchMap.get("property"), matchMap.get("display_video_360_advertiser_link_proposal")); - } - - public static List parseList( - List formattedStrings) { - List list = new ArrayList<>(formattedStrings.size()); - for (String formattedString : formattedStrings) { - list.add(parse(formattedString)); - } - return list; - } - - public static List toStringList(List values) { - List list = new ArrayList<>(values.size()); - for (DisplayVideo360AdvertiserLinkProposalName value : values) { - if (value == null) { - list.add(""); - } else { - list.add(value.toString()); - } - } - return list; - } - - public static boolean isParsableFrom(String formattedString) { - return PROPERTY_DISPLAY_VIDEO360_ADVERTISER_LINK_PROPOSAL.matches(formattedString); - } - - @Override - public Map getFieldValuesMap() { - if (fieldValuesMap == null) { - synchronized (this) { - if (fieldValuesMap == null) { - ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); - if (property != null) { - fieldMapBuilder.put("property", property); - } - if (displayVideo360AdvertiserLinkProposal != null) { - fieldMapBuilder.put( - "display_video_360_advertiser_link_proposal", - displayVideo360AdvertiserLinkProposal); - } - fieldValuesMap = fieldMapBuilder.build(); - } - } - } - return fieldValuesMap; - } - - public String getFieldValue(String fieldName) { - return getFieldValuesMap().get(fieldName); - } - - @Override - public String toString() { - return PROPERTY_DISPLAY_VIDEO360_ADVERTISER_LINK_PROPOSAL.instantiate( - "property", - property, - "display_video_360_advertiser_link_proposal", - displayVideo360AdvertiserLinkProposal); - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (o != null || getClass() == o.getClass()) { - DisplayVideo360AdvertiserLinkProposalName that = - ((DisplayVideo360AdvertiserLinkProposalName) o); - return Objects.equals(this.property, that.property) - && Objects.equals( - this.displayVideo360AdvertiserLinkProposal, - that.displayVideo360AdvertiserLinkProposal); - } - return false; - } - - @Override - public int hashCode() { - int h = 1; - h *= 1000003; - h ^= Objects.hashCode(property); - h *= 1000003; - h ^= Objects.hashCode(displayVideo360AdvertiserLinkProposal); - return h; - } - - /** - * Builder for - * properties/{property}/displayVideo360AdvertiserLinkProposals/{display_video_360_advertiser_link_proposal}. - */ - public static class Builder { - private String property; - private String displayVideo360AdvertiserLinkProposal; - - protected Builder() {} - - public String getProperty() { - return property; - } - - public String getDisplayVideo360AdvertiserLinkProposal() { - return displayVideo360AdvertiserLinkProposal; - } - - public Builder setProperty(String property) { - this.property = property; - return this; - } - - public Builder setDisplayVideo360AdvertiserLinkProposal( - String displayVideo360AdvertiserLinkProposal) { - this.displayVideo360AdvertiserLinkProposal = displayVideo360AdvertiserLinkProposal; - return this; - } - - private Builder( - DisplayVideo360AdvertiserLinkProposalName displayVideo360AdvertiserLinkProposalName) { - this.property = displayVideo360AdvertiserLinkProposalName.property; - this.displayVideo360AdvertiserLinkProposal = - displayVideo360AdvertiserLinkProposalName.displayVideo360AdvertiserLinkProposal; - } - - public DisplayVideo360AdvertiserLinkProposalName build() { - return new DisplayVideo360AdvertiserLinkProposalName(this); - } - } -} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLinkProposalOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLinkProposalOrBuilder.java deleted file mode 100644 index 316c6ed2..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLinkProposalOrBuilder.java +++ /dev/null @@ -1,320 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/resources.proto - -package com.google.analytics.admin.v1alpha; - -public interface 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/FirebaseLink.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/FirebaseLink.java deleted file mode 100644 index f4659a6d..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/FirebaseLink.java +++ /dev/null @@ -1,1112 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/resources.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * 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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - 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; - 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 getCreateTime(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 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(); - name_ = ""; - - project_ = ""; - - if (createTimeBuilder_ == null) { - createTime_ = null; - } else { - createTime_ = null; - 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); - result.name_ = name_; - result.project_ = project_; - if (createTimeBuilder_ == null) { - result.createTime_ = createTime_; - } else { - result.createTime_ = createTimeBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.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_; - onChanged(); - } - if (!other.getProject().isEmpty()) { - project_ = other.project_; - 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(); - - break; - } // case 10 - case 18: - { - project_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: - { - input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - - 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 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; - 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(); - 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; - 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; - 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(); - 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; - 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 createTimeBuilder_ != null || 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. - */ - 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; - onChanged(); - } else { - createTimeBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - createTimeBuilder_.setMessage(builderForValue.build()); - } - - 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 (createTime_ != null) { - createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); - } else { - createTime_ = value; - } - onChanged(); - } else { - createTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Output only. Time when this FirebaseLink was originally created.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearCreateTime() { - if (createTimeBuilder_ == null) { - createTime_ = null; - onChanged(); - } else { - createTime_ = null; - createTimeBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Output only. Time when this FirebaseLink was originally created.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - - 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/FirebaseLinkName.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/FirebaseLinkName.java deleted file mode 100644 index 70440fa9..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/FirebaseLinkName.java +++ /dev/null @@ -1,192 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 com.google.api.pathtemplate.PathTemplate; -import com.google.api.resourcenames.ResourceName; -import com.google.common.base.Preconditions; -import com.google.common.collect.ImmutableMap; -import java.util.ArrayList; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -@Generated("by gapic-generator-java") -public class FirebaseLinkName implements ResourceName { - private static final PathTemplate PROPERTY_FIREBASE_LINK = - PathTemplate.createWithoutUrlEncoding("properties/{property}/firebaseLinks/{firebase_link}"); - private volatile Map fieldValuesMap; - private final String property; - private final String firebaseLink; - - @Deprecated - protected FirebaseLinkName() { - property = null; - firebaseLink = null; - } - - private FirebaseLinkName(Builder builder) { - property = Preconditions.checkNotNull(builder.getProperty()); - firebaseLink = Preconditions.checkNotNull(builder.getFirebaseLink()); - } - - public String getProperty() { - return property; - } - - public String getFirebaseLink() { - return firebaseLink; - } - - public static Builder newBuilder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder(this); - } - - public static FirebaseLinkName of(String property, String firebaseLink) { - return newBuilder().setProperty(property).setFirebaseLink(firebaseLink).build(); - } - - public static String format(String property, String firebaseLink) { - return newBuilder().setProperty(property).setFirebaseLink(firebaseLink).build().toString(); - } - - public static FirebaseLinkName parse(String formattedString) { - if (formattedString.isEmpty()) { - return null; - } - Map matchMap = - PROPERTY_FIREBASE_LINK.validatedMatch( - formattedString, "FirebaseLinkName.parse: formattedString not in valid format"); - return of(matchMap.get("property"), matchMap.get("firebase_link")); - } - - public static List parseList(List formattedStrings) { - List list = new ArrayList<>(formattedStrings.size()); - for (String formattedString : formattedStrings) { - list.add(parse(formattedString)); - } - return list; - } - - public static List toStringList(List values) { - List list = new ArrayList<>(values.size()); - for (FirebaseLinkName value : values) { - if (value == null) { - list.add(""); - } else { - list.add(value.toString()); - } - } - return list; - } - - public static boolean isParsableFrom(String formattedString) { - return PROPERTY_FIREBASE_LINK.matches(formattedString); - } - - @Override - public Map getFieldValuesMap() { - if (fieldValuesMap == null) { - synchronized (this) { - if (fieldValuesMap == null) { - ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); - if (property != null) { - fieldMapBuilder.put("property", property); - } - if (firebaseLink != null) { - fieldMapBuilder.put("firebase_link", firebaseLink); - } - fieldValuesMap = fieldMapBuilder.build(); - } - } - } - return fieldValuesMap; - } - - public String getFieldValue(String fieldName) { - return getFieldValuesMap().get(fieldName); - } - - @Override - public String toString() { - return PROPERTY_FIREBASE_LINK.instantiate("property", property, "firebase_link", firebaseLink); - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (o != null || getClass() == o.getClass()) { - FirebaseLinkName that = ((FirebaseLinkName) o); - return Objects.equals(this.property, that.property) - && Objects.equals(this.firebaseLink, that.firebaseLink); - } - return false; - } - - @Override - public int hashCode() { - int h = 1; - h *= 1000003; - h ^= Objects.hashCode(property); - h *= 1000003; - h ^= Objects.hashCode(firebaseLink); - return h; - } - - /** Builder for properties/{property}/firebaseLinks/{firebase_link}. */ - public static class Builder { - private String property; - private String firebaseLink; - - protected Builder() {} - - public String getProperty() { - return property; - } - - public String getFirebaseLink() { - return firebaseLink; - } - - public Builder setProperty(String property) { - this.property = property; - return this; - } - - public Builder setFirebaseLink(String firebaseLink) { - this.firebaseLink = firebaseLink; - return this; - } - - private Builder(FirebaseLinkName firebaseLinkName) { - this.property = firebaseLinkName.property; - this.firebaseLink = firebaseLinkName.firebaseLink; - } - - public FirebaseLinkName build() { - return new FirebaseLinkName(this); - } - } -} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/FirebaseLinkOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/FirebaseLinkOrBuilder.java deleted file mode 100644 index 95769d4a..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/FirebaseLinkOrBuilder.java +++ /dev/null @@ -1,123 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/resources.proto - -package com.google.analytics.admin.v1alpha; - -public interface 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetAccountRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetAccountRequest.java deleted file mode 100644 index b485aaba..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetAccountRequest.java +++ /dev/null @@ -1,643 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * Request message for 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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - 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(); - 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); - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.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_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - 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 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; - 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(); - 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; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetAccountRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetAccountRequestOrBuilder.java deleted file mode 100644 index c9770c3a..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetAccountRequestOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetAttributionSettingsRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetAttributionSettingsRequest.java deleted file mode 100644 index acc0562e..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetAttributionSettingsRequest.java +++ /dev/null @@ -1,643 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * Request message for 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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - 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(); - 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); - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.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_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - 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 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; - 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(); - 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; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetAttributionSettingsRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetAttributionSettingsRequestOrBuilder.java deleted file mode 100644 index 5d0b3502..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetAttributionSettingsRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetAudienceRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetAudienceRequest.java deleted file mode 100644 index 6289f35a..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetAudienceRequest.java +++ /dev/null @@ -1,637 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * Request message for 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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - 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(); - 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); - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.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_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - 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 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; - 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(); - 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; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetAudienceRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetAudienceRequestOrBuilder.java deleted file mode 100644 index d5fbb7e8..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetAudienceRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetConversionEventRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetConversionEventRequest.java deleted file mode 100644 index 006d440a..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetConversionEventRequest.java +++ /dev/null @@ -1,647 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * Request message for 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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - 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(); - 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); - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.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_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - 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 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; - 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(); - 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; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetConversionEventRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetConversionEventRequestOrBuilder.java deleted file mode 100644 index 986523b1..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetConversionEventRequestOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetCustomDimensionRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetCustomDimensionRequest.java deleted file mode 100644 index 3d4eb779..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetCustomDimensionRequest.java +++ /dev/null @@ -1,640 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * Request message for 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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - 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(); - 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); - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.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_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - 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 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; - 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(); - 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; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetCustomDimensionRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetCustomDimensionRequestOrBuilder.java deleted file mode 100644 index 4055eb55..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetCustomDimensionRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetCustomMetricRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetCustomMetricRequest.java deleted file mode 100644 index 840222b4..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetCustomMetricRequest.java +++ /dev/null @@ -1,637 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * Request message for 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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - 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(); - 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); - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.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_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - 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 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; - 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(); - 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; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetCustomMetricRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetCustomMetricRequestOrBuilder.java deleted file mode 100644 index b1979473..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetCustomMetricRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDataRetentionSettingsRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDataRetentionSettingsRequest.java deleted file mode 100644 index 64559a60..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDataRetentionSettingsRequest.java +++ /dev/null @@ -1,662 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * Request message for 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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - 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(); - 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); - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.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_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - 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 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; - 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(); - 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; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDataRetentionSettingsRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDataRetentionSettingsRequestOrBuilder.java deleted file mode 100644 index 246749d9..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDataRetentionSettingsRequestOrBuilder.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDataSharingSettingsRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDataSharingSettingsRequest.java deleted file mode 100644 index 3efdc294..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDataSharingSettingsRequest.java +++ /dev/null @@ -1,650 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * Request message for 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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - 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(); - 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); - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.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_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - 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 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; - 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(); - 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; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDataSharingSettingsRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDataSharingSettingsRequestOrBuilder.java deleted file mode 100644 index 332a29a4..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDataSharingSettingsRequestOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDataStreamRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDataStreamRequest.java deleted file mode 100644 index 6b50ae68..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDataStreamRequest.java +++ /dev/null @@ -1,637 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * Request message for GetDataStream RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.GetDataStreamRequest} - */ -public final class GetDataStreamRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.GetDataStreamRequest) - GetDataStreamRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use GetDataStreamRequest.newBuilder() to construct. - private GetDataStreamRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private GetDataStreamRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new GetDataStreamRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_GetDataStreamRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_GetDataStreamRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.GetDataStreamRequest.class, - com.google.analytics.admin.v1alpha.GetDataStreamRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * - *
-   * Required. The name of the DataStream to get.
-   * Example format: properties/1234/dataStreams/5678
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The name of the DataStream to get.
-   * Example format: properties/1234/dataStreams/5678
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - getUnknownFields().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(); - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_GetDataStreamRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GetDataStreamRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.GetDataStreamRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GetDataStreamRequest build() { - com.google.analytics.admin.v1alpha.GetDataStreamRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GetDataStreamRequest buildPartial() { - com.google.analytics.admin.v1alpha.GetDataStreamRequest result = - new com.google.analytics.admin.v1alpha.GetDataStreamRequest(this); - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.GetDataStreamRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.GetDataStreamRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.GetDataStreamRequest other) { - if (other == com.google.analytics.admin.v1alpha.GetDataStreamRequest.getDefaultInstance()) - return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - 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 java.lang.Object name_ = ""; - /** - * - * - *
-     * Required. The name of the DataStream to get.
-     * Example format: properties/1234/dataStreams/5678
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The name of the DataStream to get.
-     * Example format: properties/1234/dataStreams/5678
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The name of the DataStream to get.
-     * Example format: properties/1234/dataStreams/5678
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The name of the DataStream to get.
-     * Example format: properties/1234/dataStreams/5678
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The name of the DataStream to get.
-     * Example format: properties/1234/dataStreams/5678
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.GetDataStreamRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.GetDataStreamRequest) - private static final com.google.analytics.admin.v1alpha.GetDataStreamRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.GetDataStreamRequest(); - } - - public static com.google.analytics.admin.v1alpha.GetDataStreamRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetDataStreamRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GetDataStreamRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDataStreamRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDataStreamRequestOrBuilder.java deleted file mode 100644 index bf5da682..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDataStreamRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface GetDataStreamRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.GetDataStreamRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the DataStream to get.
-   * Example format: properties/1234/dataStreams/5678
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The name of the DataStream to get.
-   * Example format: properties/1234/dataStreams/5678
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDisplayVideo360AdvertiserLinkProposalRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDisplayVideo360AdvertiserLinkProposalRequest.java deleted file mode 100644 index 4ebd660c..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDisplayVideo360AdvertiserLinkProposalRequest.java +++ /dev/null @@ -1,677 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * Request message for 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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - 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(); - 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); - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.analytics.admin.v1alpha.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_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - 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 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; - 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(); - 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; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDisplayVideo360AdvertiserLinkProposalRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDisplayVideo360AdvertiserLinkProposalRequestOrBuilder.java deleted file mode 100644 index 47e4394e..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDisplayVideo360AdvertiserLinkProposalRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDisplayVideo360AdvertiserLinkRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDisplayVideo360AdvertiserLinkRequest.java deleted file mode 100644 index 5399dfc2..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDisplayVideo360AdvertiserLinkRequest.java +++ /dev/null @@ -1,661 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * Request message for 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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - 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(); - 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); - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof com.google.analytics.admin.v1alpha.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_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - 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 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; - 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(); - 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; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDisplayVideo360AdvertiserLinkRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDisplayVideo360AdvertiserLinkRequestOrBuilder.java deleted file mode 100644 index 5b243e80..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDisplayVideo360AdvertiserLinkRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetGlobalSiteTagRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetGlobalSiteTagRequest.java deleted file mode 100644 index 7de8f10c..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetGlobalSiteTagRequest.java +++ /dev/null @@ -1,651 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * Request message for 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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - 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(); - 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); - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.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_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - 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 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; - 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(); - 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; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetGlobalSiteTagRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetGlobalSiteTagRequestOrBuilder.java deleted file mode 100644 index 7cffb6b4..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetGlobalSiteTagRequestOrBuilder.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetGoogleSignalsSettingsRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetGoogleSignalsSettingsRequest.java deleted file mode 100644 index 789b5d17..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetGoogleSignalsSettingsRequest.java +++ /dev/null @@ -1,648 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * Request message for 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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - 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(); - 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); - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.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_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - 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 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; - 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(); - 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; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetGoogleSignalsSettingsRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetGoogleSignalsSettingsRequestOrBuilder.java deleted file mode 100644 index 9b61ee92..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetGoogleSignalsSettingsRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetMeasurementProtocolSecretRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetMeasurementProtocolSecretRequest.java deleted file mode 100644 index 7d9287db..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetMeasurementProtocolSecretRequest.java +++ /dev/null @@ -1,657 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * Request message for 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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - 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(); - 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); - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.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_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - 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 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; - 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(); - 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; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetMeasurementProtocolSecretRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetMeasurementProtocolSecretRequestOrBuilder.java deleted file mode 100644 index e68f0266..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetMeasurementProtocolSecretRequestOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetPropertyRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetPropertyRequest.java deleted file mode 100644 index 2e65442a..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetPropertyRequest.java +++ /dev/null @@ -1,644 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * Request message for 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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - 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(); - 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); - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.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_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - 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 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; - 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(); - 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; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetPropertyRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetPropertyRequestOrBuilder.java deleted file mode 100644 index 20cd31c0..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetPropertyRequestOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetUserLinkRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetUserLinkRequest.java deleted file mode 100644 index 8f7c9f80..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetUserLinkRequest.java +++ /dev/null @@ -1,630 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * Request message for GetUserLink RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.GetUserLinkRequest} - */ -public final class GetUserLinkRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.GetUserLinkRequest) - GetUserLinkRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use GetUserLinkRequest.newBuilder() to construct. - private GetUserLinkRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private GetUserLinkRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new GetUserLinkRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_GetUserLinkRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_GetUserLinkRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.GetUserLinkRequest.class, - com.google.analytics.admin.v1alpha.GetUserLinkRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * - *
-   * Required. Example format: accounts/1234/userLinks/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: accounts/1234/userLinks/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.GetUserLinkRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.GetUserLinkRequest other = - (com.google.analytics.admin.v1alpha.GetUserLinkRequest) 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.GetUserLinkRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.GetUserLinkRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.GetUserLinkRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.GetUserLinkRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.GetUserLinkRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.GetUserLinkRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.GetUserLinkRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.GetUserLinkRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.GetUserLinkRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.GetUserLinkRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.GetUserLinkRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.GetUserLinkRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.analytics.admin.v1alpha.GetUserLinkRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Request message for GetUserLink RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.GetUserLinkRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.GetUserLinkRequest) - com.google.analytics.admin.v1alpha.GetUserLinkRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_GetUserLinkRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_GetUserLinkRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.GetUserLinkRequest.class, - com.google.analytics.admin.v1alpha.GetUserLinkRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.GetUserLinkRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_GetUserLinkRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GetUserLinkRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.GetUserLinkRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GetUserLinkRequest build() { - com.google.analytics.admin.v1alpha.GetUserLinkRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GetUserLinkRequest buildPartial() { - com.google.analytics.admin.v1alpha.GetUserLinkRequest result = - new com.google.analytics.admin.v1alpha.GetUserLinkRequest(this); - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.GetUserLinkRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.GetUserLinkRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.GetUserLinkRequest other) { - if (other == com.google.analytics.admin.v1alpha.GetUserLinkRequest.getDefaultInstance()) - return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - 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 java.lang.Object name_ = ""; - /** - * - * - *
-     * Required. Example format: accounts/1234/userLinks/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: accounts/1234/userLinks/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: accounts/1234/userLinks/5678
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Example format: accounts/1234/userLinks/5678
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Example format: accounts/1234/userLinks/5678
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.GetUserLinkRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.GetUserLinkRequest) - private static final com.google.analytics.admin.v1alpha.GetUserLinkRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.GetUserLinkRequest(); - } - - public static com.google.analytics.admin.v1alpha.GetUserLinkRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetUserLinkRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GetUserLinkRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetUserLinkRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetUserLinkRequestOrBuilder.java deleted file mode 100644 index b9a66481..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetUserLinkRequestOrBuilder.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface GetUserLinkRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.GetUserLinkRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Example format: accounts/1234/userLinks/5678
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Example format: accounts/1234/userLinks/5678
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GlobalSiteTag.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GlobalSiteTag.java deleted file mode 100644 index 27313077..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GlobalSiteTag.java +++ /dev/null @@ -1,816 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/resources.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * 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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - 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; - 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(); - 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); - result.name_ = name_; - result.snippet_ = snippet_; - 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.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_; - onChanged(); - } - if (!other.getSnippet().isEmpty()) { - snippet_ = other.snippet_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 18: - { - snippet_ = input.readStringRequireUtf8(); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - 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; - 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(); - 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; - 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; - 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(); - 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; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GlobalSiteTagName.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GlobalSiteTagName.java deleted file mode 100644 index d5096bfb..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GlobalSiteTagName.java +++ /dev/null @@ -1,193 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 com.google.api.pathtemplate.PathTemplate; -import com.google.api.resourcenames.ResourceName; -import com.google.common.base.Preconditions; -import com.google.common.collect.ImmutableMap; -import java.util.ArrayList; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -@Generated("by gapic-generator-java") -public class GlobalSiteTagName implements ResourceName { - private static final PathTemplate PROPERTY_DATA_STREAM = - PathTemplate.createWithoutUrlEncoding( - "properties/{property}/dataStreams/{data_stream}/globalSiteTag"); - private volatile Map fieldValuesMap; - private final String property; - private final String dataStream; - - @Deprecated - protected GlobalSiteTagName() { - property = null; - dataStream = null; - } - - private GlobalSiteTagName(Builder builder) { - property = Preconditions.checkNotNull(builder.getProperty()); - dataStream = Preconditions.checkNotNull(builder.getDataStream()); - } - - public String getProperty() { - return property; - } - - public String getDataStream() { - return dataStream; - } - - public static Builder newBuilder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder(this); - } - - public static GlobalSiteTagName of(String property, String dataStream) { - return newBuilder().setProperty(property).setDataStream(dataStream).build(); - } - - public static String format(String property, String dataStream) { - return newBuilder().setProperty(property).setDataStream(dataStream).build().toString(); - } - - public static GlobalSiteTagName parse(String formattedString) { - if (formattedString.isEmpty()) { - return null; - } - Map matchMap = - PROPERTY_DATA_STREAM.validatedMatch( - formattedString, "GlobalSiteTagName.parse: formattedString not in valid format"); - return of(matchMap.get("property"), matchMap.get("data_stream")); - } - - public static List parseList(List formattedStrings) { - List list = new ArrayList<>(formattedStrings.size()); - for (String formattedString : formattedStrings) { - list.add(parse(formattedString)); - } - return list; - } - - public static List toStringList(List values) { - List list = new ArrayList<>(values.size()); - for (GlobalSiteTagName value : values) { - if (value == null) { - list.add(""); - } else { - list.add(value.toString()); - } - } - return list; - } - - public static boolean isParsableFrom(String formattedString) { - return PROPERTY_DATA_STREAM.matches(formattedString); - } - - @Override - public Map getFieldValuesMap() { - if (fieldValuesMap == null) { - synchronized (this) { - if (fieldValuesMap == null) { - ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); - if (property != null) { - fieldMapBuilder.put("property", property); - } - if (dataStream != null) { - fieldMapBuilder.put("data_stream", dataStream); - } - fieldValuesMap = fieldMapBuilder.build(); - } - } - } - return fieldValuesMap; - } - - public String getFieldValue(String fieldName) { - return getFieldValuesMap().get(fieldName); - } - - @Override - public String toString() { - return PROPERTY_DATA_STREAM.instantiate("property", property, "data_stream", dataStream); - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (o != null || getClass() == o.getClass()) { - GlobalSiteTagName that = ((GlobalSiteTagName) o); - return Objects.equals(this.property, that.property) - && Objects.equals(this.dataStream, that.dataStream); - } - return false; - } - - @Override - public int hashCode() { - int h = 1; - h *= 1000003; - h ^= Objects.hashCode(property); - h *= 1000003; - h ^= Objects.hashCode(dataStream); - return h; - } - - /** Builder for properties/{property}/dataStreams/{data_stream}/globalSiteTag. */ - public static class Builder { - private String property; - private String dataStream; - - protected Builder() {} - - public String getProperty() { - return property; - } - - public String getDataStream() { - return dataStream; - } - - public Builder setProperty(String property) { - this.property = property; - return this; - } - - public Builder setDataStream(String dataStream) { - this.dataStream = dataStream; - return this; - } - - private Builder(GlobalSiteTagName globalSiteTagName) { - this.property = globalSiteTagName.property; - this.dataStream = globalSiteTagName.dataStream; - } - - public GlobalSiteTagName build() { - return new GlobalSiteTagName(this); - } - } -} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GlobalSiteTagOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GlobalSiteTagOrBuilder.java deleted file mode 100644 index 2bb623e0..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GlobalSiteTagOrBuilder.java +++ /dev/null @@ -1,81 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/resources.proto - -package com.google.analytics.admin.v1alpha; - -public interface 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleAdsLink.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleAdsLink.java deleted file mode 100644 index 5cb79d67..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleAdsLink.java +++ /dev/null @@ -1,1952 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/resources.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * 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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - 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; - 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_; - /** - * - * - *
-   * 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 getAdsPersonalizationEnabled(); - } - - 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 getCreateTime(); - } - - 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 getUpdateTime(); - } - - public static final int CREATOR_EMAIL_ADDRESS_FIELD_NUMBER = 9; - 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(); - name_ = ""; - - customerId_ = ""; - - canManageClients_ = false; - - if (adsPersonalizationEnabledBuilder_ == null) { - adsPersonalizationEnabled_ = null; - } else { - adsPersonalizationEnabled_ = null; - adsPersonalizationEnabledBuilder_ = null; - } - if (createTimeBuilder_ == null) { - createTime_ = null; - } else { - createTime_ = null; - createTimeBuilder_ = null; - } - if (updateTimeBuilder_ == null) { - updateTime_ = null; - } else { - updateTime_ = null; - 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); - result.name_ = name_; - result.customerId_ = customerId_; - result.canManageClients_ = canManageClients_; - if (adsPersonalizationEnabledBuilder_ == null) { - result.adsPersonalizationEnabled_ = adsPersonalizationEnabled_; - } else { - result.adsPersonalizationEnabled_ = adsPersonalizationEnabledBuilder_.build(); - } - if (createTimeBuilder_ == null) { - result.createTime_ = createTime_; - } else { - result.createTime_ = createTimeBuilder_.build(); - } - if (updateTimeBuilder_ == null) { - result.updateTime_ = updateTime_; - } else { - result.updateTime_ = updateTimeBuilder_.build(); - } - result.creatorEmailAddress_ = creatorEmailAddress_; - 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.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_; - onChanged(); - } - if (!other.getCustomerId().isEmpty()) { - customerId_ = other.customerId_; - 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_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 26: - { - customerId_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 32: - { - canManageClients_ = input.readBool(); - - break; - } // case 32 - case 42: - { - input.readMessage( - getAdsPersonalizationEnabledFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 42 - case 58: - { - input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 58 - case 66: - { - input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 66 - case 74: - { - creatorEmailAddress_ = input.readStringRequireUtf8(); - - 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 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; - 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(); - 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; - 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; - 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(); - 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; - 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; - 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() { - - 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 adsPersonalizationEnabledBuilder_ != null || 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. - */ - 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; - onChanged(); - } else { - adsPersonalizationEnabledBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - adsPersonalizationEnabledBuilder_.setMessage(builderForValue.build()); - } - - 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 (adsPersonalizationEnabled_ != null) { - adsPersonalizationEnabled_ = - com.google.protobuf.BoolValue.newBuilder(adsPersonalizationEnabled_) - .mergeFrom(value) - .buildPartial(); - } else { - adsPersonalizationEnabled_ = value; - } - onChanged(); - } else { - adsPersonalizationEnabledBuilder_.mergeFrom(value); - } - - 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() { - if (adsPersonalizationEnabledBuilder_ == null) { - adsPersonalizationEnabled_ = null; - onChanged(); - } else { - adsPersonalizationEnabled_ = null; - adsPersonalizationEnabledBuilder_ = null; - } - - 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() { - - 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 createTimeBuilder_ != null || 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. - */ - 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; - onChanged(); - } else { - createTimeBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - createTimeBuilder_.setMessage(builderForValue.build()); - } - - 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 (createTime_ != null) { - createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); - } else { - createTime_ = value; - } - onChanged(); - } else { - createTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Output only. Time when this link was originally created.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearCreateTime() { - if (createTimeBuilder_ == null) { - createTime_ = null; - onChanged(); - } else { - createTime_ = null; - createTimeBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Output only. Time when this link was originally created.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - - 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 updateTimeBuilder_ != null || 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. - */ - 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; - onChanged(); - } else { - updateTimeBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - updateTimeBuilder_.setMessage(builderForValue.build()); - } - - 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 (updateTime_ != null) { - updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); - } else { - updateTime_ = value; - } - onChanged(); - } else { - updateTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Output only. Time when this link was last updated.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearUpdateTime() { - if (updateTimeBuilder_ == null) { - updateTime_ = null; - onChanged(); - } else { - updateTime_ = null; - updateTimeBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Output only. Time when this link was last updated.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - - 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; - 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(); - 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; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleAdsLinkName.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleAdsLinkName.java deleted file mode 100644 index b35a27f0..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleAdsLinkName.java +++ /dev/null @@ -1,194 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 com.google.api.pathtemplate.PathTemplate; -import com.google.api.resourcenames.ResourceName; -import com.google.common.base.Preconditions; -import com.google.common.collect.ImmutableMap; -import java.util.ArrayList; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -@Generated("by gapic-generator-java") -public class GoogleAdsLinkName implements ResourceName { - private static final PathTemplate PROPERTY_GOOGLE_ADS_LINK = - PathTemplate.createWithoutUrlEncoding( - "properties/{property}/googleAdsLinks/{google_ads_link}"); - private volatile Map fieldValuesMap; - private final String property; - private final String googleAdsLink; - - @Deprecated - protected GoogleAdsLinkName() { - property = null; - googleAdsLink = null; - } - - private GoogleAdsLinkName(Builder builder) { - property = Preconditions.checkNotNull(builder.getProperty()); - googleAdsLink = Preconditions.checkNotNull(builder.getGoogleAdsLink()); - } - - public String getProperty() { - return property; - } - - public String getGoogleAdsLink() { - return googleAdsLink; - } - - public static Builder newBuilder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder(this); - } - - public static GoogleAdsLinkName of(String property, String googleAdsLink) { - return newBuilder().setProperty(property).setGoogleAdsLink(googleAdsLink).build(); - } - - public static String format(String property, String googleAdsLink) { - return newBuilder().setProperty(property).setGoogleAdsLink(googleAdsLink).build().toString(); - } - - public static GoogleAdsLinkName parse(String formattedString) { - if (formattedString.isEmpty()) { - return null; - } - Map matchMap = - PROPERTY_GOOGLE_ADS_LINK.validatedMatch( - formattedString, "GoogleAdsLinkName.parse: formattedString not in valid format"); - return of(matchMap.get("property"), matchMap.get("google_ads_link")); - } - - public static List parseList(List formattedStrings) { - List list = new ArrayList<>(formattedStrings.size()); - for (String formattedString : formattedStrings) { - list.add(parse(formattedString)); - } - return list; - } - - public static List toStringList(List values) { - List list = new ArrayList<>(values.size()); - for (GoogleAdsLinkName value : values) { - if (value == null) { - list.add(""); - } else { - list.add(value.toString()); - } - } - return list; - } - - public static boolean isParsableFrom(String formattedString) { - return PROPERTY_GOOGLE_ADS_LINK.matches(formattedString); - } - - @Override - public Map getFieldValuesMap() { - if (fieldValuesMap == null) { - synchronized (this) { - if (fieldValuesMap == null) { - ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); - if (property != null) { - fieldMapBuilder.put("property", property); - } - if (googleAdsLink != null) { - fieldMapBuilder.put("google_ads_link", googleAdsLink); - } - fieldValuesMap = fieldMapBuilder.build(); - } - } - } - return fieldValuesMap; - } - - public String getFieldValue(String fieldName) { - return getFieldValuesMap().get(fieldName); - } - - @Override - public String toString() { - return PROPERTY_GOOGLE_ADS_LINK.instantiate( - "property", property, "google_ads_link", googleAdsLink); - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (o != null || getClass() == o.getClass()) { - GoogleAdsLinkName that = ((GoogleAdsLinkName) o); - return Objects.equals(this.property, that.property) - && Objects.equals(this.googleAdsLink, that.googleAdsLink); - } - return false; - } - - @Override - public int hashCode() { - int h = 1; - h *= 1000003; - h ^= Objects.hashCode(property); - h *= 1000003; - h ^= Objects.hashCode(googleAdsLink); - return h; - } - - /** Builder for properties/{property}/googleAdsLinks/{google_ads_link}. */ - public static class Builder { - private String property; - private String googleAdsLink; - - protected Builder() {} - - public String getProperty() { - return property; - } - - public String getGoogleAdsLink() { - return googleAdsLink; - } - - public Builder setProperty(String property) { - this.property = property; - return this; - } - - public Builder setGoogleAdsLink(String googleAdsLink) { - this.googleAdsLink = googleAdsLink; - return this; - } - - private Builder(GoogleAdsLinkName googleAdsLinkName) { - this.property = googleAdsLinkName.property; - this.googleAdsLink = googleAdsLinkName.googleAdsLink; - } - - public GoogleAdsLinkName build() { - return new GoogleAdsLinkName(this); - } - } -} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleAdsLinkOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleAdsLinkOrBuilder.java deleted file mode 100644 index 04831579..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleAdsLinkOrBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/resources.proto - -package com.google.analytics.admin.v1alpha; - -public interface 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleSignalsConsent.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleSignalsConsent.java deleted file mode 100644 index dcc2006d..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleSignalsConsent.java +++ /dev/null @@ -1,184 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/resources.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * Consent field of the Google Signals settings (i.e., whether the user has
- * consented to the Google Signals terms of service.)
- * 
- * - * 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleSignalsSettings.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleSignalsSettings.java deleted file mode 100644 index 6971b5e7..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleSignalsSettings.java +++ /dev/null @@ -1,960 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/resources.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * 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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - 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_; - /** - * - * - *
-   * 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() { - @SuppressWarnings("deprecation") - com.google.analytics.admin.v1alpha.GoogleSignalsState result = - com.google.analytics.admin.v1alpha.GoogleSignalsState.valueOf(state_); - return result == null - ? com.google.analytics.admin.v1alpha.GoogleSignalsState.UNRECOGNIZED - : result; - } - - public static final int CONSENT_FIELD_NUMBER = 4; - private int consent_; - /** - * - * - *
-   * 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() { - @SuppressWarnings("deprecation") - com.google.analytics.admin.v1alpha.GoogleSignalsConsent result = - com.google.analytics.admin.v1alpha.GoogleSignalsConsent.valueOf(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(); - 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); - result.name_ = name_; - result.state_ = state_; - result.consent_ = consent_; - 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.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_; - 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(); - - break; - } // case 10 - case 24: - { - state_ = input.readEnum(); - - break; - } // case 24 - case 32: - { - consent_ = input.readEnum(); - - 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 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; - 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(); - 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; - 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; - 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() { - @SuppressWarnings("deprecation") - com.google.analytics.admin.v1alpha.GoogleSignalsState result = - com.google.analytics.admin.v1alpha.GoogleSignalsState.valueOf(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(); - } - - 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() { - - 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; - 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() { - @SuppressWarnings("deprecation") - com.google.analytics.admin.v1alpha.GoogleSignalsConsent result = - com.google.analytics.admin.v1alpha.GoogleSignalsConsent.valueOf(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(); - } - - 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() { - - 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleSignalsSettingsName.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleSignalsSettingsName.java deleted file mode 100644 index 1726ada0..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleSignalsSettingsName.java +++ /dev/null @@ -1,169 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 com.google.api.pathtemplate.PathTemplate; -import com.google.api.resourcenames.ResourceName; -import com.google.common.base.Preconditions; -import com.google.common.collect.ImmutableMap; -import java.util.ArrayList; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -@Generated("by gapic-generator-java") -public class GoogleSignalsSettingsName implements ResourceName { - private static final PathTemplate PROPERTY = - PathTemplate.createWithoutUrlEncoding("properties/{property}/googleSignalsSettings"); - private volatile Map fieldValuesMap; - private final String property; - - @Deprecated - protected GoogleSignalsSettingsName() { - property = null; - } - - private GoogleSignalsSettingsName(Builder builder) { - property = Preconditions.checkNotNull(builder.getProperty()); - } - - public String getProperty() { - return property; - } - - public static Builder newBuilder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder(this); - } - - public static GoogleSignalsSettingsName of(String property) { - return newBuilder().setProperty(property).build(); - } - - public static String format(String property) { - return newBuilder().setProperty(property).build().toString(); - } - - public static GoogleSignalsSettingsName parse(String formattedString) { - if (formattedString.isEmpty()) { - return null; - } - Map matchMap = - PROPERTY.validatedMatch( - formattedString, - "GoogleSignalsSettingsName.parse: formattedString not in valid format"); - return of(matchMap.get("property")); - } - - public static List parseList(List formattedStrings) { - List list = new ArrayList<>(formattedStrings.size()); - for (String formattedString : formattedStrings) { - list.add(parse(formattedString)); - } - return list; - } - - public static List toStringList(List values) { - List list = new ArrayList<>(values.size()); - for (GoogleSignalsSettingsName value : values) { - if (value == null) { - list.add(""); - } else { - list.add(value.toString()); - } - } - return list; - } - - public static boolean isParsableFrom(String formattedString) { - return PROPERTY.matches(formattedString); - } - - @Override - public Map getFieldValuesMap() { - if (fieldValuesMap == null) { - synchronized (this) { - if (fieldValuesMap == null) { - ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); - if (property != null) { - fieldMapBuilder.put("property", property); - } - fieldValuesMap = fieldMapBuilder.build(); - } - } - } - return fieldValuesMap; - } - - public String getFieldValue(String fieldName) { - return getFieldValuesMap().get(fieldName); - } - - @Override - public String toString() { - return PROPERTY.instantiate("property", property); - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (o != null || getClass() == o.getClass()) { - GoogleSignalsSettingsName that = ((GoogleSignalsSettingsName) o); - return Objects.equals(this.property, that.property); - } - return false; - } - - @Override - public int hashCode() { - int h = 1; - h *= 1000003; - h ^= Objects.hashCode(property); - return h; - } - - /** Builder for properties/{property}/googleSignalsSettings. */ - public static class Builder { - private String property; - - protected Builder() {} - - public String getProperty() { - return property; - } - - public Builder setProperty(String property) { - this.property = property; - return this; - } - - private Builder(GoogleSignalsSettingsName googleSignalsSettingsName) { - this.property = googleSignalsSettingsName.property; - } - - public GoogleSignalsSettingsName build() { - return new GoogleSignalsSettingsName(this); - } - } -} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleSignalsSettingsOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleSignalsSettingsOrBuilder.java deleted file mode 100644 index 2f84d575..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleSignalsSettingsOrBuilder.java +++ /dev/null @@ -1,108 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/resources.proto - -package com.google.analytics.admin.v1alpha; - -public interface 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleSignalsState.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleSignalsState.java deleted file mode 100644 index ed535750..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleSignalsState.java +++ /dev/null @@ -1,181 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/resources.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * Status of the Google Signals settings (i.e., whether this feature has been
- * enabled for the property).
- * 
- * - * 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/IndustryCategory.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/IndustryCategory.java deleted file mode 100644 index 461d68a4..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/IndustryCategory.java +++ /dev/null @@ -1,704 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/resources.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/LinkProposalInitiatingProduct.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/LinkProposalInitiatingProduct.java deleted file mode 100644 index 722888c2..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/LinkProposalInitiatingProduct.java +++ /dev/null @@ -1,181 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/resources.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/LinkProposalState.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/LinkProposalState.java deleted file mode 100644 index 30482769..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/LinkProposalState.java +++ /dev/null @@ -1,282 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/resources.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * The state of a link proposal resource.
- * 
- * - * Protobuf enum {@code google.analytics.admin.v1alpha.LinkProposalState} - */ -public enum LinkProposalState implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-   * Unspecified state
-   * 
- * - * LINK_PROPOSAL_STATE_UNSPECIFIED = 0; - */ - LINK_PROPOSAL_STATE_UNSPECIFIED(0), - /** - * - * - *
-   * This proposal is awaiting review from a Google Analytics user. This
-   * proposal will automatically expire after some time.
-   * 
- * - * AWAITING_REVIEW_FROM_GOOGLE_ANALYTICS = 1; - */ - 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.
-   * 
- * - * AWAITING_REVIEW_FROM_LINKED_PRODUCT = 2; - */ - 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.
-   * 
- * - * WITHDRAWN = 3; - */ - WITHDRAWN(3), - /** - * - * - *
-   * This proposal has been declined by an admin on the receiving product. This
-   * proposal will be automatically deleted after some time.
-   * 
- * - * DECLINED = 4; - */ - 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
-   * time.
-   * 
- * - * EXPIRED = 5; - */ - EXPIRED(5), - /** - * - * - *
-   * This proposal has become obsolete because a link was directly created to
-   * the same external product resource that this proposal specifies. This
-   * proposal will be automatically deleted after some time.
-   * 
- * - * OBSOLETE = 6; - */ - OBSOLETE(6), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-   * Unspecified state
-   * 
- * - * LINK_PROPOSAL_STATE_UNSPECIFIED = 0; - */ - 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.
-   * 
- * - * AWAITING_REVIEW_FROM_GOOGLE_ANALYTICS = 1; - */ - 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.
-   * 
- * - * AWAITING_REVIEW_FROM_LINKED_PRODUCT = 2; - */ - 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.
-   * 
- * - * WITHDRAWN = 3; - */ - 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.
-   * 
- * - * DECLINED = 4; - */ - 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
-   * time.
-   * 
- * - * EXPIRED = 5; - */ - 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
-   * proposal will be automatically deleted after some time.
-   * 
- * - * OBSOLETE = 6; - */ - public static final int OBSOLETE_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 LinkProposalState 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 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; - } - } - - 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 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() { - return getDescriptor(); - } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.ResourcesProto.getDescriptor().getEnumTypes().get(8); - } - - private static final LinkProposalState[] VALUES = values(); - - 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."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private LinkProposalState(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1alpha.LinkProposalState) -} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/LinkProposalStatusDetails.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/LinkProposalStatusDetails.java deleted file mode 100644 index f3204ca4..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/LinkProposalStatusDetails.java +++ /dev/null @@ -1,970 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/resources.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * 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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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_; - /** - * - * - *
-   * 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() { - @SuppressWarnings("deprecation") - com.google.analytics.admin.v1alpha.LinkProposalInitiatingProduct result = - com.google.analytics.admin.v1alpha.LinkProposalInitiatingProduct.valueOf( - linkProposalInitiatingProduct_); - return result == null - ? com.google.analytics.admin.v1alpha.LinkProposalInitiatingProduct.UNRECOGNIZED - : result; - } - - public static final int REQUESTOR_EMAIL_FIELD_NUMBER = 2; - 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_; - /** - * - * - *
-   * 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() { - @SuppressWarnings("deprecation") - com.google.analytics.admin.v1alpha.LinkProposalState result = - com.google.analytics.admin.v1alpha.LinkProposalState.valueOf(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(); - 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); - result.linkProposalInitiatingProduct_ = linkProposalInitiatingProduct_; - result.requestorEmail_ = requestorEmail_; - result.linkProposalState_ = linkProposalState_; - 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.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_; - 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(); - - break; - } // case 8 - case 18: - { - requestorEmail_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 24: - { - linkProposalState_ = input.readEnum(); - - 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 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; - 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() { - @SuppressWarnings("deprecation") - com.google.analytics.admin.v1alpha.LinkProposalInitiatingProduct result = - com.google.analytics.admin.v1alpha.LinkProposalInitiatingProduct.valueOf( - 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(); - } - - 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() { - - 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; - 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(); - 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; - 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; - 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() { - @SuppressWarnings("deprecation") - com.google.analytics.admin.v1alpha.LinkProposalState result = - com.google.analytics.admin.v1alpha.LinkProposalState.valueOf(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(); - } - - 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() { - - 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/LinkProposalStatusDetailsOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/LinkProposalStatusDetailsOrBuilder.java deleted file mode 100644 index 3fe9bf48..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/LinkProposalStatusDetailsOrBuilder.java +++ /dev/null @@ -1,109 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/resources.proto - -package com.google.analytics.admin.v1alpha; - -public interface 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountSummariesRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountSummariesRequest.java deleted file mode 100644 index b69e614c..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountSummariesRequest.java +++ /dev/null @@ -1,745 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * Request message for 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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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_; - /** - * - * - *
-   * 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; - 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(); - 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); - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.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_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == 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(); - - break; - } // case 8 - case 18: - { - pageToken_ = input.readStringRequireUtf8(); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - 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; - 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() { - - 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; - 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(); - 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; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountSummariesRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountSummariesRequestOrBuilder.java deleted file mode 100644 index d39388bf..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountSummariesRequestOrBuilder.java +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountSummariesResponse.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountSummariesResponse.java deleted file mode 100644 index 682e5931..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountSummariesResponse.java +++ /dev/null @@ -1,1134 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * 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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - 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; - 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(); - 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); - int from_bitField0_ = bitField0_; - if (accountSummariesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - accountSummaries_ = java.util.Collections.unmodifiableList(accountSummaries_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.accountSummaries_ = accountSummaries_; - } else { - result.accountSummaries_ = accountSummariesBuilder_.build(); - } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.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_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // 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; - onChanged(); - return this; - } - /** - * - * - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * - * @return This builder for chaining. - */ - public Builder clearNextPageToken() { - - nextPageToken_ = getDefaultInstance().getNextPageToken(); - onChanged(); - return this; - } - /** - * - * - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * - * @param value The bytes for nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - nextPageToken_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountSummariesResponseOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountSummariesResponseOrBuilder.java deleted file mode 100644 index 0d916959..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountSummariesResponseOrBuilder.java +++ /dev/null @@ -1,105 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountsRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountsRequest.java deleted file mode 100644 index 3c0639ff..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountsRequest.java +++ /dev/null @@ -1,839 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * Request message for 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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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_; - /** - * - * - *
-   * 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; - 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_; - /** - * - * - *
-   * 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(); - 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); - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; - result.showDeleted_ = showDeleted_; - 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.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_; - 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(); - - break; - } // case 8 - case 18: - { - pageToken_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 24: - { - showDeleted_ = input.readBool(); - - 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 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; - 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() { - - 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; - 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(); - 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; - 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; - 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() { - - 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountsRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountsRequestOrBuilder.java deleted file mode 100644 index eb0adfc8..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountsRequestOrBuilder.java +++ /dev/null @@ -1,87 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountsResponse.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountsResponse.java deleted file mode 100644 index a66dbd54..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountsResponse.java +++ /dev/null @@ -1,1112 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * Request message for 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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - 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; - 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(); - 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); - int from_bitField0_ = bitField0_; - if (accountsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - accounts_ = java.util.Collections.unmodifiableList(accounts_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.accounts_ = accounts_; - } else { - result.accounts_ = accountsBuilder_.build(); - } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.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_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // 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; - onChanged(); - return this; - } - /** - * - * - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * - * @return This builder for chaining. - */ - public Builder clearNextPageToken() { - - nextPageToken_ = getDefaultInstance().getNextPageToken(); - onChanged(); - return this; - } - /** - * - * - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * - * @param value The bytes for nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - nextPageToken_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountsResponseOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountsResponseOrBuilder.java deleted file mode 100644 index 8a80e051..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountsResponseOrBuilder.java +++ /dev/null @@ -1,104 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAudiencesRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAudiencesRequest.java deleted file mode 100644 index e946aee9..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAudiencesRequest.java +++ /dev/null @@ -1,928 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * Request message for 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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - private volatile java.lang.Object parent_; - /** - * - * - *
-   * Required. Example format: properties/1234
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - * - * - *
-   * Required. Example format: properties/1234
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PAGE_SIZE_FIELD_NUMBER = 2; - private int pageSize_; - /** - * - * - *
-   * The maximum number of resources to return.
-   * If unspecified, at most 50 resources will be returned.
-   * The maximum value is 200 (higher values will be coerced to the maximum).
-   * 
- * - * int32 page_size = 2; - * - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - - public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - private volatile java.lang.Object pageToken_; - /** - * - * - *
-   * A page token, received from a previous `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(); - 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); - result.parent_ = parent_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.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_; - onChanged(); - } - if (other.getPageSize() != 0) { - setPageSize(other.getPageSize()); - } - if (!other.getPageToken().isEmpty()) { - pageToken_ = other.pageToken_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - - 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 java.lang.Object parent_ = ""; - /** - * - * - *
-     * Required. Example format: properties/1234
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. Example format: properties/1234
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. Example format: properties/1234
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - parent_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Example format: properties/1234
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearParent() { - - parent_ = getDefaultInstance().getParent(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Example format: properties/1234
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - parent_ = value; - onChanged(); - return this; - } - - private int pageSize_; - /** - * - * - *
-     * The maximum number of resources to return.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200 (higher values will be coerced to the maximum).
-     * 
- * - * int32 page_size = 2; - * - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - /** - * - * - *
-     * The maximum number of resources to return.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200 (higher values will be coerced to the maximum).
-     * 
- * - * int32 page_size = 2; - * - * @param value The pageSize to set. - * @return This builder for chaining. - */ - public Builder setPageSize(int value) { - - pageSize_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The maximum number of resources to return.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200 (higher values will be coerced to the maximum).
-     * 
- * - * int32 page_size = 2; - * - * @return This builder for chaining. - */ - public Builder clearPageSize() { - - pageSize_ = 0; - onChanged(); - return this; - } - - private java.lang.Object pageToken_ = ""; - /** - * - * - *
-     * A page token, received from a previous `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; - 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(); - 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; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAudiencesRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAudiencesRequestOrBuilder.java deleted file mode 100644 index 7583ee55..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAudiencesRequestOrBuilder.java +++ /dev/null @@ -1,100 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAudiencesResponse.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAudiencesResponse.java deleted file mode 100644 index 3491d7ea..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAudiencesResponse.java +++ /dev/null @@ -1,1114 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * 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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - 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; - 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(); - 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); - int from_bitField0_ = bitField0_; - if (audiencesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - audiences_ = java.util.Collections.unmodifiableList(audiences_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.audiences_ = audiences_; - } else { - result.audiences_ = audiencesBuilder_.build(); - } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.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_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // 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; - onChanged(); - return this; - } - /** - * - * - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * - * @return This builder for chaining. - */ - public Builder clearNextPageToken() { - - nextPageToken_ = getDefaultInstance().getNextPageToken(); - onChanged(); - return this; - } - /** - * - * - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * - * @param value The bytes for nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - nextPageToken_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAudiencesResponseOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAudiencesResponseOrBuilder.java deleted file mode 100644 index cde775e2..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAudiencesResponseOrBuilder.java +++ /dev/null @@ -1,104 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListConversionEventsRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListConversionEventsRequest.java deleted file mode 100644 index e313eb64..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListConversionEventsRequest.java +++ /dev/null @@ -1,940 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * Request message for 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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - 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_; - /** - * - * - *
-   * The maximum number of resources to return.
-   * If unspecified, at most 50 resources will be returned.
-   * The maximum value is 200; (higher values will be coerced to the maximum)
-   * 
- * - * int32 page_size = 2; - * - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - - public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - private volatile java.lang.Object pageToken_; - /** - * - * - *
-   * A page token, received from a previous `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(); - 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); - result.parent_ = parent_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.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_; - onChanged(); - } - if (other.getPageSize() != 0) { - setPageSize(other.getPageSize()); - } - if (!other.getPageToken().isEmpty()) { - pageToken_ = other.pageToken_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - - 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 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; - 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(); - 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; - onChanged(); - return this; - } - - private int pageSize_; - /** - * - * - *
-     * The maximum number of resources to return.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200; (higher values will be coerced to the maximum)
-     * 
- * - * int32 page_size = 2; - * - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - /** - * - * - *
-     * The maximum number of resources to return.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200; (higher values will be coerced to the maximum)
-     * 
- * - * int32 page_size = 2; - * - * @param value The pageSize to set. - * @return This builder for chaining. - */ - public Builder setPageSize(int value) { - - pageSize_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The maximum number of resources to return.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200; (higher values will be coerced to the maximum)
-     * 
- * - * int32 page_size = 2; - * - * @return This builder for chaining. - */ - public Builder clearPageSize() { - - pageSize_ = 0; - onChanged(); - return this; - } - - private java.lang.Object pageToken_ = ""; - /** - * - * - *
-     * A page token, received from a previous `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; - 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(); - 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; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListConversionEventsRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListConversionEventsRequestOrBuilder.java deleted file mode 100644 index be1919e5..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListConversionEventsRequestOrBuilder.java +++ /dev/null @@ -1,102 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListConversionEventsResponse.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListConversionEventsResponse.java deleted file mode 100644 index 840bd81c..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListConversionEventsResponse.java +++ /dev/null @@ -1,1134 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * 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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - 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; - 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(); - 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); - int from_bitField0_ = bitField0_; - if (conversionEventsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - conversionEvents_ = java.util.Collections.unmodifiableList(conversionEvents_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.conversionEvents_ = conversionEvents_; - } else { - result.conversionEvents_ = conversionEventsBuilder_.build(); - } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.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_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // 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; - onChanged(); - return this; - } - /** - * - * - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * - * @return This builder for chaining. - */ - public Builder clearNextPageToken() { - - nextPageToken_ = getDefaultInstance().getNextPageToken(); - onChanged(); - return this; - } - /** - * - * - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * - * @param value The bytes for nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - nextPageToken_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListConversionEventsResponseOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListConversionEventsResponseOrBuilder.java deleted file mode 100644 index ac12d5f6..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListConversionEventsResponseOrBuilder.java +++ /dev/null @@ -1,105 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomDimensionsRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomDimensionsRequest.java deleted file mode 100644 index 1939bff0..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomDimensionsRequest.java +++ /dev/null @@ -1,933 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * Request message for 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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - private volatile java.lang.Object parent_; - /** - * - * - *
-   * Required. Example format: properties/1234
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - * - * - *
-   * Required. Example format: properties/1234
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PAGE_SIZE_FIELD_NUMBER = 2; - private int pageSize_; - /** - * - * - *
-   * The maximum number of resources to return.
-   * If unspecified, at most 50 resources will be returned.
-   * The maximum value is 200 (higher values will be coerced to the maximum).
-   * 
- * - * int32 page_size = 2; - * - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - - public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - private volatile java.lang.Object pageToken_; - /** - * - * - *
-   * A page token, received from a previous `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(); - 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); - result.parent_ = parent_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.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_; - onChanged(); - } - if (other.getPageSize() != 0) { - setPageSize(other.getPageSize()); - } - if (!other.getPageToken().isEmpty()) { - pageToken_ = other.pageToken_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - - 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 java.lang.Object parent_ = ""; - /** - * - * - *
-     * Required. Example format: properties/1234
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. Example format: properties/1234
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. Example format: properties/1234
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - parent_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Example format: properties/1234
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearParent() { - - parent_ = getDefaultInstance().getParent(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Example format: properties/1234
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - parent_ = value; - onChanged(); - return this; - } - - private int pageSize_; - /** - * - * - *
-     * The maximum number of resources to return.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200 (higher values will be coerced to the maximum).
-     * 
- * - * int32 page_size = 2; - * - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - /** - * - * - *
-     * The maximum number of resources to return.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200 (higher values will be coerced to the maximum).
-     * 
- * - * int32 page_size = 2; - * - * @param value The pageSize to set. - * @return This builder for chaining. - */ - public Builder setPageSize(int value) { - - pageSize_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The maximum number of resources to return.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200 (higher values will be coerced to the maximum).
-     * 
- * - * int32 page_size = 2; - * - * @return This builder for chaining. - */ - public Builder clearPageSize() { - - pageSize_ = 0; - onChanged(); - return this; - } - - private java.lang.Object pageToken_ = ""; - /** - * - * - *
-     * A page token, received from a previous `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; - 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(); - 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; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomDimensionsRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomDimensionsRequestOrBuilder.java deleted file mode 100644 index 1ba10b17..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomDimensionsRequestOrBuilder.java +++ /dev/null @@ -1,100 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomDimensionsResponse.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomDimensionsResponse.java deleted file mode 100644 index 7432e041..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomDimensionsResponse.java +++ /dev/null @@ -1,1134 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * 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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - 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; - 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(); - 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); - int from_bitField0_ = bitField0_; - if (customDimensionsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - customDimensions_ = java.util.Collections.unmodifiableList(customDimensions_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.customDimensions_ = customDimensions_; - } else { - result.customDimensions_ = customDimensionsBuilder_.build(); - } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.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_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // 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; - onChanged(); - return this; - } - /** - * - * - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * - * @return This builder for chaining. - */ - public Builder clearNextPageToken() { - - nextPageToken_ = getDefaultInstance().getNextPageToken(); - onChanged(); - return this; - } - /** - * - * - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * - * @param value The bytes for nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - nextPageToken_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomDimensionsResponseOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomDimensionsResponseOrBuilder.java deleted file mode 100644 index efb6ff0e..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomDimensionsResponseOrBuilder.java +++ /dev/null @@ -1,105 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomMetricsRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomMetricsRequest.java deleted file mode 100644 index e0b11b10..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomMetricsRequest.java +++ /dev/null @@ -1,928 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * Request message for 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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - private volatile java.lang.Object parent_; - /** - * - * - *
-   * Required. Example format: properties/1234
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - * - * - *
-   * Required. Example format: properties/1234
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PAGE_SIZE_FIELD_NUMBER = 2; - private int pageSize_; - /** - * - * - *
-   * The maximum number of resources to return.
-   * If unspecified, at most 50 resources will be returned.
-   * The maximum value is 200 (higher values will be coerced to the maximum).
-   * 
- * - * int32 page_size = 2; - * - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - - public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - private volatile java.lang.Object pageToken_; - /** - * - * - *
-   * A page token, received from a previous `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(); - 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); - result.parent_ = parent_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.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_; - onChanged(); - } - if (other.getPageSize() != 0) { - setPageSize(other.getPageSize()); - } - if (!other.getPageToken().isEmpty()) { - pageToken_ = other.pageToken_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - - 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 java.lang.Object parent_ = ""; - /** - * - * - *
-     * Required. Example format: properties/1234
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. Example format: properties/1234
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. Example format: properties/1234
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - parent_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Example format: properties/1234
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearParent() { - - parent_ = getDefaultInstance().getParent(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Example format: properties/1234
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - parent_ = value; - onChanged(); - return this; - } - - private int pageSize_; - /** - * - * - *
-     * The maximum number of resources to return.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200 (higher values will be coerced to the maximum).
-     * 
- * - * int32 page_size = 2; - * - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - /** - * - * - *
-     * The maximum number of resources to return.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200 (higher values will be coerced to the maximum).
-     * 
- * - * int32 page_size = 2; - * - * @param value The pageSize to set. - * @return This builder for chaining. - */ - public Builder setPageSize(int value) { - - pageSize_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The maximum number of resources to return.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200 (higher values will be coerced to the maximum).
-     * 
- * - * int32 page_size = 2; - * - * @return This builder for chaining. - */ - public Builder clearPageSize() { - - pageSize_ = 0; - onChanged(); - return this; - } - - private java.lang.Object pageToken_ = ""; - /** - * - * - *
-     * A page token, received from a previous `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; - 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(); - 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; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomMetricsRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomMetricsRequestOrBuilder.java deleted file mode 100644 index 6fc7b232..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomMetricsRequestOrBuilder.java +++ /dev/null @@ -1,100 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomMetricsResponse.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomMetricsResponse.java deleted file mode 100644 index 64bf902b..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomMetricsResponse.java +++ /dev/null @@ -1,1128 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * 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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - 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; - 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(); - 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); - int from_bitField0_ = bitField0_; - if (customMetricsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - customMetrics_ = java.util.Collections.unmodifiableList(customMetrics_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.customMetrics_ = customMetrics_; - } else { - result.customMetrics_ = customMetricsBuilder_.build(); - } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.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_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // 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; - onChanged(); - return this; - } - /** - * - * - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * - * @return This builder for chaining. - */ - public Builder clearNextPageToken() { - - nextPageToken_ = getDefaultInstance().getNextPageToken(); - onChanged(); - return this; - } - /** - * - * - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * - * @param value The bytes for nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - nextPageToken_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomMetricsResponseOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomMetricsResponseOrBuilder.java deleted file mode 100644 index e50c688f..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomMetricsResponseOrBuilder.java +++ /dev/null @@ -1,104 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDataStreamsRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDataStreamsRequest.java deleted file mode 100644 index fcd97b22..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDataStreamsRequest.java +++ /dev/null @@ -1,928 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * Request message for ListDataStreams RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ListDataStreamsRequest} - */ -public final class ListDataStreamsRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListDataStreamsRequest) - ListDataStreamsRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ListDataStreamsRequest.newBuilder() to construct. - private ListDataStreamsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ListDataStreamsRequest() { - parent_ = ""; - pageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ListDataStreamsRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_ListDataStreamsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_ListDataStreamsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ListDataStreamsRequest.class, - com.google.analytics.admin.v1alpha.ListDataStreamsRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; - /** - * - * - *
-   * Required. Example format: properties/1234
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - * - * - *
-   * Required. Example format: properties/1234
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PAGE_SIZE_FIELD_NUMBER = 2; - private int pageSize_; - /** - * - * - *
-   * The maximum number of resources to return.
-   * If unspecified, at most 50 resources will be returned.
-   * The maximum value is 200 (higher values will be coerced to the maximum).
-   * 
- * - * int32 page_size = 2; - * - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - - public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - private volatile java.lang.Object pageToken_; - /** - * - * - *
-   * A page token, received from a previous `ListDataStreams` call.
-   * Provide this to retrieve the subsequent page.
-   * When paginating, all other parameters provided to `ListDataStreams` must
-   * match the call that provided the page token.
-   * 
- * - * string page_token = 3; - * - * @return The pageToken. - */ - @java.lang.Override - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } - } - /** - * - * - *
-   * A page token, received from a previous `ListDataStreams` call.
-   * Provide this to retrieve the subsequent page.
-   * When paginating, all other parameters provided to `ListDataStreams` must
-   * match the call that provided the page token.
-   * 
- * - * string page_token = 3; - * - * @return The bytes for pageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (pageSize_ != 0) { - output.writeInt32(2, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); - } - getUnknownFields().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(); - parent_ = ""; - - pageSize_ = 0; - - pageToken_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_ListDataStreamsRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListDataStreamsRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.ListDataStreamsRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListDataStreamsRequest build() { - com.google.analytics.admin.v1alpha.ListDataStreamsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListDataStreamsRequest buildPartial() { - com.google.analytics.admin.v1alpha.ListDataStreamsRequest result = - new com.google.analytics.admin.v1alpha.ListDataStreamsRequest(this); - result.parent_ = parent_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.ListDataStreamsRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.ListDataStreamsRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.ListDataStreamsRequest other) { - if (other == com.google.analytics.admin.v1alpha.ListDataStreamsRequest.getDefaultInstance()) - return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - onChanged(); - } - if (other.getPageSize() != 0) { - setPageSize(other.getPageSize()); - } - if (!other.getPageToken().isEmpty()) { - pageToken_ = other.pageToken_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - - 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 java.lang.Object parent_ = ""; - /** - * - * - *
-     * Required. Example format: properties/1234
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. Example format: properties/1234
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. Example format: properties/1234
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - parent_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Example format: properties/1234
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearParent() { - - parent_ = getDefaultInstance().getParent(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Example format: properties/1234
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - parent_ = value; - onChanged(); - return this; - } - - private int pageSize_; - /** - * - * - *
-     * The maximum number of resources to return.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200 (higher values will be coerced to the maximum).
-     * 
- * - * int32 page_size = 2; - * - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - /** - * - * - *
-     * The maximum number of resources to return.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200 (higher values will be coerced to the maximum).
-     * 
- * - * int32 page_size = 2; - * - * @param value The pageSize to set. - * @return This builder for chaining. - */ - public Builder setPageSize(int value) { - - pageSize_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The maximum number of resources to return.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200 (higher values will be coerced to the maximum).
-     * 
- * - * int32 page_size = 2; - * - * @return This builder for chaining. - */ - public Builder clearPageSize() { - - pageSize_ = 0; - onChanged(); - return this; - } - - private java.lang.Object pageToken_ = ""; - /** - * - * - *
-     * A page token, received from a previous `ListDataStreams` call.
-     * Provide this to retrieve the subsequent page.
-     * When paginating, all other parameters provided to `ListDataStreams` must
-     * match the call that provided the page token.
-     * 
- * - * string page_token = 3; - * - * @return The pageToken. - */ - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * A page token, received from a previous `ListDataStreams` call.
-     * Provide this to retrieve the subsequent page.
-     * When paginating, all other parameters provided to `ListDataStreams` must
-     * match the call that provided the page token.
-     * 
- * - * string page_token = 3; - * - * @return The bytes for pageToken. - */ - public com.google.protobuf.ByteString getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * A page token, received from a previous `ListDataStreams` call.
-     * Provide this to retrieve the subsequent page.
-     * When paginating, all other parameters provided to `ListDataStreams` must
-     * match the call that provided the page token.
-     * 
- * - * string page_token = 3; - * - * @param value The pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - pageToken_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * A page token, received from a previous `ListDataStreams` call.
-     * Provide this to retrieve the subsequent page.
-     * When paginating, all other parameters provided to `ListDataStreams` must
-     * match the call that provided the page token.
-     * 
- * - * string page_token = 3; - * - * @return This builder for chaining. - */ - public Builder clearPageToken() { - - pageToken_ = getDefaultInstance().getPageToken(); - onChanged(); - return this; - } - /** - * - * - *
-     * A page token, received from a previous `ListDataStreams` call.
-     * Provide this to retrieve the subsequent page.
-     * When paginating, all other parameters provided to `ListDataStreams` must
-     * match the call that provided the page token.
-     * 
- * - * string page_token = 3; - * - * @param value The bytes for pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - pageToken_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ListDataStreamsRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListDataStreamsRequest) - private static final com.google.analytics.admin.v1alpha.ListDataStreamsRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ListDataStreamsRequest(); - } - - public static com.google.analytics.admin.v1alpha.ListDataStreamsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListDataStreamsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListDataStreamsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDataStreamsRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDataStreamsRequestOrBuilder.java deleted file mode 100644 index f4b3eead..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDataStreamsRequestOrBuilder.java +++ /dev/null @@ -1,100 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface ListDataStreamsRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListDataStreamsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Example format: properties/1234
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * Required. Example format: properties/1234
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); - - /** - * - * - *
-   * The maximum number of resources to return.
-   * If unspecified, at most 50 resources will be returned.
-   * The maximum value is 200 (higher values will be coerced to the maximum).
-   * 
- * - * int32 page_size = 2; - * - * @return The pageSize. - */ - int getPageSize(); - - /** - * - * - *
-   * A page token, received from a previous `ListDataStreams` call.
-   * Provide this to retrieve the subsequent page.
-   * When paginating, all other parameters provided to `ListDataStreams` must
-   * match the call that provided the page token.
-   * 
- * - * string page_token = 3; - * - * @return The pageToken. - */ - java.lang.String getPageToken(); - /** - * - * - *
-   * A page token, received from a previous `ListDataStreams` call.
-   * Provide this to retrieve the subsequent page.
-   * When paginating, all other parameters provided to `ListDataStreams` must
-   * match the call that provided the page token.
-   * 
- * - * string page_token = 3; - * - * @return The bytes for pageToken. - */ - com.google.protobuf.ByteString getPageTokenBytes(); -} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDataStreamsResponse.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDataStreamsResponse.java deleted file mode 100644 index 8edfb404..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDataStreamsResponse.java +++ /dev/null @@ -1,1115 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * Response message for ListDataStreams RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ListDataStreamsResponse} - */ -public final class ListDataStreamsResponse extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListDataStreamsResponse) - ListDataStreamsResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use ListDataStreamsResponse.newBuilder() to construct. - private ListDataStreamsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ListDataStreamsResponse() { - dataStreams_ = java.util.Collections.emptyList(); - nextPageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ListDataStreamsResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_ListDataStreamsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_ListDataStreamsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ListDataStreamsResponse.class, - com.google.analytics.admin.v1alpha.ListDataStreamsResponse.Builder.class); - } - - public static final int DATA_STREAMS_FIELD_NUMBER = 1; - private java.util.List dataStreams_; - /** - * - * - *
-   * List of DataStreams.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.DataStream data_streams = 1; - */ - @java.lang.Override - public java.util.List getDataStreamsList() { - return dataStreams_; - } - /** - * - * - *
-   * List of DataStreams.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.DataStream data_streams = 1; - */ - @java.lang.Override - public java.util.List - getDataStreamsOrBuilderList() { - return dataStreams_; - } - /** - * - * - *
-   * List of DataStreams.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.DataStream data_streams = 1; - */ - @java.lang.Override - public int getDataStreamsCount() { - return dataStreams_.size(); - } - /** - * - * - *
-   * List of DataStreams.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.DataStream data_streams = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.DataStream getDataStreams(int index) { - return dataStreams_.get(index); - } - /** - * - * - *
-   * List of DataStreams.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.DataStream data_streams = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.DataStreamOrBuilder getDataStreamsOrBuilder(int index) { - return dataStreams_.get(index); - } - - public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; - /** - * - * - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * - * @return The nextPageToken. - */ - @java.lang.Override - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } - } - /** - * - * - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * - * @return The bytes for nextPageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - for (int i = 0; i < dataStreams_.size(); i++) { - output.writeMessage(1, dataStreams_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); - } - 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(); - 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); - int from_bitField0_ = bitField0_; - if (dataStreamsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - dataStreams_ = java.util.Collections.unmodifiableList(dataStreams_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.dataStreams_ = dataStreams_; - } else { - result.dataStreams_ = dataStreamsBuilder_.build(); - } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.ListDataStreamsResponse) { - return mergeFrom((com.google.analytics.admin.v1alpha.ListDataStreamsResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.ListDataStreamsResponse other) { - if (other == com.google.analytics.admin.v1alpha.ListDataStreamsResponse.getDefaultInstance()) - return this; - if (dataStreamsBuilder_ == null) { - if (!other.dataStreams_.isEmpty()) { - if (dataStreams_.isEmpty()) { - dataStreams_ = other.dataStreams_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureDataStreamsIsMutable(); - dataStreams_.addAll(other.dataStreams_); - } - onChanged(); - } - } else { - if (!other.dataStreams_.isEmpty()) { - if (dataStreamsBuilder_.isEmpty()) { - dataStreamsBuilder_.dispose(); - dataStreamsBuilder_ = null; - dataStreams_ = other.dataStreams_; - bitField0_ = (bitField0_ & ~0x00000001); - dataStreamsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getDataStreamsFieldBuilder() - : null; - } else { - dataStreamsBuilder_.addAllMessages(other.dataStreams_); - } - } - } - if (!other.getNextPageToken().isEmpty()) { - nextPageToken_ = other.nextPageToken_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // 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; - onChanged(); - return this; - } - /** - * - * - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * - * @return This builder for chaining. - */ - public Builder clearNextPageToken() { - - nextPageToken_ = getDefaultInstance().getNextPageToken(); - onChanged(); - return this; - } - /** - * - * - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * - * @param value The bytes for nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - nextPageToken_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ListDataStreamsResponse) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListDataStreamsResponse) - private static final com.google.analytics.admin.v1alpha.ListDataStreamsResponse DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ListDataStreamsResponse(); - } - - public static com.google.analytics.admin.v1alpha.ListDataStreamsResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListDataStreamsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListDataStreamsResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDataStreamsResponseOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDataStreamsResponseOrBuilder.java deleted file mode 100644 index 57bc69f3..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDataStreamsResponseOrBuilder.java +++ /dev/null @@ -1,104 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface ListDataStreamsResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListDataStreamsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * List of DataStreams.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.DataStream data_streams = 1; - */ - java.util.List getDataStreamsList(); - /** - * - * - *
-   * List of DataStreams.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.DataStream data_streams = 1; - */ - com.google.analytics.admin.v1alpha.DataStream getDataStreams(int index); - /** - * - * - *
-   * List of DataStreams.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.DataStream data_streams = 1; - */ - int getDataStreamsCount(); - /** - * - * - *
-   * List of DataStreams.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.DataStream data_streams = 1; - */ - java.util.List - getDataStreamsOrBuilderList(); - /** - * - * - *
-   * List of DataStreams.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.DataStream data_streams = 1; - */ - com.google.analytics.admin.v1alpha.DataStreamOrBuilder getDataStreamsOrBuilder(int index); - - /** - * - * - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * - * @return The nextPageToken. - */ - java.lang.String getNextPageToken(); - /** - * - * - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * - * @return The bytes for nextPageToken. - */ - com.google.protobuf.ByteString getNextPageTokenBytes(); -} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDisplayVideo360AdvertiserLinkProposalsRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDisplayVideo360AdvertiserLinkProposalsRequest.java deleted file mode 100644 index b4eb1335..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDisplayVideo360AdvertiserLinkProposalsRequest.java +++ /dev/null @@ -1,984 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * Request message for 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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - private volatile java.lang.Object parent_; - /** - * - * - *
-   * Required. Example format: properties/1234
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - * - * - *
-   * Required. Example format: properties/1234
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PAGE_SIZE_FIELD_NUMBER = 2; - private int pageSize_; - /** - * - * - *
-   * The maximum number of resources to return.
-   * If unspecified, at most 50 resources will be returned.
-   * The maximum value is 200 (higher values will be coerced to the maximum).
-   * 
- * - * int32 page_size = 2; - * - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - - public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - private volatile java.lang.Object pageToken_; - /** - * - * - *
-   * A page token, received from a previous
-   * `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(); - 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); - result.parent_ = parent_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.analytics.admin.v1alpha.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_; - onChanged(); - } - if (other.getPageSize() != 0) { - setPageSize(other.getPageSize()); - } - if (!other.getPageToken().isEmpty()) { - pageToken_ = other.pageToken_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - - 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 java.lang.Object parent_ = ""; - /** - * - * - *
-     * Required. Example format: properties/1234
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. Example format: properties/1234
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. Example format: properties/1234
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - parent_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Example format: properties/1234
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearParent() { - - parent_ = getDefaultInstance().getParent(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Example format: properties/1234
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - parent_ = value; - onChanged(); - return this; - } - - private int pageSize_; - /** - * - * - *
-     * The maximum number of resources to return.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200 (higher values will be coerced to the maximum).
-     * 
- * - * int32 page_size = 2; - * - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - /** - * - * - *
-     * The maximum number of resources to return.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200 (higher values will be coerced to the maximum).
-     * 
- * - * int32 page_size = 2; - * - * @param value The pageSize to set. - * @return This builder for chaining. - */ - public Builder setPageSize(int value) { - - pageSize_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The maximum number of resources to return.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200 (higher values will be coerced to the maximum).
-     * 
- * - * int32 page_size = 2; - * - * @return This builder for chaining. - */ - public Builder clearPageSize() { - - pageSize_ = 0; - onChanged(); - return this; - } - - private java.lang.Object pageToken_ = ""; - /** - * - * - *
-     * A page token, received from a previous
-     * `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; - 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(); - 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; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDisplayVideo360AdvertiserLinkProposalsRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDisplayVideo360AdvertiserLinkProposalsRequestOrBuilder.java deleted file mode 100644 index 6710652a..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDisplayVideo360AdvertiserLinkProposalsRequestOrBuilder.java +++ /dev/null @@ -1,104 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDisplayVideo360AdvertiserLinkProposalsResponse.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDisplayVideo360AdvertiserLinkProposalsResponse.java deleted file mode 100644 index 7ef01e0c..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDisplayVideo360AdvertiserLinkProposalsResponse.java +++ /dev/null @@ -1,1261 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * 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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - 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; - 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(); - 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); - int from_bitField0_ = bitField0_; - if (displayVideo360AdvertiserLinkProposalsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - displayVideo360AdvertiserLinkProposals_ = - java.util.Collections.unmodifiableList(displayVideo360AdvertiserLinkProposals_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.displayVideo360AdvertiserLinkProposals_ = displayVideo360AdvertiserLinkProposals_; - } else { - result.displayVideo360AdvertiserLinkProposals_ = - displayVideo360AdvertiserLinkProposalsBuilder_.build(); - } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.analytics.admin.v1alpha.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_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // 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; - onChanged(); - return this; - } - /** - * - * - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * - * @return This builder for chaining. - */ - public Builder clearNextPageToken() { - - nextPageToken_ = getDefaultInstance().getNextPageToken(); - onChanged(); - return this; - } - /** - * - * - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * - * @param value The bytes for nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - nextPageToken_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDisplayVideo360AdvertiserLinkProposalsResponseOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDisplayVideo360AdvertiserLinkProposalsResponseOrBuilder.java deleted file mode 100644 index bc2b9f9a..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDisplayVideo360AdvertiserLinkProposalsResponseOrBuilder.java +++ /dev/null @@ -1,119 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDisplayVideo360AdvertiserLinksRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDisplayVideo360AdvertiserLinksRequest.java deleted file mode 100644 index d8677f3a..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDisplayVideo360AdvertiserLinksRequest.java +++ /dev/null @@ -1,961 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * Request message for 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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - private volatile java.lang.Object parent_; - /** - * - * - *
-   * Required. Example format: properties/1234
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - * - * - *
-   * Required. Example format: properties/1234
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PAGE_SIZE_FIELD_NUMBER = 2; - private int pageSize_; - /** - * - * - *
-   * The maximum number of resources to return.
-   * If unspecified, at most 50 resources will be returned.
-   * The maximum value is 200 (higher values will be coerced to the maximum).
-   * 
- * - * int32 page_size = 2; - * - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - - public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - private volatile java.lang.Object pageToken_; - /** - * - * - *
-   * A page token, received from a previous `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(); - 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); - result.parent_ = parent_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof com.google.analytics.admin.v1alpha.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_; - onChanged(); - } - if (other.getPageSize() != 0) { - setPageSize(other.getPageSize()); - } - if (!other.getPageToken().isEmpty()) { - pageToken_ = other.pageToken_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - - 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 java.lang.Object parent_ = ""; - /** - * - * - *
-     * Required. Example format: properties/1234
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. Example format: properties/1234
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. Example format: properties/1234
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - parent_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Example format: properties/1234
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearParent() { - - parent_ = getDefaultInstance().getParent(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Example format: properties/1234
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - parent_ = value; - onChanged(); - return this; - } - - private int pageSize_; - /** - * - * - *
-     * The maximum number of resources to return.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200 (higher values will be coerced to the maximum).
-     * 
- * - * int32 page_size = 2; - * - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - /** - * - * - *
-     * The maximum number of resources to return.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200 (higher values will be coerced to the maximum).
-     * 
- * - * int32 page_size = 2; - * - * @param value The pageSize to set. - * @return This builder for chaining. - */ - public Builder setPageSize(int value) { - - pageSize_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The maximum number of resources to return.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200 (higher values will be coerced to the maximum).
-     * 
- * - * int32 page_size = 2; - * - * @return This builder for chaining. - */ - public Builder clearPageSize() { - - pageSize_ = 0; - onChanged(); - return this; - } - - private java.lang.Object pageToken_ = ""; - /** - * - * - *
-     * A page token, received from a previous `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; - 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(); - 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; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDisplayVideo360AdvertiserLinksRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDisplayVideo360AdvertiserLinksRequestOrBuilder.java deleted file mode 100644 index 6156500d..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDisplayVideo360AdvertiserLinksRequestOrBuilder.java +++ /dev/null @@ -1,102 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDisplayVideo360AdvertiserLinksResponse.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDisplayVideo360AdvertiserLinksResponse.java deleted file mode 100644 index 2a2791f5..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDisplayVideo360AdvertiserLinksResponse.java +++ /dev/null @@ -1,1223 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * 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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - 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; - 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(); - 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); - int from_bitField0_ = bitField0_; - if (displayVideo360AdvertiserLinksBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - displayVideo360AdvertiserLinks_ = - java.util.Collections.unmodifiableList(displayVideo360AdvertiserLinks_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.displayVideo360AdvertiserLinks_ = displayVideo360AdvertiserLinks_; - } else { - result.displayVideo360AdvertiserLinks_ = displayVideo360AdvertiserLinksBuilder_.build(); - } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.analytics.admin.v1alpha.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_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // 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; - onChanged(); - return this; - } - /** - * - * - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * - * @return This builder for chaining. - */ - public Builder clearNextPageToken() { - - nextPageToken_ = getDefaultInstance().getNextPageToken(); - onChanged(); - return this; - } - /** - * - * - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * - * @param value The bytes for nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - nextPageToken_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDisplayVideo360AdvertiserLinksResponseOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDisplayVideo360AdvertiserLinksResponseOrBuilder.java deleted file mode 100644 index cafddafd..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDisplayVideo360AdvertiserLinksResponseOrBuilder.java +++ /dev/null @@ -1,118 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListFirebaseLinksRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListFirebaseLinksRequest.java deleted file mode 100644 index 0d154383..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListFirebaseLinksRequest.java +++ /dev/null @@ -1,939 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * Request message for 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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - 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_; - /** - * - * - *
-   * 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; - 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 `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 `ListFirebaseLinks` 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; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 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(); - 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); - result.parent_ = parent_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.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_; - onChanged(); - } - if (other.getPageSize() != 0) { - setPageSize(other.getPageSize()); - } - if (!other.getPageToken().isEmpty()) { - pageToken_ = other.pageToken_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - - 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 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; - 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(); - 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; - 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; - 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() { - - 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 `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 `ListFirebaseLinks` 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 `ListFirebaseLinks` 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; - 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 `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(); - 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 `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; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListFirebaseLinksRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListFirebaseLinksRequestOrBuilder.java deleted file mode 100644 index a8a1e7fe..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListFirebaseLinksRequestOrBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface 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 `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 `ListFirebaseLinks` 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(); -} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListFirebaseLinksResponse.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListFirebaseLinksResponse.java deleted file mode 100644 index e0e0ed20..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListFirebaseLinksResponse.java +++ /dev/null @@ -1,1142 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * 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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - 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; - 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(); - 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); - int from_bitField0_ = bitField0_; - if (firebaseLinksBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - firebaseLinks_ = java.util.Collections.unmodifiableList(firebaseLinks_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.firebaseLinks_ = firebaseLinks_; - } else { - result.firebaseLinks_ = firebaseLinksBuilder_.build(); - } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.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_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // 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; - 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(); - 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; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListFirebaseLinksResponseOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListFirebaseLinksResponseOrBuilder.java deleted file mode 100644 index 5d4f40ac..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListFirebaseLinksResponseOrBuilder.java +++ /dev/null @@ -1,108 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListGoogleAdsLinksRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListGoogleAdsLinksRequest.java deleted file mode 100644 index 0a733752..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListGoogleAdsLinksRequest.java +++ /dev/null @@ -1,931 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * Request message for 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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - private volatile java.lang.Object parent_; - /** - * - * - *
-   * Required. Example format: properties/1234
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - * - * - *
-   * Required. Example format: properties/1234
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PAGE_SIZE_FIELD_NUMBER = 2; - private int pageSize_; - /** - * - * - *
-   * The maximum number of resources to return.
-   * If unspecified, at most 50 resources will be returned.
-   * The maximum value is 200 (higher values will be coerced to the maximum).
-   * 
- * - * int32 page_size = 2; - * - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - - public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - private volatile java.lang.Object pageToken_; - /** - * - * - *
-   * A page token, received from a previous `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(); - 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); - result.parent_ = parent_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.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_; - onChanged(); - } - if (other.getPageSize() != 0) { - setPageSize(other.getPageSize()); - } - if (!other.getPageToken().isEmpty()) { - pageToken_ = other.pageToken_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - - 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 java.lang.Object parent_ = ""; - /** - * - * - *
-     * Required. Example format: properties/1234
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. Example format: properties/1234
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. Example format: properties/1234
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - parent_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Example format: properties/1234
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearParent() { - - parent_ = getDefaultInstance().getParent(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Example format: properties/1234
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - parent_ = value; - onChanged(); - return this; - } - - private int pageSize_; - /** - * - * - *
-     * The maximum number of resources to return.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200 (higher values will be coerced to the maximum).
-     * 
- * - * int32 page_size = 2; - * - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - /** - * - * - *
-     * The maximum number of resources to return.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200 (higher values will be coerced to the maximum).
-     * 
- * - * int32 page_size = 2; - * - * @param value The pageSize to set. - * @return This builder for chaining. - */ - public Builder setPageSize(int value) { - - pageSize_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The maximum number of resources to return.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200 (higher values will be coerced to the maximum).
-     * 
- * - * int32 page_size = 2; - * - * @return This builder for chaining. - */ - public Builder clearPageSize() { - - pageSize_ = 0; - onChanged(); - return this; - } - - private java.lang.Object pageToken_ = ""; - /** - * - * - *
-     * A page token, received from a previous `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; - 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(); - 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; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListGoogleAdsLinksRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListGoogleAdsLinksRequestOrBuilder.java deleted file mode 100644 index ad692149..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListGoogleAdsLinksRequestOrBuilder.java +++ /dev/null @@ -1,100 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListGoogleAdsLinksResponse.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListGoogleAdsLinksResponse.java deleted file mode 100644 index 1d8b1509..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListGoogleAdsLinksResponse.java +++ /dev/null @@ -1,1129 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * 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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - 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; - 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(); - 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); - int from_bitField0_ = bitField0_; - if (googleAdsLinksBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - googleAdsLinks_ = java.util.Collections.unmodifiableList(googleAdsLinks_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.googleAdsLinks_ = googleAdsLinks_; - } else { - result.googleAdsLinks_ = googleAdsLinksBuilder_.build(); - } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.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_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // 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; - onChanged(); - return this; - } - /** - * - * - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * - * @return This builder for chaining. - */ - public Builder clearNextPageToken() { - - nextPageToken_ = getDefaultInstance().getNextPageToken(); - onChanged(); - return this; - } - /** - * - * - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * - * @param value The bytes for nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - nextPageToken_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListGoogleAdsLinksResponseOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListGoogleAdsLinksResponseOrBuilder.java deleted file mode 100644 index 928e5d44..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListGoogleAdsLinksResponseOrBuilder.java +++ /dev/null @@ -1,104 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListMeasurementProtocolSecretsRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListMeasurementProtocolSecretsRequest.java deleted file mode 100644 index 525c176e..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListMeasurementProtocolSecretsRequest.java +++ /dev/null @@ -1,959 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * Request message for 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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - 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_; - /** - * - * - *
-   * 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; - 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(); - 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); - result.parent_ = parent_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof com.google.analytics.admin.v1alpha.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_; - onChanged(); - } - if (other.getPageSize() != 0) { - setPageSize(other.getPageSize()); - } - if (!other.getPageToken().isEmpty()) { - pageToken_ = other.pageToken_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - - 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 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; - 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(); - 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; - 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; - 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() { - - 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; - 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(); - 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; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListMeasurementProtocolSecretsRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListMeasurementProtocolSecretsRequestOrBuilder.java deleted file mode 100644 index 88b39d0c..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListMeasurementProtocolSecretsRequestOrBuilder.java +++ /dev/null @@ -1,104 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListMeasurementProtocolSecretsResponse.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListMeasurementProtocolSecretsResponse.java deleted file mode 100644 index 8a0e12b0..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListMeasurementProtocolSecretsResponse.java +++ /dev/null @@ -1,1209 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * 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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - 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; - 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(); - 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); - int from_bitField0_ = bitField0_; - if (measurementProtocolSecretsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - measurementProtocolSecrets_ = - java.util.Collections.unmodifiableList(measurementProtocolSecrets_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.measurementProtocolSecrets_ = measurementProtocolSecrets_; - } else { - result.measurementProtocolSecrets_ = measurementProtocolSecretsBuilder_.build(); - } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof com.google.analytics.admin.v1alpha.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_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // 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; - onChanged(); - return this; - } - /** - * - * - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * - * @return This builder for chaining. - */ - public Builder clearNextPageToken() { - - nextPageToken_ = getDefaultInstance().getNextPageToken(); - onChanged(); - return this; - } - /** - * - * - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * - * @param value The bytes for nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - nextPageToken_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListMeasurementProtocolSecretsResponseOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListMeasurementProtocolSecretsResponseOrBuilder.java deleted file mode 100644 index 32a7b109..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListMeasurementProtocolSecretsResponseOrBuilder.java +++ /dev/null @@ -1,117 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListPropertiesRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListPropertiesRequest.java deleted file mode 100644 index 2ee931e2..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListPropertiesRequest.java +++ /dev/null @@ -1,1115 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * Request message for 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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - 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_; - /** - * - * - *
-   * 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; - 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_; - /** - * - * - *
-   * 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(); - 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); - result.filter_ = filter_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; - result.showDeleted_ = showDeleted_; - 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.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_; - onChanged(); - } - if (other.getPageSize() != 0) { - setPageSize(other.getPageSize()); - } - if (!other.getPageToken().isEmpty()) { - pageToken_ = other.pageToken_; - 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(); - - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 32: - { - showDeleted_ = input.readBool(); - - 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 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; - 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(); - 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; - 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; - 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() { - - 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; - 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(); - 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; - 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; - 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() { - - 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListPropertiesRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListPropertiesRequestOrBuilder.java deleted file mode 100644 index 24357307..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListPropertiesRequestOrBuilder.java +++ /dev/null @@ -1,140 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListPropertiesResponse.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListPropertiesResponse.java deleted file mode 100644 index f7d28300..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListPropertiesResponse.java +++ /dev/null @@ -1,1114 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * 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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - 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; - 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(); - 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); - int from_bitField0_ = bitField0_; - if (propertiesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - properties_ = java.util.Collections.unmodifiableList(properties_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.properties_ = properties_; - } else { - result.properties_ = propertiesBuilder_.build(); - } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.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_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // 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; - onChanged(); - return this; - } - /** - * - * - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * - * @return This builder for chaining. - */ - public Builder clearNextPageToken() { - - nextPageToken_ = getDefaultInstance().getNextPageToken(); - onChanged(); - return this; - } - /** - * - * - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * - * @param value The bytes for nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - nextPageToken_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListPropertiesResponseOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListPropertiesResponseOrBuilder.java deleted file mode 100644 index 6547dac4..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListPropertiesResponseOrBuilder.java +++ /dev/null @@ -1,104 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListUserLinksRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListUserLinksRequest.java deleted file mode 100644 index 6aac5a3f..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListUserLinksRequest.java +++ /dev/null @@ -1,932 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * Request message for ListUserLinks RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ListUserLinksRequest} - */ -public final class ListUserLinksRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListUserLinksRequest) - ListUserLinksRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ListUserLinksRequest.newBuilder() to construct. - private ListUserLinksRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ListUserLinksRequest() { - parent_ = ""; - pageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ListUserLinksRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_ListUserLinksRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_ListUserLinksRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ListUserLinksRequest.class, - com.google.analytics.admin.v1alpha.ListUserLinksRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; - /** - * - * - *
-   * Required. Example format: accounts/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: accounts/1234
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PAGE_SIZE_FIELD_NUMBER = 2; - private int pageSize_; - /** - * - * - *
-   * The maximum number of user links to return.
-   * The service may return fewer than this value.
-   * If unspecified, at most 200 user links 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; - private volatile java.lang.Object pageToken_; - /** - * - * - *
-   * A page token, received from a previous `ListUserLinks` call.
-   * Provide this to retrieve the subsequent page.
-   * When paginating, all other parameters provided to `ListUserLinks` 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 `ListUserLinks` call.
-   * Provide this to retrieve the subsequent page.
-   * When paginating, all other parameters provided to `ListUserLinks` 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.ListUserLinksRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.ListUserLinksRequest other = - (com.google.analytics.admin.v1alpha.ListUserLinksRequest) 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.ListUserLinksRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.ListUserLinksRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.ListUserLinksRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.ListUserLinksRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.ListUserLinksRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.ListUserLinksRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.ListUserLinksRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.ListUserLinksRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.ListUserLinksRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.ListUserLinksRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.ListUserLinksRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.ListUserLinksRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.analytics.admin.v1alpha.ListUserLinksRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Request message for ListUserLinks RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ListUserLinksRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListUserLinksRequest) - com.google.analytics.admin.v1alpha.ListUserLinksRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_ListUserLinksRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_ListUserLinksRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ListUserLinksRequest.class, - com.google.analytics.admin.v1alpha.ListUserLinksRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.ListUserLinksRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - parent_ = ""; - - pageSize_ = 0; - - pageToken_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_ListUserLinksRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListUserLinksRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.ListUserLinksRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListUserLinksRequest build() { - com.google.analytics.admin.v1alpha.ListUserLinksRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListUserLinksRequest buildPartial() { - com.google.analytics.admin.v1alpha.ListUserLinksRequest result = - new com.google.analytics.admin.v1alpha.ListUserLinksRequest(this); - result.parent_ = parent_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.ListUserLinksRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.ListUserLinksRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.ListUserLinksRequest other) { - if (other == com.google.analytics.admin.v1alpha.ListUserLinksRequest.getDefaultInstance()) - return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - onChanged(); - } - if (other.getPageSize() != 0) { - setPageSize(other.getPageSize()); - } - if (!other.getPageToken().isEmpty()) { - pageToken_ = other.pageToken_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - - 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 java.lang.Object parent_ = ""; - /** - * - * - *
-     * Required. Example format: accounts/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: accounts/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: accounts/1234
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - parent_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Example format: accounts/1234
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearParent() { - - parent_ = getDefaultInstance().getParent(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Example format: accounts/1234
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - parent_ = value; - onChanged(); - return this; - } - - private int pageSize_; - /** - * - * - *
-     * The maximum number of user links to return.
-     * The service may return fewer than this value.
-     * If unspecified, at most 200 user links 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 user links to return.
-     * The service may return fewer than this value.
-     * If unspecified, at most 200 user links 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; - onChanged(); - return this; - } - /** - * - * - *
-     * The maximum number of user links to return.
-     * The service may return fewer than this value.
-     * If unspecified, at most 200 user links 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() { - - pageSize_ = 0; - onChanged(); - return this; - } - - private java.lang.Object pageToken_ = ""; - /** - * - * - *
-     * A page token, received from a previous `ListUserLinks` call.
-     * Provide this to retrieve the subsequent page.
-     * When paginating, all other parameters provided to `ListUserLinks` 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 `ListUserLinks` call.
-     * Provide this to retrieve the subsequent page.
-     * When paginating, all other parameters provided to `ListUserLinks` 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 `ListUserLinks` call.
-     * Provide this to retrieve the subsequent page.
-     * When paginating, all other parameters provided to `ListUserLinks` must
-     * match the call that provided the page token.
-     * 
- * - * string page_token = 3; - * - * @param value The pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - pageToken_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * A page token, received from a previous `ListUserLinks` call.
-     * Provide this to retrieve the subsequent page.
-     * When paginating, all other parameters provided to `ListUserLinks` must
-     * match the call that provided the page token.
-     * 
- * - * string page_token = 3; - * - * @return This builder for chaining. - */ - public Builder clearPageToken() { - - pageToken_ = getDefaultInstance().getPageToken(); - onChanged(); - return this; - } - /** - * - * - *
-     * A page token, received from a previous `ListUserLinks` call.
-     * Provide this to retrieve the subsequent page.
-     * When paginating, all other parameters provided to `ListUserLinks` must
-     * match the call that provided the page token.
-     * 
- * - * string page_token = 3; - * - * @param value The bytes for pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - pageToken_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ListUserLinksRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListUserLinksRequest) - private static final com.google.analytics.admin.v1alpha.ListUserLinksRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ListUserLinksRequest(); - } - - public static com.google.analytics.admin.v1alpha.ListUserLinksRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListUserLinksRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListUserLinksRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListUserLinksRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListUserLinksRequestOrBuilder.java deleted file mode 100644 index ab4ba325..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListUserLinksRequestOrBuilder.java +++ /dev/null @@ -1,101 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface ListUserLinksRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListUserLinksRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Example format: accounts/1234
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * Required. Example format: accounts/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 user links to return.
-   * The service may return fewer than this value.
-   * If unspecified, at most 200 user links 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 `ListUserLinks` call.
-   * Provide this to retrieve the subsequent page.
-   * When paginating, all other parameters provided to `ListUserLinks` 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 `ListUserLinks` call.
-   * Provide this to retrieve the subsequent page.
-   * When paginating, all other parameters provided to `ListUserLinks` must
-   * match the call that provided the page token.
-   * 
- * - * string page_token = 3; - * - * @return The bytes for pageToken. - */ - com.google.protobuf.ByteString getPageTokenBytes(); -} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListUserLinksResponse.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListUserLinksResponse.java deleted file mode 100644 index d95ff38f..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListUserLinksResponse.java +++ /dev/null @@ -1,1114 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * Response message for ListUserLinks RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ListUserLinksResponse} - */ -public final class ListUserLinksResponse extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListUserLinksResponse) - ListUserLinksResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use ListUserLinksResponse.newBuilder() to construct. - private ListUserLinksResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ListUserLinksResponse() { - userLinks_ = java.util.Collections.emptyList(); - nextPageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ListUserLinksResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_ListUserLinksResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_ListUserLinksResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ListUserLinksResponse.class, - com.google.analytics.admin.v1alpha.ListUserLinksResponse.Builder.class); - } - - public static final int USER_LINKS_FIELD_NUMBER = 1; - private java.util.List userLinks_; - /** - * - * - *
-   * List of UserLinks. These will be ordered stably, but in an arbitrary order.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - @java.lang.Override - public java.util.List getUserLinksList() { - return userLinks_; - } - /** - * - * - *
-   * List of UserLinks. These will be ordered stably, but in an arbitrary order.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - @java.lang.Override - public java.util.List - getUserLinksOrBuilderList() { - return userLinks_; - } - /** - * - * - *
-   * List of UserLinks. These will be ordered stably, but in an arbitrary order.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - @java.lang.Override - public int getUserLinksCount() { - return userLinks_.size(); - } - /** - * - * - *
-   * List of UserLinks. These will be ordered stably, but in an arbitrary order.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.UserLink getUserLinks(int index) { - return userLinks_.get(index); - } - /** - * - * - *
-   * List of UserLinks. These will be ordered stably, but in an arbitrary order.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.UserLinkOrBuilder getUserLinksOrBuilder(int index) { - return userLinks_.get(index); - } - - public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; - /** - * - * - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * - * @return The nextPageToken. - */ - @java.lang.Override - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } - } - /** - * - * - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * - * @return The bytes for nextPageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - for (int i = 0; i < userLinks_.size(); i++) { - output.writeMessage(1, userLinks_.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 < userLinks_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, userLinks_.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.ListUserLinksResponse)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.ListUserLinksResponse other = - (com.google.analytics.admin.v1alpha.ListUserLinksResponse) obj; - - if (!getUserLinksList().equals(other.getUserLinksList())) 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 (getUserLinksCount() > 0) { - hash = (37 * hash) + USER_LINKS_FIELD_NUMBER; - hash = (53 * hash) + getUserLinksList().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.ListUserLinksResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.ListUserLinksResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.ListUserLinksResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.ListUserLinksResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.ListUserLinksResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.ListUserLinksResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.ListUserLinksResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.ListUserLinksResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.ListUserLinksResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.ListUserLinksResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.ListUserLinksResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.ListUserLinksResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.analytics.admin.v1alpha.ListUserLinksResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 ListUserLinks RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ListUserLinksResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListUserLinksResponse) - com.google.analytics.admin.v1alpha.ListUserLinksResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_ListUserLinksResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_ListUserLinksResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ListUserLinksResponse.class, - com.google.analytics.admin.v1alpha.ListUserLinksResponse.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.ListUserLinksResponse.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (userLinksBuilder_ == null) { - userLinks_ = java.util.Collections.emptyList(); - } else { - userLinks_ = null; - userLinksBuilder_.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_ListUserLinksResponse_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListUserLinksResponse getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.ListUserLinksResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListUserLinksResponse build() { - com.google.analytics.admin.v1alpha.ListUserLinksResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListUserLinksResponse buildPartial() { - com.google.analytics.admin.v1alpha.ListUserLinksResponse result = - new com.google.analytics.admin.v1alpha.ListUserLinksResponse(this); - int from_bitField0_ = bitField0_; - if (userLinksBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - userLinks_ = java.util.Collections.unmodifiableList(userLinks_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.userLinks_ = userLinks_; - } else { - result.userLinks_ = userLinksBuilder_.build(); - } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.ListUserLinksResponse) { - return mergeFrom((com.google.analytics.admin.v1alpha.ListUserLinksResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.ListUserLinksResponse other) { - if (other == com.google.analytics.admin.v1alpha.ListUserLinksResponse.getDefaultInstance()) - return this; - if (userLinksBuilder_ == null) { - if (!other.userLinks_.isEmpty()) { - if (userLinks_.isEmpty()) { - userLinks_ = other.userLinks_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureUserLinksIsMutable(); - userLinks_.addAll(other.userLinks_); - } - onChanged(); - } - } else { - if (!other.userLinks_.isEmpty()) { - if (userLinksBuilder_.isEmpty()) { - userLinksBuilder_.dispose(); - userLinksBuilder_ = null; - userLinks_ = other.userLinks_; - bitField0_ = (bitField0_ & ~0x00000001); - userLinksBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getUserLinksFieldBuilder() - : null; - } else { - userLinksBuilder_.addAllMessages(other.userLinks_); - } - } - } - if (!other.getNextPageToken().isEmpty()) { - nextPageToken_ = other.nextPageToken_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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.UserLink m = - input.readMessage( - com.google.analytics.admin.v1alpha.UserLink.parser(), extensionRegistry); - if (userLinksBuilder_ == null) { - ensureUserLinksIsMutable(); - userLinks_.add(m); - } else { - userLinksBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // 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 userLinks_ = - java.util.Collections.emptyList(); - - private void ensureUserLinksIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - userLinks_ = - new java.util.ArrayList(userLinks_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.UserLink, - com.google.analytics.admin.v1alpha.UserLink.Builder, - com.google.analytics.admin.v1alpha.UserLinkOrBuilder> - userLinksBuilder_; - - /** - * - * - *
-     * List of UserLinks. These will be ordered stably, but in an arbitrary order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public java.util.List getUserLinksList() { - if (userLinksBuilder_ == null) { - return java.util.Collections.unmodifiableList(userLinks_); - } else { - return userLinksBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * List of UserLinks. These will be ordered stably, but in an arbitrary order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public int getUserLinksCount() { - if (userLinksBuilder_ == null) { - return userLinks_.size(); - } else { - return userLinksBuilder_.getCount(); - } - } - /** - * - * - *
-     * List of UserLinks. These will be ordered stably, but in an arbitrary order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public com.google.analytics.admin.v1alpha.UserLink getUserLinks(int index) { - if (userLinksBuilder_ == null) { - return userLinks_.get(index); - } else { - return userLinksBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * List of UserLinks. These will be ordered stably, but in an arbitrary order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public Builder setUserLinks(int index, com.google.analytics.admin.v1alpha.UserLink value) { - if (userLinksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureUserLinksIsMutable(); - userLinks_.set(index, value); - onChanged(); - } else { - userLinksBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * List of UserLinks. These will be ordered stably, but in an arbitrary order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public Builder setUserLinks( - int index, com.google.analytics.admin.v1alpha.UserLink.Builder builderForValue) { - if (userLinksBuilder_ == null) { - ensureUserLinksIsMutable(); - userLinks_.set(index, builderForValue.build()); - onChanged(); - } else { - userLinksBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * List of UserLinks. These will be ordered stably, but in an arbitrary order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public Builder addUserLinks(com.google.analytics.admin.v1alpha.UserLink value) { - if (userLinksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureUserLinksIsMutable(); - userLinks_.add(value); - onChanged(); - } else { - userLinksBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * List of UserLinks. These will be ordered stably, but in an arbitrary order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public Builder addUserLinks(int index, com.google.analytics.admin.v1alpha.UserLink value) { - if (userLinksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureUserLinksIsMutable(); - userLinks_.add(index, value); - onChanged(); - } else { - userLinksBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * List of UserLinks. These will be ordered stably, but in an arbitrary order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public Builder addUserLinks( - com.google.analytics.admin.v1alpha.UserLink.Builder builderForValue) { - if (userLinksBuilder_ == null) { - ensureUserLinksIsMutable(); - userLinks_.add(builderForValue.build()); - onChanged(); - } else { - userLinksBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * List of UserLinks. These will be ordered stably, but in an arbitrary order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public Builder addUserLinks( - int index, com.google.analytics.admin.v1alpha.UserLink.Builder builderForValue) { - if (userLinksBuilder_ == null) { - ensureUserLinksIsMutable(); - userLinks_.add(index, builderForValue.build()); - onChanged(); - } else { - userLinksBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * List of UserLinks. These will be ordered stably, but in an arbitrary order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public Builder addAllUserLinks( - java.lang.Iterable values) { - if (userLinksBuilder_ == null) { - ensureUserLinksIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, userLinks_); - onChanged(); - } else { - userLinksBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * List of UserLinks. These will be ordered stably, but in an arbitrary order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public Builder clearUserLinks() { - if (userLinksBuilder_ == null) { - userLinks_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - userLinksBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * List of UserLinks. These will be ordered stably, but in an arbitrary order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public Builder removeUserLinks(int index) { - if (userLinksBuilder_ == null) { - ensureUserLinksIsMutable(); - userLinks_.remove(index); - onChanged(); - } else { - userLinksBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * List of UserLinks. These will be ordered stably, but in an arbitrary order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public com.google.analytics.admin.v1alpha.UserLink.Builder getUserLinksBuilder(int index) { - return getUserLinksFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * List of UserLinks. These will be ordered stably, but in an arbitrary order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public com.google.analytics.admin.v1alpha.UserLinkOrBuilder getUserLinksOrBuilder(int index) { - if (userLinksBuilder_ == null) { - return userLinks_.get(index); - } else { - return userLinksBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * List of UserLinks. These will be ordered stably, but in an arbitrary order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public java.util.List - getUserLinksOrBuilderList() { - if (userLinksBuilder_ != null) { - return userLinksBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(userLinks_); - } - } - /** - * - * - *
-     * List of UserLinks. These will be ordered stably, but in an arbitrary order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public com.google.analytics.admin.v1alpha.UserLink.Builder addUserLinksBuilder() { - return getUserLinksFieldBuilder() - .addBuilder(com.google.analytics.admin.v1alpha.UserLink.getDefaultInstance()); - } - /** - * - * - *
-     * List of UserLinks. These will be ordered stably, but in an arbitrary order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public com.google.analytics.admin.v1alpha.UserLink.Builder addUserLinksBuilder(int index) { - return getUserLinksFieldBuilder() - .addBuilder(index, com.google.analytics.admin.v1alpha.UserLink.getDefaultInstance()); - } - /** - * - * - *
-     * List of UserLinks. These will be ordered stably, but in an arbitrary order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public java.util.List - getUserLinksBuilderList() { - return getUserLinksFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.UserLink, - com.google.analytics.admin.v1alpha.UserLink.Builder, - com.google.analytics.admin.v1alpha.UserLinkOrBuilder> - getUserLinksFieldBuilder() { - if (userLinksBuilder_ == null) { - userLinksBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.UserLink, - com.google.analytics.admin.v1alpha.UserLink.Builder, - com.google.analytics.admin.v1alpha.UserLinkOrBuilder>( - userLinks_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); - userLinks_ = null; - } - return userLinksBuilder_; - } - - private java.lang.Object nextPageToken_ = ""; - /** - * - * - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * - * @return The nextPageToken. - */ - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * - * @return The bytes for nextPageToken. - */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * - * @param value The nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - nextPageToken_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * - * @return This builder for chaining. - */ - public Builder clearNextPageToken() { - - nextPageToken_ = getDefaultInstance().getNextPageToken(); - onChanged(); - return this; - } - /** - * - * - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * - * @param value The bytes for nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - nextPageToken_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ListUserLinksResponse) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListUserLinksResponse) - private static final com.google.analytics.admin.v1alpha.ListUserLinksResponse DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ListUserLinksResponse(); - } - - public static com.google.analytics.admin.v1alpha.ListUserLinksResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListUserLinksResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListUserLinksResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListUserLinksResponseOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListUserLinksResponseOrBuilder.java deleted file mode 100644 index b7967bc7..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListUserLinksResponseOrBuilder.java +++ /dev/null @@ -1,104 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface ListUserLinksResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListUserLinksResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * List of UserLinks. These will be ordered stably, but in an arbitrary order.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - java.util.List getUserLinksList(); - /** - * - * - *
-   * List of UserLinks. These will be ordered stably, but in an arbitrary order.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - com.google.analytics.admin.v1alpha.UserLink getUserLinks(int index); - /** - * - * - *
-   * List of UserLinks. These will be ordered stably, but in an arbitrary order.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - int getUserLinksCount(); - /** - * - * - *
-   * List of UserLinks. These will be ordered stably, but in an arbitrary order.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - java.util.List - getUserLinksOrBuilderList(); - /** - * - * - *
-   * List of UserLinks. These will be ordered stably, but in an arbitrary order.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - com.google.analytics.admin.v1alpha.UserLinkOrBuilder getUserLinksOrBuilder(int index); - - /** - * - * - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * - * @return The nextPageToken. - */ - java.lang.String getNextPageToken(); - /** - * - * - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * - * @return The bytes for nextPageToken. - */ - com.google.protobuf.ByteString getNextPageTokenBytes(); -} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/MeasurementProtocolSecret.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/MeasurementProtocolSecret.java deleted file mode 100644 index cc2f095e..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/MeasurementProtocolSecret.java +++ /dev/null @@ -1,1010 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/resources.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * 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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - 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; - 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; - 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(); - 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); - result.name_ = name_; - result.displayName_ = displayName_; - result.secretValue_ = secretValue_; - 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.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_; - onChanged(); - } - if (!other.getDisplayName().isEmpty()) { - displayName_ = other.displayName_; - onChanged(); - } - if (!other.getSecretValue().isEmpty()) { - secretValue_ = other.secretValue_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 18: - { - displayName_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: - { - secretValue_ = input.readStringRequireUtf8(); - - 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 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; - 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(); - 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; - 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; - 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(); - 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; - 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; - 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(); - 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; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/MeasurementProtocolSecretName.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/MeasurementProtocolSecretName.java deleted file mode 100644 index 39338b68..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/MeasurementProtocolSecretName.java +++ /dev/null @@ -1,241 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 com.google.api.pathtemplate.PathTemplate; -import com.google.api.resourcenames.ResourceName; -import com.google.common.base.Preconditions; -import com.google.common.collect.ImmutableMap; -import java.util.ArrayList; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -@Generated("by gapic-generator-java") -public class MeasurementProtocolSecretName implements ResourceName { - private static final PathTemplate PROPERTY_DATA_STREAM_MEASUREMENT_PROTOCOL_SECRET = - PathTemplate.createWithoutUrlEncoding( - "properties/{property}/dataStreams/{data_stream}/measurementProtocolSecrets/{measurement_protocol_secret}"); - private volatile Map fieldValuesMap; - private final String property; - private final String dataStream; - private final String measurementProtocolSecret; - - @Deprecated - protected MeasurementProtocolSecretName() { - property = null; - dataStream = null; - measurementProtocolSecret = null; - } - - private MeasurementProtocolSecretName(Builder builder) { - property = Preconditions.checkNotNull(builder.getProperty()); - dataStream = Preconditions.checkNotNull(builder.getDataStream()); - measurementProtocolSecret = Preconditions.checkNotNull(builder.getMeasurementProtocolSecret()); - } - - public String getProperty() { - return property; - } - - public String getDataStream() { - return dataStream; - } - - public String getMeasurementProtocolSecret() { - return measurementProtocolSecret; - } - - public static Builder newBuilder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder(this); - } - - public static MeasurementProtocolSecretName of( - String property, String dataStream, String measurementProtocolSecret) { - return newBuilder() - .setProperty(property) - .setDataStream(dataStream) - .setMeasurementProtocolSecret(measurementProtocolSecret) - .build(); - } - - public static String format( - String property, String dataStream, String measurementProtocolSecret) { - return newBuilder() - .setProperty(property) - .setDataStream(dataStream) - .setMeasurementProtocolSecret(measurementProtocolSecret) - .build() - .toString(); - } - - public static MeasurementProtocolSecretName parse(String formattedString) { - if (formattedString.isEmpty()) { - return null; - } - Map matchMap = - PROPERTY_DATA_STREAM_MEASUREMENT_PROTOCOL_SECRET.validatedMatch( - formattedString, - "MeasurementProtocolSecretName.parse: formattedString not in valid format"); - return of( - matchMap.get("property"), - matchMap.get("data_stream"), - matchMap.get("measurement_protocol_secret")); - } - - public static List parseList(List formattedStrings) { - List list = new ArrayList<>(formattedStrings.size()); - for (String formattedString : formattedStrings) { - list.add(parse(formattedString)); - } - return list; - } - - public static List toStringList(List values) { - List list = new ArrayList<>(values.size()); - for (MeasurementProtocolSecretName value : values) { - if (value == null) { - list.add(""); - } else { - list.add(value.toString()); - } - } - return list; - } - - public static boolean isParsableFrom(String formattedString) { - return PROPERTY_DATA_STREAM_MEASUREMENT_PROTOCOL_SECRET.matches(formattedString); - } - - @Override - public Map getFieldValuesMap() { - if (fieldValuesMap == null) { - synchronized (this) { - if (fieldValuesMap == null) { - ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); - if (property != null) { - fieldMapBuilder.put("property", property); - } - if (dataStream != null) { - fieldMapBuilder.put("data_stream", dataStream); - } - if (measurementProtocolSecret != null) { - fieldMapBuilder.put("measurement_protocol_secret", measurementProtocolSecret); - } - fieldValuesMap = fieldMapBuilder.build(); - } - } - } - return fieldValuesMap; - } - - public String getFieldValue(String fieldName) { - return getFieldValuesMap().get(fieldName); - } - - @Override - public String toString() { - return PROPERTY_DATA_STREAM_MEASUREMENT_PROTOCOL_SECRET.instantiate( - "property", - property, - "data_stream", - dataStream, - "measurement_protocol_secret", - measurementProtocolSecret); - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (o != null || getClass() == o.getClass()) { - MeasurementProtocolSecretName that = ((MeasurementProtocolSecretName) o); - return Objects.equals(this.property, that.property) - && Objects.equals(this.dataStream, that.dataStream) - && Objects.equals(this.measurementProtocolSecret, that.measurementProtocolSecret); - } - return false; - } - - @Override - public int hashCode() { - int h = 1; - h *= 1000003; - h ^= Objects.hashCode(property); - h *= 1000003; - h ^= Objects.hashCode(dataStream); - h *= 1000003; - h ^= Objects.hashCode(measurementProtocolSecret); - return h; - } - - /** - * Builder for - * properties/{property}/dataStreams/{data_stream}/measurementProtocolSecrets/{measurement_protocol_secret}. - */ - public static class Builder { - private String property; - private String dataStream; - private String measurementProtocolSecret; - - protected Builder() {} - - public String getProperty() { - return property; - } - - public String getDataStream() { - return dataStream; - } - - public String getMeasurementProtocolSecret() { - return measurementProtocolSecret; - } - - public Builder setProperty(String property) { - this.property = property; - return this; - } - - public Builder setDataStream(String dataStream) { - this.dataStream = dataStream; - return this; - } - - public Builder setMeasurementProtocolSecret(String measurementProtocolSecret) { - this.measurementProtocolSecret = measurementProtocolSecret; - return this; - } - - private Builder(MeasurementProtocolSecretName measurementProtocolSecretName) { - this.property = measurementProtocolSecretName.property; - this.dataStream = measurementProtocolSecretName.dataStream; - this.measurementProtocolSecret = measurementProtocolSecretName.measurementProtocolSecret; - } - - public MeasurementProtocolSecretName build() { - return new MeasurementProtocolSecretName(this); - } - } -} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/MeasurementProtocolSecretOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/MeasurementProtocolSecretOrBuilder.java deleted file mode 100644 index e76ac51f..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/MeasurementProtocolSecretOrBuilder.java +++ /dev/null @@ -1,110 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/resources.proto - -package com.google.analytics.admin.v1alpha; - -public interface 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/NumericValue.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/NumericValue.java deleted file mode 100644 index 906cb8e3..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/NumericValue.java +++ /dev/null @@ -1,785 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/access_report.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * To represent a number.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.NumericValue} - */ -public final class NumericValue extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.NumericValue) - NumericValueOrBuilder { - private static final long serialVersionUID = 0L; - // Use NumericValue.newBuilder() to construct. - private NumericValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private NumericValue() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new NumericValue(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.AccessReportProto - .internal_static_google_analytics_admin_v1alpha_NumericValue_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AccessReportProto - .internal_static_google_analytics_admin_v1alpha_NumericValue_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.NumericValue.class, - com.google.analytics.admin.v1alpha.NumericValue.Builder.class); - } - - private int oneValueCase_ = 0; - private java.lang.Object oneValue_; - - public enum OneValueCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - INT64_VALUE(1), - DOUBLE_VALUE(2), - ONEVALUE_NOT_SET(0); - private final int value; - - private OneValueCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static OneValueCase valueOf(int value) { - return forNumber(value); - } - - public static OneValueCase forNumber(int value) { - switch (value) { - case 1: - return INT64_VALUE; - case 2: - return DOUBLE_VALUE; - case 0: - return ONEVALUE_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public OneValueCase getOneValueCase() { - return OneValueCase.forNumber(oneValueCase_); - } - - public static final int INT64_VALUE_FIELD_NUMBER = 1; - /** - * - * - *
-   * Integer value
-   * 
- * - * int64 int64_value = 1; - * - * @return Whether the int64Value field is set. - */ - @java.lang.Override - public boolean hasInt64Value() { - return oneValueCase_ == 1; - } - /** - * - * - *
-   * Integer value
-   * 
- * - * int64 int64_value = 1; - * - * @return The int64Value. - */ - @java.lang.Override - public long getInt64Value() { - if (oneValueCase_ == 1) { - return (java.lang.Long) oneValue_; - } - return 0L; - } - - public static final int DOUBLE_VALUE_FIELD_NUMBER = 2; - /** - * - * - *
-   * Double value
-   * 
- * - * double double_value = 2; - * - * @return Whether the doubleValue field is set. - */ - @java.lang.Override - public boolean hasDoubleValue() { - return oneValueCase_ == 2; - } - /** - * - * - *
-   * Double value
-   * 
- * - * double double_value = 2; - * - * @return The doubleValue. - */ - @java.lang.Override - public double getDoubleValue() { - if (oneValueCase_ == 2) { - return (java.lang.Double) oneValue_; - } - return 0D; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (oneValueCase_ == 1) { - output.writeInt64(1, (long) ((java.lang.Long) oneValue_)); - } - if (oneValueCase_ == 2) { - output.writeDouble(2, (double) ((java.lang.Double) oneValue_)); - } - 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(); - oneValueCase_ = 0; - oneValue_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AccessReportProto - .internal_static_google_analytics_admin_v1alpha_NumericValue_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.NumericValue getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.NumericValue.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.NumericValue build() { - com.google.analytics.admin.v1alpha.NumericValue result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.NumericValue buildPartial() { - com.google.analytics.admin.v1alpha.NumericValue result = - new com.google.analytics.admin.v1alpha.NumericValue(this); - if (oneValueCase_ == 1) { - result.oneValue_ = oneValue_; - } - if (oneValueCase_ == 2) { - result.oneValue_ = oneValue_; - } - result.oneValueCase_ = oneValueCase_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.NumericValue) { - return mergeFrom((com.google.analytics.admin.v1alpha.NumericValue) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.NumericValue other) { - if (other == com.google.analytics.admin.v1alpha.NumericValue.getDefaultInstance()) - return this; - switch (other.getOneValueCase()) { - case INT64_VALUE: - { - setInt64Value(other.getInt64Value()); - break; - } - case DOUBLE_VALUE: - { - setDoubleValue(other.getDoubleValue()); - break; - } - case ONEVALUE_NOT_SET: - { - break; - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == 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; - } - - /** - * - * - *
-     * 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/NumericValueOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/NumericValueOrBuilder.java deleted file mode 100644 index c2e942f1..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/NumericValueOrBuilder.java +++ /dev/null @@ -1,77 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/access_report.proto - -package com.google.analytics.admin.v1alpha; - -public interface NumericValueOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.NumericValue) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Integer value
-   * 
- * - * int64 int64_value = 1; - * - * @return Whether the int64Value field is set. - */ - boolean hasInt64Value(); - /** - * - * - *
-   * Integer value
-   * 
- * - * int64 int64_value = 1; - * - * @return The int64Value. - */ - long getInt64Value(); - - /** - * - * - *
-   * Double value
-   * 
- * - * double double_value = 2; - * - * @return Whether the doubleValue field is set. - */ - boolean hasDoubleValue(); - /** - * - * - *
-   * Double value
-   * 
- * - * double double_value = 2; - * - * @return The doubleValue. - */ - double getDoubleValue(); - - public com.google.analytics.admin.v1alpha.NumericValue.OneValueCase getOneValueCase(); -} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/Property.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/Property.java deleted file mode 100644 index 1529a955..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/Property.java +++ /dev/null @@ -1,3317 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/resources.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * 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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - 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_; - /** - * - * - *
-   * 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
-   * via Google Analytics Admin API.
-   * 
- * - * - * .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. "SUBPROPERTY" and "ROLLUP_PROPERTY" types cannot yet be created
-   * via Google Analytics Admin API.
-   * 
- * - * - * .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() { - @SuppressWarnings("deprecation") - com.google.analytics.admin.v1alpha.PropertyType result = - com.google.analytics.admin.v1alpha.PropertyType.valueOf(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 getCreateTime(); - } - - 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 getUpdateTime(); - } - - public static final int PARENT_FIELD_NUMBER = 2; - 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; - 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_; - /** - * - * - *
-   * 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() { - @SuppressWarnings("deprecation") - com.google.analytics.admin.v1alpha.IndustryCategory result = - com.google.analytics.admin.v1alpha.IndustryCategory.valueOf(industryCategory_); - return result == null - ? com.google.analytics.admin.v1alpha.IndustryCategory.UNRECOGNIZED - : result; - } - - public static final int TIME_ZONE_FIELD_NUMBER = 7; - 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; - 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_; - /** - * - * - *
-   * 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() { - @SuppressWarnings("deprecation") - com.google.analytics.admin.v1alpha.ServiceLevel result = - com.google.analytics.admin.v1alpha.ServiceLevel.valueOf(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 getDeleteTime(); - } - - 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 getExpireTime(); - } - - public static final int ACCOUNT_FIELD_NUMBER = 13; - private volatile java.lang.Object account_; - /** - * - * - *
-   * Immutable. The resource name of the parent account
-   * Format: accounts/{account_id}
-   * Example: "accounts/123"
-   * 
- * - * - * string account = 13 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * - * @return The account. - */ - @java.lang.Override - public java.lang.String getAccount() { - java.lang.Object ref = account_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - account_ = s; - return s; - } - } - /** - * - * - *
-   * Immutable. The resource name of the parent account
-   * Format: accounts/{account_id}
-   * Example: "accounts/123"
-   * 
- * - * - * string account = 13 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for account. - */ - @java.lang.Override - public com.google.protobuf.ByteString getAccountBytes() { - java.lang.Object ref = account_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - account_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 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(); - name_ = ""; - - propertyType_ = 0; - - if (createTimeBuilder_ == null) { - createTime_ = null; - } else { - createTime_ = null; - createTimeBuilder_ = null; - } - if (updateTimeBuilder_ == null) { - updateTime_ = null; - } else { - updateTime_ = null; - updateTimeBuilder_ = null; - } - parent_ = ""; - - displayName_ = ""; - - industryCategory_ = 0; - - timeZone_ = ""; - - currencyCode_ = ""; - - serviceLevel_ = 0; - - if (deleteTimeBuilder_ == null) { - deleteTime_ = null; - } else { - deleteTime_ = null; - deleteTimeBuilder_ = null; - } - if (expireTimeBuilder_ == null) { - expireTime_ = null; - } else { - expireTime_ = null; - 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); - result.name_ = name_; - result.propertyType_ = propertyType_; - if (createTimeBuilder_ == null) { - result.createTime_ = createTime_; - } else { - result.createTime_ = createTimeBuilder_.build(); - } - if (updateTimeBuilder_ == null) { - result.updateTime_ = updateTime_; - } else { - result.updateTime_ = updateTimeBuilder_.build(); - } - result.parent_ = parent_; - result.displayName_ = displayName_; - result.industryCategory_ = industryCategory_; - result.timeZone_ = timeZone_; - result.currencyCode_ = currencyCode_; - result.serviceLevel_ = serviceLevel_; - if (deleteTimeBuilder_ == null) { - result.deleteTime_ = deleteTime_; - } else { - result.deleteTime_ = deleteTimeBuilder_.build(); - } - if (expireTimeBuilder_ == null) { - result.expireTime_ = expireTime_; - } else { - result.expireTime_ = expireTimeBuilder_.build(); - } - result.account_ = account_; - 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.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_; - 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_; - onChanged(); - } - if (!other.getDisplayName().isEmpty()) { - displayName_ = other.displayName_; - onChanged(); - } - if (other.industryCategory_ != 0) { - setIndustryCategoryValue(other.getIndustryCategoryValue()); - } - if (!other.getTimeZone().isEmpty()) { - timeZone_ = other.timeZone_; - onChanged(); - } - if (!other.getCurrencyCode().isEmpty()) { - currencyCode_ = other.currencyCode_; - 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_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 18: - { - parent_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: - { - input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 26 - case 34: - { - input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 34 - case 42: - { - displayName_ = input.readStringRequireUtf8(); - - break; - } // case 42 - case 48: - { - industryCategory_ = input.readEnum(); - - break; - } // case 48 - case 58: - { - timeZone_ = input.readStringRequireUtf8(); - - break; - } // case 58 - case 66: - { - currencyCode_ = input.readStringRequireUtf8(); - - break; - } // case 66 - case 80: - { - serviceLevel_ = input.readEnum(); - - break; - } // case 80 - case 90: - { - input.readMessage(getDeleteTimeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 90 - case 98: - { - input.readMessage(getExpireTimeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 98 - case 106: - { - account_ = input.readStringRequireUtf8(); - - break; - } // case 106 - case 112: - { - propertyType_ = input.readEnum(); - - 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 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; - 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(); - 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; - 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
-     * via Google Analytics Admin API.
-     * 
- * - * - * .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. "SUBPROPERTY" and "ROLLUP_PROPERTY" types cannot yet be created
-     * via Google Analytics Admin API.
-     * 
- * - * - * .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; - 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
-     * via Google Analytics Admin API.
-     * 
- * - * - * .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() { - @SuppressWarnings("deprecation") - com.google.analytics.admin.v1alpha.PropertyType result = - com.google.analytics.admin.v1alpha.PropertyType.valueOf(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. "SUBPROPERTY" and "ROLLUP_PROPERTY" types cannot yet be created
-     * via Google Analytics Admin API.
-     * 
- * - * - * .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(); - } - - 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
-     * via Google Analytics Admin API.
-     * 
- * - * - * .google.analytics.admin.v1alpha.PropertyType property_type = 14 [(.google.api.field_behavior) = IMMUTABLE]; - * - * - * @return This builder for chaining. - */ - public Builder clearPropertyType() { - - 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 createTimeBuilder_ != null || 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. - */ - 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; - onChanged(); - } else { - createTimeBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - createTimeBuilder_.setMessage(builderForValue.build()); - } - - 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 (createTime_ != null) { - createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); - } else { - createTime_ = value; - } - onChanged(); - } else { - createTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Output only. Time when the entity was originally created.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearCreateTime() { - if (createTimeBuilder_ == null) { - createTime_ = null; - onChanged(); - } else { - createTime_ = null; - createTimeBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Output only. Time when the entity was originally created.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - - 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 updateTimeBuilder_ != null || 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. - */ - 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; - onChanged(); - } else { - updateTimeBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - updateTimeBuilder_.setMessage(builderForValue.build()); - } - - 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 (updateTime_ != null) { - updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); - } else { - updateTime_ = value; - } - onChanged(); - } else { - updateTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Output only. Time when entity payload fields were last updated.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearUpdateTime() { - if (updateTimeBuilder_ == null) { - updateTime_ = null; - onChanged(); - } else { - updateTime_ = null; - updateTimeBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Output only. Time when 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() { - - 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; - 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(); - 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; - 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; - 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(); - 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; - 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; - 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() { - @SuppressWarnings("deprecation") - com.google.analytics.admin.v1alpha.IndustryCategory result = - com.google.analytics.admin.v1alpha.IndustryCategory.valueOf(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(); - } - - 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() { - - 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; - 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(); - 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; - 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; - 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(); - 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; - 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; - 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() { - @SuppressWarnings("deprecation") - com.google.analytics.admin.v1alpha.ServiceLevel result = - com.google.analytics.admin.v1alpha.ServiceLevel.valueOf(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(); - } - - 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() { - - 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 deleteTimeBuilder_ != null || 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. - */ - 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; - onChanged(); - } else { - deleteTimeBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - deleteTimeBuilder_.setMessage(builderForValue.build()); - } - - 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 (deleteTime_ != null) { - deleteTime_ = - com.google.protobuf.Timestamp.newBuilder(deleteTime_).mergeFrom(value).buildPartial(); - } else { - deleteTime_ = value; - } - onChanged(); - } else { - deleteTimeBuilder_.mergeFrom(value); - } - - 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() { - if (deleteTimeBuilder_ == null) { - deleteTime_ = null; - onChanged(); - } else { - deleteTime_ = null; - deleteTimeBuilder_ = null; - } - - 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() { - - 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 expireTimeBuilder_ != null || 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. - */ - 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; - onChanged(); - } else { - expireTimeBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - expireTimeBuilder_.setMessage(builderForValue.build()); - } - - 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 (expireTime_ != null) { - expireTime_ = - com.google.protobuf.Timestamp.newBuilder(expireTime_).mergeFrom(value).buildPartial(); - } else { - expireTime_ = value; - } - onChanged(); - } else { - expireTimeBuilder_.mergeFrom(value); - } - - 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() { - if (expireTimeBuilder_ == null) { - expireTime_ = null; - onChanged(); - } else { - expireTime_ = null; - expireTimeBuilder_ = null; - } - - 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() { - - 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; - onChanged(); - return this; - } - /** - * - * - *
-     * Immutable. The resource name of the parent account
-     * Format: accounts/{account_id}
-     * Example: "accounts/123"
-     * 
- * - * - * string account = 13 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearAccount() { - - account_ = getDefaultInstance().getAccount(); - onChanged(); - return this; - } - /** - * - * - *
-     * Immutable. The resource name of the parent account
-     * Format: accounts/{account_id}
-     * Example: "accounts/123"
-     * 
- * - * - * string account = 13 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for account to set. - * @return This builder for chaining. - */ - public Builder setAccountBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - account_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PropertyName.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PropertyName.java deleted file mode 100644 index 019e443c..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PropertyName.java +++ /dev/null @@ -1,168 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 com.google.api.pathtemplate.PathTemplate; -import com.google.api.resourcenames.ResourceName; -import com.google.common.base.Preconditions; -import com.google.common.collect.ImmutableMap; -import java.util.ArrayList; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -@Generated("by gapic-generator-java") -public class PropertyName implements ResourceName { - private static final PathTemplate PROPERTY = - PathTemplate.createWithoutUrlEncoding("properties/{property}"); - private volatile Map fieldValuesMap; - private final String property; - - @Deprecated - protected PropertyName() { - property = null; - } - - private PropertyName(Builder builder) { - property = Preconditions.checkNotNull(builder.getProperty()); - } - - public String getProperty() { - return property; - } - - public static Builder newBuilder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder(this); - } - - public static PropertyName of(String property) { - return newBuilder().setProperty(property).build(); - } - - public static String format(String property) { - return newBuilder().setProperty(property).build().toString(); - } - - public static PropertyName parse(String formattedString) { - if (formattedString.isEmpty()) { - return null; - } - Map matchMap = - PROPERTY.validatedMatch( - formattedString, "PropertyName.parse: formattedString not in valid format"); - return of(matchMap.get("property")); - } - - public static List parseList(List formattedStrings) { - List list = new ArrayList<>(formattedStrings.size()); - for (String formattedString : formattedStrings) { - list.add(parse(formattedString)); - } - return list; - } - - public static List toStringList(List values) { - List list = new ArrayList<>(values.size()); - for (PropertyName value : values) { - if (value == null) { - list.add(""); - } else { - list.add(value.toString()); - } - } - return list; - } - - public static boolean isParsableFrom(String formattedString) { - return PROPERTY.matches(formattedString); - } - - @Override - public Map getFieldValuesMap() { - if (fieldValuesMap == null) { - synchronized (this) { - if (fieldValuesMap == null) { - ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); - if (property != null) { - fieldMapBuilder.put("property", property); - } - fieldValuesMap = fieldMapBuilder.build(); - } - } - } - return fieldValuesMap; - } - - public String getFieldValue(String fieldName) { - return getFieldValuesMap().get(fieldName); - } - - @Override - public String toString() { - return PROPERTY.instantiate("property", property); - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (o != null || getClass() == o.getClass()) { - PropertyName that = ((PropertyName) o); - return Objects.equals(this.property, that.property); - } - return false; - } - - @Override - public int hashCode() { - int h = 1; - h *= 1000003; - h ^= Objects.hashCode(property); - return h; - } - - /** Builder for properties/{property}. */ - public static class Builder { - private String property; - - protected Builder() {} - - public String getProperty() { - return property; - } - - public Builder setProperty(String property) { - this.property = property; - return this; - } - - private Builder(PropertyName propertyName) { - this.property = propertyName.property; - } - - public PropertyName build() { - return new PropertyName(this); - } - } -} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PropertyOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PropertyOrBuilder.java deleted file mode 100644 index 5ffc2bd1..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PropertyOrBuilder.java +++ /dev/null @@ -1,463 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/resources.proto - -package com.google.analytics.admin.v1alpha; - -public interface 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. "SUBPROPERTY" and "ROLLUP_PROPERTY" types cannot yet be created
-   * via Google Analytics Admin API.
-   * 
- * - * - * .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. "SUBPROPERTY" and "ROLLUP_PROPERTY" types cannot yet be created
-   * via Google Analytics Admin API.
-   * 
- * - * - * .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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PropertySummary.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PropertySummary.java deleted file mode 100644 index b3354b57..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PropertySummary.java +++ /dev/null @@ -1,1157 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/resources.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * 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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - 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; - 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_; - /** - * - * - *
-   * 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() { - @SuppressWarnings("deprecation") - com.google.analytics.admin.v1alpha.PropertyType result = - com.google.analytics.admin.v1alpha.PropertyType.valueOf(propertyType_); - return result == null ? com.google.analytics.admin.v1alpha.PropertyType.UNRECOGNIZED : result; - } - - public static final int PARENT_FIELD_NUMBER = 4; - 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(); - 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); - result.property_ = property_; - result.displayName_ = displayName_; - result.propertyType_ = propertyType_; - result.parent_ = parent_; - 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.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_; - onChanged(); - } - if (!other.getDisplayName().isEmpty()) { - displayName_ = other.displayName_; - onChanged(); - } - if (other.propertyType_ != 0) { - setPropertyTypeValue(other.getPropertyTypeValue()); - } - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 18: - { - displayName_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 24: - { - propertyType_ = input.readEnum(); - - break; - } // case 24 - case 34: - { - parent_ = input.readStringRequireUtf8(); - - 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 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; - 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(); - 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; - 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; - 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(); - 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; - 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; - 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() { - @SuppressWarnings("deprecation") - com.google.analytics.admin.v1alpha.PropertyType result = - com.google.analytics.admin.v1alpha.PropertyType.valueOf(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(); - } - - 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() { - - 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; - 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(); - 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; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PropertySummaryOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PropertySummaryOrBuilder.java deleted file mode 100644 index 720ce7f5..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PropertySummaryOrBuilder.java +++ /dev/null @@ -1,135 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/resources.proto - -package com.google.analytics.admin.v1alpha; - -public interface 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PropertyType.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PropertyType.java deleted file mode 100644 index 9a554d57..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PropertyType.java +++ /dev/null @@ -1,198 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/resources.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ProvisionAccountTicketRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ProvisionAccountTicketRequest.java deleted file mode 100644 index 1fa91422..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ProvisionAccountTicketRequest.java +++ /dev/null @@ -1,896 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * Request message for 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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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 getAccount(); - } - - public static final int REDIRECT_URI_FIELD_NUMBER = 2; - private volatile java.lang.Object redirectUri_; - /** - * - * - *
-   * Redirect URI where the user will be sent after accepting Terms of Service.
-   * Must be configured in Developers 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 Developers 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(); - if (accountBuilder_ == null) { - account_ = null; - } else { - account_ = null; - 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 (accountBuilder_ == null) { - result.account_ = account_; - } else { - result.account_ = accountBuilder_.build(); - } - result.redirectUri_ = redirectUri_; - 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.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_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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); - - break; - } // case 10 - case 18: - { - redirectUri_ = input.readStringRequireUtf8(); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - 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 accountBuilder_ != null || account_ != null; - } - /** - * - * - *
-     * 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; - onChanged(); - } else { - accountBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - accountBuilder_.setMessage(builderForValue.build()); - } - - 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 (account_ != null) { - account_ = - com.google.analytics.admin.v1alpha.Account.newBuilder(account_) - .mergeFrom(value) - .buildPartial(); - } else { - account_ = value; - } - onChanged(); - } else { - accountBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * The account to create.
-     * 
- * - * .google.analytics.admin.v1alpha.Account account = 1; - */ - public Builder clearAccount() { - if (accountBuilder_ == null) { - account_ = null; - onChanged(); - } else { - account_ = null; - accountBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * The account to create.
-     * 
- * - * .google.analytics.admin.v1alpha.Account account = 1; - */ - public com.google.analytics.admin.v1alpha.Account.Builder getAccountBuilder() { - - 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 Developers 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 Developers 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 Developers 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; - onChanged(); - return this; - } - /** - * - * - *
-     * Redirect URI where the user will be sent after accepting Terms of Service.
-     * Must be configured in Developers Console as a Redirect URI
-     * 
- * - * string redirect_uri = 2; - * - * @return This builder for chaining. - */ - public Builder clearRedirectUri() { - - redirectUri_ = getDefaultInstance().getRedirectUri(); - onChanged(); - return this; - } - /** - * - * - *
-     * Redirect URI where the user will be sent after accepting Terms of Service.
-     * Must be configured in Developers 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; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ProvisionAccountTicketRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ProvisionAccountTicketRequestOrBuilder.java deleted file mode 100644 index 126707fa..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ProvisionAccountTicketRequestOrBuilder.java +++ /dev/null @@ -1,87 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface 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 Developers 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 Developers Console as a Redirect URI
-   * 
- * - * string redirect_uri = 2; - * - * @return The bytes for redirectUri. - */ - com.google.protobuf.ByteString getRedirectUriBytes(); -} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ProvisionAccountTicketResponse.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ProvisionAccountTicketResponse.java deleted file mode 100644 index 1a8707da..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ProvisionAccountTicketResponse.java +++ /dev/null @@ -1,625 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * 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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - 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(); - 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); - result.accountTicketId_ = accountTicketId_; - 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.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_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - 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 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; - 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(); - 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; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ProvisionAccountTicketResponseOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ProvisionAccountTicketResponseOrBuilder.java deleted file mode 100644 index cb7fb24b..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ProvisionAccountTicketResponseOrBuilder.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ResourcesProto.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ResourcesProto.java deleted file mode 100644 index fd853e8e..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ResourcesProto.java +++ /dev/null @@ -1,800 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/resources.proto - -package com.google.analytics.admin.v1alpha; - -public 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_UserLink_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_UserLink_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_AuditUserLink_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_AuditUserLink_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_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_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_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; - - 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\037google/api/field_behavior.proto\032\031googl" - + "e/api/resource.proto\032\037google/protobuf/ti" - + "mestamp.proto\032\036google/protobuf/wrappers." - + "proto\"\216\002\n\007Account\022\021\n\004name\030\001 \001(\tB\003\340A\003\0224\n\013" - + "create_time\030\002 \001(\0132\032.google.protobuf.Time" - + "stampB\003\340A\003\0224\n\013update_time\030\003 \001(\0132\032.google" - + ".protobuf.TimestampB\003\340A\003\022\031\n\014display_name" - + "\030\004 \001(\tB\003\340A\002\022\023\n\013region_code\030\005 \001(\t\022\024\n\007dele" - + "ted\030\006 \001(\010B\003\340A\003:>\352A;\n%analyticsadmin.goog" - + "leapis.com/Account\022\022accounts/{account}\"\271" - + "\005\n\010Property\022\021\n\004name\030\001 \001(\tB\003\340A\003\022H\n\rproper" - + "ty_type\030\016 \001(\0162,.google.analytics.admin.v" - + "1alpha.PropertyTypeB\003\340A\005\0224\n\013create_time\030" - + "\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224" - + "\n\013update_time\030\004 \001(\0132\032.google.protobuf.Ti" - + "mestampB\003\340A\003\022\023\n\006parent\030\002 \001(\tB\003\340A\005\022\031\n\014dis" - + "play_name\030\005 \001(\tB\003\340A\002\022K\n\021industry_categor" - + "y\030\006 \001(\01620.google.analytics.admin.v1alpha" - + ".IndustryCategory\022\026\n\ttime_zone\030\007 \001(\tB\003\340A" - + "\002\022\025\n\rcurrency_code\030\010 \001(\t\022H\n\rservice_leve" - + "l\030\n \001(\0162,.google.analytics.admin.v1alpha" - + ".ServiceLevelB\003\340A\003\0224\n\013delete_time\030\013 \001(\0132" - + "\032.google.protobuf.TimestampB\003\340A\003\0224\n\013expi" - + "re_time\030\014 \001(\0132\032.google.protobuf.Timestam" - + "pB\003\340A\003\022>\n\007account\030\r \001(\tB-\340A\005\372A\'\n%analyti" - + "csadmin.googleapis.com/Account:B\352A?\n&ana" - + "lyticsadmin.googleapis.com/Property\022\025pro" - + "perties/{property}\"\371\007\n\nDataStream\022S\n\017web" - + "_stream_data\030\006 \001(\01328.google.analytics.ad" - + "min.v1alpha.DataStream.WebStreamDataH\000\022b" - + "\n\027android_app_stream_data\030\007 \001(\0132?.google" - + ".analytics.admin.v1alpha.DataStream.Andr" - + "oidAppStreamDataH\000\022Z\n\023ios_app_stream_dat" - + "a\030\010 \001(\0132;.google.analytics.admin.v1alpha" - + ".DataStream.IosAppStreamDataH\000\022\021\n\004name\030\001" - + " \001(\tB\003\340A\003\022O\n\004type\030\002 \001(\01629.google.analyti" - + "cs.admin.v1alpha.DataStream.DataStreamTy" - + "peB\006\340A\005\340A\002\022\024\n\014display_name\030\003 \001(\t\0224\n\013crea" - + "te_time\030\004 \001(\0132\032.google.protobuf.Timestam" - + "pB\003\340A\003\0224\n\013update_time\030\005 \001(\0132\032.google.pro" - + "tobuf.TimestampB\003\340A\003\032d\n\rWebStreamData\022\033\n" - + "\016measurement_id\030\001 \001(\tB\003\340A\003\022\034\n\017firebase_a" - + "pp_id\030\002 \001(\tB\003\340A\003\022\030\n\013default_uri\030\003 \001(\tB\003\340" - + "A\005\032O\n\024AndroidAppStreamData\022\034\n\017firebase_a" - + "pp_id\030\001 \001(\tB\003\340A\003\022\031\n\014package_name\030\002 \001(\tB\003" - + "\340A\005\032K\n\020IosAppStreamData\022\034\n\017firebase_app_" - + "id\030\001 \001(\tB\003\340A\003\022\031\n\tbundle_id\030\002 \001(\tB\006\340A\005\340A\002" - + "\"}\n\016DataStreamType\022 \n\034DATA_STREAM_TYPE_U" - + "NSPECIFIED\020\000\022\023\n\017WEB_DATA_STREAM\020\001\022\033\n\027AND" - + "ROID_APP_DATA_STREAM\020\002\022\027\n\023IOS_APP_DATA_S" - + "TREAM\020\003:^\352A[\n(analyticsadmin.googleapis." - + "com/DataStream\022/properties/{property}/da" - + "taStreams/{data_stream}B\r\n\013stream_data\"\324" - + "\001\n\010UserLink\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\032\n\remail_" - + "address\030\002 \001(\tB\003\340A\005\022\024\n\014direct_roles\030\003 \003(\t" - + ":\202\001\352A\177\n&analyticsadmin.googleapis.com/Us" - + "erLink\022(accounts/{account}/userLinks/{us" - + "er_link}\022+properties/{property}/userLink" - + "s/{user_link}\"c\n\rAuditUserLink\022\014\n\004name\030\001" - + " \001(\t\022\025\n\remail_address\030\002 \001(\t\022\024\n\014direct_ro" - + "les\030\003 \003(\t\022\027\n\017effective_roles\030\004 \003(\t\"\323\001\n\014F" - + "irebaseLink\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\024\n\007projec" - + "t\030\002 \001(\tB\003\340A\005\0224\n\013create_time\030\003 \001(\0132\032.goog" - + "le.protobuf.TimestampB\003\340A\003:d\352Aa\n*analyti" - + "csadmin.googleapis.com/FirebaseLink\0223pro" - + "perties/{property}/firebaseLinks/{fireba" - + "se_link}\"\251\001\n\rGlobalSiteTag\022\021\n\004name\030\001 \001(\t" - + "B\003\340A\003\022\024\n\007snippet\030\002 \001(\tB\003\340A\005:o\352Al\n+analyt" - + "icsadmin.googleapis.com/GlobalSiteTag\022=p" - + "roperties/{property}/dataStreams/{data_s" - + "tream}/globalSiteTag\"\230\003\n\rGoogleAdsLink\022\021" - + "\n\004name\030\001 \001(\tB\003\340A\003\022\030\n\013customer_id\030\003 \001(\tB\003" - + "\340A\005\022\037\n\022can_manage_clients\030\004 \001(\010B\003\340A\003\022?\n\033" - + "ads_personalization_enabled\030\005 \001(\0132\032.goog" - + "le.protobuf.BoolValue\0224\n\013create_time\030\007 \001" - + "(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n\013u" - + "pdate_time\030\010 \001(\0132\032.google.protobuf.Times" - + "tampB\003\340A\003\022\"\n\025creator_email_address\030\t \001(\t" - + "B\003\340A\003:h\352Ae\n+analyticsadmin.googleapis.co" - + "m/GoogleAdsLink\0226properties/{property}/g" - + "oogleAdsLinks/{google_ads_link}\"\353\002\n\023Data" - + "SharingSettings\022\021\n\004name\030\001 \001(\tB\003\340A\003\022+\n#sh" - + "aring_with_google_support_enabled\030\002 \001(\010\022" - + "2\n*sharing_with_google_assigned_sales_en" - + "abled\030\003 \001(\010\022-\n%sharing_with_google_any_s" - + "ales_enabled\030\004 \001(\010\022,\n$sharing_with_googl" - + "e_products_enabled\030\005 \001(\010\022#\n\033sharing_with" - + "_others_enabled\030\006 \001(\010:^\352A[\n1analyticsadm" - + "in.googleapis.com/DataSharingSettings\022&a" - + "ccounts/{account}/dataSharingSettings\"\225\002" - + "\n\016AccountSummary\022\014\n\004name\030\001 \001(\t\022;\n\007accoun" - + "t\030\002 \001(\tB*\372A\'\n%analyticsadmin.googleapis." - + "com/Account\022\024\n\014display_name\030\003 \001(\t\022K\n\022pro" - + "perty_summaries\030\004 \003(\0132/.google.analytics" - + ".admin.v1alpha.PropertySummary:U\352AR\n,ana" - + "lyticsadmin.googleapis.com/AccountSummar" - + "y\022\"accountSummaries/{account_summary}\"\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\rproperty_type\030" - + "\003 \001(\0162,.google.analytics.admin.v1alpha.P" - + "ropertyType\022\016\n\006parent\030\004 \001(\t\"\216\002\n\031Measurem" - + "entProtocolSecret\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\031\n\014" - + "display_name\030\002 \001(\tB\003\340A\002\022\031\n\014secret_value\030" - + "\003 \001(\tB\003\340A\003:\247\001\352A\243\001\n7analyticsadmin.google" - + "apis.com/MeasurementProtocolSecret\022hprop" - + "erties/{property}/dataStreams/{data_stre" - + "am}/measurementProtocolSecrets/{measurem" - + "ent_protocol_secret}\"\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\"\341\013\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\246\t\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\022A\n\013dat" - + "a_stream\030\022 \001(\0132*.google.analytics.admin." - + "v1alpha.DataStreamH\000\022S\n\024attribution_sett" - + "ings\030\024 \001(\01323.google.analytics.admin.v1al" - + "pha.AttributionSettingsH\000B\n\n\010resource\"\337\003" - + "\n\035DisplayVideo360AdvertiserLink\022\021\n\004name\030" - + "\001 \001(\tB\003\340A\003\022\032\n\radvertiser_id\030\002 \001(\tB\003\340A\005\022$" - + "\n\027advertiser_display_name\030\003 \001(\tB\003\340A\003\022?\n\033" - + "ads_personalization_enabled\030\004 \001(\0132\032.goog" - + "le.protobuf.BoolValue\022F\n\035campaign_data_s" - + "haring_enabled\030\005 \001(\0132\032.google.protobuf.B" - + "oolValueB\003\340A\005\022B\n\031cost_data_sharing_enabl" - + "ed\030\006 \001(\0132\032.google.protobuf.BoolValueB\003\340A" - + "\005:\233\001\352A\227\001\n;analyticsadmin.googleapis.com/" - + "DisplayVideo360AdvertiserLink\022Xpropertie" - + "s/{property}/displayVideo360AdvertiserLi" - + "nks/{display_video_360_advertiser_link}\"" - + "\212\005\n%DisplayVideo360AdvertiserLinkProposa" - + "l\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\032\n\radvertiser_id\030\002 " - + "\001(\tB\003\340A\005\022d\n\034link_proposal_status_details" - + "\030\003 \001(\01329.google.analytics.admin.v1alpha." - + "LinkProposalStatusDetailsB\003\340A\003\022$\n\027advert" - + "iser_display_name\030\004 \001(\tB\003\340A\003\022\035\n\020validati" - + "on_email\030\005 \001(\tB\003\340A\004\022D\n\033ads_personalizati" - + "on_enabled\030\006 \001(\0132\032.google.protobuf.BoolV" - + "alueB\003\340A\005\022F\n\035campaign_data_sharing_enabl" - + "ed\030\007 \001(\0132\032.google.protobuf.BoolValueB\003\340A" - + "\005\022B\n\031cost_data_sharing_enabled\030\010 \001(\0132\032.g" - + "oogle.protobuf.BoolValueB\003\340A\005:\264\001\352A\260\001\nCan" - + "alyticsadmin.googleapis.com/DisplayVideo" - + "360AdvertiserLinkProposal\022iproperties/{p" - + "roperty}/displayVideo360AdvertiserLinkPr" - + "oposals/{display_video_360_advertiser_li" - + "nk_proposal}\"\374\001\n\031LinkProposalStatusDetai" - + "ls\022l\n link_proposal_initiating_product\030\001" - + " \001(\0162=.google.analytics.admin.v1alpha.Li" - + "nkProposalInitiatingProductB\003\340A\003\022\034\n\017requ" - + "estor_email\030\002 \001(\tB\003\340A\003\022S\n\023link_proposal_" - + "state\030\003 \001(\01621.google.analytics.admin.v1a" - + "lpha.LinkProposalStateB\003\340A\003\"\217\002\n\017Conversi" - + "onEvent\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\027\n\nevent_name" - + "\030\002 \001(\tB\003\340A\005\0224\n\013create_time\030\003 \001(\0132\032.googl" - + "e.protobuf.TimestampB\003\340A\003\022\026\n\tdeletable\030\004" - + " \001(\010B\003\340A\003\022\023\n\006custom\030\005 \001(\010B\003\340A\003:m\352Aj\n-ana" - + "lyticsadmin.googleapis.com/ConversionEve" - + "nt\0229properties/{property}/conversionEven" - + "ts/{conversion_event}\"\240\002\n\025GoogleSignalsS" - + "ettings\022\021\n\004name\030\001 \001(\tB\003\340A\003\022A\n\005state\030\003 \001(" - + "\01622.google.analytics.admin.v1alpha.Googl" - + "eSignalsState\022J\n\007consent\030\004 \001(\01624.google." - + "analytics.admin.v1alpha.GoogleSignalsCon" - + "sentB\003\340A\003:e\352Ab\n3analyticsadmin.googleapi" - + "s.com/GoogleSignalsSettings\022+properties/" - + "{property}/googleSignalsSettings\"\262\003\n\017Cus" - + "tomDimension\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\036\n\016param" - + "eter_name\030\002 \001(\tB\006\340A\002\340A\005\022\031\n\014display_name\030" - + "\003 \001(\tB\003\340A\002\022\030\n\013description\030\004 \001(\tB\003\340A\001\022U\n\005" - + "scope\030\005 \001(\0162>.google.analytics.admin.v1a" - + "lpha.CustomDimension.DimensionScopeB\006\340A\002" - + "\340A\005\022)\n\034disallow_ads_personalization\030\006 \001(" - + "\010B\003\340A\001\"F\n\016DimensionScope\022\037\n\033DIMENSION_SC" - + "OPE_UNSPECIFIED\020\000\022\t\n\005EVENT\020\001\022\010\n\004USER\020\002:m" - + "\352Aj\n-analyticsadmin.googleapis.com/Custo" - + "mDimension\0229properties/{property}/custom" - + "Dimensions/{custom_dimension}\"\305\006\n\014Custom" - + "Metric\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\036\n\016parameter_n" - + "ame\030\002 \001(\tB\006\340A\002\340A\005\022\031\n\014display_name\030\003 \001(\tB" - + "\003\340A\002\022\030\n\013description\030\004 \001(\tB\003\340A\001\022[\n\020measur" - + "ement_unit\030\005 \001(\0162<.google.analytics.admi" - + "n.v1alpha.CustomMetric.MeasurementUnitB\003" - + "\340A\002\022O\n\005scope\030\006 \001(\01628.google.analytics.ad" - + "min.v1alpha.CustomMetric.MetricScopeB\006\340A" - + "\002\340A\005\022f\n\026restricted_metric_type\030\010 \003(\0162A.g" - + "oogle.analytics.admin.v1alpha.CustomMetr" - + "ic.RestrictedMetricTypeB\003\340A\001\"\267\001\n\017Measure" - + "mentUnit\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\006METERS\020\004\022\016\n\nKILOMETERS\020\005\022\t\n\005MILES\020\006\022" - + "\020\n\014MILLISECONDS\020\007\022\013\n\007SECONDS\020\010\022\013\n\007MINUTE" - + "S\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\024Restri" - + "ctedMetricType\022&\n\"RESTRICTED_METRIC_TYPE" - + "_UNSPECIFIED\020\000\022\r\n\tCOST_DATA\020\001\022\020\n\014REVENUE" - + "_DATA\020\002:d\352Aa\n*analyticsadmin.googleapis." - + "com/CustomMetric\0223properties/{property}/" - + "customMetrics/{custom_metric}\"\302\003\n\025DataRe" - + "tentionSettings\022\021\n\004name\030\001 \001(\tB\003\340A\003\022e\n\024ev" - + "ent_data_retention\030\002 \001(\0162G.google.analyt" - + "ics.admin.v1alpha.DataRetentionSettings." - + "RetentionDuration\022\'\n\037reset_user_data_on_" - + "new_activity\030\003 \001(\010\"\236\001\n\021RetentionDuration" - + "\022\"\n\036RETENTION_DURATION_UNSPECIFIED\020\000\022\016\n\n" - + "TWO_MONTHS\020\001\022\023\n\017FOURTEEN_MONTHS\020\003\022\025\n\021TWE" - + "NTY_SIX_MONTHS\020\004\022\027\n\023THIRTY_EIGHT_MONTHS\020" - + "\005\022\020\n\014FIFTY_MONTHS\020\006:e\352Ab\n3analyticsadmin" - + ".googleapis.com/DataRetentionSettings\022+p" - + "roperties/{property}/dataRetentionSettin" - + "gs\"\244\n\n\023AttributionSettings\022\021\n\004name\030\001 \001(\t" - + "B\003\340A\003\022\227\001\n,acquisition_conversion_event_l" - + "ookback_window\030\002 \001(\0162\\.google.analytics." - + "admin.v1alpha.AttributionSettings.Acquis" - + "itionConversionEventLookbackWindowB\003\340A\002\022" - + "\213\001\n&other_conversion_event_lookback_wind" - + "ow\030\003 \001(\0162V.google.analytics.admin.v1alph" - + "a.AttributionSettings.OtherConversionEve" - + "ntLookbackWindowB\003\340A\002\022w\n\033reporting_attri" - + "bution_model\030\004 \001(\0162M.google.analytics.ad" - + "min.v1alpha.AttributionSettings.Reportin" - + "gAttributionModelB\003\340A\002\"\333\001\n(AcquisitionCo" - + "nversionEventLookbackWindow\022<\n8ACQUISITI" - + "ON_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSP" - + "ECIFIED\020\000\0227\n3ACQUISITION_CONVERSION_EVEN" - + "T_LOOKBACK_WINDOW_7_DAYS\020\001\0228\n4ACQUISITIO" - + "N_CONVERSION_EVENT_LOOKBACK_WINDOW_30_DA" - + "YS\020\002\"\370\001\n\"OtherConversionEventLookbackWin" - + "dow\0226\n2OTHER_CONVERSION_EVENT_LOOKBACK_W" - + "INDOW_UNSPECIFIED\020\000\0222\n.OTHER_CONVERSION_" - + "EVENT_LOOKBACK_WINDOW_30_DAYS\020\001\0222\n.OTHER" - + "_CONVERSION_EVENT_LOOKBACK_WINDOW_60_DAY" - + "S\020\002\0222\n.OTHER_CONVERSION_EVENT_LOOKBACK_W" - + "INDOW_90_DAYS\020\003\"\234\002\n\031ReportingAttribution" - + "Model\022+\n\'REPORTING_ATTRIBUTION_MODEL_UNS" - + "PECIFIED\020\000\022\035\n\031CROSS_CHANNEL_DATA_DRIVEN\020" - + "\001\022\034\n\030CROSS_CHANNEL_LAST_CLICK\020\002\022\035\n\031CROSS" - + "_CHANNEL_FIRST_CLICK\020\003\022\030\n\024CROSS_CHANNEL_" - + "LINEAR\020\004\022 \n\034CROSS_CHANNEL_POSITION_BASED" - + "\020\005\022\034\n\030CROSS_CHANNEL_TIME_DECAY\020\006\022\034\n\030ADS_" - + "PREFERRED_LAST_CLICK\020\007:a\352A^\n1analyticsad" - + "min.googleapis.com/AttributionSettings\022)" - + "properties/{property}/attributionSetting" - + "s*\252\004\n\020IndustryCategory\022!\n\035INDUSTRY_CATEG" - + "ORY_UNSPECIFIED\020\000\022\016\n\nAUTOMOTIVE\020\001\022#\n\037BUS" - + "INESS_AND_INDUSTRIAL_MARKETS\020\002\022\013\n\007FINANC" - + "E\020\003\022\016\n\nHEALTHCARE\020\004\022\016\n\nTECHNOLOGY\020\005\022\n\n\006T" - + "RAVEL\020\006\022\t\n\005OTHER\020\007\022\032\n\026ARTS_AND_ENTERTAIN" - + "MENT\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\005" - + "GAMES\020\014\022\027\n\023HOBBIES_AND_LEISURE\020\r\022\023\n\017HOME" - + "_AND_GARDEN\020\016\022\030\n\024INTERNET_AND_TELECOM\020\017\022" - + "\026\n\022LAW_AND_GOVERNMENT\020\020\022\010\n\004NEWS\020\021\022\026\n\022ONL" - + "INE_COMMUNITIES\020\022\022\026\n\022PEOPLE_AND_SOCIETY\020" - + "\023\022\024\n\020PETS_AND_ANIMALS\020\024\022\017\n\013REAL_ESTATE\020\025" - + "\022\r\n\tREFERENCE\020\026\022\013\n\007SCIENCE\020\027\022\n\n\006SPORTS\020\030" - + "\022\026\n\022JOBS_AND_EDUCATION\020\031\022\014\n\010SHOPPING\020\032*f" - + "\n\014ServiceLevel\022\035\n\031SERVICE_LEVEL_UNSPECIF" - + "IED\020\000\022\035\n\031GOOGLE_ANALYTICS_STANDARD\020\001\022\030\n\024" - + "GOOGLE_ANALYTICS_360\020\002*J\n\tActorType\022\032\n\026A" - + "CTOR_TYPE_UNSPECIFIED\020\000\022\010\n\004USER\020\001\022\n\n\006SYS" - + "TEM\020\002\022\013\n\007SUPPORT\020\003*P\n\nActionType\022\033\n\027ACTI" - + "ON_TYPE_UNSPECIFIED\020\000\022\013\n\007CREATED\020\001\022\013\n\007UP" - + "DATED\020\002\022\013\n\007DELETED\020\003*\301\003\n\031ChangeHistoryRe" - + "sourceType\022,\n(CHANGE_HISTORY_RESOURCE_TY" - + "PE_UNSPECIFIED\020\000\022\013\n\007ACCOUNT\020\001\022\014\n\010PROPERT" - + "Y\020\002\022\021\n\rFIREBASE_LINK\020\006\022\023\n\017GOOGLE_ADS_LIN" - + "K\020\007\022\033\n\027GOOGLE_SIGNALS_SETTINGS\020\010\022\024\n\020CONV" - + "ERSION_EVENT\020\t\022\037\n\033MEASUREMENT_PROTOCOL_S" - + "ECRET\020\n\022\024\n\020CUSTOM_DIMENSION\020\013\022\021\n\rCUSTOM_" - + "METRIC\020\014\022\033\n\027DATA_RETENTION_SETTINGS\020\r\022%\n" - + "!DISPLAY_VIDEO_360_ADVERTISER_LINK\020\016\022.\n*" - + "DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOS" - + "AL\020\017\022\027\n\023SEARCH_ADS_360_LINK\020\020\022\017\n\013DATA_ST" - + "REAM\020\022\022\030\n\024ATTRIBUTION_SETTINGS\020\024*s\n\022Goog" - + "leSignalsState\022$\n GOOGLE_SIGNALS_STATE_U" - + "NSPECIFIED\020\000\022\032\n\026GOOGLE_SIGNALS_ENABLED\020\001" - + "\022\033\n\027GOOGLE_SIGNALS_DISABLED\020\002*\216\001\n\024Google" - + "SignalsConsent\022&\n\"GOOGLE_SIGNALS_CONSENT" - + "_UNSPECIFIED\020\000\022$\n GOOGLE_SIGNALS_CONSENT" - + "_CONSENTED\020\002\022(\n$GOOGLE_SIGNALS_CONSENT_N" - + "OT_CONSENTED\020\001*{\n\035LinkProposalInitiating" - + "Product\0220\n,LINK_PROPOSAL_INITIATING_PROD" - + "UCT_UNSPECIFIED\020\000\022\024\n\020GOOGLE_ANALYTICS\020\001\022" - + "\022\n\016LINKED_PRODUCT\020\002*\304\001\n\021LinkProposalStat" - + "e\022#\n\037LINK_PROPOSAL_STATE_UNSPECIFIED\020\000\022)" - + "\n%AWAITING_REVIEW_FROM_GOOGLE_ANALYTICS\020" - + "\001\022\'\n#AWAITING_REVIEW_FROM_LINKED_PRODUCT" - + "\020\002\022\r\n\tWITHDRAWN\020\003\022\014\n\010DECLINED\020\004\022\013\n\007EXPIR" - + "ED\020\005\022\014\n\010OBSOLETE\020\006*\202\001\n\014PropertyType\022\035\n\031P" - + "ROPERTY_TYPE_UNSPECIFIED\020\000\022\032\n\026PROPERTY_T" - + "YPE_ORDINARY\020\001\022\035\n\031PROPERTY_TYPE_SUBPROPE" - + "RTY\020\002\022\030\n\024PROPERTY_TYPE_ROLLUP\020\003B{\n\"com.g" - + "oogle.analytics.admin.v1alphaB\016Resources" - + "ProtoP\001ZCgoogle.golang.org/genproto/goog" - + "leapis/analytics/admin/v1alpha;adminb\006pr" - + "oto3" - }; - 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_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_UserLink_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_analytics_admin_v1alpha_UserLink_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_UserLink_descriptor, - new java.lang.String[] { - "Name", "EmailAddress", "DirectRoles", - }); - internal_static_google_analytics_admin_v1alpha_AuditUserLink_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_analytics_admin_v1alpha_AuditUserLink_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_AuditUserLink_descriptor, - new java.lang.String[] { - "Name", "EmailAddress", "DirectRoles", "EffectiveRoles", - }); - internal_static_google_analytics_admin_v1alpha_FirebaseLink_descriptor = - getDescriptor().getMessageTypes().get(5); - 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(6); - 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(7); - 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(8); - 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(9); - 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(10); - 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(11); - 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_ChangeHistoryEvent_descriptor = - getDescriptor().getMessageTypes().get(12); - 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(13); - 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", - "DataStream", - "AttributionSettings", - "Resource", - }); - internal_static_google_analytics_admin_v1alpha_DisplayVideo360AdvertiserLink_descriptor = - getDescriptor().getMessageTypes().get(14); - 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(15); - 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_LinkProposalStatusDetails_descriptor = - getDescriptor().getMessageTypes().get(16); - 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(17); - 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", - }); - internal_static_google_analytics_admin_v1alpha_GoogleSignalsSettings_descriptor = - getDescriptor().getMessageTypes().get(18); - 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(19); - 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(20); - 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(21); - 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(22); - 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", - }); - 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/RunAccessReportRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/RunAccessReportRequest.java deleted file mode 100644 index de4cb9f1..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/RunAccessReportRequest.java +++ /dev/null @@ -1,3916 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * The request for a Data Access Record Report.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.RunAccessReportRequest} - */ -public final class RunAccessReportRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.RunAccessReportRequest) - RunAccessReportRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use RunAccessReportRequest.newBuilder() to construct. - private RunAccessReportRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private RunAccessReportRequest() { - entity_ = ""; - dimensions_ = java.util.Collections.emptyList(); - metrics_ = java.util.Collections.emptyList(); - dateRanges_ = java.util.Collections.emptyList(); - timeZone_ = ""; - orderBys_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new RunAccessReportRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_RunAccessReportRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_RunAccessReportRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.RunAccessReportRequest.class, - com.google.analytics.admin.v1alpha.RunAccessReportRequest.Builder.class); - } - - public static final int ENTITY_FIELD_NUMBER = 1; - private volatile java.lang.Object entity_; - /** - * - * - *
-   * The Data Access Report is requested for this property.
-   * For example if "123" is your GA4 property ID, then entity should be
-   * "properties/123".
-   * 
- * - * string entity = 1; - * - * @return The entity. - */ - @java.lang.Override - public java.lang.String getEntity() { - java.lang.Object ref = entity_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - entity_ = s; - return s; - } - } - /** - * - * - *
-   * The Data Access Report is requested for this property.
-   * For example if "123" is your GA4 property ID, then entity should be
-   * "properties/123".
-   * 
- * - * string entity = 1; - * - * @return The bytes for entity. - */ - @java.lang.Override - public com.google.protobuf.ByteString getEntityBytes() { - java.lang.Object ref = entity_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - entity_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DIMENSIONS_FIELD_NUMBER = 2; - private java.util.List dimensions_; - /** - * - * - *
-   * The dimensions requested and displayed in the response. Requests are
-   * allowed up to 9 dimensions.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDimension dimensions = 2; - */ - @java.lang.Override - public java.util.List getDimensionsList() { - return dimensions_; - } - /** - * - * - *
-   * The dimensions requested and displayed in the response. Requests are
-   * allowed up to 9 dimensions.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDimension dimensions = 2; - */ - @java.lang.Override - public java.util.List - getDimensionsOrBuilderList() { - return dimensions_; - } - /** - * - * - *
-   * The dimensions requested and displayed in the response. Requests are
-   * allowed up to 9 dimensions.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDimension dimensions = 2; - */ - @java.lang.Override - public int getDimensionsCount() { - return dimensions_.size(); - } - /** - * - * - *
-   * The dimensions requested and displayed in the response. Requests are
-   * allowed up to 9 dimensions.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDimension dimensions = 2; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessDimension getDimensions(int index) { - return dimensions_.get(index); - } - /** - * - * - *
-   * The dimensions requested and displayed in the response. Requests are
-   * allowed up to 9 dimensions.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDimension dimensions = 2; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessDimensionOrBuilder getDimensionsOrBuilder( - int index) { - return dimensions_.get(index); - } - - public static final int METRICS_FIELD_NUMBER = 3; - private java.util.List metrics_; - /** - * - * - *
-   * The metrics requested and displayed in the response. Requests are allowed
-   * up to 10 metrics.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessMetric metrics = 3; - */ - @java.lang.Override - public java.util.List getMetricsList() { - return metrics_; - } - /** - * - * - *
-   * The metrics requested and displayed in the response. Requests are allowed
-   * up to 10 metrics.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessMetric metrics = 3; - */ - @java.lang.Override - public java.util.List - getMetricsOrBuilderList() { - return metrics_; - } - /** - * - * - *
-   * The metrics requested and displayed in the response. Requests are allowed
-   * up to 10 metrics.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessMetric metrics = 3; - */ - @java.lang.Override - public int getMetricsCount() { - return metrics_.size(); - } - /** - * - * - *
-   * The metrics requested and displayed in the response. Requests are allowed
-   * up to 10 metrics.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessMetric metrics = 3; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessMetric getMetrics(int index) { - return metrics_.get(index); - } - /** - * - * - *
-   * The metrics requested and displayed in the response. Requests are allowed
-   * up to 10 metrics.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessMetric metrics = 3; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessMetricOrBuilder getMetricsOrBuilder(int index) { - return metrics_.get(index); - } - - public static final int DATE_RANGES_FIELD_NUMBER = 4; - private java.util.List dateRanges_; - /** - * - * - *
-   * Date ranges of access records to read. If multiple date ranges are
-   * requested, each response row will contain a zero based date range index. If
-   * two date ranges overlap, the access records for the overlapping days is
-   * included in the response rows for both date ranges. Requests are allowed up
-   * to 2 date ranges.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDateRange date_ranges = 4; - */ - @java.lang.Override - public java.util.List getDateRangesList() { - return dateRanges_; - } - /** - * - * - *
-   * Date ranges of access records to read. If multiple date ranges are
-   * requested, each response row will contain a zero based date range index. If
-   * two date ranges overlap, the access records for the overlapping days is
-   * included in the response rows for both date ranges. Requests are allowed up
-   * to 2 date ranges.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDateRange date_ranges = 4; - */ - @java.lang.Override - public java.util.List - getDateRangesOrBuilderList() { - return dateRanges_; - } - /** - * - * - *
-   * Date ranges of access records to read. If multiple date ranges are
-   * requested, each response row will contain a zero based date range index. If
-   * two date ranges overlap, the access records for the overlapping days is
-   * included in the response rows for both date ranges. Requests are allowed up
-   * to 2 date ranges.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDateRange date_ranges = 4; - */ - @java.lang.Override - public int getDateRangesCount() { - return dateRanges_.size(); - } - /** - * - * - *
-   * Date ranges of access records to read. If multiple date ranges are
-   * requested, each response row will contain a zero based date range index. If
-   * two date ranges overlap, the access records for the overlapping days is
-   * included in the response rows for both date ranges. Requests are allowed up
-   * to 2 date ranges.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDateRange date_ranges = 4; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessDateRange getDateRanges(int index) { - return dateRanges_.get(index); - } - /** - * - * - *
-   * Date ranges of access records to read. If multiple date ranges are
-   * requested, each response row will contain a zero based date range index. If
-   * two date ranges overlap, the access records for the overlapping days is
-   * included in the response rows for both date ranges. Requests are allowed up
-   * to 2 date ranges.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDateRange date_ranges = 4; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessDateRangeOrBuilder getDateRangesOrBuilder( - int index) { - return dateRanges_.get(index); - } - - public static final int DIMENSION_FILTER_FIELD_NUMBER = 5; - private com.google.analytics.admin.v1alpha.AccessFilterExpression dimensionFilter_; - /** - * - * - *
-   * Dimension filters allow you to restrict report response to specific
-   * dimension values which match the filter. For example, filtering on access
-   * records of a single user. To learn more, see [Fundamentals of Dimension
-   * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters)
-   * for examples. Metrics cannot be used in this filter.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessFilterExpression dimension_filter = 5; - * - * @return Whether the dimensionFilter field is set. - */ - @java.lang.Override - public boolean hasDimensionFilter() { - return dimensionFilter_ != null; - } - /** - * - * - *
-   * Dimension filters allow you to restrict report response to specific
-   * dimension values which match the filter. For example, filtering on access
-   * records of a single user. To learn more, see [Fundamentals of Dimension
-   * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters)
-   * for examples. Metrics cannot be used in this filter.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessFilterExpression dimension_filter = 5; - * - * @return The dimensionFilter. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessFilterExpression getDimensionFilter() { - return dimensionFilter_ == null - ? com.google.analytics.admin.v1alpha.AccessFilterExpression.getDefaultInstance() - : dimensionFilter_; - } - /** - * - * - *
-   * Dimension filters allow you to restrict report response to specific
-   * dimension values which match the filter. For example, filtering on access
-   * records of a single user. To learn more, see [Fundamentals of Dimension
-   * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters)
-   * for examples. Metrics cannot be used in this filter.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessFilterExpression dimension_filter = 5; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessFilterExpressionOrBuilder - getDimensionFilterOrBuilder() { - return getDimensionFilter(); - } - - public static final int METRIC_FILTER_FIELD_NUMBER = 6; - private com.google.analytics.admin.v1alpha.AccessFilterExpression metricFilter_; - /** - * - * - *
-   * Metric filters allow you to restrict report response to specific metric
-   * values which match the filter. Metric filters are applied after aggregating
-   * the report's rows, similar to SQL having-clause. Dimensions cannot be used
-   * in this filter.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessFilterExpression metric_filter = 6; - * - * @return Whether the metricFilter field is set. - */ - @java.lang.Override - public boolean hasMetricFilter() { - return metricFilter_ != null; - } - /** - * - * - *
-   * Metric filters allow you to restrict report response to specific metric
-   * values which match the filter. Metric filters are applied after aggregating
-   * the report's rows, similar to SQL having-clause. Dimensions cannot be used
-   * in this filter.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessFilterExpression metric_filter = 6; - * - * @return The metricFilter. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessFilterExpression getMetricFilter() { - return metricFilter_ == null - ? com.google.analytics.admin.v1alpha.AccessFilterExpression.getDefaultInstance() - : metricFilter_; - } - /** - * - * - *
-   * Metric filters allow you to restrict report response to specific metric
-   * values which match the filter. Metric filters are applied after aggregating
-   * the report's rows, similar to SQL having-clause. Dimensions cannot be used
-   * in this filter.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessFilterExpression metric_filter = 6; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessFilterExpressionOrBuilder - getMetricFilterOrBuilder() { - return getMetricFilter(); - } - - public static final int OFFSET_FIELD_NUMBER = 7; - private long offset_; - /** - * - * - *
-   * The row count of the start row. The first row is counted as row 0. If
-   * offset is unspecified, it is treated as 0. If offset is zero, then this
-   * method will return the first page of results with `limit` entries.
-   * To learn more about this pagination parameter, see
-   * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
-   * 
- * - * int64 offset = 7; - * - * @return The offset. - */ - @java.lang.Override - public long getOffset() { - return offset_; - } - - public static final int LIMIT_FIELD_NUMBER = 8; - private long limit_; - /** - * - * - *
-   * The number of rows to return. If unspecified, 10,000 rows are returned. The
-   * API returns a maximum of 100,000 rows per request, no matter how many you
-   * ask for. `limit` must be positive.
-   * The API may return fewer rows than the requested `limit`, if there aren't
-   * as many remaining rows as the `limit`. For instance, there are fewer than
-   * 300 possible values for the dimension `country`, so when reporting on only
-   * `country`, you can't get more than 300 rows, even if you set `limit` to a
-   * higher value.
-   * To learn more about this pagination parameter, see
-   * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
-   * 
- * - * int64 limit = 8; - * - * @return The limit. - */ - @java.lang.Override - public long getLimit() { - return limit_; - } - - public static final int TIME_ZONE_FIELD_NUMBER = 9; - private volatile java.lang.Object timeZone_; - /** - * - * - *
-   * This request's time zone if specified. If unspecified, the property's time
-   * zone is used. The request's time zone is used to interpret the start & end
-   * dates of the report.
-   * Formatted as strings from the IANA Time Zone database
-   * (https://www.iana.org/time-zones); for example "America/New_York" or
-   * "Asia/Tokyo".
-   * 
- * - * string time_zone = 9; - * - * @return The timeZone. - */ - @java.lang.Override - public java.lang.String getTimeZone() { - java.lang.Object ref = timeZone_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - timeZone_ = s; - return s; - } - } - /** - * - * - *
-   * This request's time zone if specified. If unspecified, the property's time
-   * zone is used. The request's time zone is used to interpret the start & end
-   * dates of the report.
-   * Formatted as strings from the IANA Time Zone database
-   * (https://www.iana.org/time-zones); for example "America/New_York" or
-   * "Asia/Tokyo".
-   * 
- * - * string time_zone = 9; - * - * @return The bytes for timeZone. - */ - @java.lang.Override - public com.google.protobuf.ByteString getTimeZoneBytes() { - java.lang.Object ref = timeZone_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - timeZone_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ORDER_BYS_FIELD_NUMBER = 10; - private java.util.List orderBys_; - /** - * - * - *
-   * Specifies how rows are ordered in the response.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessOrderBy order_bys = 10; - */ - @java.lang.Override - public java.util.List getOrderBysList() { - return orderBys_; - } - /** - * - * - *
-   * Specifies how rows are ordered in the response.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessOrderBy order_bys = 10; - */ - @java.lang.Override - public java.util.List - getOrderBysOrBuilderList() { - return orderBys_; - } - /** - * - * - *
-   * Specifies how rows are ordered in the response.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessOrderBy order_bys = 10; - */ - @java.lang.Override - public int getOrderBysCount() { - return orderBys_.size(); - } - /** - * - * - *
-   * Specifies how rows are ordered in the response.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessOrderBy order_bys = 10; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessOrderBy getOrderBys(int index) { - return orderBys_.get(index); - } - /** - * - * - *
-   * Specifies how rows are ordered in the response.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessOrderBy order_bys = 10; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessOrderByOrBuilder getOrderBysOrBuilder(int index) { - return orderBys_.get(index); - } - - public static final int RETURN_ENTITY_QUOTA_FIELD_NUMBER = 11; - private boolean returnEntityQuota_; - /** - * - * - *
-   * Toggles whether to return the current state of this Analytics Property's
-   * quota. Quota is returned in [AccessQuota](#AccessQuota).
-   * 
- * - * bool return_entity_quota = 11; - * - * @return The returnEntityQuota. - */ - @java.lang.Override - public boolean getReturnEntityQuota() { - return returnEntityQuota_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entity_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, entity_); - } - for (int i = 0; i < dimensions_.size(); i++) { - output.writeMessage(2, dimensions_.get(i)); - } - for (int i = 0; i < metrics_.size(); i++) { - output.writeMessage(3, metrics_.get(i)); - } - for (int i = 0; i < dateRanges_.size(); i++) { - output.writeMessage(4, dateRanges_.get(i)); - } - if (dimensionFilter_ != null) { - output.writeMessage(5, getDimensionFilter()); - } - if (metricFilter_ != null) { - output.writeMessage(6, getMetricFilter()); - } - if (offset_ != 0L) { - output.writeInt64(7, offset_); - } - if (limit_ != 0L) { - output.writeInt64(8, limit_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(timeZone_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 9, timeZone_); - } - for (int i = 0; i < orderBys_.size(); i++) { - output.writeMessage(10, orderBys_.get(i)); - } - if (returnEntityQuota_ != false) { - output.writeBool(11, returnEntityQuota_); - } - getUnknownFields().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.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; - 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.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(); - entity_ = ""; - - if (dimensionsBuilder_ == null) { - dimensions_ = java.util.Collections.emptyList(); - } else { - dimensions_ = null; - dimensionsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - if (metricsBuilder_ == null) { - metrics_ = java.util.Collections.emptyList(); - } else { - metrics_ = null; - metricsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000002); - if (dateRangesBuilder_ == null) { - dateRanges_ = java.util.Collections.emptyList(); - } else { - dateRanges_ = null; - dateRangesBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000004); - if (dimensionFilterBuilder_ == null) { - dimensionFilter_ = null; - } else { - dimensionFilter_ = null; - dimensionFilterBuilder_ = null; - } - if (metricFilterBuilder_ == null) { - metricFilter_ = null; - } else { - metricFilter_ = null; - metricFilterBuilder_ = null; - } - offset_ = 0L; - - limit_ = 0L; - - timeZone_ = ""; - - if (orderBysBuilder_ == null) { - orderBys_ = java.util.Collections.emptyList(); - } else { - orderBys_ = null; - orderBysBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000008); - returnEntityQuota_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_RunAccessReportRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.RunAccessReportRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.RunAccessReportRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.RunAccessReportRequest build() { - com.google.analytics.admin.v1alpha.RunAccessReportRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.RunAccessReportRequest buildPartial() { - com.google.analytics.admin.v1alpha.RunAccessReportRequest result = - new com.google.analytics.admin.v1alpha.RunAccessReportRequest(this); - int from_bitField0_ = bitField0_; - result.entity_ = entity_; - if (dimensionsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - dimensions_ = java.util.Collections.unmodifiableList(dimensions_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.dimensions_ = dimensions_; - } else { - result.dimensions_ = dimensionsBuilder_.build(); - } - if (metricsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - metrics_ = java.util.Collections.unmodifiableList(metrics_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.metrics_ = metrics_; - } else { - result.metrics_ = metricsBuilder_.build(); - } - if (dateRangesBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { - dateRanges_ = java.util.Collections.unmodifiableList(dateRanges_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.dateRanges_ = dateRanges_; - } else { - result.dateRanges_ = dateRangesBuilder_.build(); - } - if (dimensionFilterBuilder_ == null) { - result.dimensionFilter_ = dimensionFilter_; - } else { - result.dimensionFilter_ = dimensionFilterBuilder_.build(); - } - if (metricFilterBuilder_ == null) { - result.metricFilter_ = metricFilter_; - } else { - result.metricFilter_ = metricFilterBuilder_.build(); - } - result.offset_ = offset_; - result.limit_ = limit_; - result.timeZone_ = timeZone_; - if (orderBysBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0)) { - orderBys_ = java.util.Collections.unmodifiableList(orderBys_); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.orderBys_ = orderBys_; - } else { - result.orderBys_ = orderBysBuilder_.build(); - } - result.returnEntityQuota_ = returnEntityQuota_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.RunAccessReportRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.RunAccessReportRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.RunAccessReportRequest other) { - if (other == com.google.analytics.admin.v1alpha.RunAccessReportRequest.getDefaultInstance()) - return this; - if (!other.getEntity().isEmpty()) { - entity_ = other.entity_; - onChanged(); - } - if (dimensionsBuilder_ == null) { - if (!other.dimensions_.isEmpty()) { - if (dimensions_.isEmpty()) { - dimensions_ = other.dimensions_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureDimensionsIsMutable(); - dimensions_.addAll(other.dimensions_); - } - onChanged(); - } - } else { - if (!other.dimensions_.isEmpty()) { - if (dimensionsBuilder_.isEmpty()) { - dimensionsBuilder_.dispose(); - dimensionsBuilder_ = null; - dimensions_ = other.dimensions_; - bitField0_ = (bitField0_ & ~0x00000001); - dimensionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getDimensionsFieldBuilder() - : null; - } else { - dimensionsBuilder_.addAllMessages(other.dimensions_); - } - } - } - if (metricsBuilder_ == null) { - if (!other.metrics_.isEmpty()) { - if (metrics_.isEmpty()) { - metrics_ = other.metrics_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureMetricsIsMutable(); - metrics_.addAll(other.metrics_); - } - onChanged(); - } - } else { - if (!other.metrics_.isEmpty()) { - if (metricsBuilder_.isEmpty()) { - metricsBuilder_.dispose(); - metricsBuilder_ = null; - metrics_ = other.metrics_; - bitField0_ = (bitField0_ & ~0x00000002); - metricsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getMetricsFieldBuilder() - : null; - } else { - metricsBuilder_.addAllMessages(other.metrics_); - } - } - } - if (dateRangesBuilder_ == null) { - if (!other.dateRanges_.isEmpty()) { - if (dateRanges_.isEmpty()) { - dateRanges_ = other.dateRanges_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureDateRangesIsMutable(); - dateRanges_.addAll(other.dateRanges_); - } - onChanged(); - } - } else { - if (!other.dateRanges_.isEmpty()) { - if (dateRangesBuilder_.isEmpty()) { - dateRangesBuilder_.dispose(); - dateRangesBuilder_ = null; - dateRanges_ = other.dateRanges_; - bitField0_ = (bitField0_ & ~0x00000004); - dateRangesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getDateRangesFieldBuilder() - : null; - } else { - dateRangesBuilder_.addAllMessages(other.dateRanges_); - } - } - } - if (other.hasDimensionFilter()) { - mergeDimensionFilter(other.getDimensionFilter()); - } - if (other.hasMetricFilter()) { - mergeMetricFilter(other.getMetricFilter()); - } - if (other.getOffset() != 0L) { - setOffset(other.getOffset()); - } - if (other.getLimit() != 0L) { - setLimit(other.getLimit()); - } - if (!other.getTimeZone().isEmpty()) { - timeZone_ = other.timeZone_; - onChanged(); - } - if (orderBysBuilder_ == null) { - if (!other.orderBys_.isEmpty()) { - if (orderBys_.isEmpty()) { - orderBys_ = other.orderBys_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensureOrderBysIsMutable(); - orderBys_.addAll(other.orderBys_); - } - onChanged(); - } - } else { - if (!other.orderBys_.isEmpty()) { - if (orderBysBuilder_.isEmpty()) { - orderBysBuilder_.dispose(); - orderBysBuilder_ = null; - orderBys_ = other.orderBys_; - bitField0_ = (bitField0_ & ~0x00000008); - orderBysBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getOrderBysFieldBuilder() - : null; - } else { - orderBysBuilder_.addAllMessages(other.orderBys_); - } - } - } - if (other.getReturnEntityQuota() != false) { - setReturnEntityQuota(other.getReturnEntityQuota()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - 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); - - break; - } // case 42 - case 50: - { - input.readMessage(getMetricFilterFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 50 - case 56: - { - offset_ = input.readInt64(); - - break; - } // case 56 - case 64: - { - limit_ = input.readInt64(); - - break; - } // case 64 - case 74: - { - timeZone_ = input.readStringRequireUtf8(); - - 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(); - - 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 is requested for this property.
-     * For example if "123" is your GA4 property ID, then entity should be
-     * "properties/123".
-     * 
- * - * string entity = 1; - * - * @return The entity. - */ - public java.lang.String getEntity() { - java.lang.Object ref = entity_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - entity_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The Data Access Report is requested for this property.
-     * For example if "123" is your GA4 property ID, then entity should be
-     * "properties/123".
-     * 
- * - * string entity = 1; - * - * @return The bytes for entity. - */ - public com.google.protobuf.ByteString getEntityBytes() { - java.lang.Object ref = entity_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - entity_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The Data Access Report is requested for this property.
-     * For example if "123" is your GA4 property ID, then entity should be
-     * "properties/123".
-     * 
- * - * string entity = 1; - * - * @param value The entity to set. - * @return This builder for chaining. - */ - public Builder setEntity(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - entity_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The Data Access Report is requested for this property.
-     * For example if "123" is your GA4 property ID, then entity should be
-     * "properties/123".
-     * 
- * - * string entity = 1; - * - * @return This builder for chaining. - */ - public Builder clearEntity() { - - entity_ = getDefaultInstance().getEntity(); - onChanged(); - return this; - } - /** - * - * - *
-     * The Data Access Report is requested for this property.
-     * For example if "123" is your GA4 property ID, then entity should be
-     * "properties/123".
-     * 
- * - * string entity = 1; - * - * @param value The bytes for entity to set. - * @return This builder for chaining. - */ - public Builder setEntityBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - entity_ = value; - onChanged(); - return this; - } - - private java.util.List dimensions_ = - java.util.Collections.emptyList(); - - private void ensureDimensionsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - dimensions_ = - new java.util.ArrayList( - dimensions_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessDimension, - com.google.analytics.admin.v1alpha.AccessDimension.Builder, - com.google.analytics.admin.v1alpha.AccessDimensionOrBuilder> - dimensionsBuilder_; - - /** - * - * - *
-     * The dimensions requested and displayed in the response. Requests are
-     * allowed up to 9 dimensions.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDimension dimensions = 2; - */ - public java.util.List getDimensionsList() { - if (dimensionsBuilder_ == null) { - return java.util.Collections.unmodifiableList(dimensions_); - } else { - return dimensionsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * The dimensions requested and displayed in the response. Requests are
-     * allowed up to 9 dimensions.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDimension dimensions = 2; - */ - public int getDimensionsCount() { - if (dimensionsBuilder_ == null) { - return dimensions_.size(); - } else { - return dimensionsBuilder_.getCount(); - } - } - /** - * - * - *
-     * The dimensions requested and displayed in the response. Requests are
-     * allowed up to 9 dimensions.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDimension dimensions = 2; - */ - public com.google.analytics.admin.v1alpha.AccessDimension getDimensions(int index) { - if (dimensionsBuilder_ == null) { - return dimensions_.get(index); - } else { - return dimensionsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * The dimensions requested and displayed in the response. Requests are
-     * allowed up to 9 dimensions.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDimension dimensions = 2; - */ - public Builder setDimensions( - int index, com.google.analytics.admin.v1alpha.AccessDimension value) { - if (dimensionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDimensionsIsMutable(); - dimensions_.set(index, value); - onChanged(); - } else { - dimensionsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The dimensions requested and displayed in the response. Requests are
-     * allowed up to 9 dimensions.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDimension dimensions = 2; - */ - public Builder setDimensions( - int index, com.google.analytics.admin.v1alpha.AccessDimension.Builder builderForValue) { - if (dimensionsBuilder_ == null) { - ensureDimensionsIsMutable(); - dimensions_.set(index, builderForValue.build()); - onChanged(); - } else { - dimensionsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The dimensions requested and displayed in the response. Requests are
-     * allowed up to 9 dimensions.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDimension dimensions = 2; - */ - public Builder addDimensions(com.google.analytics.admin.v1alpha.AccessDimension value) { - if (dimensionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDimensionsIsMutable(); - dimensions_.add(value); - onChanged(); - } else { - dimensionsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * The dimensions requested and displayed in the response. Requests are
-     * allowed up to 9 dimensions.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDimension dimensions = 2; - */ - public Builder addDimensions( - int index, com.google.analytics.admin.v1alpha.AccessDimension value) { - if (dimensionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDimensionsIsMutable(); - dimensions_.add(index, value); - onChanged(); - } else { - dimensionsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The dimensions requested and displayed in the response. Requests are
-     * allowed up to 9 dimensions.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDimension dimensions = 2; - */ - public Builder addDimensions( - com.google.analytics.admin.v1alpha.AccessDimension.Builder builderForValue) { - if (dimensionsBuilder_ == null) { - ensureDimensionsIsMutable(); - dimensions_.add(builderForValue.build()); - onChanged(); - } else { - dimensionsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The dimensions requested and displayed in the response. Requests are
-     * allowed up to 9 dimensions.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDimension dimensions = 2; - */ - public Builder addDimensions( - int index, com.google.analytics.admin.v1alpha.AccessDimension.Builder builderForValue) { - if (dimensionsBuilder_ == null) { - ensureDimensionsIsMutable(); - dimensions_.add(index, builderForValue.build()); - onChanged(); - } else { - dimensionsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The dimensions requested and displayed in the response. Requests are
-     * allowed up to 9 dimensions.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDimension dimensions = 2; - */ - public Builder addAllDimensions( - java.lang.Iterable values) { - if (dimensionsBuilder_ == null) { - ensureDimensionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dimensions_); - onChanged(); - } else { - dimensionsBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * The dimensions requested and displayed in the response. Requests are
-     * allowed up to 9 dimensions.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDimension dimensions = 2; - */ - public Builder clearDimensions() { - if (dimensionsBuilder_ == null) { - dimensions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - dimensionsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * The dimensions requested and displayed in the response. Requests are
-     * allowed up to 9 dimensions.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDimension dimensions = 2; - */ - public Builder removeDimensions(int index) { - if (dimensionsBuilder_ == null) { - ensureDimensionsIsMutable(); - dimensions_.remove(index); - onChanged(); - } else { - dimensionsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * The dimensions requested and displayed in the response. Requests are
-     * allowed up to 9 dimensions.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDimension dimensions = 2; - */ - public com.google.analytics.admin.v1alpha.AccessDimension.Builder getDimensionsBuilder( - int index) { - return getDimensionsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * The dimensions requested and displayed in the response. Requests are
-     * allowed up to 9 dimensions.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDimension dimensions = 2; - */ - public com.google.analytics.admin.v1alpha.AccessDimensionOrBuilder getDimensionsOrBuilder( - int index) { - if (dimensionsBuilder_ == null) { - return dimensions_.get(index); - } else { - return dimensionsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * The dimensions requested and displayed in the response. Requests are
-     * allowed up to 9 dimensions.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDimension dimensions = 2; - */ - public java.util.List - getDimensionsOrBuilderList() { - if (dimensionsBuilder_ != null) { - return dimensionsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(dimensions_); - } - } - /** - * - * - *
-     * The dimensions requested and displayed in the response. Requests are
-     * allowed up to 9 dimensions.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDimension dimensions = 2; - */ - public com.google.analytics.admin.v1alpha.AccessDimension.Builder addDimensionsBuilder() { - return getDimensionsFieldBuilder() - .addBuilder(com.google.analytics.admin.v1alpha.AccessDimension.getDefaultInstance()); - } - /** - * - * - *
-     * The dimensions requested and displayed in the response. Requests are
-     * allowed up to 9 dimensions.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDimension dimensions = 2; - */ - public com.google.analytics.admin.v1alpha.AccessDimension.Builder addDimensionsBuilder( - int index) { - return getDimensionsFieldBuilder() - .addBuilder( - index, com.google.analytics.admin.v1alpha.AccessDimension.getDefaultInstance()); - } - /** - * - * - *
-     * The dimensions requested and displayed in the response. Requests are
-     * allowed up to 9 dimensions.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDimension dimensions = 2; - */ - public java.util.List - getDimensionsBuilderList() { - return getDimensionsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessDimension, - com.google.analytics.admin.v1alpha.AccessDimension.Builder, - com.google.analytics.admin.v1alpha.AccessDimensionOrBuilder> - getDimensionsFieldBuilder() { - if (dimensionsBuilder_ == null) { - dimensionsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessDimension, - com.google.analytics.admin.v1alpha.AccessDimension.Builder, - com.google.analytics.admin.v1alpha.AccessDimensionOrBuilder>( - dimensions_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); - dimensions_ = null; - } - return dimensionsBuilder_; - } - - private java.util.List metrics_ = - java.util.Collections.emptyList(); - - private void ensureMetricsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - metrics_ = - new java.util.ArrayList(metrics_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessMetric, - com.google.analytics.admin.v1alpha.AccessMetric.Builder, - com.google.analytics.admin.v1alpha.AccessMetricOrBuilder> - metricsBuilder_; - - /** - * - * - *
-     * The metrics requested and displayed in the response. Requests are allowed
-     * up to 10 metrics.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessMetric metrics = 3; - */ - public java.util.List getMetricsList() { - if (metricsBuilder_ == null) { - return java.util.Collections.unmodifiableList(metrics_); - } else { - return metricsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * The metrics requested and displayed in the response. Requests are allowed
-     * up to 10 metrics.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessMetric metrics = 3; - */ - public int getMetricsCount() { - if (metricsBuilder_ == null) { - return metrics_.size(); - } else { - return metricsBuilder_.getCount(); - } - } - /** - * - * - *
-     * The metrics requested and displayed in the response. Requests are allowed
-     * up to 10 metrics.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessMetric metrics = 3; - */ - public com.google.analytics.admin.v1alpha.AccessMetric getMetrics(int index) { - if (metricsBuilder_ == null) { - return metrics_.get(index); - } else { - return metricsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * The metrics requested and displayed in the response. Requests are allowed
-     * up to 10 metrics.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessMetric metrics = 3; - */ - public Builder setMetrics(int index, com.google.analytics.admin.v1alpha.AccessMetric value) { - if (metricsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMetricsIsMutable(); - metrics_.set(index, value); - onChanged(); - } else { - metricsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The metrics requested and displayed in the response. Requests are allowed
-     * up to 10 metrics.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessMetric metrics = 3; - */ - public Builder setMetrics( - int index, com.google.analytics.admin.v1alpha.AccessMetric.Builder builderForValue) { - if (metricsBuilder_ == null) { - ensureMetricsIsMutable(); - metrics_.set(index, builderForValue.build()); - onChanged(); - } else { - metricsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The metrics requested and displayed in the response. Requests are allowed
-     * up to 10 metrics.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessMetric metrics = 3; - */ - public Builder addMetrics(com.google.analytics.admin.v1alpha.AccessMetric value) { - if (metricsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMetricsIsMutable(); - metrics_.add(value); - onChanged(); - } else { - metricsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * The metrics requested and displayed in the response. Requests are allowed
-     * up to 10 metrics.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessMetric metrics = 3; - */ - public Builder addMetrics(int index, com.google.analytics.admin.v1alpha.AccessMetric value) { - if (metricsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMetricsIsMutable(); - metrics_.add(index, value); - onChanged(); - } else { - metricsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The metrics requested and displayed in the response. Requests are allowed
-     * up to 10 metrics.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessMetric metrics = 3; - */ - public Builder addMetrics( - com.google.analytics.admin.v1alpha.AccessMetric.Builder builderForValue) { - if (metricsBuilder_ == null) { - ensureMetricsIsMutable(); - metrics_.add(builderForValue.build()); - onChanged(); - } else { - metricsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The metrics requested and displayed in the response. Requests are allowed
-     * up to 10 metrics.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessMetric metrics = 3; - */ - public Builder addMetrics( - int index, com.google.analytics.admin.v1alpha.AccessMetric.Builder builderForValue) { - if (metricsBuilder_ == null) { - ensureMetricsIsMutable(); - metrics_.add(index, builderForValue.build()); - onChanged(); - } else { - metricsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The metrics requested and displayed in the response. Requests are allowed
-     * up to 10 metrics.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessMetric metrics = 3; - */ - public Builder addAllMetrics( - java.lang.Iterable values) { - if (metricsBuilder_ == null) { - ensureMetricsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, metrics_); - onChanged(); - } else { - metricsBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * The metrics requested and displayed in the response. Requests are allowed
-     * up to 10 metrics.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessMetric metrics = 3; - */ - public Builder clearMetrics() { - if (metricsBuilder_ == null) { - metrics_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - metricsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * The metrics requested and displayed in the response. Requests are allowed
-     * up to 10 metrics.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessMetric metrics = 3; - */ - public Builder removeMetrics(int index) { - if (metricsBuilder_ == null) { - ensureMetricsIsMutable(); - metrics_.remove(index); - onChanged(); - } else { - metricsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * The metrics requested and displayed in the response. Requests are allowed
-     * up to 10 metrics.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessMetric metrics = 3; - */ - public com.google.analytics.admin.v1alpha.AccessMetric.Builder getMetricsBuilder(int index) { - return getMetricsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * The metrics requested and displayed in the response. Requests are allowed
-     * up to 10 metrics.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessMetric metrics = 3; - */ - public com.google.analytics.admin.v1alpha.AccessMetricOrBuilder getMetricsOrBuilder(int index) { - if (metricsBuilder_ == null) { - return metrics_.get(index); - } else { - return metricsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * The metrics requested and displayed in the response. Requests are allowed
-     * up to 10 metrics.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessMetric metrics = 3; - */ - public java.util.List - getMetricsOrBuilderList() { - if (metricsBuilder_ != null) { - return metricsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(metrics_); - } - } - /** - * - * - *
-     * The metrics requested and displayed in the response. Requests are allowed
-     * up to 10 metrics.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessMetric metrics = 3; - */ - public com.google.analytics.admin.v1alpha.AccessMetric.Builder addMetricsBuilder() { - return getMetricsFieldBuilder() - .addBuilder(com.google.analytics.admin.v1alpha.AccessMetric.getDefaultInstance()); - } - /** - * - * - *
-     * The metrics requested and displayed in the response. Requests are allowed
-     * up to 10 metrics.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessMetric metrics = 3; - */ - public com.google.analytics.admin.v1alpha.AccessMetric.Builder addMetricsBuilder(int index) { - return getMetricsFieldBuilder() - .addBuilder(index, com.google.analytics.admin.v1alpha.AccessMetric.getDefaultInstance()); - } - /** - * - * - *
-     * The metrics requested and displayed in the response. Requests are allowed
-     * up to 10 metrics.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessMetric metrics = 3; - */ - public java.util.List - getMetricsBuilderList() { - return getMetricsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessMetric, - com.google.analytics.admin.v1alpha.AccessMetric.Builder, - com.google.analytics.admin.v1alpha.AccessMetricOrBuilder> - getMetricsFieldBuilder() { - if (metricsBuilder_ == null) { - metricsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessMetric, - com.google.analytics.admin.v1alpha.AccessMetric.Builder, - com.google.analytics.admin.v1alpha.AccessMetricOrBuilder>( - metrics_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); - metrics_ = null; - } - return metricsBuilder_; - } - - private java.util.List dateRanges_ = - java.util.Collections.emptyList(); - - private void ensureDateRangesIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - dateRanges_ = - new java.util.ArrayList( - dateRanges_); - bitField0_ |= 0x00000004; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessDateRange, - com.google.analytics.admin.v1alpha.AccessDateRange.Builder, - com.google.analytics.admin.v1alpha.AccessDateRangeOrBuilder> - dateRangesBuilder_; - - /** - * - * - *
-     * Date ranges of access records to read. If multiple date ranges are
-     * requested, each response row will contain a zero based date range index. If
-     * two date ranges overlap, the access records for the overlapping days is
-     * included in the response rows for both date ranges. Requests are allowed up
-     * to 2 date ranges.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDateRange date_ranges = 4; - */ - public java.util.List getDateRangesList() { - if (dateRangesBuilder_ == null) { - return java.util.Collections.unmodifiableList(dateRanges_); - } else { - return dateRangesBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * Date ranges of access records to read. If multiple date ranges are
-     * requested, each response row will contain a zero based date range index. If
-     * two date ranges overlap, the access records for the overlapping days is
-     * included in the response rows for both date ranges. Requests are allowed up
-     * to 2 date ranges.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDateRange date_ranges = 4; - */ - public int getDateRangesCount() { - if (dateRangesBuilder_ == null) { - return dateRanges_.size(); - } else { - return dateRangesBuilder_.getCount(); - } - } - /** - * - * - *
-     * Date ranges of access records to read. If multiple date ranges are
-     * requested, each response row will contain a zero based date range index. If
-     * two date ranges overlap, the access records for the overlapping days is
-     * included in the response rows for both date ranges. Requests are allowed up
-     * to 2 date ranges.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDateRange date_ranges = 4; - */ - public com.google.analytics.admin.v1alpha.AccessDateRange getDateRanges(int index) { - if (dateRangesBuilder_ == null) { - return dateRanges_.get(index); - } else { - return dateRangesBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * Date ranges of access records to read. If multiple date ranges are
-     * requested, each response row will contain a zero based date range index. If
-     * two date ranges overlap, the access records for the overlapping days is
-     * included in the response rows for both date ranges. Requests are allowed up
-     * to 2 date ranges.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDateRange date_ranges = 4; - */ - public Builder setDateRanges( - int index, com.google.analytics.admin.v1alpha.AccessDateRange value) { - if (dateRangesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDateRangesIsMutable(); - dateRanges_.set(index, value); - onChanged(); - } else { - dateRangesBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Date ranges of access records to read. If multiple date ranges are
-     * requested, each response row will contain a zero based date range index. If
-     * two date ranges overlap, the access records for the overlapping days is
-     * included in the response rows for both date ranges. Requests are allowed up
-     * to 2 date ranges.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDateRange date_ranges = 4; - */ - public Builder setDateRanges( - int index, com.google.analytics.admin.v1alpha.AccessDateRange.Builder builderForValue) { - if (dateRangesBuilder_ == null) { - ensureDateRangesIsMutable(); - dateRanges_.set(index, builderForValue.build()); - onChanged(); - } else { - dateRangesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Date ranges of access records to read. If multiple date ranges are
-     * requested, each response row will contain a zero based date range index. If
-     * two date ranges overlap, the access records for the overlapping days is
-     * included in the response rows for both date ranges. Requests are allowed up
-     * to 2 date ranges.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDateRange date_ranges = 4; - */ - public Builder addDateRanges(com.google.analytics.admin.v1alpha.AccessDateRange value) { - if (dateRangesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDateRangesIsMutable(); - dateRanges_.add(value); - onChanged(); - } else { - dateRangesBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * Date ranges of access records to read. If multiple date ranges are
-     * requested, each response row will contain a zero based date range index. If
-     * two date ranges overlap, the access records for the overlapping days is
-     * included in the response rows for both date ranges. Requests are allowed up
-     * to 2 date ranges.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDateRange date_ranges = 4; - */ - public Builder addDateRanges( - int index, com.google.analytics.admin.v1alpha.AccessDateRange value) { - if (dateRangesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDateRangesIsMutable(); - dateRanges_.add(index, value); - onChanged(); - } else { - dateRangesBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Date ranges of access records to read. If multiple date ranges are
-     * requested, each response row will contain a zero based date range index. If
-     * two date ranges overlap, the access records for the overlapping days is
-     * included in the response rows for both date ranges. Requests are allowed up
-     * to 2 date ranges.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDateRange date_ranges = 4; - */ - public Builder addDateRanges( - com.google.analytics.admin.v1alpha.AccessDateRange.Builder builderForValue) { - if (dateRangesBuilder_ == null) { - ensureDateRangesIsMutable(); - dateRanges_.add(builderForValue.build()); - onChanged(); - } else { - dateRangesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Date ranges of access records to read. If multiple date ranges are
-     * requested, each response row will contain a zero based date range index. If
-     * two date ranges overlap, the access records for the overlapping days is
-     * included in the response rows for both date ranges. Requests are allowed up
-     * to 2 date ranges.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDateRange date_ranges = 4; - */ - public Builder addDateRanges( - int index, com.google.analytics.admin.v1alpha.AccessDateRange.Builder builderForValue) { - if (dateRangesBuilder_ == null) { - ensureDateRangesIsMutable(); - dateRanges_.add(index, builderForValue.build()); - onChanged(); - } else { - dateRangesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Date ranges of access records to read. If multiple date ranges are
-     * requested, each response row will contain a zero based date range index. If
-     * two date ranges overlap, the access records for the overlapping days is
-     * included in the response rows for both date ranges. Requests are allowed up
-     * to 2 date ranges.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDateRange date_ranges = 4; - */ - public Builder addAllDateRanges( - java.lang.Iterable values) { - if (dateRangesBuilder_ == null) { - ensureDateRangesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dateRanges_); - onChanged(); - } else { - dateRangesBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * Date ranges of access records to read. If multiple date ranges are
-     * requested, each response row will contain a zero based date range index. If
-     * two date ranges overlap, the access records for the overlapping days is
-     * included in the response rows for both date ranges. Requests are allowed up
-     * to 2 date ranges.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDateRange date_ranges = 4; - */ - public Builder clearDateRanges() { - if (dateRangesBuilder_ == null) { - dateRanges_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - } else { - dateRangesBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Date ranges of access records to read. If multiple date ranges are
-     * requested, each response row will contain a zero based date range index. If
-     * two date ranges overlap, the access records for the overlapping days is
-     * included in the response rows for both date ranges. Requests are allowed up
-     * to 2 date ranges.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDateRange date_ranges = 4; - */ - public Builder removeDateRanges(int index) { - if (dateRangesBuilder_ == null) { - ensureDateRangesIsMutable(); - dateRanges_.remove(index); - onChanged(); - } else { - dateRangesBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * Date ranges of access records to read. If multiple date ranges are
-     * requested, each response row will contain a zero based date range index. If
-     * two date ranges overlap, the access records for the overlapping days is
-     * included in the response rows for both date ranges. Requests are allowed up
-     * to 2 date ranges.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDateRange date_ranges = 4; - */ - public com.google.analytics.admin.v1alpha.AccessDateRange.Builder getDateRangesBuilder( - int index) { - return getDateRangesFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * Date ranges of access records to read. If multiple date ranges are
-     * requested, each response row will contain a zero based date range index. If
-     * two date ranges overlap, the access records for the overlapping days is
-     * included in the response rows for both date ranges. Requests are allowed up
-     * to 2 date ranges.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDateRange date_ranges = 4; - */ - public com.google.analytics.admin.v1alpha.AccessDateRangeOrBuilder getDateRangesOrBuilder( - int index) { - if (dateRangesBuilder_ == null) { - return dateRanges_.get(index); - } else { - return dateRangesBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * Date ranges of access records to read. If multiple date ranges are
-     * requested, each response row will contain a zero based date range index. If
-     * two date ranges overlap, the access records for the overlapping days is
-     * included in the response rows for both date ranges. Requests are allowed up
-     * to 2 date ranges.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDateRange date_ranges = 4; - */ - public java.util.List - getDateRangesOrBuilderList() { - if (dateRangesBuilder_ != null) { - return dateRangesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(dateRanges_); - } - } - /** - * - * - *
-     * Date ranges of access records to read. If multiple date ranges are
-     * requested, each response row will contain a zero based date range index. If
-     * two date ranges overlap, the access records for the overlapping days is
-     * included in the response rows for both date ranges. Requests are allowed up
-     * to 2 date ranges.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDateRange date_ranges = 4; - */ - public com.google.analytics.admin.v1alpha.AccessDateRange.Builder addDateRangesBuilder() { - return getDateRangesFieldBuilder() - .addBuilder(com.google.analytics.admin.v1alpha.AccessDateRange.getDefaultInstance()); - } - /** - * - * - *
-     * Date ranges of access records to read. If multiple date ranges are
-     * requested, each response row will contain a zero based date range index. If
-     * two date ranges overlap, the access records for the overlapping days is
-     * included in the response rows for both date ranges. Requests are allowed up
-     * to 2 date ranges.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDateRange date_ranges = 4; - */ - public com.google.analytics.admin.v1alpha.AccessDateRange.Builder addDateRangesBuilder( - int index) { - return getDateRangesFieldBuilder() - .addBuilder( - index, com.google.analytics.admin.v1alpha.AccessDateRange.getDefaultInstance()); - } - /** - * - * - *
-     * Date ranges of access records to read. If multiple date ranges are
-     * requested, each response row will contain a zero based date range index. If
-     * two date ranges overlap, the access records for the overlapping days is
-     * included in the response rows for both date ranges. Requests are allowed up
-     * to 2 date ranges.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDateRange date_ranges = 4; - */ - public java.util.List - getDateRangesBuilderList() { - return getDateRangesFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessDateRange, - com.google.analytics.admin.v1alpha.AccessDateRange.Builder, - com.google.analytics.admin.v1alpha.AccessDateRangeOrBuilder> - getDateRangesFieldBuilder() { - if (dateRangesBuilder_ == null) { - dateRangesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessDateRange, - com.google.analytics.admin.v1alpha.AccessDateRange.Builder, - com.google.analytics.admin.v1alpha.AccessDateRangeOrBuilder>( - dateRanges_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); - dateRanges_ = null; - } - return dateRangesBuilder_; - } - - private com.google.analytics.admin.v1alpha.AccessFilterExpression dimensionFilter_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessFilterExpression, - com.google.analytics.admin.v1alpha.AccessFilterExpression.Builder, - com.google.analytics.admin.v1alpha.AccessFilterExpressionOrBuilder> - dimensionFilterBuilder_; - /** - * - * - *
-     * Dimension filters allow you to restrict report response to specific
-     * dimension values which match the filter. For example, filtering on access
-     * records of a single user. To learn more, see [Fundamentals of Dimension
-     * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters)
-     * for examples. Metrics cannot be used in this filter.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessFilterExpression dimension_filter = 5; - * - * @return Whether the dimensionFilter field is set. - */ - public boolean hasDimensionFilter() { - return dimensionFilterBuilder_ != null || dimensionFilter_ != null; - } - /** - * - * - *
-     * Dimension filters allow you to restrict report response to specific
-     * dimension values which match the filter. For example, filtering on access
-     * records of a single user. To learn more, see [Fundamentals of Dimension
-     * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters)
-     * for examples. Metrics cannot be used in this filter.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessFilterExpression dimension_filter = 5; - * - * @return The dimensionFilter. - */ - public com.google.analytics.admin.v1alpha.AccessFilterExpression getDimensionFilter() { - if (dimensionFilterBuilder_ == null) { - return dimensionFilter_ == null - ? com.google.analytics.admin.v1alpha.AccessFilterExpression.getDefaultInstance() - : dimensionFilter_; - } else { - return dimensionFilterBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Dimension filters allow you to restrict report response to specific
-     * dimension values which match the filter. For example, filtering on access
-     * records of a single user. To learn more, see [Fundamentals of Dimension
-     * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters)
-     * for examples. Metrics cannot be used in this filter.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessFilterExpression dimension_filter = 5; - */ - public Builder setDimensionFilter( - com.google.analytics.admin.v1alpha.AccessFilterExpression value) { - if (dimensionFilterBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - dimensionFilter_ = value; - onChanged(); - } else { - dimensionFilterBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Dimension filters allow you to restrict report response to specific
-     * dimension values which match the filter. For example, filtering on access
-     * records of a single user. To learn more, see [Fundamentals of Dimension
-     * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters)
-     * for examples. Metrics cannot be used in this filter.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessFilterExpression dimension_filter = 5; - */ - public Builder setDimensionFilter( - com.google.analytics.admin.v1alpha.AccessFilterExpression.Builder builderForValue) { - if (dimensionFilterBuilder_ == null) { - dimensionFilter_ = builderForValue.build(); - onChanged(); - } else { - dimensionFilterBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Dimension filters allow you to restrict report response to specific
-     * dimension values which match the filter. For example, filtering on access
-     * records of a single user. To learn more, see [Fundamentals of Dimension
-     * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters)
-     * for examples. Metrics cannot be used in this filter.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessFilterExpression dimension_filter = 5; - */ - public Builder mergeDimensionFilter( - com.google.analytics.admin.v1alpha.AccessFilterExpression value) { - if (dimensionFilterBuilder_ == null) { - if (dimensionFilter_ != null) { - dimensionFilter_ = - com.google.analytics.admin.v1alpha.AccessFilterExpression.newBuilder(dimensionFilter_) - .mergeFrom(value) - .buildPartial(); - } else { - dimensionFilter_ = value; - } - onChanged(); - } else { - dimensionFilterBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Dimension filters allow you to restrict report response to specific
-     * dimension values which match the filter. For example, filtering on access
-     * records of a single user. To learn more, see [Fundamentals of Dimension
-     * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters)
-     * for examples. Metrics cannot be used in this filter.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessFilterExpression dimension_filter = 5; - */ - public Builder clearDimensionFilter() { - if (dimensionFilterBuilder_ == null) { - dimensionFilter_ = null; - onChanged(); - } else { - dimensionFilter_ = null; - dimensionFilterBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Dimension filters allow you to restrict report response to specific
-     * dimension values which match the filter. For example, filtering on access
-     * records of a single user. To learn more, see [Fundamentals of Dimension
-     * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters)
-     * for examples. Metrics cannot be used in this filter.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessFilterExpression dimension_filter = 5; - */ - public com.google.analytics.admin.v1alpha.AccessFilterExpression.Builder - getDimensionFilterBuilder() { - - onChanged(); - return getDimensionFilterFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Dimension filters allow you to restrict report response to specific
-     * dimension values which match the filter. For example, filtering on access
-     * records of a single user. To learn more, see [Fundamentals of Dimension
-     * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters)
-     * for examples. Metrics cannot be used in this filter.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessFilterExpression dimension_filter = 5; - */ - public com.google.analytics.admin.v1alpha.AccessFilterExpressionOrBuilder - getDimensionFilterOrBuilder() { - if (dimensionFilterBuilder_ != null) { - return dimensionFilterBuilder_.getMessageOrBuilder(); - } else { - return dimensionFilter_ == null - ? com.google.analytics.admin.v1alpha.AccessFilterExpression.getDefaultInstance() - : dimensionFilter_; - } - } - /** - * - * - *
-     * Dimension filters allow you to restrict report response to specific
-     * dimension values which match the filter. For example, filtering on access
-     * records of a single user. To learn more, see [Fundamentals of Dimension
-     * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters)
-     * for examples. Metrics cannot be used in this filter.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessFilterExpression dimension_filter = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessFilterExpression, - com.google.analytics.admin.v1alpha.AccessFilterExpression.Builder, - com.google.analytics.admin.v1alpha.AccessFilterExpressionOrBuilder> - getDimensionFilterFieldBuilder() { - if (dimensionFilterBuilder_ == null) { - dimensionFilterBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessFilterExpression, - com.google.analytics.admin.v1alpha.AccessFilterExpression.Builder, - com.google.analytics.admin.v1alpha.AccessFilterExpressionOrBuilder>( - getDimensionFilter(), getParentForChildren(), isClean()); - dimensionFilter_ = null; - } - return dimensionFilterBuilder_; - } - - private com.google.analytics.admin.v1alpha.AccessFilterExpression metricFilter_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessFilterExpression, - com.google.analytics.admin.v1alpha.AccessFilterExpression.Builder, - com.google.analytics.admin.v1alpha.AccessFilterExpressionOrBuilder> - metricFilterBuilder_; - /** - * - * - *
-     * Metric filters allow you to restrict report response to specific metric
-     * values which match the filter. Metric filters are applied after aggregating
-     * the report's rows, similar to SQL having-clause. Dimensions cannot be used
-     * in this filter.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessFilterExpression metric_filter = 6; - * - * @return Whether the metricFilter field is set. - */ - public boolean hasMetricFilter() { - return metricFilterBuilder_ != null || metricFilter_ != null; - } - /** - * - * - *
-     * Metric filters allow you to restrict report response to specific metric
-     * values which match the filter. Metric filters are applied after aggregating
-     * the report's rows, similar to SQL having-clause. Dimensions cannot be used
-     * in this filter.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessFilterExpression metric_filter = 6; - * - * @return The metricFilter. - */ - public com.google.analytics.admin.v1alpha.AccessFilterExpression getMetricFilter() { - if (metricFilterBuilder_ == null) { - return metricFilter_ == null - ? com.google.analytics.admin.v1alpha.AccessFilterExpression.getDefaultInstance() - : metricFilter_; - } else { - return metricFilterBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Metric filters allow you to restrict report response to specific metric
-     * values which match the filter. Metric filters are applied after aggregating
-     * the report's rows, similar to SQL having-clause. Dimensions cannot be used
-     * in this filter.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessFilterExpression metric_filter = 6; - */ - public Builder setMetricFilter( - com.google.analytics.admin.v1alpha.AccessFilterExpression value) { - if (metricFilterBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - metricFilter_ = value; - onChanged(); - } else { - metricFilterBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Metric filters allow you to restrict report response to specific metric
-     * values which match the filter. Metric filters are applied after aggregating
-     * the report's rows, similar to SQL having-clause. Dimensions cannot be used
-     * in this filter.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessFilterExpression metric_filter = 6; - */ - public Builder setMetricFilter( - com.google.analytics.admin.v1alpha.AccessFilterExpression.Builder builderForValue) { - if (metricFilterBuilder_ == null) { - metricFilter_ = builderForValue.build(); - onChanged(); - } else { - metricFilterBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Metric filters allow you to restrict report response to specific metric
-     * values which match the filter. Metric filters are applied after aggregating
-     * the report's rows, similar to SQL having-clause. Dimensions cannot be used
-     * in this filter.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessFilterExpression metric_filter = 6; - */ - public Builder mergeMetricFilter( - com.google.analytics.admin.v1alpha.AccessFilterExpression value) { - if (metricFilterBuilder_ == null) { - if (metricFilter_ != null) { - metricFilter_ = - com.google.analytics.admin.v1alpha.AccessFilterExpression.newBuilder(metricFilter_) - .mergeFrom(value) - .buildPartial(); - } else { - metricFilter_ = value; - } - onChanged(); - } else { - metricFilterBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Metric filters allow you to restrict report response to specific metric
-     * values which match the filter. Metric filters are applied after aggregating
-     * the report's rows, similar to SQL having-clause. Dimensions cannot be used
-     * in this filter.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessFilterExpression metric_filter = 6; - */ - public Builder clearMetricFilter() { - if (metricFilterBuilder_ == null) { - metricFilter_ = null; - onChanged(); - } else { - metricFilter_ = null; - metricFilterBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Metric filters allow you to restrict report response to specific metric
-     * values which match the filter. Metric filters are applied after aggregating
-     * the report's rows, similar to SQL having-clause. Dimensions cannot be used
-     * in this filter.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessFilterExpression metric_filter = 6; - */ - public com.google.analytics.admin.v1alpha.AccessFilterExpression.Builder - getMetricFilterBuilder() { - - onChanged(); - return getMetricFilterFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Metric filters allow you to restrict report response to specific metric
-     * values which match the filter. Metric filters are applied after aggregating
-     * the report's rows, similar to SQL having-clause. Dimensions cannot be used
-     * in this filter.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessFilterExpression metric_filter = 6; - */ - public com.google.analytics.admin.v1alpha.AccessFilterExpressionOrBuilder - getMetricFilterOrBuilder() { - if (metricFilterBuilder_ != null) { - return metricFilterBuilder_.getMessageOrBuilder(); - } else { - return metricFilter_ == null - ? com.google.analytics.admin.v1alpha.AccessFilterExpression.getDefaultInstance() - : metricFilter_; - } - } - /** - * - * - *
-     * Metric filters allow you to restrict report response to specific metric
-     * values which match the filter. Metric filters are applied after aggregating
-     * the report's rows, similar to SQL having-clause. Dimensions cannot be used
-     * in this filter.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessFilterExpression metric_filter = 6; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessFilterExpression, - com.google.analytics.admin.v1alpha.AccessFilterExpression.Builder, - com.google.analytics.admin.v1alpha.AccessFilterExpressionOrBuilder> - getMetricFilterFieldBuilder() { - if (metricFilterBuilder_ == null) { - metricFilterBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessFilterExpression, - com.google.analytics.admin.v1alpha.AccessFilterExpression.Builder, - com.google.analytics.admin.v1alpha.AccessFilterExpressionOrBuilder>( - getMetricFilter(), getParentForChildren(), isClean()); - metricFilter_ = null; - } - return metricFilterBuilder_; - } - - private long offset_; - /** - * - * - *
-     * The row count of the start row. The first row is counted as row 0. If
-     * offset is unspecified, it is treated as 0. If offset is zero, then this
-     * method will return the first page of results with `limit` entries.
-     * To learn more about this pagination parameter, see
-     * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
-     * 
- * - * int64 offset = 7; - * - * @return The offset. - */ - @java.lang.Override - public long getOffset() { - return offset_; - } - /** - * - * - *
-     * The row count of the start row. The first row is counted as row 0. If
-     * offset is unspecified, it is treated as 0. If offset is zero, then this
-     * method will return the first page of results with `limit` entries.
-     * To learn more about this pagination parameter, see
-     * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
-     * 
- * - * int64 offset = 7; - * - * @param value The offset to set. - * @return This builder for chaining. - */ - public Builder setOffset(long value) { - - offset_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The row count of the start row. The first row is counted as row 0. If
-     * offset is unspecified, it is treated as 0. If offset is zero, then this
-     * method will return the first page of results with `limit` entries.
-     * To learn more about this pagination parameter, see
-     * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
-     * 
- * - * int64 offset = 7; - * - * @return This builder for chaining. - */ - public Builder clearOffset() { - - offset_ = 0L; - onChanged(); - return this; - } - - private long limit_; - /** - * - * - *
-     * The number of rows to return. If unspecified, 10,000 rows are returned. The
-     * API returns a maximum of 100,000 rows per request, no matter how many you
-     * ask for. `limit` must be positive.
-     * The API may return fewer rows than the requested `limit`, if there aren't
-     * as many remaining rows as the `limit`. For instance, there are fewer than
-     * 300 possible values for the dimension `country`, so when reporting on only
-     * `country`, you can't get more than 300 rows, even if you set `limit` to a
-     * higher value.
-     * To learn more about this pagination parameter, see
-     * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
-     * 
- * - * int64 limit = 8; - * - * @return The limit. - */ - @java.lang.Override - public long getLimit() { - return limit_; - } - /** - * - * - *
-     * The number of rows to return. If unspecified, 10,000 rows are returned. The
-     * API returns a maximum of 100,000 rows per request, no matter how many you
-     * ask for. `limit` must be positive.
-     * The API may return fewer rows than the requested `limit`, if there aren't
-     * as many remaining rows as the `limit`. For instance, there are fewer than
-     * 300 possible values for the dimension `country`, so when reporting on only
-     * `country`, you can't get more than 300 rows, even if you set `limit` to a
-     * higher value.
-     * To learn more about this pagination parameter, see
-     * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
-     * 
- * - * int64 limit = 8; - * - * @param value The limit to set. - * @return This builder for chaining. - */ - public Builder setLimit(long value) { - - limit_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The number of rows to return. If unspecified, 10,000 rows are returned. The
-     * API returns a maximum of 100,000 rows per request, no matter how many you
-     * ask for. `limit` must be positive.
-     * The API may return fewer rows than the requested `limit`, if there aren't
-     * as many remaining rows as the `limit`. For instance, there are fewer than
-     * 300 possible values for the dimension `country`, so when reporting on only
-     * `country`, you can't get more than 300 rows, even if you set `limit` to a
-     * higher value.
-     * To learn more about this pagination parameter, see
-     * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
-     * 
- * - * int64 limit = 8; - * - * @return This builder for chaining. - */ - public Builder clearLimit() { - - limit_ = 0L; - onChanged(); - return this; - } - - private java.lang.Object timeZone_ = ""; - /** - * - * - *
-     * This request's time zone if specified. If unspecified, the property's time
-     * zone is used. The request's time zone is used to interpret the start & end
-     * dates of the report.
-     * Formatted as strings from the IANA Time Zone database
-     * (https://www.iana.org/time-zones); for example "America/New_York" or
-     * "Asia/Tokyo".
-     * 
- * - * string time_zone = 9; - * - * @return The timeZone. - */ - public java.lang.String getTimeZone() { - java.lang.Object ref = timeZone_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - timeZone_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * This request's time zone if specified. If unspecified, the property's time
-     * zone is used. The request's time zone is used to interpret the start & end
-     * dates of the report.
-     * Formatted as strings from the IANA Time Zone database
-     * (https://www.iana.org/time-zones); for example "America/New_York" or
-     * "Asia/Tokyo".
-     * 
- * - * string time_zone = 9; - * - * @return The bytes for timeZone. - */ - public com.google.protobuf.ByteString getTimeZoneBytes() { - java.lang.Object ref = timeZone_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - timeZone_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * This request's time zone if specified. If unspecified, the property's time
-     * zone is used. The request's time zone is used to interpret the start & end
-     * dates of the report.
-     * Formatted as strings from the IANA Time Zone database
-     * (https://www.iana.org/time-zones); for example "America/New_York" or
-     * "Asia/Tokyo".
-     * 
- * - * string time_zone = 9; - * - * @param value The timeZone to set. - * @return This builder for chaining. - */ - public Builder setTimeZone(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - timeZone_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * This request's time zone if specified. If unspecified, the property's time
-     * zone is used. The request's time zone is used to interpret the start & end
-     * dates of the report.
-     * Formatted as strings from the IANA Time Zone database
-     * (https://www.iana.org/time-zones); for example "America/New_York" or
-     * "Asia/Tokyo".
-     * 
- * - * string time_zone = 9; - * - * @return This builder for chaining. - */ - public Builder clearTimeZone() { - - timeZone_ = getDefaultInstance().getTimeZone(); - onChanged(); - return this; - } - /** - * - * - *
-     * This request's time zone if specified. If unspecified, the property's time
-     * zone is used. The request's time zone is used to interpret the start & end
-     * dates of the report.
-     * Formatted as strings from the IANA Time Zone database
-     * (https://www.iana.org/time-zones); for example "America/New_York" or
-     * "Asia/Tokyo".
-     * 
- * - * string time_zone = 9; - * - * @param value The bytes for timeZone to set. - * @return This builder for chaining. - */ - public Builder setTimeZoneBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - timeZone_ = value; - onChanged(); - return this; - } - - private java.util.List orderBys_ = - java.util.Collections.emptyList(); - - private void ensureOrderBysIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { - orderBys_ = - new java.util.ArrayList(orderBys_); - bitField0_ |= 0x00000008; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessOrderBy, - com.google.analytics.admin.v1alpha.AccessOrderBy.Builder, - com.google.analytics.admin.v1alpha.AccessOrderByOrBuilder> - orderBysBuilder_; - - /** - * - * - *
-     * Specifies how rows are ordered in the response.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessOrderBy order_bys = 10; - */ - public java.util.List getOrderBysList() { - if (orderBysBuilder_ == null) { - return java.util.Collections.unmodifiableList(orderBys_); - } else { - return orderBysBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * Specifies how rows are ordered in the response.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessOrderBy order_bys = 10; - */ - public int getOrderBysCount() { - if (orderBysBuilder_ == null) { - return orderBys_.size(); - } else { - return orderBysBuilder_.getCount(); - } - } - /** - * - * - *
-     * Specifies how rows are ordered in the response.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessOrderBy order_bys = 10; - */ - public com.google.analytics.admin.v1alpha.AccessOrderBy getOrderBys(int index) { - if (orderBysBuilder_ == null) { - return orderBys_.get(index); - } else { - return orderBysBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * Specifies how rows are ordered in the response.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessOrderBy order_bys = 10; - */ - public Builder setOrderBys(int index, com.google.analytics.admin.v1alpha.AccessOrderBy value) { - if (orderBysBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOrderBysIsMutable(); - orderBys_.set(index, value); - onChanged(); - } else { - orderBysBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Specifies how rows are ordered in the response.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessOrderBy order_bys = 10; - */ - public Builder setOrderBys( - int index, com.google.analytics.admin.v1alpha.AccessOrderBy.Builder builderForValue) { - if (orderBysBuilder_ == null) { - ensureOrderBysIsMutable(); - orderBys_.set(index, builderForValue.build()); - onChanged(); - } else { - orderBysBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Specifies how rows are ordered in the response.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessOrderBy order_bys = 10; - */ - public Builder addOrderBys(com.google.analytics.admin.v1alpha.AccessOrderBy value) { - if (orderBysBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOrderBysIsMutable(); - orderBys_.add(value); - onChanged(); - } else { - orderBysBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * Specifies how rows are ordered in the response.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessOrderBy order_bys = 10; - */ - public Builder addOrderBys(int index, com.google.analytics.admin.v1alpha.AccessOrderBy value) { - if (orderBysBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOrderBysIsMutable(); - orderBys_.add(index, value); - onChanged(); - } else { - orderBysBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Specifies how rows are ordered in the response.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessOrderBy order_bys = 10; - */ - public Builder addOrderBys( - com.google.analytics.admin.v1alpha.AccessOrderBy.Builder builderForValue) { - if (orderBysBuilder_ == null) { - ensureOrderBysIsMutable(); - orderBys_.add(builderForValue.build()); - onChanged(); - } else { - orderBysBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Specifies how rows are ordered in the response.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessOrderBy order_bys = 10; - */ - public Builder addOrderBys( - int index, com.google.analytics.admin.v1alpha.AccessOrderBy.Builder builderForValue) { - if (orderBysBuilder_ == null) { - ensureOrderBysIsMutable(); - orderBys_.add(index, builderForValue.build()); - onChanged(); - } else { - orderBysBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Specifies how rows are ordered in the response.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessOrderBy order_bys = 10; - */ - public Builder addAllOrderBys( - java.lang.Iterable values) { - if (orderBysBuilder_ == null) { - ensureOrderBysIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, orderBys_); - onChanged(); - } else { - orderBysBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * Specifies how rows are ordered in the response.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessOrderBy order_bys = 10; - */ - public Builder clearOrderBys() { - if (orderBysBuilder_ == null) { - orderBys_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - } else { - orderBysBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Specifies how rows are ordered in the response.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessOrderBy order_bys = 10; - */ - public Builder removeOrderBys(int index) { - if (orderBysBuilder_ == null) { - ensureOrderBysIsMutable(); - orderBys_.remove(index); - onChanged(); - } else { - orderBysBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * Specifies how rows are ordered in the response.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessOrderBy order_bys = 10; - */ - public com.google.analytics.admin.v1alpha.AccessOrderBy.Builder getOrderBysBuilder(int index) { - return getOrderBysFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * Specifies how rows are ordered in the response.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessOrderBy order_bys = 10; - */ - public com.google.analytics.admin.v1alpha.AccessOrderByOrBuilder getOrderBysOrBuilder( - int index) { - if (orderBysBuilder_ == null) { - return orderBys_.get(index); - } else { - return orderBysBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * Specifies how rows are ordered in the response.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessOrderBy order_bys = 10; - */ - public java.util.List - getOrderBysOrBuilderList() { - if (orderBysBuilder_ != null) { - return orderBysBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(orderBys_); - } - } - /** - * - * - *
-     * Specifies how rows are ordered in the response.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessOrderBy order_bys = 10; - */ - public com.google.analytics.admin.v1alpha.AccessOrderBy.Builder addOrderBysBuilder() { - return getOrderBysFieldBuilder() - .addBuilder(com.google.analytics.admin.v1alpha.AccessOrderBy.getDefaultInstance()); - } - /** - * - * - *
-     * Specifies how rows are ordered in the response.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessOrderBy order_bys = 10; - */ - public com.google.analytics.admin.v1alpha.AccessOrderBy.Builder addOrderBysBuilder(int index) { - return getOrderBysFieldBuilder() - .addBuilder(index, com.google.analytics.admin.v1alpha.AccessOrderBy.getDefaultInstance()); - } - /** - * - * - *
-     * Specifies how rows are ordered in the response.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessOrderBy order_bys = 10; - */ - public java.util.List - getOrderBysBuilderList() { - return getOrderBysFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessOrderBy, - com.google.analytics.admin.v1alpha.AccessOrderBy.Builder, - com.google.analytics.admin.v1alpha.AccessOrderByOrBuilder> - getOrderBysFieldBuilder() { - if (orderBysBuilder_ == null) { - orderBysBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessOrderBy, - com.google.analytics.admin.v1alpha.AccessOrderBy.Builder, - com.google.analytics.admin.v1alpha.AccessOrderByOrBuilder>( - orderBys_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); - orderBys_ = null; - } - return orderBysBuilder_; - } - - private boolean returnEntityQuota_; - /** - * - * - *
-     * Toggles whether to return the current state of this Analytics Property's
-     * quota. Quota is returned in [AccessQuota](#AccessQuota).
-     * 
- * - * bool return_entity_quota = 11; - * - * @return The returnEntityQuota. - */ - @java.lang.Override - public boolean getReturnEntityQuota() { - return returnEntityQuota_; - } - /** - * - * - *
-     * Toggles whether to return the current state of this Analytics Property's
-     * quota. Quota is returned in [AccessQuota](#AccessQuota).
-     * 
- * - * bool return_entity_quota = 11; - * - * @param value The returnEntityQuota to set. - * @return This builder for chaining. - */ - public Builder setReturnEntityQuota(boolean value) { - - returnEntityQuota_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Toggles whether to return the current state of this Analytics Property's
-     * quota. Quota is returned in [AccessQuota](#AccessQuota).
-     * 
- * - * bool return_entity_quota = 11; - * - * @return This builder for chaining. - */ - public Builder clearReturnEntityQuota() { - - returnEntityQuota_ = false; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.RunAccessReportRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.RunAccessReportRequest) - private static final com.google.analytics.admin.v1alpha.RunAccessReportRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.RunAccessReportRequest(); - } - - public static com.google.analytics.admin.v1alpha.RunAccessReportRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RunAccessReportRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/RunAccessReportRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/RunAccessReportRequestOrBuilder.java deleted file mode 100644 index a5181e0a..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/RunAccessReportRequestOrBuilder.java +++ /dev/null @@ -1,471 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface RunAccessReportRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.RunAccessReportRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The Data Access Report is requested for this property.
-   * For example if "123" is your GA4 property ID, then entity should be
-   * "properties/123".
-   * 
- * - * string entity = 1; - * - * @return The entity. - */ - java.lang.String getEntity(); - /** - * - * - *
-   * The Data Access Report is requested for this property.
-   * For example if "123" is your GA4 property ID, then entity should be
-   * "properties/123".
-   * 
- * - * string entity = 1; - * - * @return The bytes for entity. - */ - com.google.protobuf.ByteString getEntityBytes(); - - /** - * - * - *
-   * The dimensions requested and displayed in the response. Requests are
-   * allowed up to 9 dimensions.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDimension dimensions = 2; - */ - java.util.List getDimensionsList(); - /** - * - * - *
-   * The dimensions requested and displayed in the response. Requests are
-   * allowed up to 9 dimensions.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDimension dimensions = 2; - */ - com.google.analytics.admin.v1alpha.AccessDimension getDimensions(int index); - /** - * - * - *
-   * The dimensions requested and displayed in the response. Requests are
-   * allowed up to 9 dimensions.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDimension dimensions = 2; - */ - int getDimensionsCount(); - /** - * - * - *
-   * The dimensions requested and displayed in the response. Requests are
-   * allowed up to 9 dimensions.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDimension dimensions = 2; - */ - java.util.List - getDimensionsOrBuilderList(); - /** - * - * - *
-   * The dimensions requested and displayed in the response. Requests are
-   * allowed up to 9 dimensions.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDimension dimensions = 2; - */ - com.google.analytics.admin.v1alpha.AccessDimensionOrBuilder getDimensionsOrBuilder(int index); - - /** - * - * - *
-   * The metrics requested and displayed in the response. Requests are allowed
-   * up to 10 metrics.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessMetric metrics = 3; - */ - java.util.List getMetricsList(); - /** - * - * - *
-   * The metrics requested and displayed in the response. Requests are allowed
-   * up to 10 metrics.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessMetric metrics = 3; - */ - com.google.analytics.admin.v1alpha.AccessMetric getMetrics(int index); - /** - * - * - *
-   * The metrics requested and displayed in the response. Requests are allowed
-   * up to 10 metrics.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessMetric metrics = 3; - */ - int getMetricsCount(); - /** - * - * - *
-   * The metrics requested and displayed in the response. Requests are allowed
-   * up to 10 metrics.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessMetric metrics = 3; - */ - java.util.List - getMetricsOrBuilderList(); - /** - * - * - *
-   * The metrics requested and displayed in the response. Requests are allowed
-   * up to 10 metrics.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessMetric metrics = 3; - */ - com.google.analytics.admin.v1alpha.AccessMetricOrBuilder getMetricsOrBuilder(int index); - - /** - * - * - *
-   * Date ranges of access records to read. If multiple date ranges are
-   * requested, each response row will contain a zero based date range index. If
-   * two date ranges overlap, the access records for the overlapping days is
-   * included in the response rows for both date ranges. Requests are allowed up
-   * to 2 date ranges.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDateRange date_ranges = 4; - */ - java.util.List getDateRangesList(); - /** - * - * - *
-   * Date ranges of access records to read. If multiple date ranges are
-   * requested, each response row will contain a zero based date range index. If
-   * two date ranges overlap, the access records for the overlapping days is
-   * included in the response rows for both date ranges. Requests are allowed up
-   * to 2 date ranges.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDateRange date_ranges = 4; - */ - com.google.analytics.admin.v1alpha.AccessDateRange getDateRanges(int index); - /** - * - * - *
-   * Date ranges of access records to read. If multiple date ranges are
-   * requested, each response row will contain a zero based date range index. If
-   * two date ranges overlap, the access records for the overlapping days is
-   * included in the response rows for both date ranges. Requests are allowed up
-   * to 2 date ranges.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDateRange date_ranges = 4; - */ - int getDateRangesCount(); - /** - * - * - *
-   * Date ranges of access records to read. If multiple date ranges are
-   * requested, each response row will contain a zero based date range index. If
-   * two date ranges overlap, the access records for the overlapping days is
-   * included in the response rows for both date ranges. Requests are allowed up
-   * to 2 date ranges.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDateRange date_ranges = 4; - */ - java.util.List - getDateRangesOrBuilderList(); - /** - * - * - *
-   * Date ranges of access records to read. If multiple date ranges are
-   * requested, each response row will contain a zero based date range index. If
-   * two date ranges overlap, the access records for the overlapping days is
-   * included in the response rows for both date ranges. Requests are allowed up
-   * to 2 date ranges.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDateRange date_ranges = 4; - */ - com.google.analytics.admin.v1alpha.AccessDateRangeOrBuilder getDateRangesOrBuilder(int index); - - /** - * - * - *
-   * Dimension filters allow you to restrict report response to specific
-   * dimension values which match the filter. For example, filtering on access
-   * records of a single user. To learn more, see [Fundamentals of Dimension
-   * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters)
-   * for examples. Metrics cannot be used in this filter.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessFilterExpression dimension_filter = 5; - * - * @return Whether the dimensionFilter field is set. - */ - boolean hasDimensionFilter(); - /** - * - * - *
-   * Dimension filters allow you to restrict report response to specific
-   * dimension values which match the filter. For example, filtering on access
-   * records of a single user. To learn more, see [Fundamentals of Dimension
-   * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters)
-   * for examples. Metrics cannot be used in this filter.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessFilterExpression dimension_filter = 5; - * - * @return The dimensionFilter. - */ - com.google.analytics.admin.v1alpha.AccessFilterExpression getDimensionFilter(); - /** - * - * - *
-   * Dimension filters allow you to restrict report response to specific
-   * dimension values which match the filter. For example, filtering on access
-   * records of a single user. To learn more, see [Fundamentals of Dimension
-   * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters)
-   * for examples. Metrics cannot be used in this filter.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessFilterExpression dimension_filter = 5; - */ - com.google.analytics.admin.v1alpha.AccessFilterExpressionOrBuilder getDimensionFilterOrBuilder(); - - /** - * - * - *
-   * Metric filters allow you to restrict report response to specific metric
-   * values which match the filter. Metric filters are applied after aggregating
-   * the report's rows, similar to SQL having-clause. Dimensions cannot be used
-   * in this filter.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessFilterExpression metric_filter = 6; - * - * @return Whether the metricFilter field is set. - */ - boolean hasMetricFilter(); - /** - * - * - *
-   * Metric filters allow you to restrict report response to specific metric
-   * values which match the filter. Metric filters are applied after aggregating
-   * the report's rows, similar to SQL having-clause. Dimensions cannot be used
-   * in this filter.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessFilterExpression metric_filter = 6; - * - * @return The metricFilter. - */ - com.google.analytics.admin.v1alpha.AccessFilterExpression getMetricFilter(); - /** - * - * - *
-   * Metric filters allow you to restrict report response to specific metric
-   * values which match the filter. Metric filters are applied after aggregating
-   * the report's rows, similar to SQL having-clause. Dimensions cannot be used
-   * in this filter.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessFilterExpression metric_filter = 6; - */ - com.google.analytics.admin.v1alpha.AccessFilterExpressionOrBuilder getMetricFilterOrBuilder(); - - /** - * - * - *
-   * The row count of the start row. The first row is counted as row 0. If
-   * offset is unspecified, it is treated as 0. If offset is zero, then this
-   * method will return the first page of results with `limit` entries.
-   * To learn more about this pagination parameter, see
-   * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
-   * 
- * - * int64 offset = 7; - * - * @return The offset. - */ - long getOffset(); - - /** - * - * - *
-   * The number of rows to return. If unspecified, 10,000 rows are returned. The
-   * API returns a maximum of 100,000 rows per request, no matter how many you
-   * ask for. `limit` must be positive.
-   * The API may return fewer rows than the requested `limit`, if there aren't
-   * as many remaining rows as the `limit`. For instance, there are fewer than
-   * 300 possible values for the dimension `country`, so when reporting on only
-   * `country`, you can't get more than 300 rows, even if you set `limit` to a
-   * higher value.
-   * To learn more about this pagination parameter, see
-   * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
-   * 
- * - * int64 limit = 8; - * - * @return The limit. - */ - long getLimit(); - - /** - * - * - *
-   * This request's time zone if specified. If unspecified, the property's time
-   * zone is used. The request's time zone is used to interpret the start & end
-   * dates of the report.
-   * Formatted as strings from the IANA Time Zone database
-   * (https://www.iana.org/time-zones); for example "America/New_York" or
-   * "Asia/Tokyo".
-   * 
- * - * string time_zone = 9; - * - * @return The timeZone. - */ - java.lang.String getTimeZone(); - /** - * - * - *
-   * This request's time zone if specified. If unspecified, the property's time
-   * zone is used. The request's time zone is used to interpret the start & end
-   * dates of the report.
-   * Formatted as strings from the IANA Time Zone database
-   * (https://www.iana.org/time-zones); for example "America/New_York" or
-   * "Asia/Tokyo".
-   * 
- * - * string time_zone = 9; - * - * @return The bytes for timeZone. - */ - com.google.protobuf.ByteString getTimeZoneBytes(); - - /** - * - * - *
-   * Specifies how rows are ordered in the response.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessOrderBy order_bys = 10; - */ - java.util.List getOrderBysList(); - /** - * - * - *
-   * Specifies how rows are ordered in the response.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessOrderBy order_bys = 10; - */ - com.google.analytics.admin.v1alpha.AccessOrderBy getOrderBys(int index); - /** - * - * - *
-   * Specifies how rows are ordered in the response.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessOrderBy order_bys = 10; - */ - int getOrderBysCount(); - /** - * - * - *
-   * Specifies how rows are ordered in the response.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessOrderBy order_bys = 10; - */ - java.util.List - getOrderBysOrBuilderList(); - /** - * - * - *
-   * Specifies how rows are ordered in the response.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessOrderBy order_bys = 10; - */ - com.google.analytics.admin.v1alpha.AccessOrderByOrBuilder getOrderBysOrBuilder(int index); - - /** - * - * - *
-   * Toggles whether to return the current state of this Analytics Property's
-   * quota. Quota is returned in [AccessQuota](#AccessQuota).
-   * 
- * - * bool return_entity_quota = 11; - * - * @return The returnEntityQuota. - */ - boolean getReturnEntityQuota(); -} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/RunAccessReportResponse.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/RunAccessReportResponse.java deleted file mode 100644 index 3b4d2f3c..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/RunAccessReportResponse.java +++ /dev/null @@ -1,2438 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * The customized Data Access Record Report response.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.RunAccessReportResponse} - */ -public final class RunAccessReportResponse extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.RunAccessReportResponse) - RunAccessReportResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use RunAccessReportResponse.newBuilder() to construct. - private RunAccessReportResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private RunAccessReportResponse() { - dimensionHeaders_ = java.util.Collections.emptyList(); - metricHeaders_ = java.util.Collections.emptyList(); - rows_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new RunAccessReportResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_RunAccessReportResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_RunAccessReportResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.RunAccessReportResponse.class, - com.google.analytics.admin.v1alpha.RunAccessReportResponse.Builder.class); - } - - public static final int DIMENSION_HEADERS_FIELD_NUMBER = 1; - private java.util.List - dimensionHeaders_; - /** - * - * - *
-   * The header for a column in the report that corresponds to a specific
-   * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
-   * matches the dimensions present in rows.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDimensionHeader dimension_headers = 1; - * - */ - @java.lang.Override - public java.util.List - getDimensionHeadersList() { - return dimensionHeaders_; - } - /** - * - * - *
-   * The header for a column in the report that corresponds to a specific
-   * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
-   * matches the dimensions present in rows.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDimensionHeader dimension_headers = 1; - * - */ - @java.lang.Override - public java.util.List - getDimensionHeadersOrBuilderList() { - return dimensionHeaders_; - } - /** - * - * - *
-   * The header for a column in the report that corresponds to a specific
-   * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
-   * matches the dimensions present in rows.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDimensionHeader dimension_headers = 1; - * - */ - @java.lang.Override - public int getDimensionHeadersCount() { - return dimensionHeaders_.size(); - } - /** - * - * - *
-   * The header for a column in the report that corresponds to a specific
-   * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
-   * matches the dimensions present in rows.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDimensionHeader dimension_headers = 1; - * - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessDimensionHeader getDimensionHeaders(int index) { - return dimensionHeaders_.get(index); - } - /** - * - * - *
-   * The header for a column in the report that corresponds to a specific
-   * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
-   * matches the dimensions present in rows.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDimensionHeader dimension_headers = 1; - * - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessDimensionHeaderOrBuilder - getDimensionHeadersOrBuilder(int index) { - return dimensionHeaders_.get(index); - } - - public static final int METRIC_HEADERS_FIELD_NUMBER = 2; - private java.util.List metricHeaders_; - /** - * - * - *
-   * The header for a column in the report that corresponds to a specific
-   * metric. The number of MetricHeaders and ordering of MetricHeaders matches
-   * the metrics present in rows.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessMetricHeader metric_headers = 2; - */ - @java.lang.Override - public java.util.List - getMetricHeadersList() { - return metricHeaders_; - } - /** - * - * - *
-   * The header for a column in the report that corresponds to a specific
-   * metric. The number of MetricHeaders and ordering of MetricHeaders matches
-   * the metrics present in rows.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessMetricHeader metric_headers = 2; - */ - @java.lang.Override - public java.util.List - getMetricHeadersOrBuilderList() { - return metricHeaders_; - } - /** - * - * - *
-   * The header for a column in the report that corresponds to a specific
-   * metric. The number of MetricHeaders and ordering of MetricHeaders matches
-   * the metrics present in rows.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessMetricHeader metric_headers = 2; - */ - @java.lang.Override - public int getMetricHeadersCount() { - return metricHeaders_.size(); - } - /** - * - * - *
-   * The header for a column in the report that corresponds to a specific
-   * metric. The number of MetricHeaders and ordering of MetricHeaders matches
-   * the metrics present in rows.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessMetricHeader metric_headers = 2; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessMetricHeader getMetricHeaders(int index) { - return metricHeaders_.get(index); - } - /** - * - * - *
-   * The header for a column in the report that corresponds to a specific
-   * metric. The number of MetricHeaders and ordering of MetricHeaders matches
-   * the metrics present in rows.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessMetricHeader metric_headers = 2; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessMetricHeaderOrBuilder getMetricHeadersOrBuilder( - int index) { - return metricHeaders_.get(index); - } - - public static final int ROWS_FIELD_NUMBER = 3; - private java.util.List rows_; - /** - * - * - *
-   * Rows of dimension value combinations and metric values in the report.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessRow rows = 3; - */ - @java.lang.Override - public java.util.List getRowsList() { - return rows_; - } - /** - * - * - *
-   * Rows of dimension value combinations and metric values in the report.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessRow rows = 3; - */ - @java.lang.Override - public java.util.List - getRowsOrBuilderList() { - return rows_; - } - /** - * - * - *
-   * Rows of dimension value combinations and metric values in the report.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessRow rows = 3; - */ - @java.lang.Override - public int getRowsCount() { - return rows_.size(); - } - /** - * - * - *
-   * Rows of dimension value combinations and metric values in the report.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessRow rows = 3; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessRow getRows(int index) { - return rows_.get(index); - } - /** - * - * - *
-   * Rows of dimension value combinations and metric values in the report.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessRow rows = 3; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessRowOrBuilder getRowsOrBuilder(int index) { - return rows_.get(index); - } - - public static final int ROW_COUNT_FIELD_NUMBER = 4; - private int rowCount_; - /** - * - * - *
-   * The total number of rows in the query result. `rowCount` is independent of
-   * the number of rows returned in the response, the `limit` request
-   * parameter, and the `offset` request parameter. For example if a query
-   * returns 175 rows and includes `limit` of 50 in the API request, the
-   * response will contain `rowCount` of 175 but only 50 rows.
-   * To learn more about this pagination parameter, see
-   * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
-   * 
- * - * int32 row_count = 4; - * - * @return The rowCount. - */ - @java.lang.Override - public int getRowCount() { - return rowCount_; - } - - public static final int QUOTA_FIELD_NUMBER = 5; - private com.google.analytics.admin.v1alpha.AccessQuota quota_; - /** - * - * - *
-   * The quota state for this Analytics property including this request.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessQuota quota = 5; - * - * @return Whether the quota field is set. - */ - @java.lang.Override - public boolean hasQuota() { - return quota_ != null; - } - /** - * - * - *
-   * The quota state for this Analytics property including this request.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessQuota quota = 5; - * - * @return The quota. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessQuota getQuota() { - return quota_ == null - ? com.google.analytics.admin.v1alpha.AccessQuota.getDefaultInstance() - : quota_; - } - /** - * - * - *
-   * The quota state for this Analytics property including this request.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessQuota quota = 5; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessQuotaOrBuilder getQuotaOrBuilder() { - return getQuota(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - for (int i = 0; i < dimensionHeaders_.size(); i++) { - output.writeMessage(1, dimensionHeaders_.get(i)); - } - for (int i = 0; i < metricHeaders_.size(); i++) { - output.writeMessage(2, metricHeaders_.get(i)); - } - for (int i = 0; i < rows_.size(); i++) { - output.writeMessage(3, rows_.get(i)); - } - if (rowCount_ != 0) { - output.writeInt32(4, rowCount_); - } - if (quota_ != null) { - output.writeMessage(5, getQuota()); - } - 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(); - 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; - - if (quotaBuilder_ == null) { - quota_ = null; - } else { - quota_ = null; - quotaBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_RunAccessReportResponse_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.RunAccessReportResponse getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.RunAccessReportResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.RunAccessReportResponse build() { - com.google.analytics.admin.v1alpha.RunAccessReportResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.RunAccessReportResponse buildPartial() { - com.google.analytics.admin.v1alpha.RunAccessReportResponse result = - new com.google.analytics.admin.v1alpha.RunAccessReportResponse(this); - int from_bitField0_ = bitField0_; - if (dimensionHeadersBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - dimensionHeaders_ = java.util.Collections.unmodifiableList(dimensionHeaders_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.dimensionHeaders_ = dimensionHeaders_; - } else { - result.dimensionHeaders_ = dimensionHeadersBuilder_.build(); - } - if (metricHeadersBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - metricHeaders_ = java.util.Collections.unmodifiableList(metricHeaders_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.metricHeaders_ = metricHeaders_; - } else { - result.metricHeaders_ = metricHeadersBuilder_.build(); - } - if (rowsBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { - rows_ = java.util.Collections.unmodifiableList(rows_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.rows_ = rows_; - } else { - result.rows_ = rowsBuilder_.build(); - } - result.rowCount_ = rowCount_; - if (quotaBuilder_ == null) { - result.quota_ = quota_; - } else { - result.quota_ = quotaBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.RunAccessReportResponse) { - return mergeFrom((com.google.analytics.admin.v1alpha.RunAccessReportResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.RunAccessReportResponse other) { - if (other == com.google.analytics.admin.v1alpha.RunAccessReportResponse.getDefaultInstance()) - return this; - if (dimensionHeadersBuilder_ == null) { - if (!other.dimensionHeaders_.isEmpty()) { - if (dimensionHeaders_.isEmpty()) { - dimensionHeaders_ = other.dimensionHeaders_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureDimensionHeadersIsMutable(); - dimensionHeaders_.addAll(other.dimensionHeaders_); - } - onChanged(); - } - } else { - if (!other.dimensionHeaders_.isEmpty()) { - if (dimensionHeadersBuilder_.isEmpty()) { - dimensionHeadersBuilder_.dispose(); - dimensionHeadersBuilder_ = null; - dimensionHeaders_ = other.dimensionHeaders_; - bitField0_ = (bitField0_ & ~0x00000001); - dimensionHeadersBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getDimensionHeadersFieldBuilder() - : null; - } else { - dimensionHeadersBuilder_.addAllMessages(other.dimensionHeaders_); - } - } - } - if (metricHeadersBuilder_ == null) { - if (!other.metricHeaders_.isEmpty()) { - if (metricHeaders_.isEmpty()) { - metricHeaders_ = other.metricHeaders_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureMetricHeadersIsMutable(); - metricHeaders_.addAll(other.metricHeaders_); - } - onChanged(); - } - } else { - if (!other.metricHeaders_.isEmpty()) { - if (metricHeadersBuilder_.isEmpty()) { - metricHeadersBuilder_.dispose(); - metricHeadersBuilder_ = null; - metricHeaders_ = other.metricHeaders_; - bitField0_ = (bitField0_ & ~0x00000002); - metricHeadersBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getMetricHeadersFieldBuilder() - : null; - } else { - metricHeadersBuilder_.addAllMessages(other.metricHeaders_); - } - } - } - if (rowsBuilder_ == null) { - if (!other.rows_.isEmpty()) { - if (rows_.isEmpty()) { - rows_ = other.rows_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureRowsIsMutable(); - rows_.addAll(other.rows_); - } - onChanged(); - } - } else { - if (!other.rows_.isEmpty()) { - if (rowsBuilder_.isEmpty()) { - rowsBuilder_.dispose(); - rowsBuilder_ = null; - rows_ = other.rows_; - bitField0_ = (bitField0_ & ~0x00000004); - rowsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getRowsFieldBuilder() - : null; - } else { - rowsBuilder_.addAllMessages(other.rows_); - } - } - } - if (other.getRowCount() != 0) { - setRowCount(other.getRowCount()); - } - if (other.hasQuota()) { - mergeQuota(other.getQuota()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 32 - case 42: - { - input.readMessage(getQuotaFieldBuilder().getBuilder(), extensionRegistry); - - 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; - onChanged(); - return this; - } - /** - * - * - *
-     * The total number of rows in the query result. `rowCount` is independent of
-     * the number of rows returned in the response, the `limit` request
-     * parameter, and the `offset` request parameter. For example if a query
-     * returns 175 rows and includes `limit` of 50 in the API request, the
-     * response will contain `rowCount` of 175 but only 50 rows.
-     * To learn more about this pagination parameter, see
-     * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
-     * 
- * - * int32 row_count = 4; - * - * @return This builder for chaining. - */ - public Builder clearRowCount() { - - rowCount_ = 0; - onChanged(); - return this; - } - - private com.google.analytics.admin.v1alpha.AccessQuota quota_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessQuota, - com.google.analytics.admin.v1alpha.AccessQuota.Builder, - com.google.analytics.admin.v1alpha.AccessQuotaOrBuilder> - quotaBuilder_; - /** - * - * - *
-     * The quota state for this Analytics property including this request.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessQuota quota = 5; - * - * @return Whether the quota field is set. - */ - public boolean hasQuota() { - return quotaBuilder_ != null || quota_ != null; - } - /** - * - * - *
-     * The quota state for this Analytics property including this request.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessQuota quota = 5; - * - * @return The quota. - */ - public com.google.analytics.admin.v1alpha.AccessQuota getQuota() { - if (quotaBuilder_ == null) { - return quota_ == null - ? com.google.analytics.admin.v1alpha.AccessQuota.getDefaultInstance() - : quota_; - } else { - return quotaBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The quota state for this Analytics property including this request.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessQuota quota = 5; - */ - public Builder setQuota(com.google.analytics.admin.v1alpha.AccessQuota value) { - if (quotaBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - quota_ = value; - onChanged(); - } else { - quotaBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * The quota state for this Analytics property including this request.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessQuota quota = 5; - */ - public Builder setQuota( - com.google.analytics.admin.v1alpha.AccessQuota.Builder builderForValue) { - if (quotaBuilder_ == null) { - quota_ = builderForValue.build(); - onChanged(); - } else { - quotaBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * The quota state for this Analytics property including this request.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessQuota quota = 5; - */ - public Builder mergeQuota(com.google.analytics.admin.v1alpha.AccessQuota value) { - if (quotaBuilder_ == null) { - if (quota_ != null) { - quota_ = - com.google.analytics.admin.v1alpha.AccessQuota.newBuilder(quota_) - .mergeFrom(value) - .buildPartial(); - } else { - quota_ = value; - } - onChanged(); - } else { - quotaBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * The quota state for this Analytics property including this request.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessQuota quota = 5; - */ - public Builder clearQuota() { - if (quotaBuilder_ == null) { - quota_ = null; - onChanged(); - } else { - quota_ = null; - quotaBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * The quota state for this Analytics property including this request.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessQuota quota = 5; - */ - public com.google.analytics.admin.v1alpha.AccessQuota.Builder getQuotaBuilder() { - - onChanged(); - return getQuotaFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The quota state for this Analytics property including this request.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessQuota quota = 5; - */ - public com.google.analytics.admin.v1alpha.AccessQuotaOrBuilder getQuotaOrBuilder() { - if (quotaBuilder_ != null) { - return quotaBuilder_.getMessageOrBuilder(); - } else { - return quota_ == null - ? com.google.analytics.admin.v1alpha.AccessQuota.getDefaultInstance() - : quota_; - } - } - /** - * - * - *
-     * The quota state for this Analytics property including this request.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessQuota quota = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessQuota, - com.google.analytics.admin.v1alpha.AccessQuota.Builder, - com.google.analytics.admin.v1alpha.AccessQuotaOrBuilder> - getQuotaFieldBuilder() { - if (quotaBuilder_ == null) { - quotaBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessQuota, - com.google.analytics.admin.v1alpha.AccessQuota.Builder, - com.google.analytics.admin.v1alpha.AccessQuotaOrBuilder>( - getQuota(), getParentForChildren(), isClean()); - quota_ = null; - } - return quotaBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.RunAccessReportResponse) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.RunAccessReportResponse) - private static final com.google.analytics.admin.v1alpha.RunAccessReportResponse DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.RunAccessReportResponse(); - } - - public static com.google.analytics.admin.v1alpha.RunAccessReportResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RunAccessReportResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/RunAccessReportResponseOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/RunAccessReportResponseOrBuilder.java deleted file mode 100644 index e066a602..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/RunAccessReportResponseOrBuilder.java +++ /dev/null @@ -1,263 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface RunAccessReportResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.RunAccessReportResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The header for a column in the report that corresponds to a specific
-   * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
-   * matches the dimensions present in rows.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDimensionHeader dimension_headers = 1; - * - */ - java.util.List - getDimensionHeadersList(); - /** - * - * - *
-   * The header for a column in the report that corresponds to a specific
-   * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
-   * matches the dimensions present in rows.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDimensionHeader dimension_headers = 1; - * - */ - com.google.analytics.admin.v1alpha.AccessDimensionHeader getDimensionHeaders(int index); - /** - * - * - *
-   * The header for a column in the report that corresponds to a specific
-   * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
-   * matches the dimensions present in rows.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDimensionHeader dimension_headers = 1; - * - */ - int getDimensionHeadersCount(); - /** - * - * - *
-   * The header for a column in the report that corresponds to a specific
-   * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
-   * matches the dimensions present in rows.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDimensionHeader dimension_headers = 1; - * - */ - java.util.List - getDimensionHeadersOrBuilderList(); - /** - * - * - *
-   * The header for a column in the report that corresponds to a specific
-   * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
-   * matches the dimensions present in rows.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDimensionHeader dimension_headers = 1; - * - */ - com.google.analytics.admin.v1alpha.AccessDimensionHeaderOrBuilder getDimensionHeadersOrBuilder( - int index); - - /** - * - * - *
-   * The header for a column in the report that corresponds to a specific
-   * metric. The number of MetricHeaders and ordering of MetricHeaders matches
-   * the metrics present in rows.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessMetricHeader metric_headers = 2; - */ - java.util.List getMetricHeadersList(); - /** - * - * - *
-   * The header for a column in the report that corresponds to a specific
-   * metric. The number of MetricHeaders and ordering of MetricHeaders matches
-   * the metrics present in rows.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessMetricHeader metric_headers = 2; - */ - com.google.analytics.admin.v1alpha.AccessMetricHeader getMetricHeaders(int index); - /** - * - * - *
-   * The header for a column in the report that corresponds to a specific
-   * metric. The number of MetricHeaders and ordering of MetricHeaders matches
-   * the metrics present in rows.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessMetricHeader metric_headers = 2; - */ - int getMetricHeadersCount(); - /** - * - * - *
-   * The header for a column in the report that corresponds to a specific
-   * metric. The number of MetricHeaders and ordering of MetricHeaders matches
-   * the metrics present in rows.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessMetricHeader metric_headers = 2; - */ - java.util.List - getMetricHeadersOrBuilderList(); - /** - * - * - *
-   * The header for a column in the report that corresponds to a specific
-   * metric. The number of MetricHeaders and ordering of MetricHeaders matches
-   * the metrics present in rows.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessMetricHeader metric_headers = 2; - */ - com.google.analytics.admin.v1alpha.AccessMetricHeaderOrBuilder getMetricHeadersOrBuilder( - int index); - - /** - * - * - *
-   * Rows of dimension value combinations and metric values in the report.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessRow rows = 3; - */ - java.util.List getRowsList(); - /** - * - * - *
-   * Rows of dimension value combinations and metric values in the report.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessRow rows = 3; - */ - com.google.analytics.admin.v1alpha.AccessRow getRows(int index); - /** - * - * - *
-   * Rows of dimension value combinations and metric values in the report.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessRow rows = 3; - */ - int getRowsCount(); - /** - * - * - *
-   * Rows of dimension value combinations and metric values in the report.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessRow rows = 3; - */ - java.util.List - getRowsOrBuilderList(); - /** - * - * - *
-   * Rows of dimension value combinations and metric values in the report.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessRow rows = 3; - */ - com.google.analytics.admin.v1alpha.AccessRowOrBuilder getRowsOrBuilder(int index); - - /** - * - * - *
-   * The total number of rows in the query result. `rowCount` is independent of
-   * the number of rows returned in the response, the `limit` request
-   * parameter, and the `offset` request parameter. For example if a query
-   * returns 175 rows and includes `limit` of 50 in the API request, the
-   * response will contain `rowCount` of 175 but only 50 rows.
-   * To learn more about this pagination parameter, see
-   * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
-   * 
- * - * int32 row_count = 4; - * - * @return The rowCount. - */ - int getRowCount(); - - /** - * - * - *
-   * The quota state for this Analytics property including this request.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessQuota quota = 5; - * - * @return Whether the quota field is set. - */ - boolean hasQuota(); - /** - * - * - *
-   * The quota state for this Analytics property including this request.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessQuota quota = 5; - * - * @return The quota. - */ - com.google.analytics.admin.v1alpha.AccessQuota getQuota(); - /** - * - * - *
-   * The quota state for this Analytics property including this request.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessQuota quota = 5; - */ - com.google.analytics.admin.v1alpha.AccessQuotaOrBuilder getQuotaOrBuilder(); -} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SearchChangeHistoryEventsRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SearchChangeHistoryEventsRequest.java deleted file mode 100644 index f8f6f3c3..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SearchChangeHistoryEventsRequest.java +++ /dev/null @@ -1,2869 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * Request message for 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.EMPTY; - pageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new SearchChangeHistoryEventsRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - 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; - 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; - 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) { - @SuppressWarnings("deprecation") - com.google.analytics.admin.v1alpha.ChangeHistoryResourceType result = - com.google.analytics.admin.v1alpha.ChangeHistoryResourceType.valueOf(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; - 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) { - @SuppressWarnings("deprecation") - com.google.analytics.admin.v1alpha.ActionType result = - com.google.analytics.admin.v1alpha.ActionType.valueOf(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; - private com.google.protobuf.LazyStringList 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 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 getEarliestChangeTime(); - } - - 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 getLatestChangeTime(); - } - - public static final int PAGE_SIZE_FIELD_NUMBER = 8; - 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_; - } - - public static final int PAGE_TOKEN_FIELD_NUMBER = 9; - 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(); - account_ = ""; - - property_ = ""; - - resourceType_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - action_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - actorEmail_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); - if (earliestChangeTimeBuilder_ == null) { - earliestChangeTime_ = null; - } else { - earliestChangeTime_ = null; - earliestChangeTimeBuilder_ = null; - } - if (latestChangeTimeBuilder_ == null) { - latestChangeTime_ = null; - } else { - latestChangeTime_ = null; - 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); - int from_bitField0_ = bitField0_; - result.account_ = account_; - result.property_ = property_; - if (((bitField0_ & 0x00000001) != 0)) { - resourceType_ = java.util.Collections.unmodifiableList(resourceType_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.resourceType_ = resourceType_; - if (((bitField0_ & 0x00000002) != 0)) { - action_ = java.util.Collections.unmodifiableList(action_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.action_ = action_; - if (((bitField0_ & 0x00000004) != 0)) { - actorEmail_ = actorEmail_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.actorEmail_ = actorEmail_; - if (earliestChangeTimeBuilder_ == null) { - result.earliestChangeTime_ = earliestChangeTime_; - } else { - result.earliestChangeTime_ = earliestChangeTimeBuilder_.build(); - } - if (latestChangeTimeBuilder_ == null) { - result.latestChangeTime_ = latestChangeTime_; - } else { - result.latestChangeTime_ = latestChangeTimeBuilder_.build(); - } - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.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_; - onChanged(); - } - if (!other.getProperty().isEmpty()) { - property_ = other.property_; - onChanged(); - } - if (!other.resourceType_.isEmpty()) { - if (resourceType_.isEmpty()) { - resourceType_ = other.resourceType_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureResourceTypeIsMutable(); - resourceType_.addAll(other.resourceType_); - } - onChanged(); - } - if (!other.action_.isEmpty()) { - if (action_.isEmpty()) { - action_ = other.action_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureActionIsMutable(); - action_.addAll(other.action_); - } - onChanged(); - } - if (!other.actorEmail_.isEmpty()) { - if (actorEmail_.isEmpty()) { - actorEmail_ = other.actorEmail_; - bitField0_ = (bitField0_ & ~0x00000004); - } 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_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 18: - { - property_ = input.readStringRequireUtf8(); - - 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); - - break; - } // case 50 - case 58: - { - input.readMessage( - getLatestChangeTimeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 58 - case 64: - { - pageSize_ = input.readInt32(); - - break; - } // case 64 - case 74: - { - pageToken_ = input.readStringRequireUtf8(); - - 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; - 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(); - 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; - 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; - 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(); - 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; - onChanged(); - return this; - } - - private java.util.List resourceType_ = java.util.Collections.emptyList(); - - private void ensureResourceTypeIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - resourceType_ = new java.util.ArrayList(resourceType_); - bitField0_ |= 0x00000001; - } - } - /** - * - * - *
-     * 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_ & ~0x00000001); - 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_ & 0x00000002) != 0)) { - action_ = new java.util.ArrayList(action_); - bitField0_ |= 0x00000002; - } - } - /** - * - * - *
-     * 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_ & ~0x00000002); - 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.LazyStringList actorEmail_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureActorEmailIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - actorEmail_ = new com.google.protobuf.LazyStringArrayList(actorEmail_); - bitField0_ |= 0x00000004; - } - } - /** - * - * - *
-     * 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_.getUnmodifiableView(); - } - /** - * - * - *
-     * 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); - 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); - 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_); - 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.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); - 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); - 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 earliestChangeTimeBuilder_ != null || 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. - */ - 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; - onChanged(); - } else { - earliestChangeTimeBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - earliestChangeTimeBuilder_.setMessage(builderForValue.build()); - } - - 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 (earliestChangeTime_ != null) { - earliestChangeTime_ = - com.google.protobuf.Timestamp.newBuilder(earliestChangeTime_) - .mergeFrom(value) - .buildPartial(); - } else { - earliestChangeTime_ = value; - } - onChanged(); - } else { - earliestChangeTimeBuilder_.mergeFrom(value); - } - - 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() { - if (earliestChangeTimeBuilder_ == null) { - earliestChangeTime_ = null; - onChanged(); - } else { - earliestChangeTime_ = null; - earliestChangeTimeBuilder_ = null; - } - - 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() { - - 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 latestChangeTimeBuilder_ != null || 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. - */ - 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; - onChanged(); - } else { - latestChangeTimeBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - latestChangeTimeBuilder_.setMessage(builderForValue.build()); - } - - 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 (latestChangeTime_ != null) { - latestChangeTime_ = - com.google.protobuf.Timestamp.newBuilder(latestChangeTime_) - .mergeFrom(value) - .buildPartial(); - } else { - latestChangeTime_ = value; - } - onChanged(); - } else { - latestChangeTimeBuilder_.mergeFrom(value); - } - - 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() { - if (latestChangeTimeBuilder_ == null) { - latestChangeTime_ = null; - onChanged(); - } else { - latestChangeTime_ = null; - latestChangeTimeBuilder_ = null; - } - - 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() { - - 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; - 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() { - - 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; - 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(); - 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; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SearchChangeHistoryEventsRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SearchChangeHistoryEventsRequestOrBuilder.java deleted file mode 100644 index 61d883dc..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SearchChangeHistoryEventsRequestOrBuilder.java +++ /dev/null @@ -1,422 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SearchChangeHistoryEventsResponse.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SearchChangeHistoryEventsResponse.java deleted file mode 100644 index 597593ca..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SearchChangeHistoryEventsResponse.java +++ /dev/null @@ -1,1167 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * 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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - 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; - 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(); - 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); - int from_bitField0_ = bitField0_; - if (changeHistoryEventsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - changeHistoryEvents_ = java.util.Collections.unmodifiableList(changeHistoryEvents_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.changeHistoryEvents_ = changeHistoryEvents_; - } else { - result.changeHistoryEvents_ = changeHistoryEventsBuilder_.build(); - } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.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_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // 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; - onChanged(); - return this; - } - /** - * - * - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * - * @return This builder for chaining. - */ - public Builder clearNextPageToken() { - - nextPageToken_ = getDefaultInstance().getNextPageToken(); - onChanged(); - return this; - } - /** - * - * - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * - * @param value The bytes for nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - nextPageToken_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SearchChangeHistoryEventsResponseOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SearchChangeHistoryEventsResponseOrBuilder.java deleted file mode 100644 index 2eb7cc15..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SearchChangeHistoryEventsResponseOrBuilder.java +++ /dev/null @@ -1,111 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ServiceLevel.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ServiceLevel.java deleted file mode 100644 index 5b0da43a..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ServiceLevel.java +++ /dev/null @@ -1,176 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/resources.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateAccountRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateAccountRequest.java deleted file mode 100644 index 8233c33d..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateAccountRequest.java +++ /dev/null @@ -1,1039 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * Request message for 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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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 getAccount(); - } - - public static final int UPDATE_MASK_FIELD_NUMBER = 2; - private com.google.protobuf.FieldMask updateMask_; - /** - * - * - *
-   * Required. The list of fields to be updated. Field names must be in snake case
-   * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-   * the entire entity, use one path with the string "*" to match all fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the updateMask field is set. - */ - @java.lang.Override - public boolean hasUpdateMask() { - return updateMask_ != null; - } - /** - * - * - *
-   * Required. The list of fields to be updated. Field names must be in snake case
-   * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-   * the entire entity, use one path with the string "*" to match all fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The updateMask. - */ - @java.lang.Override - public com.google.protobuf.FieldMask getUpdateMask() { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - /** - * - * - *
-   * Required. The list of fields to be updated. Field names must be in snake case
-   * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-   * the entire entity, use one path with the string "*" to match all fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return getUpdateMask(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (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(); - if (accountBuilder_ == null) { - account_ = null; - } else { - account_ = null; - accountBuilder_ = null; - } - if (updateMaskBuilder_ == null) { - updateMask_ = null; - } else { - updateMask_ = null; - updateMaskBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_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 (accountBuilder_ == null) { - result.account_ = account_; - } else { - result.account_ = accountBuilder_.build(); - } - if (updateMaskBuilder_ == null) { - result.updateMask_ = updateMask_; - } else { - result.updateMask_ = updateMaskBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.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); - - break; - } // case 10 - case 18: - { - input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - 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 accountBuilder_ != null || 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. - */ - 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; - onChanged(); - } else { - accountBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - accountBuilder_.setMessage(builderForValue.build()); - } - - 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 (account_ != null) { - account_ = - com.google.analytics.admin.v1alpha.Account.newBuilder(account_) - .mergeFrom(value) - .buildPartial(); - } else { - account_ = value; - } - onChanged(); - } else { - accountBuilder_.mergeFrom(value); - } - - 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() { - if (accountBuilder_ == null) { - account_ = null; - onChanged(); - } else { - account_ = null; - accountBuilder_ = null; - } - - 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() { - - 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
-     * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-     * the entire entity, use one path with the string "*" to match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the updateMask field is set. - */ - public boolean hasUpdateMask() { - return updateMaskBuilder_ != null || updateMask_ != null; - } - /** - * - * - *
-     * Required. The list of fields to be updated. Field names must be in snake case
-     * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-     * the entire entity, use one path with the string "*" to match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The updateMask. - */ - public com.google.protobuf.FieldMask getUpdateMask() { - if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; - } else { - return updateMaskBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. The list of fields to be updated. Field names must be in snake case
-     * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-     * the entire entity, use one path with the string "*" to match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateMask_ = value; - onChanged(); - } else { - updateMaskBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. The list of fields to be updated. Field names must be in snake case
-     * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-     * the entire entity, use one path with the string "*" to match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { - if (updateMaskBuilder_ == null) { - updateMask_ = builderForValue.build(); - onChanged(); - } else { - updateMaskBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. The list of fields to be updated. Field names must be in snake case
-     * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-     * the entire entity, use one path with the string "*" to match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (updateMask_ != null) { - updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); - } else { - updateMask_ = value; - } - onChanged(); - } else { - updateMaskBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. The list of fields to be updated. Field names must be in snake case
-     * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-     * the entire entity, use one path with the string "*" to match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearUpdateMask() { - if (updateMaskBuilder_ == null) { - updateMask_ = null; - onChanged(); - } else { - updateMask_ = null; - updateMaskBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. The list of fields to be updated. Field names must be in snake case
-     * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-     * the entire entity, use one path with the string "*" to match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - - onChanged(); - return getUpdateMaskFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The list of fields to be updated. Field names must be in snake case
-     * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-     * the entire entity, use one path with the string "*" to match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - if (updateMaskBuilder_ != null) { - return updateMaskBuilder_.getMessageOrBuilder(); - } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; - } - } - /** - * - * - *
-     * Required. The list of fields to be updated. Field names must be in snake case
-     * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-     * the entire entity, use one path with the string "*" to match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - getUpdateMaskFieldBuilder() { - if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), getParentForChildren(), isClean()); - updateMask_ = null; - } - return updateMaskBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateAccountRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateAccountRequestOrBuilder.java deleted file mode 100644 index d10a3e06..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateAccountRequestOrBuilder.java +++ /dev/null @@ -1,113 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface 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
-   * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-   * the entire entity, use one path with the string "*" to match all fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the updateMask field is set. - */ - boolean hasUpdateMask(); - /** - * - * - *
-   * Required. The list of fields to be updated. Field names must be in snake case
-   * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-   * the entire entity, use one path with the string "*" to match all fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The updateMask. - */ - com.google.protobuf.FieldMask getUpdateMask(); - /** - * - * - *
-   * Required. The list of fields to be updated. Field names must be in snake case
-   * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-   * the entire entity, use one path with the string "*" to match all fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); -} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateAttributionSettingsRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateAttributionSettingsRequest.java deleted file mode 100644 index 3fc7739f..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateAttributionSettingsRequest.java +++ /dev/null @@ -1,1058 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * Request message for 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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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 getAttributionSettings(); - } - - public static final int UPDATE_MASK_FIELD_NUMBER = 2; - private com.google.protobuf.FieldMask updateMask_; - /** - * - * - *
-   * Required. The list of fields to be updated. Field names must be in snake case
-   * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-   * the entire entity, use one path with the string "*" to match all fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the updateMask field is set. - */ - @java.lang.Override - public boolean hasUpdateMask() { - return updateMask_ != null; - } - /** - * - * - *
-   * Required. The list of fields to be updated. Field names must be in snake case
-   * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-   * the entire entity, use one path with the string "*" to match all fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The updateMask. - */ - @java.lang.Override - public com.google.protobuf.FieldMask getUpdateMask() { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - /** - * - * - *
-   * Required. The list of fields to be updated. Field names must be in snake case
-   * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-   * the entire entity, use one path with the string "*" to match all fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return getUpdateMask(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (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(); - if (attributionSettingsBuilder_ == null) { - attributionSettings_ = null; - } else { - attributionSettings_ = null; - attributionSettingsBuilder_ = null; - } - if (updateMaskBuilder_ == null) { - updateMask_ = null; - } else { - updateMask_ = null; - updateMaskBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_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 (attributionSettingsBuilder_ == null) { - result.attributionSettings_ = attributionSettings_; - } else { - result.attributionSettings_ = attributionSettingsBuilder_.build(); - } - if (updateMaskBuilder_ == null) { - result.updateMask_ = updateMask_; - } else { - result.updateMask_ = updateMaskBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.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); - - break; - } // case 10 - case 18: - { - input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - 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 attributionSettingsBuilder_ != null || 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. - */ - 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; - onChanged(); - } else { - attributionSettingsBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - attributionSettingsBuilder_.setMessage(builderForValue.build()); - } - - 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 (attributionSettings_ != null) { - attributionSettings_ = - com.google.analytics.admin.v1alpha.AttributionSettings.newBuilder( - attributionSettings_) - .mergeFrom(value) - .buildPartial(); - } else { - attributionSettings_ = value; - } - onChanged(); - } else { - attributionSettingsBuilder_.mergeFrom(value); - } - - 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() { - if (attributionSettingsBuilder_ == null) { - attributionSettings_ = null; - onChanged(); - } else { - attributionSettings_ = null; - attributionSettingsBuilder_ = null; - } - - 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() { - - 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 updateMaskBuilder_ != null || updateMask_ != null; - } - /** - * - * - *
-     * Required. The list of fields to be updated. Field names must be in snake case
-     * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-     * the entire entity, use one path with the string "*" to match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The updateMask. - */ - public com.google.protobuf.FieldMask getUpdateMask() { - if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; - } else { - return updateMaskBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. The list of fields to be updated. Field names must be in snake case
-     * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-     * the entire entity, use one path with the string "*" to match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateMask_ = value; - onChanged(); - } else { - updateMaskBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. The list of fields to be updated. Field names must be in snake case
-     * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-     * the entire entity, use one path with the string "*" to match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { - if (updateMaskBuilder_ == null) { - updateMask_ = builderForValue.build(); - onChanged(); - } else { - updateMaskBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. The list of fields to be updated. Field names must be in snake case
-     * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-     * the entire entity, use one path with the string "*" to match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (updateMask_ != null) { - updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); - } else { - updateMask_ = value; - } - onChanged(); - } else { - updateMaskBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. The list of fields to be updated. Field names must be in snake case
-     * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-     * the entire entity, use one path with the string "*" to match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearUpdateMask() { - if (updateMaskBuilder_ == null) { - updateMask_ = null; - onChanged(); - } else { - updateMask_ = null; - updateMaskBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. The list of fields to be updated. Field names must be in snake case
-     * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-     * the entire entity, use one path with the string "*" to match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - - onChanged(); - return getUpdateMaskFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The list of fields to be updated. Field names must be in snake case
-     * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-     * the entire entity, use one path with the string "*" to match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - if (updateMaskBuilder_ != null) { - return updateMaskBuilder_.getMessageOrBuilder(); - } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; - } - } - /** - * - * - *
-     * Required. The list of fields to be updated. Field names must be in snake case
-     * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-     * the entire entity, use one path with the string "*" to match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - getUpdateMaskFieldBuilder() { - if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), getParentForChildren(), isClean()); - updateMask_ = null; - } - return updateMaskBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateAttributionSettingsRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateAttributionSettingsRequestOrBuilder.java deleted file mode 100644 index 4b53fba0..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateAttributionSettingsRequestOrBuilder.java +++ /dev/null @@ -1,113 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateAudienceRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateAudienceRequest.java deleted file mode 100644 index a5ef77fa..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateAudienceRequest.java +++ /dev/null @@ -1,1040 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * Request message for 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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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 getAudience(); - } - - public static final int UPDATE_MASK_FIELD_NUMBER = 2; - private com.google.protobuf.FieldMask updateMask_; - /** - * - * - *
-   * Required. The list of fields to be updated. Field names must be in snake case
-   * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-   * the entire entity, use one path with the string "*" to match all fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the updateMask field is set. - */ - @java.lang.Override - public boolean hasUpdateMask() { - return updateMask_ != null; - } - /** - * - * - *
-   * Required. The list of fields to be updated. Field names must be in snake case
-   * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-   * the entire entity, use one path with the string "*" to match all fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The updateMask. - */ - @java.lang.Override - public com.google.protobuf.FieldMask getUpdateMask() { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - /** - * - * - *
-   * Required. The list of fields to be updated. Field names must be in snake case
-   * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-   * the entire entity, use one path with the string "*" to match all fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return getUpdateMask(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (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(); - if (audienceBuilder_ == null) { - audience_ = null; - } else { - audience_ = null; - audienceBuilder_ = null; - } - if (updateMaskBuilder_ == null) { - updateMask_ = null; - } else { - updateMask_ = null; - updateMaskBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_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 (audienceBuilder_ == null) { - result.audience_ = audience_; - } else { - result.audience_ = audienceBuilder_.build(); - } - if (updateMaskBuilder_ == null) { - result.updateMask_ = updateMask_; - } else { - result.updateMask_ = updateMaskBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.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); - - break; - } // case 10 - case 18: - { - input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - 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 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 audienceBuilder_ != null || 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. - */ - 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; - onChanged(); - } else { - audienceBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - audienceBuilder_.setMessage(builderForValue.build()); - } - - 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 (audience_ != null) { - audience_ = - com.google.analytics.admin.v1alpha.Audience.newBuilder(audience_) - .mergeFrom(value) - .buildPartial(); - } else { - audience_ = value; - } - onChanged(); - } else { - audienceBuilder_.mergeFrom(value); - } - - 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() { - if (audienceBuilder_ == null) { - audience_ = null; - onChanged(); - } else { - audience_ = null; - audienceBuilder_ = null; - } - - 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() { - - 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 updateMaskBuilder_ != null || updateMask_ != null; - } - /** - * - * - *
-     * Required. The list of fields to be updated. Field names must be in snake case
-     * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-     * the entire entity, use one path with the string "*" to match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The updateMask. - */ - public com.google.protobuf.FieldMask getUpdateMask() { - if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; - } else { - return updateMaskBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. The list of fields to be updated. Field names must be in snake case
-     * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-     * the entire entity, use one path with the string "*" to match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateMask_ = value; - onChanged(); - } else { - updateMaskBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. The list of fields to be updated. Field names must be in snake case
-     * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-     * the entire entity, use one path with the string "*" to match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { - if (updateMaskBuilder_ == null) { - updateMask_ = builderForValue.build(); - onChanged(); - } else { - updateMaskBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. The list of fields to be updated. Field names must be in snake case
-     * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-     * the entire entity, use one path with the string "*" to match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (updateMask_ != null) { - updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); - } else { - updateMask_ = value; - } - onChanged(); - } else { - updateMaskBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. The list of fields to be updated. Field names must be in snake case
-     * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-     * the entire entity, use one path with the string "*" to match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearUpdateMask() { - if (updateMaskBuilder_ == null) { - updateMask_ = null; - onChanged(); - } else { - updateMask_ = null; - updateMaskBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. The list of fields to be updated. Field names must be in snake case
-     * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-     * the entire entity, use one path with the string "*" to match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - - onChanged(); - return getUpdateMaskFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The list of fields to be updated. Field names must be in snake case
-     * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-     * the entire entity, use one path with the string "*" to match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - if (updateMaskBuilder_ != null) { - return updateMaskBuilder_.getMessageOrBuilder(); - } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; - } - } - /** - * - * - *
-     * Required. The list of fields to be updated. Field names must be in snake case
-     * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-     * the entire entity, use one path with the string "*" to match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - getUpdateMaskFieldBuilder() { - if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), getParentForChildren(), isClean()); - updateMask_ = null; - } - return updateMaskBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateAudienceRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateAudienceRequestOrBuilder.java deleted file mode 100644 index cdc0cd6b..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateAudienceRequestOrBuilder.java +++ /dev/null @@ -1,113 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateCustomDimensionRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateCustomDimensionRequest.java deleted file mode 100644 index b7014082..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateCustomDimensionRequest.java +++ /dev/null @@ -1,1011 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * Request message for 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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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 getCustomDimension(); - } - - public static final int UPDATE_MASK_FIELD_NUMBER = 2; - private com.google.protobuf.FieldMask updateMask_; - /** - * - * - *
-   * Required. The list of fields to be updated. Omitted fields will not be updated.
-   * To replace the entire entity, use one path with the string "*" to match
-   * all fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the updateMask field is set. - */ - @java.lang.Override - public boolean hasUpdateMask() { - return updateMask_ != null; - } - /** - * - * - *
-   * Required. The list of fields to be updated. Omitted fields will not be updated.
-   * To replace the entire entity, use one path with the string "*" to match
-   * all fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The updateMask. - */ - @java.lang.Override - public com.google.protobuf.FieldMask getUpdateMask() { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - /** - * - * - *
-   * Required. The list of fields to be updated. Omitted fields will not be updated.
-   * To replace the entire entity, use one path with the string "*" to match
-   * all fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return getUpdateMask(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (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(); - if (customDimensionBuilder_ == null) { - customDimension_ = null; - } else { - customDimension_ = null; - customDimensionBuilder_ = null; - } - if (updateMaskBuilder_ == null) { - updateMask_ = null; - } else { - updateMask_ = null; - updateMaskBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_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 (customDimensionBuilder_ == null) { - result.customDimension_ = customDimension_; - } else { - result.customDimension_ = customDimensionBuilder_.build(); - } - if (updateMaskBuilder_ == null) { - result.updateMask_ = updateMask_; - } else { - result.updateMask_ = updateMaskBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.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); - - break; - } // case 10 - case 18: - { - input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - 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_; - /** - * - * - *
-     * The CustomDimension to update
-     * 
- * - * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 1; - * - * @return Whether the customDimension field is set. - */ - public boolean hasCustomDimension() { - return customDimensionBuilder_ != null || customDimension_ != null; - } - /** - * - * - *
-     * 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; - onChanged(); - } else { - customDimensionBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - customDimensionBuilder_.setMessage(builderForValue.build()); - } - - 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 (customDimension_ != null) { - customDimension_ = - com.google.analytics.admin.v1alpha.CustomDimension.newBuilder(customDimension_) - .mergeFrom(value) - .buildPartial(); - } else { - customDimension_ = value; - } - onChanged(); - } else { - customDimensionBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * The CustomDimension to update
-     * 
- * - * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 1; - */ - public Builder clearCustomDimension() { - if (customDimensionBuilder_ == null) { - customDimension_ = null; - onChanged(); - } else { - customDimension_ = null; - customDimensionBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * The CustomDimension to update
-     * 
- * - * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 1; - */ - public com.google.analytics.admin.v1alpha.CustomDimension.Builder getCustomDimensionBuilder() { - - 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 updateMaskBuilder_ != null || updateMask_ != null; - } - /** - * - * - *
-     * Required. The list of fields to be updated. Omitted fields will not be updated.
-     * To replace the entire entity, use one path with the string "*" to match
-     * all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The updateMask. - */ - public com.google.protobuf.FieldMask getUpdateMask() { - if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; - } else { - return updateMaskBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. The list of fields to be updated. Omitted fields will not be updated.
-     * To replace the entire entity, use one path with the string "*" to match
-     * all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateMask_ = value; - onChanged(); - } else { - updateMaskBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. The list of fields to be updated. Omitted fields will not be updated.
-     * To replace the entire entity, use one path with the string "*" to match
-     * all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { - if (updateMaskBuilder_ == null) { - updateMask_ = builderForValue.build(); - onChanged(); - } else { - updateMaskBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. The list of fields to be updated. Omitted fields will not be updated.
-     * To replace the entire entity, use one path with the string "*" to match
-     * all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (updateMask_ != null) { - updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); - } else { - updateMask_ = value; - } - onChanged(); - } else { - updateMaskBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. The list of fields to be updated. Omitted fields will not be updated.
-     * To replace the entire entity, use one path with the string "*" to match
-     * all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearUpdateMask() { - if (updateMaskBuilder_ == null) { - updateMask_ = null; - onChanged(); - } else { - updateMask_ = null; - updateMaskBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. The list of fields to be updated. Omitted fields will not be updated.
-     * To replace the entire entity, use one path with the string "*" to match
-     * all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - - onChanged(); - return getUpdateMaskFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The list of fields to be updated. Omitted fields will not be updated.
-     * To replace the entire entity, use one path with the string "*" to match
-     * all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - if (updateMaskBuilder_ != null) { - return updateMaskBuilder_.getMessageOrBuilder(); - } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; - } - } - /** - * - * - *
-     * Required. The list of fields to be updated. Omitted fields will not be updated.
-     * To replace the entire entity, use one path with the string "*" to match
-     * all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - getUpdateMaskFieldBuilder() { - if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), getParentForChildren(), isClean()); - updateMask_ = null; - } - return updateMaskBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateCustomDimensionRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateCustomDimensionRequestOrBuilder.java deleted file mode 100644 index a379c03d..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateCustomDimensionRequestOrBuilder.java +++ /dev/null @@ -1,104 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateCustomMetricRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateCustomMetricRequest.java deleted file mode 100644 index b240d2f9..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateCustomMetricRequest.java +++ /dev/null @@ -1,1007 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * Request message for 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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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 getCustomMetric(); - } - - public static final int UPDATE_MASK_FIELD_NUMBER = 2; - private com.google.protobuf.FieldMask updateMask_; - /** - * - * - *
-   * Required. The list of fields to be updated. Omitted fields will not be updated.
-   * To replace the entire entity, use one path with the string "*" to match
-   * all fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the updateMask field is set. - */ - @java.lang.Override - public boolean hasUpdateMask() { - return updateMask_ != null; - } - /** - * - * - *
-   * Required. The list of fields to be updated. Omitted fields will not be updated.
-   * To replace the entire entity, use one path with the string "*" to match
-   * all fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The updateMask. - */ - @java.lang.Override - public com.google.protobuf.FieldMask getUpdateMask() { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - /** - * - * - *
-   * Required. The list of fields to be updated. Omitted fields will not be updated.
-   * To replace the entire entity, use one path with the string "*" to match
-   * all fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return getUpdateMask(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (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(); - if (customMetricBuilder_ == null) { - customMetric_ = null; - } else { - customMetric_ = null; - customMetricBuilder_ = null; - } - if (updateMaskBuilder_ == null) { - updateMask_ = null; - } else { - updateMask_ = null; - updateMaskBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_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 (customMetricBuilder_ == null) { - result.customMetric_ = customMetric_; - } else { - result.customMetric_ = customMetricBuilder_.build(); - } - if (updateMaskBuilder_ == null) { - result.updateMask_ = updateMask_; - } else { - result.updateMask_ = updateMaskBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.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); - - break; - } // case 10 - case 18: - { - input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - 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_; - /** - * - * - *
-     * The CustomMetric to update
-     * 
- * - * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 1; - * - * @return Whether the customMetric field is set. - */ - public boolean hasCustomMetric() { - return customMetricBuilder_ != null || customMetric_ != null; - } - /** - * - * - *
-     * 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; - onChanged(); - } else { - customMetricBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - customMetricBuilder_.setMessage(builderForValue.build()); - } - - 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 (customMetric_ != null) { - customMetric_ = - com.google.analytics.admin.v1alpha.CustomMetric.newBuilder(customMetric_) - .mergeFrom(value) - .buildPartial(); - } else { - customMetric_ = value; - } - onChanged(); - } else { - customMetricBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * The CustomMetric to update
-     * 
- * - * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 1; - */ - public Builder clearCustomMetric() { - if (customMetricBuilder_ == null) { - customMetric_ = null; - onChanged(); - } else { - customMetric_ = null; - customMetricBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * The CustomMetric to update
-     * 
- * - * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 1; - */ - public com.google.analytics.admin.v1alpha.CustomMetric.Builder getCustomMetricBuilder() { - - 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 updateMaskBuilder_ != null || updateMask_ != null; - } - /** - * - * - *
-     * Required. The list of fields to be updated. Omitted fields will not be updated.
-     * To replace the entire entity, use one path with the string "*" to match
-     * all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The updateMask. - */ - public com.google.protobuf.FieldMask getUpdateMask() { - if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; - } else { - return updateMaskBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. The list of fields to be updated. Omitted fields will not be updated.
-     * To replace the entire entity, use one path with the string "*" to match
-     * all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateMask_ = value; - onChanged(); - } else { - updateMaskBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. The list of fields to be updated. Omitted fields will not be updated.
-     * To replace the entire entity, use one path with the string "*" to match
-     * all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { - if (updateMaskBuilder_ == null) { - updateMask_ = builderForValue.build(); - onChanged(); - } else { - updateMaskBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. The list of fields to be updated. Omitted fields will not be updated.
-     * To replace the entire entity, use one path with the string "*" to match
-     * all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (updateMask_ != null) { - updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); - } else { - updateMask_ = value; - } - onChanged(); - } else { - updateMaskBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. The list of fields to be updated. Omitted fields will not be updated.
-     * To replace the entire entity, use one path with the string "*" to match
-     * all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearUpdateMask() { - if (updateMaskBuilder_ == null) { - updateMask_ = null; - onChanged(); - } else { - updateMask_ = null; - updateMaskBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. The list of fields to be updated. Omitted fields will not be updated.
-     * To replace the entire entity, use one path with the string "*" to match
-     * all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - - onChanged(); - return getUpdateMaskFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The list of fields to be updated. Omitted fields will not be updated.
-     * To replace the entire entity, use one path with the string "*" to match
-     * all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - if (updateMaskBuilder_ != null) { - return updateMaskBuilder_.getMessageOrBuilder(); - } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; - } - } - /** - * - * - *
-     * Required. The list of fields to be updated. Omitted fields will not be updated.
-     * To replace the entire entity, use one path with the string "*" to match
-     * all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - getUpdateMaskFieldBuilder() { - if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), getParentForChildren(), isClean()); - updateMask_ = null; - } - return updateMaskBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateCustomMetricRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateCustomMetricRequestOrBuilder.java deleted file mode 100644 index 76737db8..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateCustomMetricRequestOrBuilder.java +++ /dev/null @@ -1,104 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateDataRetentionSettingsRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateDataRetentionSettingsRequest.java deleted file mode 100644 index 3ea158d0..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateDataRetentionSettingsRequest.java +++ /dev/null @@ -1,1059 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * Request message for 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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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 getDataRetentionSettings(); - } - - public static final int UPDATE_MASK_FIELD_NUMBER = 2; - private com.google.protobuf.FieldMask updateMask_; - /** - * - * - *
-   * Required. The list of fields to be updated. Field names must be in snake case
-   * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-   * the entire entity, use one path with the string "*" to match all fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the updateMask field is set. - */ - @java.lang.Override - public boolean hasUpdateMask() { - return updateMask_ != null; - } - /** - * - * - *
-   * Required. The list of fields to be updated. Field names must be in snake case
-   * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-   * the entire entity, use one path with the string "*" to match all fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The updateMask. - */ - @java.lang.Override - public com.google.protobuf.FieldMask getUpdateMask() { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - /** - * - * - *
-   * Required. The list of fields to be updated. Field names must be in snake case
-   * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-   * the entire entity, use one path with the string "*" to match all fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return getUpdateMask(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (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(); - if (dataRetentionSettingsBuilder_ == null) { - dataRetentionSettings_ = null; - } else { - dataRetentionSettings_ = null; - dataRetentionSettingsBuilder_ = null; - } - if (updateMaskBuilder_ == null) { - updateMask_ = null; - } else { - updateMask_ = null; - updateMaskBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_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 (dataRetentionSettingsBuilder_ == null) { - result.dataRetentionSettings_ = dataRetentionSettings_; - } else { - result.dataRetentionSettings_ = dataRetentionSettingsBuilder_.build(); - } - if (updateMaskBuilder_ == null) { - result.updateMask_ = updateMask_; - } else { - result.updateMask_ = updateMaskBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.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); - - break; - } // case 10 - case 18: - { - input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - 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 dataRetentionSettingsBuilder_ != null || 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. - */ - 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; - onChanged(); - } else { - dataRetentionSettingsBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. The settings to update.
-     * The `name` field is used to identify the settings to be updated.
-     * 
- * - * - * .google.analytics.admin.v1alpha.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(); - onChanged(); - } else { - dataRetentionSettingsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. The settings to update.
-     * The `name` field is used to identify the settings to be updated.
-     * 
- * - * - * .google.analytics.admin.v1alpha.DataRetentionSettings data_retention_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeDataRetentionSettings( - com.google.analytics.admin.v1alpha.DataRetentionSettings value) { - if (dataRetentionSettingsBuilder_ == null) { - if (dataRetentionSettings_ != null) { - dataRetentionSettings_ = - com.google.analytics.admin.v1alpha.DataRetentionSettings.newBuilder( - dataRetentionSettings_) - .mergeFrom(value) - .buildPartial(); - } else { - dataRetentionSettings_ = value; - } - onChanged(); - } else { - dataRetentionSettingsBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. The settings to update.
-     * The `name` field is used to identify the settings to be updated.
-     * 
- * - * - * .google.analytics.admin.v1alpha.DataRetentionSettings data_retention_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearDataRetentionSettings() { - if (dataRetentionSettingsBuilder_ == null) { - dataRetentionSettings_ = null; - onChanged(); - } else { - dataRetentionSettings_ = null; - dataRetentionSettingsBuilder_ = null; - } - - 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() { - - 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 updateMaskBuilder_ != null || updateMask_ != null; - } - /** - * - * - *
-     * Required. The list of fields to be updated. Field names must be in snake case
-     * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-     * the entire entity, use one path with the string "*" to match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The updateMask. - */ - public com.google.protobuf.FieldMask getUpdateMask() { - if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; - } else { - return updateMaskBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. The list of fields to be updated. Field names must be in snake case
-     * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-     * the entire entity, use one path with the string "*" to match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateMask_ = value; - onChanged(); - } else { - updateMaskBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. The list of fields to be updated. Field names must be in snake case
-     * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-     * the entire entity, use one path with the string "*" to match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { - if (updateMaskBuilder_ == null) { - updateMask_ = builderForValue.build(); - onChanged(); - } else { - updateMaskBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. The list of fields to be updated. Field names must be in snake case
-     * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-     * the entire entity, use one path with the string "*" to match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (updateMask_ != null) { - updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); - } else { - updateMask_ = value; - } - onChanged(); - } else { - updateMaskBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. The list of fields to be updated. Field names must be in snake case
-     * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-     * the entire entity, use one path with the string "*" to match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearUpdateMask() { - if (updateMaskBuilder_ == null) { - updateMask_ = null; - onChanged(); - } else { - updateMask_ = null; - updateMaskBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. The list of fields to be updated. Field names must be in snake case
-     * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-     * the entire entity, use one path with the string "*" to match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - - onChanged(); - return getUpdateMaskFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The list of fields to be updated. Field names must be in snake case
-     * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-     * the entire entity, use one path with the string "*" to match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - if (updateMaskBuilder_ != null) { - return updateMaskBuilder_.getMessageOrBuilder(); - } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; - } - } - /** - * - * - *
-     * Required. The list of fields to be updated. Field names must be in snake case
-     * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-     * the entire entity, use one path with the string "*" to match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - getUpdateMaskFieldBuilder() { - if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), getParentForChildren(), isClean()); - updateMask_ = null; - } - return updateMaskBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateDataRetentionSettingsRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateDataRetentionSettingsRequestOrBuilder.java deleted file mode 100644 index 3e1d5ccd..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateDataRetentionSettingsRequestOrBuilder.java +++ /dev/null @@ -1,114 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateDataStreamRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateDataStreamRequest.java deleted file mode 100644 index 1967affa..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateDataStreamRequest.java +++ /dev/null @@ -1,1004 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * Request message for UpdateDataStream RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.UpdateDataStreamRequest} - */ -public final class UpdateDataStreamRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.UpdateDataStreamRequest) - UpdateDataStreamRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use UpdateDataStreamRequest.newBuilder() to construct. - private UpdateDataStreamRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private UpdateDataStreamRequest() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new UpdateDataStreamRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_UpdateDataStreamRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_UpdateDataStreamRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.UpdateDataStreamRequest.class, - com.google.analytics.admin.v1alpha.UpdateDataStreamRequest.Builder.class); - } - - public static final int DATA_STREAM_FIELD_NUMBER = 1; - private com.google.analytics.admin.v1alpha.DataStream dataStream_; - /** - * - * - *
-   * The DataStream to update
-   * 
- * - * .google.analytics.admin.v1alpha.DataStream data_stream = 1; - * - * @return Whether the dataStream field is set. - */ - @java.lang.Override - public boolean hasDataStream() { - return dataStream_ != null; - } - /** - * - * - *
-   * The DataStream to update
-   * 
- * - * .google.analytics.admin.v1alpha.DataStream data_stream = 1; - * - * @return The dataStream. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.DataStream getDataStream() { - return dataStream_ == null - ? com.google.analytics.admin.v1alpha.DataStream.getDefaultInstance() - : dataStream_; - } - /** - * - * - *
-   * The DataStream to update
-   * 
- * - * .google.analytics.admin.v1alpha.DataStream data_stream = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.DataStreamOrBuilder getDataStreamOrBuilder() { - return getDataStream(); - } - - public static final int UPDATE_MASK_FIELD_NUMBER = 2; - private com.google.protobuf.FieldMask updateMask_; - /** - * - * - *
-   * Required. The list of fields to be updated. Omitted fields will not be updated.
-   * To replace the entire entity, use one path with the string "*" to match
-   * all fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the updateMask field is set. - */ - @java.lang.Override - public boolean hasUpdateMask() { - return updateMask_ != null; - } - /** - * - * - *
-   * Required. The list of fields to be updated. Omitted fields will not be updated.
-   * To replace the entire entity, use one path with the string "*" to match
-   * all fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The updateMask. - */ - @java.lang.Override - public com.google.protobuf.FieldMask getUpdateMask() { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - /** - * - * - *
-   * Required. The list of fields to be updated. Omitted fields will not be updated.
-   * To replace the entire entity, use one path with the string "*" to match
-   * all fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return getUpdateMask(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (dataStream_ != null) { - output.writeMessage(1, getDataStream()); - } - if (updateMask_ != null) { - output.writeMessage(2, getUpdateMask()); - } - 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(); - if (dataStreamBuilder_ == null) { - dataStream_ = null; - } else { - dataStream_ = null; - dataStreamBuilder_ = null; - } - if (updateMaskBuilder_ == null) { - updateMask_ = null; - } else { - updateMask_ = null; - updateMaskBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_UpdateDataStreamRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.UpdateDataStreamRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.UpdateDataStreamRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.UpdateDataStreamRequest build() { - com.google.analytics.admin.v1alpha.UpdateDataStreamRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.UpdateDataStreamRequest buildPartial() { - com.google.analytics.admin.v1alpha.UpdateDataStreamRequest result = - new com.google.analytics.admin.v1alpha.UpdateDataStreamRequest(this); - if (dataStreamBuilder_ == null) { - result.dataStream_ = dataStream_; - } else { - result.dataStream_ = dataStreamBuilder_.build(); - } - if (updateMaskBuilder_ == null) { - result.updateMask_ = updateMask_; - } else { - result.updateMask_ = updateMaskBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.UpdateDataStreamRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.UpdateDataStreamRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.UpdateDataStreamRequest other) { - if (other == com.google.analytics.admin.v1alpha.UpdateDataStreamRequest.getDefaultInstance()) - return this; - if (other.hasDataStream()) { - mergeDataStream(other.getDataStream()); - } - if (other.hasUpdateMask()) { - mergeUpdateMask(other.getUpdateMask()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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); - - break; - } // case 10 - case 18: - { - input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private com.google.analytics.admin.v1alpha.DataStream dataStream_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.DataStream, - com.google.analytics.admin.v1alpha.DataStream.Builder, - com.google.analytics.admin.v1alpha.DataStreamOrBuilder> - dataStreamBuilder_; - /** - * - * - *
-     * The DataStream to update
-     * 
- * - * .google.analytics.admin.v1alpha.DataStream data_stream = 1; - * - * @return Whether the dataStream field is set. - */ - public boolean hasDataStream() { - return dataStreamBuilder_ != null || dataStream_ != null; - } - /** - * - * - *
-     * The DataStream to update
-     * 
- * - * .google.analytics.admin.v1alpha.DataStream data_stream = 1; - * - * @return The dataStream. - */ - public com.google.analytics.admin.v1alpha.DataStream getDataStream() { - if (dataStreamBuilder_ == null) { - return dataStream_ == null - ? com.google.analytics.admin.v1alpha.DataStream.getDefaultInstance() - : dataStream_; - } else { - return dataStreamBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The DataStream to update
-     * 
- * - * .google.analytics.admin.v1alpha.DataStream data_stream = 1; - */ - public Builder setDataStream(com.google.analytics.admin.v1alpha.DataStream value) { - if (dataStreamBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - dataStream_ = value; - onChanged(); - } else { - dataStreamBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * The DataStream to update
-     * 
- * - * .google.analytics.admin.v1alpha.DataStream data_stream = 1; - */ - public Builder setDataStream( - com.google.analytics.admin.v1alpha.DataStream.Builder builderForValue) { - if (dataStreamBuilder_ == null) { - dataStream_ = builderForValue.build(); - onChanged(); - } else { - dataStreamBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * The DataStream to update
-     * 
- * - * .google.analytics.admin.v1alpha.DataStream data_stream = 1; - */ - public Builder mergeDataStream(com.google.analytics.admin.v1alpha.DataStream value) { - if (dataStreamBuilder_ == null) { - if (dataStream_ != null) { - dataStream_ = - com.google.analytics.admin.v1alpha.DataStream.newBuilder(dataStream_) - .mergeFrom(value) - .buildPartial(); - } else { - dataStream_ = value; - } - onChanged(); - } else { - dataStreamBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * The DataStream to update
-     * 
- * - * .google.analytics.admin.v1alpha.DataStream data_stream = 1; - */ - public Builder clearDataStream() { - if (dataStreamBuilder_ == null) { - dataStream_ = null; - onChanged(); - } else { - dataStream_ = null; - dataStreamBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * The DataStream to update
-     * 
- * - * .google.analytics.admin.v1alpha.DataStream data_stream = 1; - */ - public com.google.analytics.admin.v1alpha.DataStream.Builder getDataStreamBuilder() { - - onChanged(); - return getDataStreamFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The DataStream to update
-     * 
- * - * .google.analytics.admin.v1alpha.DataStream data_stream = 1; - */ - public com.google.analytics.admin.v1alpha.DataStreamOrBuilder getDataStreamOrBuilder() { - if (dataStreamBuilder_ != null) { - return dataStreamBuilder_.getMessageOrBuilder(); - } else { - return dataStream_ == null - ? com.google.analytics.admin.v1alpha.DataStream.getDefaultInstance() - : dataStream_; - } - } - /** - * - * - *
-     * The DataStream to update
-     * 
- * - * .google.analytics.admin.v1alpha.DataStream data_stream = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.DataStream, - com.google.analytics.admin.v1alpha.DataStream.Builder, - com.google.analytics.admin.v1alpha.DataStreamOrBuilder> - getDataStreamFieldBuilder() { - if (dataStreamBuilder_ == null) { - dataStreamBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.DataStream, - com.google.analytics.admin.v1alpha.DataStream.Builder, - com.google.analytics.admin.v1alpha.DataStreamOrBuilder>( - getDataStream(), getParentForChildren(), isClean()); - dataStream_ = null; - } - return dataStreamBuilder_; - } - - private com.google.protobuf.FieldMask updateMask_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; - /** - * - * - *
-     * Required. The list of fields to be updated. Omitted fields will not be updated.
-     * To replace the entire entity, use one path with the string "*" to match
-     * all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the updateMask field is set. - */ - public boolean hasUpdateMask() { - return updateMaskBuilder_ != null || updateMask_ != null; - } - /** - * - * - *
-     * Required. The list of fields to be updated. Omitted fields will not be updated.
-     * To replace the entire entity, use one path with the string "*" to match
-     * all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The updateMask. - */ - public com.google.protobuf.FieldMask getUpdateMask() { - if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; - } else { - return updateMaskBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. The list of fields to be updated. Omitted fields will not be updated.
-     * To replace the entire entity, use one path with the string "*" to match
-     * all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateMask_ = value; - onChanged(); - } else { - updateMaskBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. The list of fields to be updated. Omitted fields will not be updated.
-     * To replace the entire entity, use one path with the string "*" to match
-     * all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { - if (updateMaskBuilder_ == null) { - updateMask_ = builderForValue.build(); - onChanged(); - } else { - updateMaskBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. The list of fields to be updated. Omitted fields will not be updated.
-     * To replace the entire entity, use one path with the string "*" to match
-     * all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (updateMask_ != null) { - updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); - } else { - updateMask_ = value; - } - onChanged(); - } else { - updateMaskBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. The list of fields to be updated. Omitted fields will not be updated.
-     * To replace the entire entity, use one path with the string "*" to match
-     * all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearUpdateMask() { - if (updateMaskBuilder_ == null) { - updateMask_ = null; - onChanged(); - } else { - updateMask_ = null; - updateMaskBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. The list of fields to be updated. Omitted fields will not be updated.
-     * To replace the entire entity, use one path with the string "*" to match
-     * all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - - onChanged(); - return getUpdateMaskFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The list of fields to be updated. Omitted fields will not be updated.
-     * To replace the entire entity, use one path with the string "*" to match
-     * all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - if (updateMaskBuilder_ != null) { - return updateMaskBuilder_.getMessageOrBuilder(); - } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; - } - } - /** - * - * - *
-     * Required. The list of fields to be updated. Omitted fields will not be updated.
-     * To replace the entire entity, use one path with the string "*" to match
-     * all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - getUpdateMaskFieldBuilder() { - if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), getParentForChildren(), isClean()); - updateMask_ = null; - } - return updateMaskBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.UpdateDataStreamRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.UpdateDataStreamRequest) - private static final com.google.analytics.admin.v1alpha.UpdateDataStreamRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.UpdateDataStreamRequest(); - } - - public static com.google.analytics.admin.v1alpha.UpdateDataStreamRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateDataStreamRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.UpdateDataStreamRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateDataStreamRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateDataStreamRequestOrBuilder.java deleted file mode 100644 index fa38bcf1..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateDataStreamRequestOrBuilder.java +++ /dev/null @@ -1,104 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface UpdateDataStreamRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.UpdateDataStreamRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The DataStream to update
-   * 
- * - * .google.analytics.admin.v1alpha.DataStream data_stream = 1; - * - * @return Whether the dataStream field is set. - */ - boolean hasDataStream(); - /** - * - * - *
-   * The DataStream to update
-   * 
- * - * .google.analytics.admin.v1alpha.DataStream data_stream = 1; - * - * @return The dataStream. - */ - com.google.analytics.admin.v1alpha.DataStream getDataStream(); - /** - * - * - *
-   * The DataStream to update
-   * 
- * - * .google.analytics.admin.v1alpha.DataStream data_stream = 1; - */ - com.google.analytics.admin.v1alpha.DataStreamOrBuilder getDataStreamOrBuilder(); - - /** - * - * - *
-   * Required. The list of fields to be updated. Omitted fields will not be updated.
-   * To replace the entire entity, use one path with the string "*" to match
-   * all fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the updateMask field is set. - */ - boolean hasUpdateMask(); - /** - * - * - *
-   * Required. The list of fields to be updated. Omitted fields will not be updated.
-   * To replace the entire entity, use one path with the string "*" to match
-   * all fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The updateMask. - */ - com.google.protobuf.FieldMask getUpdateMask(); - /** - * - * - *
-   * Required. The list of fields to be updated. Omitted fields will not be updated.
-   * To replace the entire entity, use one path with the string "*" to match
-   * all fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); -} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateDisplayVideo360AdvertiserLinkRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateDisplayVideo360AdvertiserLinkRequest.java deleted file mode 100644 index dcf4c157..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateDisplayVideo360AdvertiserLinkRequest.java +++ /dev/null @@ -1,1071 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * Request message for 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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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 getDisplayVideo360AdvertiserLink(); - } - - public static final int UPDATE_MASK_FIELD_NUMBER = 2; - private com.google.protobuf.FieldMask updateMask_; - /** - * - * - *
-   * Required. The list of fields to be updated. Omitted fields will not be updated.
-   * To replace the entire entity, use one path with the string "*" to match
-   * all fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the updateMask field is set. - */ - @java.lang.Override - public boolean hasUpdateMask() { - return updateMask_ != null; - } - /** - * - * - *
-   * Required. The list of fields to be updated. Omitted fields will not be updated.
-   * To replace the entire entity, use one path with the string "*" to match
-   * all fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The updateMask. - */ - @java.lang.Override - public com.google.protobuf.FieldMask getUpdateMask() { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - /** - * - * - *
-   * Required. The list of fields to be updated. Omitted fields will not be updated.
-   * To replace the entire entity, use one path with the string "*" to match
-   * all fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return getUpdateMask(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (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(); - if (displayVideo360AdvertiserLinkBuilder_ == null) { - displayVideo360AdvertiserLink_ = null; - } else { - displayVideo360AdvertiserLink_ = null; - displayVideo360AdvertiserLinkBuilder_ = null; - } - if (updateMaskBuilder_ == null) { - updateMask_ = null; - } else { - updateMask_ = null; - updateMaskBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_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 (displayVideo360AdvertiserLinkBuilder_ == null) { - result.displayVideo360AdvertiserLink_ = displayVideo360AdvertiserLink_; - } else { - result.displayVideo360AdvertiserLink_ = displayVideo360AdvertiserLinkBuilder_.build(); - } - if (updateMaskBuilder_ == null) { - result.updateMask_ = updateMask_; - } else { - result.updateMask_ = updateMaskBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.analytics.admin.v1alpha.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); - - break; - } // case 10 - case 18: - { - input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - 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_; - /** - * - * - *
-     * 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 displayVideo360AdvertiserLinkBuilder_ != null - || displayVideo360AdvertiserLink_ != null; - } - /** - * - * - *
-     * 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; - onChanged(); - } else { - displayVideo360AdvertiserLinkBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - displayVideo360AdvertiserLinkBuilder_.setMessage(builderForValue.build()); - } - - 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 (displayVideo360AdvertiserLink_ != null) { - displayVideo360AdvertiserLink_ = - com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.newBuilder( - displayVideo360AdvertiserLink_) - .mergeFrom(value) - .buildPartial(); - } else { - displayVideo360AdvertiserLink_ = value; - } - onChanged(); - } else { - displayVideo360AdvertiserLinkBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * The DisplayVideo360AdvertiserLink to update
-     * 
- * - * - * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 1; - * - */ - public Builder clearDisplayVideo360AdvertiserLink() { - if (displayVideo360AdvertiserLinkBuilder_ == null) { - displayVideo360AdvertiserLink_ = null; - onChanged(); - } else { - displayVideo360AdvertiserLink_ = null; - displayVideo360AdvertiserLinkBuilder_ = null; - } - - 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() { - - 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 updateMaskBuilder_ != null || updateMask_ != null; - } - /** - * - * - *
-     * Required. The list of fields to be updated. Omitted fields will not be updated.
-     * To replace the entire entity, use one path with the string "*" to match
-     * all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The updateMask. - */ - public com.google.protobuf.FieldMask getUpdateMask() { - if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; - } else { - return updateMaskBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. The list of fields to be updated. Omitted fields will not be updated.
-     * To replace the entire entity, use one path with the string "*" to match
-     * all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateMask_ = value; - onChanged(); - } else { - updateMaskBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. The list of fields to be updated. Omitted fields will not be updated.
-     * To replace the entire entity, use one path with the string "*" to match
-     * all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { - if (updateMaskBuilder_ == null) { - updateMask_ = builderForValue.build(); - onChanged(); - } else { - updateMaskBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. The list of fields to be updated. Omitted fields will not be updated.
-     * To replace the entire entity, use one path with the string "*" to match
-     * all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (updateMask_ != null) { - updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); - } else { - updateMask_ = value; - } - onChanged(); - } else { - updateMaskBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. The list of fields to be updated. Omitted fields will not be updated.
-     * To replace the entire entity, use one path with the string "*" to match
-     * all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearUpdateMask() { - if (updateMaskBuilder_ == null) { - updateMask_ = null; - onChanged(); - } else { - updateMask_ = null; - updateMaskBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. The list of fields to be updated. Omitted fields will not be updated.
-     * To replace the entire entity, use one path with the string "*" to match
-     * all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - - onChanged(); - return getUpdateMaskFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The list of fields to be updated. Omitted fields will not be updated.
-     * To replace the entire entity, use one path with the string "*" to match
-     * all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - if (updateMaskBuilder_ != null) { - return updateMaskBuilder_.getMessageOrBuilder(); - } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; - } - } - /** - * - * - *
-     * Required. The list of fields to be updated. Omitted fields will not be updated.
-     * To replace the entire entity, use one path with the string "*" to match
-     * all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - getUpdateMaskFieldBuilder() { - if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), getParentForChildren(), isClean()); - updateMask_ = null; - } - return updateMaskBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateDisplayVideo360AdvertiserLinkRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateDisplayVideo360AdvertiserLinkRequestOrBuilder.java deleted file mode 100644 index 7424c583..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateDisplayVideo360AdvertiserLinkRequestOrBuilder.java +++ /dev/null @@ -1,112 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateGoogleAdsLinkRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateGoogleAdsLinkRequest.java deleted file mode 100644 index 57e26b26..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateGoogleAdsLinkRequest.java +++ /dev/null @@ -1,1007 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * Request message for 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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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 getGoogleAdsLink(); - } - - public static final int UPDATE_MASK_FIELD_NUMBER = 2; - private com.google.protobuf.FieldMask updateMask_; - /** - * - * - *
-   * Required. The list of fields to be updated. Field names must be in snake case
-   * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-   * the entire entity, use one path with the string "*" to match all fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the updateMask field is set. - */ - @java.lang.Override - public boolean hasUpdateMask() { - return updateMask_ != null; - } - /** - * - * - *
-   * Required. The list of fields to be updated. Field names must be in snake case
-   * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-   * the entire entity, use one path with the string "*" to match all fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The updateMask. - */ - @java.lang.Override - public com.google.protobuf.FieldMask getUpdateMask() { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - /** - * - * - *
-   * Required. The list of fields to be updated. Field names must be in snake case
-   * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-   * the entire entity, use one path with the string "*" to match all fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return getUpdateMask(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (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(); - if (googleAdsLinkBuilder_ == null) { - googleAdsLink_ = null; - } else { - googleAdsLink_ = null; - googleAdsLinkBuilder_ = null; - } - if (updateMaskBuilder_ == null) { - updateMask_ = null; - } else { - updateMask_ = null; - updateMaskBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_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 (googleAdsLinkBuilder_ == null) { - result.googleAdsLink_ = googleAdsLink_; - } else { - result.googleAdsLink_ = googleAdsLinkBuilder_.build(); - } - if (updateMaskBuilder_ == null) { - result.updateMask_ = updateMask_; - } else { - result.updateMask_ = updateMaskBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.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); - - break; - } // case 10 - case 18: - { - input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - 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_; - /** - * - * - *
-     * The GoogleAdsLink to update
-     * 
- * - * .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 1; - * - * @return Whether the googleAdsLink field is set. - */ - public boolean hasGoogleAdsLink() { - return googleAdsLinkBuilder_ != null || googleAdsLink_ != null; - } - /** - * - * - *
-     * 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; - onChanged(); - } else { - googleAdsLinkBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - googleAdsLinkBuilder_.setMessage(builderForValue.build()); - } - - 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 (googleAdsLink_ != null) { - googleAdsLink_ = - com.google.analytics.admin.v1alpha.GoogleAdsLink.newBuilder(googleAdsLink_) - .mergeFrom(value) - .buildPartial(); - } else { - googleAdsLink_ = value; - } - onChanged(); - } else { - googleAdsLinkBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * The GoogleAdsLink to update
-     * 
- * - * .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 1; - */ - public Builder clearGoogleAdsLink() { - if (googleAdsLinkBuilder_ == null) { - googleAdsLink_ = null; - onChanged(); - } else { - googleAdsLink_ = null; - googleAdsLinkBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * The GoogleAdsLink to update
-     * 
- * - * .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 1; - */ - public com.google.analytics.admin.v1alpha.GoogleAdsLink.Builder getGoogleAdsLinkBuilder() { - - 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 updateMaskBuilder_ != null || updateMask_ != null; - } - /** - * - * - *
-     * Required. The list of fields to be updated. Field names must be in snake case
-     * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-     * the entire entity, use one path with the string "*" to match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The updateMask. - */ - public com.google.protobuf.FieldMask getUpdateMask() { - if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; - } else { - return updateMaskBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. The list of fields to be updated. Field names must be in snake case
-     * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-     * the entire entity, use one path with the string "*" to match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateMask_ = value; - onChanged(); - } else { - updateMaskBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. The list of fields to be updated. Field names must be in snake case
-     * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-     * the entire entity, use one path with the string "*" to match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { - if (updateMaskBuilder_ == null) { - updateMask_ = builderForValue.build(); - onChanged(); - } else { - updateMaskBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. The list of fields to be updated. Field names must be in snake case
-     * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-     * the entire entity, use one path with the string "*" to match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (updateMask_ != null) { - updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); - } else { - updateMask_ = value; - } - onChanged(); - } else { - updateMaskBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. The list of fields to be updated. Field names must be in snake case
-     * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-     * the entire entity, use one path with the string "*" to match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearUpdateMask() { - if (updateMaskBuilder_ == null) { - updateMask_ = null; - onChanged(); - } else { - updateMask_ = null; - updateMaskBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. The list of fields to be updated. Field names must be in snake case
-     * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-     * the entire entity, use one path with the string "*" to match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - - onChanged(); - return getUpdateMaskFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The list of fields to be updated. Field names must be in snake case
-     * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-     * the entire entity, use one path with the string "*" to match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - if (updateMaskBuilder_ != null) { - return updateMaskBuilder_.getMessageOrBuilder(); - } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; - } - } - /** - * - * - *
-     * Required. The list of fields to be updated. Field names must be in snake case
-     * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-     * the entire entity, use one path with the string "*" to match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - getUpdateMaskFieldBuilder() { - if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), getParentForChildren(), isClean()); - updateMask_ = null; - } - return updateMaskBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateGoogleAdsLinkRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateGoogleAdsLinkRequestOrBuilder.java deleted file mode 100644 index 9a302809..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateGoogleAdsLinkRequestOrBuilder.java +++ /dev/null @@ -1,104 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateGoogleSignalsSettingsRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateGoogleSignalsSettingsRequest.java deleted file mode 100644 index 30ebac0f..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateGoogleSignalsSettingsRequest.java +++ /dev/null @@ -1,1059 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * Request message for 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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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 getGoogleSignalsSettings(); - } - - public static final int UPDATE_MASK_FIELD_NUMBER = 2; - private com.google.protobuf.FieldMask updateMask_; - /** - * - * - *
-   * Required. The list of fields to be updated. Field names must be in snake case
-   * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-   * the entire entity, use one path with the string "*" to match all fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the updateMask field is set. - */ - @java.lang.Override - public boolean hasUpdateMask() { - return updateMask_ != null; - } - /** - * - * - *
-   * Required. The list of fields to be updated. Field names must be in snake case
-   * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-   * the entire entity, use one path with the string "*" to match all fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The updateMask. - */ - @java.lang.Override - public com.google.protobuf.FieldMask getUpdateMask() { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - /** - * - * - *
-   * Required. The list of fields to be updated. Field names must be in snake case
-   * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-   * the entire entity, use one path with the string "*" to match all fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return getUpdateMask(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (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(); - if (googleSignalsSettingsBuilder_ == null) { - googleSignalsSettings_ = null; - } else { - googleSignalsSettings_ = null; - googleSignalsSettingsBuilder_ = null; - } - if (updateMaskBuilder_ == null) { - updateMask_ = null; - } else { - updateMask_ = null; - updateMaskBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_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 (googleSignalsSettingsBuilder_ == null) { - result.googleSignalsSettings_ = googleSignalsSettings_; - } else { - result.googleSignalsSettings_ = googleSignalsSettingsBuilder_.build(); - } - if (updateMaskBuilder_ == null) { - result.updateMask_ = updateMask_; - } else { - result.updateMask_ = updateMaskBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.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); - - break; - } // case 10 - case 18: - { - input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - 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 googleSignalsSettingsBuilder_ != null || 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. - */ - 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; - onChanged(); - } else { - googleSignalsSettingsBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. The settings to update.
-     * The `name` field is used to identify the settings to be updated.
-     * 
- * - * - * .google.analytics.admin.v1alpha.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(); - onChanged(); - } else { - googleSignalsSettingsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. The settings to update.
-     * The `name` field is used to identify the settings to be updated.
-     * 
- * - * - * .google.analytics.admin.v1alpha.GoogleSignalsSettings google_signals_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeGoogleSignalsSettings( - com.google.analytics.admin.v1alpha.GoogleSignalsSettings value) { - if (googleSignalsSettingsBuilder_ == null) { - if (googleSignalsSettings_ != null) { - googleSignalsSettings_ = - com.google.analytics.admin.v1alpha.GoogleSignalsSettings.newBuilder( - googleSignalsSettings_) - .mergeFrom(value) - .buildPartial(); - } else { - googleSignalsSettings_ = value; - } - onChanged(); - } else { - googleSignalsSettingsBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. The settings to update.
-     * The `name` field is used to identify the settings to be updated.
-     * 
- * - * - * .google.analytics.admin.v1alpha.GoogleSignalsSettings google_signals_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearGoogleSignalsSettings() { - if (googleSignalsSettingsBuilder_ == null) { - googleSignalsSettings_ = null; - onChanged(); - } else { - googleSignalsSettings_ = null; - googleSignalsSettingsBuilder_ = null; - } - - 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() { - - 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 updateMaskBuilder_ != null || updateMask_ != null; - } - /** - * - * - *
-     * Required. The list of fields to be updated. Field names must be in snake case
-     * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-     * the entire entity, use one path with the string "*" to match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The updateMask. - */ - public com.google.protobuf.FieldMask getUpdateMask() { - if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; - } else { - return updateMaskBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. The list of fields to be updated. Field names must be in snake case
-     * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-     * the entire entity, use one path with the string "*" to match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateMask_ = value; - onChanged(); - } else { - updateMaskBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. The list of fields to be updated. Field names must be in snake case
-     * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-     * the entire entity, use one path with the string "*" to match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { - if (updateMaskBuilder_ == null) { - updateMask_ = builderForValue.build(); - onChanged(); - } else { - updateMaskBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. The list of fields to be updated. Field names must be in snake case
-     * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-     * the entire entity, use one path with the string "*" to match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (updateMask_ != null) { - updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); - } else { - updateMask_ = value; - } - onChanged(); - } else { - updateMaskBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. The list of fields to be updated. Field names must be in snake case
-     * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-     * the entire entity, use one path with the string "*" to match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearUpdateMask() { - if (updateMaskBuilder_ == null) { - updateMask_ = null; - onChanged(); - } else { - updateMask_ = null; - updateMaskBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. The list of fields to be updated. Field names must be in snake case
-     * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-     * the entire entity, use one path with the string "*" to match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - - onChanged(); - return getUpdateMaskFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The list of fields to be updated. Field names must be in snake case
-     * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-     * the entire entity, use one path with the string "*" to match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - if (updateMaskBuilder_ != null) { - return updateMaskBuilder_.getMessageOrBuilder(); - } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; - } - } - /** - * - * - *
-     * Required. The list of fields to be updated. Field names must be in snake case
-     * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-     * the entire entity, use one path with the string "*" to match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - getUpdateMaskFieldBuilder() { - if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), getParentForChildren(), isClean()); - updateMask_ = null; - } - return updateMaskBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateGoogleSignalsSettingsRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateGoogleSignalsSettingsRequestOrBuilder.java deleted file mode 100644 index 6d1a6437..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateGoogleSignalsSettingsRequestOrBuilder.java +++ /dev/null @@ -1,114 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateMeasurementProtocolSecretRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateMeasurementProtocolSecretRequest.java deleted file mode 100644 index 89f22d68..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateMeasurementProtocolSecretRequest.java +++ /dev/null @@ -1,1023 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * Request message for 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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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 getMeasurementProtocolSecret(); - } - - public static final int UPDATE_MASK_FIELD_NUMBER = 2; - private com.google.protobuf.FieldMask updateMask_; - /** - * - * - *
-   * The list of fields to be updated. Omitted fields will not be updated.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2; - * - * @return Whether the updateMask field is set. - */ - @java.lang.Override - public boolean hasUpdateMask() { - return updateMask_ != null; - } - /** - * - * - *
-   * The list of fields to be updated. Omitted fields will not be updated.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2; - * - * @return The updateMask. - */ - @java.lang.Override - public com.google.protobuf.FieldMask getUpdateMask() { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - /** - * - * - *
-   * The list of fields to be updated. Omitted fields will not be updated.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - @java.lang.Override - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return getUpdateMask(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (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(); - if (measurementProtocolSecretBuilder_ == null) { - measurementProtocolSecret_ = null; - } else { - measurementProtocolSecret_ = null; - measurementProtocolSecretBuilder_ = null; - } - if (updateMaskBuilder_ == null) { - updateMask_ = null; - } else { - updateMask_ = null; - updateMaskBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_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 (measurementProtocolSecretBuilder_ == null) { - result.measurementProtocolSecret_ = measurementProtocolSecret_; - } else { - result.measurementProtocolSecret_ = measurementProtocolSecretBuilder_.build(); - } - if (updateMaskBuilder_ == null) { - result.updateMask_ = updateMask_; - } else { - result.updateMask_ = updateMaskBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof com.google.analytics.admin.v1alpha.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); - - break; - } // case 10 - case 18: - { - input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - 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 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 measurementProtocolSecretBuilder_ != null || 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. - */ - 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; - onChanged(); - } else { - measurementProtocolSecretBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - measurementProtocolSecretBuilder_.setMessage(builderForValue.build()); - } - - 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 (measurementProtocolSecret_ != null) { - measurementProtocolSecret_ = - com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.newBuilder( - measurementProtocolSecret_) - .mergeFrom(value) - .buildPartial(); - } else { - measurementProtocolSecret_ = value; - } - onChanged(); - } else { - measurementProtocolSecretBuilder_.mergeFrom(value); - } - - 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() { - if (measurementProtocolSecretBuilder_ == null) { - measurementProtocolSecret_ = null; - onChanged(); - } else { - measurementProtocolSecret_ = null; - measurementProtocolSecretBuilder_ = null; - } - - 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() { - - 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_; - /** - * - * - *
-     * The list of fields to be updated. Omitted fields will not be updated.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - * - * @return Whether the updateMask field is set. - */ - public boolean hasUpdateMask() { - return updateMaskBuilder_ != null || updateMask_ != null; - } - /** - * - * - *
-     * The list of fields to be updated. Omitted fields will not be updated.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - * - * @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(); - } - } - /** - * - * - *
-     * The list of fields to be updated. Omitted fields will not be updated.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateMask_ = value; - onChanged(); - } else { - updateMaskBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * The list of fields to be updated. Omitted fields will not be updated.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { - if (updateMaskBuilder_ == null) { - updateMask_ = builderForValue.build(); - onChanged(); - } else { - updateMaskBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * The list of fields to be updated. Omitted fields will not be updated.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (updateMask_ != null) { - updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); - } else { - updateMask_ = value; - } - onChanged(); - } else { - updateMaskBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * The list of fields to be updated. Omitted fields will not be updated.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - public Builder clearUpdateMask() { - if (updateMaskBuilder_ == null) { - updateMask_ = null; - onChanged(); - } else { - updateMask_ = null; - updateMaskBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * The list of fields to be updated. Omitted fields will not be updated.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - - onChanged(); - return getUpdateMaskFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The list of fields to be updated. Omitted fields will not be updated.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - if (updateMaskBuilder_ != null) { - return updateMaskBuilder_.getMessageOrBuilder(); - } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; - } - } - /** - * - * - *
-     * The list of fields to be updated. Omitted fields will not be updated.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateMeasurementProtocolSecretRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateMeasurementProtocolSecretRequestOrBuilder.java deleted file mode 100644 index 6ead312f..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateMeasurementProtocolSecretRequestOrBuilder.java +++ /dev/null @@ -1,102 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface 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(); - - /** - * - * - *
-   * The list of fields to be updated. Omitted fields will not be updated.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2; - * - * @return Whether the updateMask field is set. - */ - boolean hasUpdateMask(); - /** - * - * - *
-   * The list of fields to be updated. Omitted fields will not be updated.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2; - * - * @return The updateMask. - */ - com.google.protobuf.FieldMask getUpdateMask(); - /** - * - * - *
-   * The list of fields to be updated. Omitted fields will not be updated.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); -} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdatePropertyRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdatePropertyRequest.java deleted file mode 100644 index 9760b6fb..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdatePropertyRequest.java +++ /dev/null @@ -1,1052 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * Request message for 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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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 getProperty(); - } - - public static final int UPDATE_MASK_FIELD_NUMBER = 2; - private com.google.protobuf.FieldMask updateMask_; - /** - * - * - *
-   * Required. The list of fields to be updated. Field names must be in snake case
-   * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-   * the entire entity, use one path with the string "*" to match all fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the updateMask field is set. - */ - @java.lang.Override - public boolean hasUpdateMask() { - return updateMask_ != null; - } - /** - * - * - *
-   * Required. The list of fields to be updated. Field names must be in snake case
-   * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-   * the entire entity, use one path with the string "*" to match all fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The updateMask. - */ - @java.lang.Override - public com.google.protobuf.FieldMask getUpdateMask() { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - /** - * - * - *
-   * Required. The list of fields to be updated. Field names must be in snake case
-   * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-   * the entire entity, use one path with the string "*" to match all fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return getUpdateMask(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (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(); - if (propertyBuilder_ == null) { - property_ = null; - } else { - property_ = null; - propertyBuilder_ = null; - } - if (updateMaskBuilder_ == null) { - updateMask_ = null; - } else { - updateMask_ = null; - updateMaskBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_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 (propertyBuilder_ == null) { - result.property_ = property_; - } else { - result.property_ = propertyBuilder_.build(); - } - if (updateMaskBuilder_ == null) { - result.updateMask_ = updateMask_; - } else { - result.updateMask_ = updateMaskBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.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); - - break; - } // case 10 - case 18: - { - input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - 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 propertyBuilder_ != null || 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. - */ - 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; - onChanged(); - } else { - propertyBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - propertyBuilder_.setMessage(builderForValue.build()); - } - - 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 (property_ != null) { - property_ = - com.google.analytics.admin.v1alpha.Property.newBuilder(property_) - .mergeFrom(value) - .buildPartial(); - } else { - property_ = value; - } - onChanged(); - } else { - propertyBuilder_.mergeFrom(value); - } - - 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() { - if (propertyBuilder_ == null) { - property_ = null; - onChanged(); - } else { - property_ = null; - propertyBuilder_ = null; - } - - 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() { - - 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 updateMaskBuilder_ != null || updateMask_ != null; - } - /** - * - * - *
-     * Required. The list of fields to be updated. Field names must be in snake case
-     * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-     * the entire entity, use one path with the string "*" to match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The updateMask. - */ - public com.google.protobuf.FieldMask getUpdateMask() { - if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; - } else { - return updateMaskBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. The list of fields to be updated. Field names must be in snake case
-     * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-     * the entire entity, use one path with the string "*" to match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateMask_ = value; - onChanged(); - } else { - updateMaskBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. The list of fields to be updated. Field names must be in snake case
-     * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-     * the entire entity, use one path with the string "*" to match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { - if (updateMaskBuilder_ == null) { - updateMask_ = builderForValue.build(); - onChanged(); - } else { - updateMaskBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. The list of fields to be updated. Field names must be in snake case
-     * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-     * the entire entity, use one path with the string "*" to match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (updateMask_ != null) { - updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); - } else { - updateMask_ = value; - } - onChanged(); - } else { - updateMaskBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. The list of fields to be updated. Field names must be in snake case
-     * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-     * the entire entity, use one path with the string "*" to match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearUpdateMask() { - if (updateMaskBuilder_ == null) { - updateMask_ = null; - onChanged(); - } else { - updateMask_ = null; - updateMaskBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. The list of fields to be updated. Field names must be in snake case
-     * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-     * the entire entity, use one path with the string "*" to match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - - onChanged(); - return getUpdateMaskFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The list of fields to be updated. Field names must be in snake case
-     * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-     * the entire entity, use one path with the string "*" to match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - if (updateMaskBuilder_ != null) { - return updateMaskBuilder_.getMessageOrBuilder(); - } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; - } - } - /** - * - * - *
-     * Required. The list of fields to be updated. Field names must be in snake case
-     * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-     * the entire entity, use one path with the string "*" to match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - getUpdateMaskFieldBuilder() { - if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), getParentForChildren(), isClean()); - updateMask_ = null; - } - return updateMaskBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdatePropertyRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdatePropertyRequestOrBuilder.java deleted file mode 100644 index bad68db8..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdatePropertyRequestOrBuilder.java +++ /dev/null @@ -1,116 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface 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/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateUserLinkRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateUserLinkRequest.java deleted file mode 100644 index 7f25e1bf..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateUserLinkRequest.java +++ /dev/null @@ -1,729 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * Request message for UpdateUserLink RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.UpdateUserLinkRequest} - */ -public final class UpdateUserLinkRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.UpdateUserLinkRequest) - UpdateUserLinkRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use UpdateUserLinkRequest.newBuilder() to construct. - private UpdateUserLinkRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private UpdateUserLinkRequest() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new UpdateUserLinkRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_UpdateUserLinkRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_UpdateUserLinkRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.UpdateUserLinkRequest.class, - com.google.analytics.admin.v1alpha.UpdateUserLinkRequest.Builder.class); - } - - public static final int USER_LINK_FIELD_NUMBER = 1; - private com.google.analytics.admin.v1alpha.UserLink userLink_; - /** - * - * - *
-   * Required. The user link to update.
-   * 
- * - * - * .google.analytics.admin.v1alpha.UserLink user_link = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the userLink field is set. - */ - @java.lang.Override - public boolean hasUserLink() { - return userLink_ != null; - } - /** - * - * - *
-   * Required. The user link to update.
-   * 
- * - * - * .google.analytics.admin.v1alpha.UserLink user_link = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The userLink. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.UserLink getUserLink() { - return userLink_ == null - ? com.google.analytics.admin.v1alpha.UserLink.getDefaultInstance() - : userLink_; - } - /** - * - * - *
-   * Required. The user link to update.
-   * 
- * - * - * .google.analytics.admin.v1alpha.UserLink user_link = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.UserLinkOrBuilder getUserLinkOrBuilder() { - return getUserLink(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (userLink_ != null) { - output.writeMessage(1, getUserLink()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (userLink_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUserLink()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.admin.v1alpha.UpdateUserLinkRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.UpdateUserLinkRequest other = - (com.google.analytics.admin.v1alpha.UpdateUserLinkRequest) obj; - - if (hasUserLink() != other.hasUserLink()) return false; - if (hasUserLink()) { - if (!getUserLink().equals(other.getUserLink())) return false; - } - if (!getUnknownFields().equals(other.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 (hasUserLink()) { - hash = (37 * hash) + USER_LINK_FIELD_NUMBER; - hash = (53 * hash) + getUserLink().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.UpdateUserLinkRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.UpdateUserLinkRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.UpdateUserLinkRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.UpdateUserLinkRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.UpdateUserLinkRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.UpdateUserLinkRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.UpdateUserLinkRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.UpdateUserLinkRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.UpdateUserLinkRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.UpdateUserLinkRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.UpdateUserLinkRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.UpdateUserLinkRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.analytics.admin.v1alpha.UpdateUserLinkRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Request message for UpdateUserLink RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.UpdateUserLinkRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.UpdateUserLinkRequest) - com.google.analytics.admin.v1alpha.UpdateUserLinkRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_UpdateUserLinkRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_UpdateUserLinkRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.UpdateUserLinkRequest.class, - com.google.analytics.admin.v1alpha.UpdateUserLinkRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.UpdateUserLinkRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (userLinkBuilder_ == null) { - userLink_ = null; - } else { - userLink_ = null; - userLinkBuilder_ = 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_UpdateUserLinkRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.UpdateUserLinkRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.UpdateUserLinkRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.UpdateUserLinkRequest build() { - com.google.analytics.admin.v1alpha.UpdateUserLinkRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.UpdateUserLinkRequest buildPartial() { - com.google.analytics.admin.v1alpha.UpdateUserLinkRequest result = - new com.google.analytics.admin.v1alpha.UpdateUserLinkRequest(this); - if (userLinkBuilder_ == null) { - result.userLink_ = userLink_; - } else { - result.userLink_ = userLinkBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.UpdateUserLinkRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.UpdateUserLinkRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.UpdateUserLinkRequest other) { - if (other == com.google.analytics.admin.v1alpha.UpdateUserLinkRequest.getDefaultInstance()) - return this; - if (other.hasUserLink()) { - mergeUserLink(other.getUserLink()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(getUserLinkFieldBuilder().getBuilder(), extensionRegistry); - - 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 com.google.analytics.admin.v1alpha.UserLink userLink_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.UserLink, - com.google.analytics.admin.v1alpha.UserLink.Builder, - com.google.analytics.admin.v1alpha.UserLinkOrBuilder> - userLinkBuilder_; - /** - * - * - *
-     * Required. The user link to update.
-     * 
- * - * - * .google.analytics.admin.v1alpha.UserLink user_link = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the userLink field is set. - */ - public boolean hasUserLink() { - return userLinkBuilder_ != null || userLink_ != null; - } - /** - * - * - *
-     * Required. The user link to update.
-     * 
- * - * - * .google.analytics.admin.v1alpha.UserLink user_link = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The userLink. - */ - public com.google.analytics.admin.v1alpha.UserLink getUserLink() { - if (userLinkBuilder_ == null) { - return userLink_ == null - ? com.google.analytics.admin.v1alpha.UserLink.getDefaultInstance() - : userLink_; - } else { - return userLinkBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. The user link to update.
-     * 
- * - * - * .google.analytics.admin.v1alpha.UserLink user_link = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setUserLink(com.google.analytics.admin.v1alpha.UserLink value) { - if (userLinkBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - userLink_ = value; - onChanged(); - } else { - userLinkBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. The user link to update.
-     * 
- * - * - * .google.analytics.admin.v1alpha.UserLink user_link = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setUserLink( - com.google.analytics.admin.v1alpha.UserLink.Builder builderForValue) { - if (userLinkBuilder_ == null) { - userLink_ = builderForValue.build(); - onChanged(); - } else { - userLinkBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. The user link to update.
-     * 
- * - * - * .google.analytics.admin.v1alpha.UserLink user_link = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeUserLink(com.google.analytics.admin.v1alpha.UserLink value) { - if (userLinkBuilder_ == null) { - if (userLink_ != null) { - userLink_ = - com.google.analytics.admin.v1alpha.UserLink.newBuilder(userLink_) - .mergeFrom(value) - .buildPartial(); - } else { - userLink_ = value; - } - onChanged(); - } else { - userLinkBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. The user link to update.
-     * 
- * - * - * .google.analytics.admin.v1alpha.UserLink user_link = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearUserLink() { - if (userLinkBuilder_ == null) { - userLink_ = null; - onChanged(); - } else { - userLink_ = null; - userLinkBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. The user link to update.
-     * 
- * - * - * .google.analytics.admin.v1alpha.UserLink user_link = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.analytics.admin.v1alpha.UserLink.Builder getUserLinkBuilder() { - - onChanged(); - return getUserLinkFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The user link to update.
-     * 
- * - * - * .google.analytics.admin.v1alpha.UserLink user_link = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.analytics.admin.v1alpha.UserLinkOrBuilder getUserLinkOrBuilder() { - if (userLinkBuilder_ != null) { - return userLinkBuilder_.getMessageOrBuilder(); - } else { - return userLink_ == null - ? com.google.analytics.admin.v1alpha.UserLink.getDefaultInstance() - : userLink_; - } - } - /** - * - * - *
-     * Required. The user link to update.
-     * 
- * - * - * .google.analytics.admin.v1alpha.UserLink user_link = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.UserLink, - com.google.analytics.admin.v1alpha.UserLink.Builder, - com.google.analytics.admin.v1alpha.UserLinkOrBuilder> - getUserLinkFieldBuilder() { - if (userLinkBuilder_ == null) { - userLinkBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.UserLink, - com.google.analytics.admin.v1alpha.UserLink.Builder, - com.google.analytics.admin.v1alpha.UserLinkOrBuilder>( - getUserLink(), getParentForChildren(), isClean()); - userLink_ = null; - } - return userLinkBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.UpdateUserLinkRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.UpdateUserLinkRequest) - private static final com.google.analytics.admin.v1alpha.UpdateUserLinkRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.UpdateUserLinkRequest(); - } - - public static com.google.analytics.admin.v1alpha.UpdateUserLinkRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateUserLinkRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.UpdateUserLinkRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateUserLinkRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateUserLinkRequestOrBuilder.java deleted file mode 100644 index 4378c44f..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateUserLinkRequestOrBuilder.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface UpdateUserLinkRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.UpdateUserLinkRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The user link to update.
-   * 
- * - * - * .google.analytics.admin.v1alpha.UserLink user_link = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the userLink field is set. - */ - boolean hasUserLink(); - /** - * - * - *
-   * Required. The user link to update.
-   * 
- * - * - * .google.analytics.admin.v1alpha.UserLink user_link = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The userLink. - */ - com.google.analytics.admin.v1alpha.UserLink getUserLink(); - /** - * - * - *
-   * Required. The user link to update.
-   * 
- * - * - * .google.analytics.admin.v1alpha.UserLink user_link = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.analytics.admin.v1alpha.UserLinkOrBuilder getUserLinkOrBuilder(); -} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UserLink.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UserLink.java deleted file mode 100644 index 4ed16c9e..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UserLink.java +++ /dev/null @@ -1,1210 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/resources.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * A resource message representing a user's permissions on an Account or
- * Property resource.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.UserLink} - */ -public final class UserLink extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.UserLink) - UserLinkOrBuilder { - private static final long serialVersionUID = 0L; - // Use UserLink.newBuilder() to construct. - private UserLink(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private UserLink() { - name_ = ""; - emailAddress_ = ""; - directRoles_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new UserLink(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.ResourcesProto - .internal_static_google_analytics_admin_v1alpha_UserLink_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.ResourcesProto - .internal_static_google_analytics_admin_v1alpha_UserLink_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.UserLink.class, - com.google.analytics.admin.v1alpha.UserLink.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * - *
-   * Output only. Example format: properties/1234/userLinks/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/userLinks/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 EMAIL_ADDRESS_FIELD_NUMBER = 2; - private volatile java.lang.Object emailAddress_; - /** - * - * - *
-   * Immutable. Email address of the user to link
-   * 
- * - * string email_address = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @return The emailAddress. - */ - @java.lang.Override - public java.lang.String getEmailAddress() { - java.lang.Object ref = emailAddress_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - emailAddress_ = s; - return s; - } - } - /** - * - * - *
-   * Immutable. Email address of the user to link
-   * 
- * - * string email_address = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @return The bytes for emailAddress. - */ - @java.lang.Override - public com.google.protobuf.ByteString getEmailAddressBytes() { - java.lang.Object ref = emailAddress_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - emailAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DIRECT_ROLES_FIELD_NUMBER = 3; - private com.google.protobuf.LazyStringList directRoles_; - /** - * - * - *
-   * Roles directly assigned to this user for this account or property.
-   * Valid values:
-   * predefinedRoles/viewer
-   * predefinedRoles/analyst
-   * predefinedRoles/editor
-   * predefinedRoles/admin
-   * predefinedRoles/no-cost-data
-   * predefinedRoles/no-revenue-data
-   * Excludes roles that are inherited from a higher-level entity, group,
-   * or organization admin role.
-   * A UserLink that is updated to have an empty list of direct_roles will be
-   * deleted.
-   * 
- * - * repeated string direct_roles = 3; - * - * @return A list containing the directRoles. - */ - public com.google.protobuf.ProtocolStringList getDirectRolesList() { - return directRoles_; - } - /** - * - * - *
-   * Roles directly assigned to this user for this account or property.
-   * Valid values:
-   * predefinedRoles/viewer
-   * predefinedRoles/analyst
-   * predefinedRoles/editor
-   * predefinedRoles/admin
-   * predefinedRoles/no-cost-data
-   * predefinedRoles/no-revenue-data
-   * Excludes roles that are inherited from a higher-level entity, group,
-   * or organization admin role.
-   * A UserLink that is updated to have an empty list of direct_roles will be
-   * deleted.
-   * 
- * - * repeated string direct_roles = 3; - * - * @return The count of directRoles. - */ - public int getDirectRolesCount() { - return directRoles_.size(); - } - /** - * - * - *
-   * Roles directly assigned to this user for this account or property.
-   * Valid values:
-   * predefinedRoles/viewer
-   * predefinedRoles/analyst
-   * predefinedRoles/editor
-   * predefinedRoles/admin
-   * predefinedRoles/no-cost-data
-   * predefinedRoles/no-revenue-data
-   * Excludes roles that are inherited from a higher-level entity, group,
-   * or organization admin role.
-   * A UserLink that is updated to have an empty list of direct_roles will be
-   * deleted.
-   * 
- * - * repeated string direct_roles = 3; - * - * @param index The index of the element to return. - * @return The directRoles at the given index. - */ - public java.lang.String getDirectRoles(int index) { - return directRoles_.get(index); - } - /** - * - * - *
-   * Roles directly assigned to this user for this account or property.
-   * Valid values:
-   * predefinedRoles/viewer
-   * predefinedRoles/analyst
-   * predefinedRoles/editor
-   * predefinedRoles/admin
-   * predefinedRoles/no-cost-data
-   * predefinedRoles/no-revenue-data
-   * Excludes roles that are inherited from a higher-level entity, group,
-   * or organization admin role.
-   * A UserLink that is updated to have an empty list of direct_roles will be
-   * deleted.
-   * 
- * - * repeated string direct_roles = 3; - * - * @param index The index of the value to return. - * @return The bytes of the directRoles at the given index. - */ - public com.google.protobuf.ByteString getDirectRolesBytes(int index) { - return directRoles_.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(emailAddress_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, emailAddress_); - } - for (int i = 0; i < directRoles_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, directRoles_.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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(emailAddress_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, emailAddress_); - } - { - int dataSize = 0; - for (int i = 0; i < directRoles_.size(); i++) { - dataSize += computeStringSizeNoTag(directRoles_.getRaw(i)); - } - size += dataSize; - size += 1 * getDirectRolesList().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.UserLink)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.UserLink other = - (com.google.analytics.admin.v1alpha.UserLink) obj; - - if (!getName().equals(other.getName())) return false; - if (!getEmailAddress().equals(other.getEmailAddress())) return false; - if (!getDirectRolesList().equals(other.getDirectRolesList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - 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_ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getEmailAddress().hashCode(); - if (getDirectRolesCount() > 0) { - hash = (37 * hash) + DIRECT_ROLES_FIELD_NUMBER; - hash = (53 * hash) + getDirectRolesList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.UserLink parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.UserLink parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.UserLink parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.UserLink parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.UserLink parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.UserLink parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.UserLink parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.UserLink parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.UserLink parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.UserLink parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.UserLink parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.UserLink parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.analytics.admin.v1alpha.UserLink prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 user's permissions on an Account or
-   * Property resource.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.UserLink} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.UserLink) - com.google.analytics.admin.v1alpha.UserLinkOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.ResourcesProto - .internal_static_google_analytics_admin_v1alpha_UserLink_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.ResourcesProto - .internal_static_google_analytics_admin_v1alpha_UserLink_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.UserLink.class, - com.google.analytics.admin.v1alpha.UserLink.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.UserLink.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - emailAddress_ = ""; - - directRoles_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - 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_UserLink_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.UserLink getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.UserLink.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.UserLink build() { - com.google.analytics.admin.v1alpha.UserLink result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.UserLink buildPartial() { - com.google.analytics.admin.v1alpha.UserLink result = - new com.google.analytics.admin.v1alpha.UserLink(this); - int from_bitField0_ = bitField0_; - result.name_ = name_; - result.emailAddress_ = emailAddress_; - if (((bitField0_ & 0x00000001) != 0)) { - directRoles_ = directRoles_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.directRoles_ = directRoles_; - 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.UserLink) { - return mergeFrom((com.google.analytics.admin.v1alpha.UserLink) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.UserLink other) { - if (other == com.google.analytics.admin.v1alpha.UserLink.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (!other.getEmailAddress().isEmpty()) { - emailAddress_ = other.emailAddress_; - onChanged(); - } - if (!other.directRoles_.isEmpty()) { - if (directRoles_.isEmpty()) { - directRoles_ = other.directRoles_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureDirectRolesIsMutable(); - directRoles_.addAll(other.directRoles_); - } - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 18: - { - emailAddress_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureDirectRolesIsMutable(); - directRoles_.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 bitField0_; - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * Output only. Example format: properties/1234/userLinks/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/userLinks/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/userLinks/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; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Example format: properties/1234/userLinks/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Example format: properties/1234/userLinks/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; - onChanged(); - return this; - } - - private java.lang.Object emailAddress_ = ""; - /** - * - * - *
-     * Immutable. Email address of the user to link
-     * 
- * - * string email_address = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @return The emailAddress. - */ - public java.lang.String getEmailAddress() { - java.lang.Object ref = emailAddress_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - emailAddress_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Immutable. Email address of the user to link
-     * 
- * - * string email_address = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @return The bytes for emailAddress. - */ - public com.google.protobuf.ByteString getEmailAddressBytes() { - java.lang.Object ref = emailAddress_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - emailAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Immutable. Email address of the user to link
-     * 
- * - * string email_address = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @param value The emailAddress to set. - * @return This builder for chaining. - */ - public Builder setEmailAddress(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - emailAddress_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Immutable. Email address of the user to link
-     * 
- * - * string email_address = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @return This builder for chaining. - */ - public Builder clearEmailAddress() { - - emailAddress_ = getDefaultInstance().getEmailAddress(); - onChanged(); - return this; - } - /** - * - * - *
-     * Immutable. Email address of the user to link
-     * 
- * - * string email_address = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @param value The bytes for emailAddress to set. - * @return This builder for chaining. - */ - public Builder setEmailAddressBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - emailAddress_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList directRoles_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureDirectRolesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - directRoles_ = new com.google.protobuf.LazyStringArrayList(directRoles_); - bitField0_ |= 0x00000001; - } - } - /** - * - * - *
-     * Roles directly assigned to this user for this account or property.
-     * Valid values:
-     * predefinedRoles/viewer
-     * predefinedRoles/analyst
-     * predefinedRoles/editor
-     * predefinedRoles/admin
-     * predefinedRoles/no-cost-data
-     * predefinedRoles/no-revenue-data
-     * Excludes roles that are inherited from a higher-level entity, group,
-     * or organization admin role.
-     * A UserLink that is updated to have an empty list of direct_roles will be
-     * deleted.
-     * 
- * - * repeated string direct_roles = 3; - * - * @return A list containing the directRoles. - */ - public com.google.protobuf.ProtocolStringList getDirectRolesList() { - return directRoles_.getUnmodifiableView(); - } - /** - * - * - *
-     * Roles directly assigned to this user for this account or property.
-     * Valid values:
-     * predefinedRoles/viewer
-     * predefinedRoles/analyst
-     * predefinedRoles/editor
-     * predefinedRoles/admin
-     * predefinedRoles/no-cost-data
-     * predefinedRoles/no-revenue-data
-     * Excludes roles that are inherited from a higher-level entity, group,
-     * or organization admin role.
-     * A UserLink that is updated to have an empty list of direct_roles will be
-     * deleted.
-     * 
- * - * repeated string direct_roles = 3; - * - * @return The count of directRoles. - */ - public int getDirectRolesCount() { - return directRoles_.size(); - } - /** - * - * - *
-     * Roles directly assigned to this user for this account or property.
-     * Valid values:
-     * predefinedRoles/viewer
-     * predefinedRoles/analyst
-     * predefinedRoles/editor
-     * predefinedRoles/admin
-     * predefinedRoles/no-cost-data
-     * predefinedRoles/no-revenue-data
-     * Excludes roles that are inherited from a higher-level entity, group,
-     * or organization admin role.
-     * A UserLink that is updated to have an empty list of direct_roles will be
-     * deleted.
-     * 
- * - * repeated string direct_roles = 3; - * - * @param index The index of the element to return. - * @return The directRoles at the given index. - */ - public java.lang.String getDirectRoles(int index) { - return directRoles_.get(index); - } - /** - * - * - *
-     * Roles directly assigned to this user for this account or property.
-     * Valid values:
-     * predefinedRoles/viewer
-     * predefinedRoles/analyst
-     * predefinedRoles/editor
-     * predefinedRoles/admin
-     * predefinedRoles/no-cost-data
-     * predefinedRoles/no-revenue-data
-     * Excludes roles that are inherited from a higher-level entity, group,
-     * or organization admin role.
-     * A UserLink that is updated to have an empty list of direct_roles will be
-     * deleted.
-     * 
- * - * repeated string direct_roles = 3; - * - * @param index The index of the value to return. - * @return The bytes of the directRoles at the given index. - */ - public com.google.protobuf.ByteString getDirectRolesBytes(int index) { - return directRoles_.getByteString(index); - } - /** - * - * - *
-     * Roles directly assigned to this user for this account or property.
-     * Valid values:
-     * predefinedRoles/viewer
-     * predefinedRoles/analyst
-     * predefinedRoles/editor
-     * predefinedRoles/admin
-     * predefinedRoles/no-cost-data
-     * predefinedRoles/no-revenue-data
-     * Excludes roles that are inherited from a higher-level entity, group,
-     * or organization admin role.
-     * A UserLink that is updated to have an empty list of direct_roles will be
-     * deleted.
-     * 
- * - * repeated string direct_roles = 3; - * - * @param index The index to set the value at. - * @param value The directRoles to set. - * @return This builder for chaining. - */ - public Builder setDirectRoles(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureDirectRolesIsMutable(); - directRoles_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * Roles directly assigned to this user for this account or property.
-     * Valid values:
-     * predefinedRoles/viewer
-     * predefinedRoles/analyst
-     * predefinedRoles/editor
-     * predefinedRoles/admin
-     * predefinedRoles/no-cost-data
-     * predefinedRoles/no-revenue-data
-     * Excludes roles that are inherited from a higher-level entity, group,
-     * or organization admin role.
-     * A UserLink that is updated to have an empty list of direct_roles will be
-     * deleted.
-     * 
- * - * repeated string direct_roles = 3; - * - * @param value The directRoles to add. - * @return This builder for chaining. - */ - public Builder addDirectRoles(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureDirectRolesIsMutable(); - directRoles_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * Roles directly assigned to this user for this account or property.
-     * Valid values:
-     * predefinedRoles/viewer
-     * predefinedRoles/analyst
-     * predefinedRoles/editor
-     * predefinedRoles/admin
-     * predefinedRoles/no-cost-data
-     * predefinedRoles/no-revenue-data
-     * Excludes roles that are inherited from a higher-level entity, group,
-     * or organization admin role.
-     * A UserLink that is updated to have an empty list of direct_roles will be
-     * deleted.
-     * 
- * - * repeated string direct_roles = 3; - * - * @param values The directRoles to add. - * @return This builder for chaining. - */ - public Builder addAllDirectRoles(java.lang.Iterable values) { - ensureDirectRolesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, directRoles_); - onChanged(); - return this; - } - /** - * - * - *
-     * Roles directly assigned to this user for this account or property.
-     * Valid values:
-     * predefinedRoles/viewer
-     * predefinedRoles/analyst
-     * predefinedRoles/editor
-     * predefinedRoles/admin
-     * predefinedRoles/no-cost-data
-     * predefinedRoles/no-revenue-data
-     * Excludes roles that are inherited from a higher-level entity, group,
-     * or organization admin role.
-     * A UserLink that is updated to have an empty list of direct_roles will be
-     * deleted.
-     * 
- * - * repeated string direct_roles = 3; - * - * @return This builder for chaining. - */ - public Builder clearDirectRoles() { - directRoles_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Roles directly assigned to this user for this account or property.
-     * Valid values:
-     * predefinedRoles/viewer
-     * predefinedRoles/analyst
-     * predefinedRoles/editor
-     * predefinedRoles/admin
-     * predefinedRoles/no-cost-data
-     * predefinedRoles/no-revenue-data
-     * Excludes roles that are inherited from a higher-level entity, group,
-     * or organization admin role.
-     * A UserLink that is updated to have an empty list of direct_roles will be
-     * deleted.
-     * 
- * - * repeated string direct_roles = 3; - * - * @param value The bytes of the directRoles to add. - * @return This builder for chaining. - */ - public Builder addDirectRolesBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureDirectRolesIsMutable(); - directRoles_.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.UserLink) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.UserLink) - private static final com.google.analytics.admin.v1alpha.UserLink DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.UserLink(); - } - - public static com.google.analytics.admin.v1alpha.UserLink getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UserLink parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.UserLink getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UserLinkName.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UserLinkName.java deleted file mode 100644 index d8cc99e6..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UserLinkName.java +++ /dev/null @@ -1,294 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 com.google.api.core.BetaApi; -import com.google.api.pathtemplate.PathTemplate; -import com.google.api.pathtemplate.ValidationException; -import com.google.api.resourcenames.ResourceName; -import com.google.common.base.Preconditions; -import com.google.common.collect.ImmutableMap; -import java.util.ArrayList; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -@Generated("by gapic-generator-java") -public class UserLinkName implements ResourceName { - private static final PathTemplate ACCOUNT_USER_LINK = - PathTemplate.createWithoutUrlEncoding("accounts/{account}/userLinks/{user_link}"); - private static final PathTemplate PROPERTY_USER_LINK = - PathTemplate.createWithoutUrlEncoding("properties/{property}/userLinks/{user_link}"); - private volatile Map fieldValuesMap; - private PathTemplate pathTemplate; - private String fixedValue; - private final String account; - private final String userLink; - private final String property; - - @Deprecated - protected UserLinkName() { - account = null; - userLink = null; - property = null; - } - - private UserLinkName(Builder builder) { - account = Preconditions.checkNotNull(builder.getAccount()); - userLink = Preconditions.checkNotNull(builder.getUserLink()); - property = null; - pathTemplate = ACCOUNT_USER_LINK; - } - - private UserLinkName(PropertyUserLinkBuilder builder) { - property = Preconditions.checkNotNull(builder.getProperty()); - userLink = Preconditions.checkNotNull(builder.getUserLink()); - account = null; - pathTemplate = PROPERTY_USER_LINK; - } - - public String getAccount() { - return account; - } - - public String getUserLink() { - return userLink; - } - - public String getProperty() { - return property; - } - - public static Builder newBuilder() { - return new Builder(); - } - - @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") - public static Builder newAccountUserLinkBuilder() { - return new Builder(); - } - - @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") - public static PropertyUserLinkBuilder newPropertyUserLinkBuilder() { - return new PropertyUserLinkBuilder(); - } - - public Builder toBuilder() { - return new Builder(this); - } - - public static UserLinkName of(String account, String userLink) { - return newBuilder().setAccount(account).setUserLink(userLink).build(); - } - - @BetaApi("The static create methods are not stable yet and may be changed in the future.") - public static UserLinkName ofAccountUserLinkName(String account, String userLink) { - return newBuilder().setAccount(account).setUserLink(userLink).build(); - } - - @BetaApi("The static create methods are not stable yet and may be changed in the future.") - public static UserLinkName ofPropertyUserLinkName(String property, String userLink) { - return newPropertyUserLinkBuilder().setProperty(property).setUserLink(userLink).build(); - } - - public static String format(String account, String userLink) { - return newBuilder().setAccount(account).setUserLink(userLink).build().toString(); - } - - @BetaApi("The static format methods are not stable yet and may be changed in the future.") - public static String formatAccountUserLinkName(String account, String userLink) { - return newBuilder().setAccount(account).setUserLink(userLink).build().toString(); - } - - @BetaApi("The static format methods are not stable yet and may be changed in the future.") - public static String formatPropertyUserLinkName(String property, String userLink) { - return newPropertyUserLinkBuilder() - .setProperty(property) - .setUserLink(userLink) - .build() - .toString(); - } - - public static UserLinkName parse(String formattedString) { - if (formattedString.isEmpty()) { - return null; - } - if (ACCOUNT_USER_LINK.matches(formattedString)) { - Map matchMap = ACCOUNT_USER_LINK.match(formattedString); - return ofAccountUserLinkName(matchMap.get("account"), matchMap.get("user_link")); - } else if (PROPERTY_USER_LINK.matches(formattedString)) { - Map matchMap = PROPERTY_USER_LINK.match(formattedString); - return ofPropertyUserLinkName(matchMap.get("property"), matchMap.get("user_link")); - } - throw new ValidationException("UserLinkName.parse: formattedString not in valid format"); - } - - public static List parseList(List formattedStrings) { - List list = new ArrayList<>(formattedStrings.size()); - for (String formattedString : formattedStrings) { - list.add(parse(formattedString)); - } - return list; - } - - public static List toStringList(List values) { - List list = new ArrayList<>(values.size()); - for (UserLinkName value : values) { - if (value == null) { - list.add(""); - } else { - list.add(value.toString()); - } - } - return list; - } - - public static boolean isParsableFrom(String formattedString) { - return ACCOUNT_USER_LINK.matches(formattedString) - || PROPERTY_USER_LINK.matches(formattedString); - } - - @Override - public Map getFieldValuesMap() { - if (fieldValuesMap == null) { - synchronized (this) { - if (fieldValuesMap == null) { - ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); - if (account != null) { - fieldMapBuilder.put("account", account); - } - if (userLink != null) { - fieldMapBuilder.put("user_link", userLink); - } - if (property != null) { - fieldMapBuilder.put("property", property); - } - fieldValuesMap = fieldMapBuilder.build(); - } - } - } - return fieldValuesMap; - } - - public String getFieldValue(String fieldName) { - return getFieldValuesMap().get(fieldName); - } - - @Override - public String toString() { - return fixedValue != null ? fixedValue : pathTemplate.instantiate(getFieldValuesMap()); - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (o != null || getClass() == o.getClass()) { - UserLinkName that = ((UserLinkName) o); - return Objects.equals(this.account, that.account) - && Objects.equals(this.userLink, that.userLink) - && Objects.equals(this.property, that.property); - } - return false; - } - - @Override - public int hashCode() { - int h = 1; - h *= 1000003; - h ^= Objects.hashCode(fixedValue); - h *= 1000003; - h ^= Objects.hashCode(account); - h *= 1000003; - h ^= Objects.hashCode(userLink); - h *= 1000003; - h ^= Objects.hashCode(property); - return h; - } - - /** Builder for accounts/{account}/userLinks/{user_link}. */ - public static class Builder { - private String account; - private String userLink; - - protected Builder() {} - - public String getAccount() { - return account; - } - - public String getUserLink() { - return userLink; - } - - public Builder setAccount(String account) { - this.account = account; - return this; - } - - public Builder setUserLink(String userLink) { - this.userLink = userLink; - return this; - } - - private Builder(UserLinkName userLinkName) { - Preconditions.checkArgument( - Objects.equals(userLinkName.pathTemplate, ACCOUNT_USER_LINK), - "toBuilder is only supported when UserLinkName has the pattern of accounts/{account}/userLinks/{user_link}"); - this.account = userLinkName.account; - this.userLink = userLinkName.userLink; - } - - public UserLinkName build() { - return new UserLinkName(this); - } - } - - /** Builder for properties/{property}/userLinks/{user_link}. */ - @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") - public static class PropertyUserLinkBuilder { - private String property; - private String userLink; - - protected PropertyUserLinkBuilder() {} - - public String getProperty() { - return property; - } - - public String getUserLink() { - return userLink; - } - - public PropertyUserLinkBuilder setProperty(String property) { - this.property = property; - return this; - } - - public PropertyUserLinkBuilder setUserLink(String userLink) { - this.userLink = userLink; - return this; - } - - public UserLinkName build() { - return new UserLinkName(this); - } - } -} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UserLinkOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UserLinkOrBuilder.java deleted file mode 100644 index 4a5aa7fe..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UserLinkOrBuilder.java +++ /dev/null @@ -1,170 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/resources.proto - -package com.google.analytics.admin.v1alpha; - -public interface UserLinkOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.UserLink) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Output only. Example format: properties/1234/userLinks/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Output only. Example format: properties/1234/userLinks/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-   * Immutable. Email address of the user to link
-   * 
- * - * string email_address = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @return The emailAddress. - */ - java.lang.String getEmailAddress(); - /** - * - * - *
-   * Immutable. Email address of the user to link
-   * 
- * - * string email_address = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @return The bytes for emailAddress. - */ - com.google.protobuf.ByteString getEmailAddressBytes(); - - /** - * - * - *
-   * Roles directly assigned to this user for this account or property.
-   * Valid values:
-   * predefinedRoles/viewer
-   * predefinedRoles/analyst
-   * predefinedRoles/editor
-   * predefinedRoles/admin
-   * predefinedRoles/no-cost-data
-   * predefinedRoles/no-revenue-data
-   * Excludes roles that are inherited from a higher-level entity, group,
-   * or organization admin role.
-   * A UserLink that is updated to have an empty list of direct_roles will be
-   * deleted.
-   * 
- * - * repeated string direct_roles = 3; - * - * @return A list containing the directRoles. - */ - java.util.List getDirectRolesList(); - /** - * - * - *
-   * Roles directly assigned to this user for this account or property.
-   * Valid values:
-   * predefinedRoles/viewer
-   * predefinedRoles/analyst
-   * predefinedRoles/editor
-   * predefinedRoles/admin
-   * predefinedRoles/no-cost-data
-   * predefinedRoles/no-revenue-data
-   * Excludes roles that are inherited from a higher-level entity, group,
-   * or organization admin role.
-   * A UserLink that is updated to have an empty list of direct_roles will be
-   * deleted.
-   * 
- * - * repeated string direct_roles = 3; - * - * @return The count of directRoles. - */ - int getDirectRolesCount(); - /** - * - * - *
-   * Roles directly assigned to this user for this account or property.
-   * Valid values:
-   * predefinedRoles/viewer
-   * predefinedRoles/analyst
-   * predefinedRoles/editor
-   * predefinedRoles/admin
-   * predefinedRoles/no-cost-data
-   * predefinedRoles/no-revenue-data
-   * Excludes roles that are inherited from a higher-level entity, group,
-   * or organization admin role.
-   * A UserLink that is updated to have an empty list of direct_roles will be
-   * deleted.
-   * 
- * - * repeated string direct_roles = 3; - * - * @param index The index of the element to return. - * @return The directRoles at the given index. - */ - java.lang.String getDirectRoles(int index); - /** - * - * - *
-   * Roles directly assigned to this user for this account or property.
-   * Valid values:
-   * predefinedRoles/viewer
-   * predefinedRoles/analyst
-   * predefinedRoles/editor
-   * predefinedRoles/admin
-   * predefinedRoles/no-cost-data
-   * predefinedRoles/no-revenue-data
-   * Excludes roles that are inherited from a higher-level entity, group,
-   * or organization admin role.
-   * A UserLink that is updated to have an empty list of direct_roles will be
-   * deleted.
-   * 
- * - * repeated string direct_roles = 3; - * - * @param index The index of the value to return. - * @return The bytes of the directRoles at the given index. - */ - com.google.protobuf.ByteString getDirectRolesBytes(int index); -} diff --git a/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/access_report.proto b/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/access_report.proto deleted file mode 100644 index ce6a8aa1..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/access_report.proto +++ /dev/null @@ -1,328 +0,0 @@ -// Copyright 2022 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.analytics.admin.v1alpha; - -option go_package = "google.golang.org/genproto/googleapis/analytics/admin/v1alpha;admin"; -option java_multiple_files = true; -option java_outer_classname = "AccessReportProto"; -option java_package = "com.google.analytics.admin.v1alpha"; - -// Dimensions are attributes of your data. For example, the dimension -// `userEmail` indicates the email of the user that accessed reporting data. -// Dimension values in report responses are strings. -message AccessDimension { - // The API name of the dimension. See [Data Access - // Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema) - // for the list of dimensions supported in this API. - // - // Dimensions are referenced by name in `dimensionFilter` and `orderBys`. - string dimension_name = 1; -} - -// The quantitative measurements of a report. For example, the metric -// `accessCount` is the total number of data access records. -message AccessMetric { - // The API name of the metric. See [Data Access - // Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema) - // for the list of metrics supported in this API. - // - // Metrics are referenced by name in `metricFilter` & `orderBys`. - string metric_name = 1; -} - -// A contiguous range of days: startDate, startDate + 1, ..., endDate. -message AccessDateRange { - // The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot - // be after `endDate`. The format `NdaysAgo`, `yesterday`, or `today` is also - // accepted, and in that case, the date is inferred based on the current time - // in the request's time zone. - string start_date = 1; - - // The inclusive end date for the query in the format `YYYY-MM-DD`. Cannot - // be before `startDate`. The format `NdaysAgo`, `yesterday`, or `today` is - // also accepted, and in that case, the date is inferred based on the current - // time in the request's time zone. - string end_date = 2; -} - -// Expresses dimension or metric filters. The fields in the same expression need -// to be either all dimensions or all metrics. -message AccessFilterExpression { - // Specify one type of filter expression for `FilterExpression`. - oneof one_expression { - // Each of the FilterExpressions in the and_group has an AND relationship. - AccessFilterExpressionList and_group = 1; - - // Each of the FilterExpressions in the or_group has an OR relationship. - AccessFilterExpressionList or_group = 2; - - // The FilterExpression is NOT of not_expression. - AccessFilterExpression not_expression = 3; - - // A primitive filter. In the same FilterExpression, all of the filter's - // field names need to be either all dimensions or all metrics. - AccessFilter access_filter = 4; - } -} - -// A list of filter expressions. -message AccessFilterExpressionList { - // A list of filter expressions. - repeated AccessFilterExpression expressions = 1; -} - -// An expression to filter dimension or metric values. -message AccessFilter { - // Specify one type of filter for `Filter`. - oneof one_filter { - // Strings related filter. - AccessStringFilter string_filter = 2; - - // A filter for in list values. - AccessInListFilter in_list_filter = 3; - - // A filter for numeric or date values. - AccessNumericFilter numeric_filter = 4; - - // A filter for two values. - AccessBetweenFilter between_filter = 5; - } - - // The dimension name or metric name. - string field_name = 1; -} - -// The filter for strings. -message AccessStringFilter { - // The match type of a string filter. - enum MatchType { - // Unspecified - MATCH_TYPE_UNSPECIFIED = 0; - - // Exact match of the string value. - EXACT = 1; - - // Begins with the string value. - BEGINS_WITH = 2; - - // Ends with the string value. - ENDS_WITH = 3; - - // Contains the string value. - CONTAINS = 4; - - // Full match for the regular expression with the string value. - FULL_REGEXP = 5; - - // Partial match for the regular expression with the string value. - PARTIAL_REGEXP = 6; - } - - // The match type for this filter. - MatchType match_type = 1; - - // The string value used for the matching. - string value = 2; - - // If true, the string value is case sensitive. - bool case_sensitive = 3; -} - -// The result needs to be in a list of string values. -message AccessInListFilter { - // The list of string values. Must be non-empty. - repeated string values = 1; - - // If true, the string value is case sensitive. - bool case_sensitive = 2; -} - -// Filters for numeric or date values. -message AccessNumericFilter { - // The operation applied to a numeric filter. - enum Operation { - // Unspecified. - OPERATION_UNSPECIFIED = 0; - - // Equal - EQUAL = 1; - - // Less than - LESS_THAN = 2; - - // Less than or equal - LESS_THAN_OR_EQUAL = 3; - - // Greater than - GREATER_THAN = 4; - - // Greater than or equal - GREATER_THAN_OR_EQUAL = 5; - } - - // The operation type for this filter. - Operation operation = 1; - - // A numeric value or a date value. - NumericValue value = 2; -} - -// To express that the result needs to be between two numbers (inclusive). -message AccessBetweenFilter { - // Begins with this number. - NumericValue from_value = 1; - - // Ends with this number. - NumericValue to_value = 2; -} - -// To represent a number. -message NumericValue { - // One of a numeric value - oneof one_value { - // Integer value - int64 int64_value = 1; - - // Double value - double double_value = 2; - } -} - -// Order bys define how rows will be sorted in the response. For example, -// ordering rows by descending access count is one ordering, and ordering rows -// by the country string is a different ordering. -message AccessOrderBy { - // Sorts by metric values. - message MetricOrderBy { - // A metric name in the request to order by. - string metric_name = 1; - } - - // Sorts by dimension values. - message DimensionOrderBy { - // Rule to order the string dimension values by. - enum OrderType { - // Unspecified. - ORDER_TYPE_UNSPECIFIED = 0; - - // Alphanumeric sort by Unicode code point. For example, "2" < "A" < "X" < - // "b" < "z". - ALPHANUMERIC = 1; - - // Case insensitive alphanumeric sort by lower case Unicode code point. - // For example, "2" < "A" < "b" < "X" < "z". - CASE_INSENSITIVE_ALPHANUMERIC = 2; - - // Dimension values are converted to numbers before sorting. For example - // in NUMERIC sort, "25" < "100", and in `ALPHANUMERIC` sort, "100" < - // "25". Non-numeric dimension values all have equal ordering value below - // all numeric values. - NUMERIC = 3; - } - - // A dimension name in the request to order by. - string dimension_name = 1; - - // Controls the rule for dimension value ordering. - OrderType order_type = 2; - } - - // Specify one type of order by for `OrderBy`. - oneof one_order_by { - // Sorts results by a metric's values. - MetricOrderBy metric = 1; - - // Sorts results by a dimension's values. - DimensionOrderBy dimension = 2; - } - - // If true, sorts by descending order. If false or unspecified, sorts in - // ascending order. - bool desc = 3; -} - -// Describes a dimension column in the report. Dimensions requested in a report -// produce column entries within rows and DimensionHeaders. However, dimensions -// used exclusively within filters or expressions do not produce columns in a -// report; correspondingly, those dimensions do not produce headers. -message AccessDimensionHeader { - // The dimension's name; for example 'userEmail'. - string dimension_name = 1; -} - -// Describes a metric column in the report. Visible metrics requested in a -// report produce column entries within rows and MetricHeaders. However, -// metrics used exclusively within filters or expressions do not produce columns -// in a report; correspondingly, those metrics do not produce headers. -message AccessMetricHeader { - // The metric's name; for example 'accessCount'. - string metric_name = 1; -} - -// Access report data for each row. -message AccessRow { - // List of dimension values. These values are in the same order as specified - // in the request. - repeated AccessDimensionValue dimension_values = 1; - - // List of metric values. These values are in the same order as specified - // in the request. - repeated AccessMetricValue metric_values = 2; -} - -// The value of a dimension. -message AccessDimensionValue { - // The dimension value. For example, this value may be 'France' for the - // 'country' dimension. - string value = 1; -} - -// The value of a metric. -message AccessMetricValue { - // The measurement value. For example, this value may be '13'. - string value = 1; -} - -// Current state of all quotas for this Analytics property. If any quota for a -// property is exhausted, all requests to that property will return Resource -// Exhausted errors. -message AccessQuota { - // Properties can use 250,000 tokens per day. Most requests consume fewer than - // 10 tokens. - AccessQuotaStatus tokens_per_day = 1; - - // Properties can use 50,000 tokens per hour. An API request consumes a single - // number of tokens, and that number is deducted from both the hourly and - // daily quotas. - AccessQuotaStatus tokens_per_hour = 2; - - // Properties can use up to 50 concurrent requests. - AccessQuotaStatus concurrent_requests = 3; - - // Properties and cloud project pairs can have up to 50 server errors per - // hour. - AccessQuotaStatus server_errors_per_project_per_hour = 4; -} - -// Current state for a particular quota group. -message AccessQuotaStatus { - // Quota consumed by this request. - int32 consumed = 1; - - // Quota remaining after this request. - int32 remaining = 2; -} diff --git a/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/analytics_admin.proto b/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/analytics_admin.proto deleted file mode 100644 index 926f91bb..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/analytics_admin.proto +++ /dev/null @@ -1,2333 +0,0 @@ -// Copyright 2022 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.analytics.admin.v1alpha; - -import "google/analytics/admin/v1alpha/access_report.proto"; -import "google/analytics/admin/v1alpha/audience.proto"; -import "google/analytics/admin/v1alpha/resources.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/empty.proto"; -import "google/protobuf/field_mask.proto"; -import "google/protobuf/timestamp.proto"; - -option go_package = "google.golang.org/genproto/googleapis/analytics/admin/v1alpha;admin"; -option java_multiple_files = true; -option java_outer_classname = "AnalyticsAdminProto"; -option java_package = "com.google.analytics.admin.v1alpha"; - -// Service Interface for the Analytics Admin API (GA4). -service AnalyticsAdminService { - option (google.api.default_host) = "analyticsadmin.googleapis.com"; - option (google.api.oauth_scopes) = - "https://www.googleapis.com/auth/analytics.edit," - "https://www.googleapis.com/auth/analytics.manage.users," - "https://www.googleapis.com/auth/analytics.manage.users.readonly," - "https://www.googleapis.com/auth/analytics.readonly"; - - // Lookup for a single Account. - rpc GetAccount(GetAccountRequest) returns (Account) { - option (google.api.http) = { - get: "/v1alpha/{name=accounts/*}" - }; - option (google.api.method_signature) = "name"; - } - - // 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. - rpc ListAccounts(ListAccountsRequest) returns (ListAccountsResponse) { - option (google.api.http) = { - get: "/v1alpha/accounts" - }; - } - - // 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. - rpc DeleteAccount(DeleteAccountRequest) returns (google.protobuf.Empty) { - option (google.api.http) = { - delete: "/v1alpha/{name=accounts/*}" - }; - option (google.api.method_signature) = "name"; - } - - // Updates an account. - rpc UpdateAccount(UpdateAccountRequest) returns (Account) { - option (google.api.http) = { - patch: "/v1alpha/{account.name=accounts/*}" - body: "account" - }; - option (google.api.method_signature) = "account,update_mask"; - } - - // Requests a ticket for creating an account. - rpc ProvisionAccountTicket(ProvisionAccountTicketRequest) returns (ProvisionAccountTicketResponse) { - option (google.api.http) = { - post: "/v1alpha/accounts:provisionAccountTicket" - body: "*" - }; - } - - // Returns summaries of all accounts accessible by the caller. - rpc ListAccountSummaries(ListAccountSummariesRequest) returns (ListAccountSummariesResponse) { - option (google.api.http) = { - get: "/v1alpha/accountSummaries" - }; - } - - // Lookup for a single "GA4" Property. - rpc GetProperty(GetPropertyRequest) returns (Property) { - option (google.api.http) = { - get: "/v1alpha/{name=properties/*}" - }; - option (google.api.method_signature) = "name"; - } - - // 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. - rpc ListProperties(ListPropertiesRequest) returns (ListPropertiesResponse) { - option (google.api.http) = { - get: "/v1alpha/properties" - }; - } - - // Creates an "GA4" property with the specified location and attributes. - rpc CreateProperty(CreatePropertyRequest) returns (Property) { - option (google.api.http) = { - post: "/v1alpha/properties" - body: "property" - }; - option (google.api.method_signature) = "property"; - } - - // 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 an GA4 Property. - rpc DeleteProperty(DeletePropertyRequest) returns (Property) { - option (google.api.http) = { - delete: "/v1alpha/{name=properties/*}" - }; - option (google.api.method_signature) = "name"; - } - - // Updates a property. - rpc UpdateProperty(UpdatePropertyRequest) returns (Property) { - option (google.api.http) = { - patch: "/v1alpha/{property.name=properties/*}" - body: "property" - }; - option (google.api.method_signature) = "property,update_mask"; - } - - // Gets information about a user's link to an account or property. - rpc GetUserLink(GetUserLinkRequest) returns (UserLink) { - option (google.api.http) = { - get: "/v1alpha/{name=accounts/*/userLinks/*}" - additional_bindings { - get: "/v1alpha/{name=properties/*/userLinks/*}" - } - }; - option (google.api.method_signature) = "name"; - } - - // Gets information about multiple users' links to an account or property. - rpc BatchGetUserLinks(BatchGetUserLinksRequest) returns (BatchGetUserLinksResponse) { - option (google.api.http) = { - get: "/v1alpha/{parent=accounts/*}/userLinks:batchGet" - additional_bindings { - get: "/v1alpha/{parent=properties/*}/userLinks:batchGet" - } - }; - } - - // Lists all user links on an account or property. - rpc ListUserLinks(ListUserLinksRequest) returns (ListUserLinksResponse) { - option (google.api.http) = { - get: "/v1alpha/{parent=accounts/*}/userLinks" - additional_bindings { - get: "/v1alpha/{parent=properties/*}/userLinks" - } - }; - option (google.api.method_signature) = "parent"; - } - - // Lists all user links on an account or property, including implicit ones - // that come from effective permissions granted by groups or organization - // admin roles. - // - // If a returned user link does not have direct permissions, they cannot - // be removed from the account or property directly with the DeleteUserLink - // command. They have to be removed from the group/etc that gives them - // permissions, which is currently only usable/discoverable in the GA or GMP - // UIs. - rpc AuditUserLinks(AuditUserLinksRequest) returns (AuditUserLinksResponse) { - option (google.api.http) = { - post: "/v1alpha/{parent=accounts/*}/userLinks:audit" - body: "*" - additional_bindings { - post: "/v1alpha/{parent=properties/*}/userLinks:audit" - body: "*" - } - }; - } - - // Creates a user link on an account or property. - // - // If the user with the specified email already has permissions on the - // account or property, then the user's existing permissions will be unioned - // with the permissions specified in the new UserLink. - rpc CreateUserLink(CreateUserLinkRequest) returns (UserLink) { - option (google.api.http) = { - post: "/v1alpha/{parent=accounts/*}/userLinks" - body: "user_link" - additional_bindings { - post: "/v1alpha/{parent=properties/*}/userLinks" - body: "user_link" - } - }; - option (google.api.method_signature) = "parent,user_link"; - } - - // Creates information about multiple users' links to an account or property. - // - // This method is transactional. If any UserLink cannot be created, none of - // the UserLinks will be created. - rpc BatchCreateUserLinks(BatchCreateUserLinksRequest) returns (BatchCreateUserLinksResponse) { - option (google.api.http) = { - post: "/v1alpha/{parent=accounts/*}/userLinks:batchCreate" - body: "*" - additional_bindings { - post: "/v1alpha/{parent=properties/*}/userLinks:batchCreate" - body: "*" - } - }; - } - - // Updates a user link on an account or property. - rpc UpdateUserLink(UpdateUserLinkRequest) returns (UserLink) { - option (google.api.http) = { - patch: "/v1alpha/{user_link.name=accounts/*/userLinks/*}" - body: "user_link" - additional_bindings { - patch: "/v1alpha/{user_link.name=properties/*/userLinks/*}" - body: "user_link" - } - }; - option (google.api.method_signature) = "user_link"; - } - - // Updates information about multiple users' links to an account or property. - rpc BatchUpdateUserLinks(BatchUpdateUserLinksRequest) returns (BatchUpdateUserLinksResponse) { - option (google.api.http) = { - post: "/v1alpha/{parent=accounts/*}/userLinks:batchUpdate" - body: "*" - additional_bindings { - post: "/v1alpha/{parent=properties/*}/userLinks:batchUpdate" - body: "*" - } - }; - } - - // Deletes a user link on an account or property. - rpc DeleteUserLink(DeleteUserLinkRequest) returns (google.protobuf.Empty) { - option (google.api.http) = { - delete: "/v1alpha/{name=accounts/*/userLinks/*}" - additional_bindings { - delete: "/v1alpha/{name=properties/*/userLinks/*}" - } - }; - option (google.api.method_signature) = "name"; - } - - // Deletes information about multiple users' links to an account or property. - rpc BatchDeleteUserLinks(BatchDeleteUserLinksRequest) returns (google.protobuf.Empty) { - option (google.api.http) = { - post: "/v1alpha/{parent=accounts/*}/userLinks:batchDelete" - body: "*" - additional_bindings { - post: "/v1alpha/{parent=properties/*}/userLinks:batchDelete" - body: "*" - } - }; - } - - // Creates a FirebaseLink. - // - // Properties can have at most one FirebaseLink. - rpc CreateFirebaseLink(CreateFirebaseLinkRequest) returns (FirebaseLink) { - option (google.api.http) = { - post: "/v1alpha/{parent=properties/*}/firebaseLinks" - body: "firebase_link" - }; - option (google.api.method_signature) = "parent,firebase_link"; - } - - // Deletes a FirebaseLink on a property - rpc DeleteFirebaseLink(DeleteFirebaseLinkRequest) returns (google.protobuf.Empty) { - option (google.api.http) = { - delete: "/v1alpha/{name=properties/*/firebaseLinks/*}" - }; - option (google.api.method_signature) = "name"; - } - - // Lists FirebaseLinks on a property. - // Properties can have at most one FirebaseLink. - rpc ListFirebaseLinks(ListFirebaseLinksRequest) returns (ListFirebaseLinksResponse) { - option (google.api.http) = { - get: "/v1alpha/{parent=properties/*}/firebaseLinks" - }; - option (google.api.method_signature) = "parent"; - } - - // Returns the Site Tag for the specified web stream. - // Site Tags are immutable singletons. - rpc GetGlobalSiteTag(GetGlobalSiteTagRequest) returns (GlobalSiteTag) { - option (google.api.http) = { - get: "/v1alpha/{name=properties/*/dataStreams/*/globalSiteTag}" - }; - option (google.api.method_signature) = "name"; - } - - // Creates a GoogleAdsLink. - rpc CreateGoogleAdsLink(CreateGoogleAdsLinkRequest) returns (GoogleAdsLink) { - option (google.api.http) = { - post: "/v1alpha/{parent=properties/*}/googleAdsLinks" - body: "google_ads_link" - }; - option (google.api.method_signature) = "parent,google_ads_link"; - } - - // Updates a GoogleAdsLink on a property - rpc UpdateGoogleAdsLink(UpdateGoogleAdsLinkRequest) returns (GoogleAdsLink) { - option (google.api.http) = { - patch: "/v1alpha/{google_ads_link.name=properties/*/googleAdsLinks/*}" - body: "google_ads_link" - }; - option (google.api.method_signature) = "google_ads_link,update_mask"; - } - - // Deletes a GoogleAdsLink on a property - rpc DeleteGoogleAdsLink(DeleteGoogleAdsLinkRequest) returns (google.protobuf.Empty) { - option (google.api.http) = { - delete: "/v1alpha/{name=properties/*/googleAdsLinks/*}" - }; - option (google.api.method_signature) = "name"; - } - - // Lists GoogleAdsLinks on a property. - rpc ListGoogleAdsLinks(ListGoogleAdsLinksRequest) returns (ListGoogleAdsLinksResponse) { - option (google.api.http) = { - get: "/v1alpha/{parent=properties/*}/googleAdsLinks" - }; - option (google.api.method_signature) = "parent"; - } - - // Get data sharing settings on an account. - // Data sharing settings are singletons. - rpc GetDataSharingSettings(GetDataSharingSettingsRequest) returns (DataSharingSettings) { - option (google.api.http) = { - get: "/v1alpha/{name=accounts/*/dataSharingSettings}" - }; - option (google.api.method_signature) = "name"; - } - - // Lookup for a single "GA4" MeasurementProtocolSecret. - rpc GetMeasurementProtocolSecret(GetMeasurementProtocolSecretRequest) returns (MeasurementProtocolSecret) { - option (google.api.http) = { - get: "/v1alpha/{name=properties/*/dataStreams/*/measurementProtocolSecrets/*}" - }; - option (google.api.method_signature) = "name"; - } - - // Returns child MeasurementProtocolSecrets under the specified parent - // Property. - rpc ListMeasurementProtocolSecrets(ListMeasurementProtocolSecretsRequest) returns (ListMeasurementProtocolSecretsResponse) { - option (google.api.http) = { - get: "/v1alpha/{parent=properties/*/dataStreams/*}/measurementProtocolSecrets" - }; - option (google.api.method_signature) = "parent"; - } - - // Creates a measurement protocol secret. - rpc CreateMeasurementProtocolSecret(CreateMeasurementProtocolSecretRequest) returns (MeasurementProtocolSecret) { - option (google.api.http) = { - post: "/v1alpha/{parent=properties/*/dataStreams/*}/measurementProtocolSecrets" - body: "measurement_protocol_secret" - }; - option (google.api.method_signature) = "parent,measurement_protocol_secret"; - } - - // Deletes target MeasurementProtocolSecret. - rpc DeleteMeasurementProtocolSecret(DeleteMeasurementProtocolSecretRequest) returns (google.protobuf.Empty) { - option (google.api.http) = { - delete: "/v1alpha/{name=properties/*/dataStreams/*/measurementProtocolSecrets/*}" - }; - option (google.api.method_signature) = "name"; - } - - // Updates a measurement protocol secret. - rpc UpdateMeasurementProtocolSecret(UpdateMeasurementProtocolSecretRequest) returns (MeasurementProtocolSecret) { - option (google.api.http) = { - patch: "/v1alpha/{measurement_protocol_secret.name=properties/*/dataStreams/*/measurementProtocolSecrets/*}" - body: "measurement_protocol_secret" - }; - option (google.api.method_signature) = "measurement_protocol_secret,update_mask"; - } - - // Acknowledges the terms of user data collection for the specified property. - // - // This acknowledgement must be completed (either in the Google Analytics UI - // or via this API) before MeasurementProtocolSecret resources may be created. - rpc AcknowledgeUserDataCollection(AcknowledgeUserDataCollectionRequest) returns (AcknowledgeUserDataCollectionResponse) { - option (google.api.http) = { - post: "/v1alpha/{property=properties/*}:acknowledgeUserDataCollection" - body: "*" - }; - } - - // Searches through all changes to an account or its children given the - // specified set of filters. - rpc SearchChangeHistoryEvents(SearchChangeHistoryEventsRequest) returns (SearchChangeHistoryEventsResponse) { - option (google.api.http) = { - post: "/v1alpha/{account=accounts/*}:searchChangeHistoryEvents" - body: "*" - }; - } - - // Lookup for Google Signals settings for a property. - rpc GetGoogleSignalsSettings(GetGoogleSignalsSettingsRequest) returns (GoogleSignalsSettings) { - option (google.api.http) = { - get: "/v1alpha/{name=properties/*/googleSignalsSettings}" - }; - option (google.api.method_signature) = "name"; - } - - // Updates Google Signals settings for a property. - rpc UpdateGoogleSignalsSettings(UpdateGoogleSignalsSettingsRequest) returns (GoogleSignalsSettings) { - option (google.api.http) = { - patch: "/v1alpha/{google_signals_settings.name=properties/*/googleSignalsSettings}" - body: "google_signals_settings" - }; - option (google.api.method_signature) = "google_signals_settings,update_mask"; - } - - // Creates a conversion event with the specified attributes. - rpc CreateConversionEvent(CreateConversionEventRequest) returns (ConversionEvent) { - option (google.api.http) = { - post: "/v1alpha/{parent=properties/*}/conversionEvents" - body: "conversion_event" - }; - option (google.api.method_signature) = "parent,conversion_event"; - } - - // Retrieve a single conversion event. - rpc GetConversionEvent(GetConversionEventRequest) returns (ConversionEvent) { - option (google.api.http) = { - get: "/v1alpha/{name=properties/*/conversionEvents/*}" - }; - option (google.api.method_signature) = "name"; - } - - // Deletes a conversion event in a property. - rpc DeleteConversionEvent(DeleteConversionEventRequest) returns (google.protobuf.Empty) { - option (google.api.http) = { - delete: "/v1alpha/{name=properties/*/conversionEvents/*}" - }; - option (google.api.method_signature) = "name"; - } - - // Returns a list of conversion events in the specified parent property. - // - // Returns an empty list if no conversion events are found. - rpc ListConversionEvents(ListConversionEventsRequest) returns (ListConversionEventsResponse) { - option (google.api.http) = { - get: "/v1alpha/{parent=properties/*}/conversionEvents" - }; - option (google.api.method_signature) = "parent"; - } - - // Look up a single DisplayVideo360AdvertiserLink - rpc GetDisplayVideo360AdvertiserLink(GetDisplayVideo360AdvertiserLinkRequest) returns (DisplayVideo360AdvertiserLink) { - option (google.api.http) = { - get: "/v1alpha/{name=properties/*/displayVideo360AdvertiserLinks/*}" - }; - option (google.api.method_signature) = "name"; - } - - // Lists all DisplayVideo360AdvertiserLinks on a property. - rpc ListDisplayVideo360AdvertiserLinks(ListDisplayVideo360AdvertiserLinksRequest) returns (ListDisplayVideo360AdvertiserLinksResponse) { - option (google.api.http) = { - get: "/v1alpha/{parent=properties/*}/displayVideo360AdvertiserLinks" - }; - option (google.api.method_signature) = "parent"; - } - - // 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. - rpc CreateDisplayVideo360AdvertiserLink(CreateDisplayVideo360AdvertiserLinkRequest) returns (DisplayVideo360AdvertiserLink) { - option (google.api.http) = { - post: "/v1alpha/{parent=properties/*}/displayVideo360AdvertiserLinks" - body: "display_video_360_advertiser_link" - }; - option (google.api.method_signature) = "parent,display_video_360_advertiser_link"; - } - - // Deletes a DisplayVideo360AdvertiserLink on a property. - rpc DeleteDisplayVideo360AdvertiserLink(DeleteDisplayVideo360AdvertiserLinkRequest) returns (google.protobuf.Empty) { - option (google.api.http) = { - delete: "/v1alpha/{name=properties/*/displayVideo360AdvertiserLinks/*}" - }; - option (google.api.method_signature) = "name"; - } - - // Updates a DisplayVideo360AdvertiserLink on a property. - rpc UpdateDisplayVideo360AdvertiserLink(UpdateDisplayVideo360AdvertiserLinkRequest) returns (DisplayVideo360AdvertiserLink) { - option (google.api.http) = { - patch: "/v1alpha/{display_video_360_advertiser_link.name=properties/*/displayVideo360AdvertiserLinks/*}" - body: "display_video_360_advertiser_link" - }; - option (google.api.method_signature) = "display_video_360_advertiser_link,update_mask"; - } - - // Lookup for a single DisplayVideo360AdvertiserLinkProposal. - rpc GetDisplayVideo360AdvertiserLinkProposal(GetDisplayVideo360AdvertiserLinkProposalRequest) returns (DisplayVideo360AdvertiserLinkProposal) { - option (google.api.http) = { - get: "/v1alpha/{name=properties/*/displayVideo360AdvertiserLinkProposals/*}" - }; - option (google.api.method_signature) = "name"; - } - - // Lists DisplayVideo360AdvertiserLinkProposals on a property. - rpc ListDisplayVideo360AdvertiserLinkProposals(ListDisplayVideo360AdvertiserLinkProposalsRequest) returns (ListDisplayVideo360AdvertiserLinkProposalsResponse) { - option (google.api.http) = { - get: "/v1alpha/{parent=properties/*}/displayVideo360AdvertiserLinkProposals" - }; - option (google.api.method_signature) = "parent"; - } - - // Creates a DisplayVideo360AdvertiserLinkProposal. - rpc CreateDisplayVideo360AdvertiserLinkProposal(CreateDisplayVideo360AdvertiserLinkProposalRequest) returns (DisplayVideo360AdvertiserLinkProposal) { - option (google.api.http) = { - post: "/v1alpha/{parent=properties/*}/displayVideo360AdvertiserLinkProposals" - body: "display_video_360_advertiser_link_proposal" - }; - option (google.api.method_signature) = "parent,display_video_360_advertiser_link_proposal"; - } - - // Deletes a DisplayVideo360AdvertiserLinkProposal on a property. - // This can only be used on cancelled proposals. - rpc DeleteDisplayVideo360AdvertiserLinkProposal(DeleteDisplayVideo360AdvertiserLinkProposalRequest) returns (google.protobuf.Empty) { - option (google.api.http) = { - delete: "/v1alpha/{name=properties/*/displayVideo360AdvertiserLinkProposals/*}" - }; - option (google.api.method_signature) = "name"; - } - - // Approves a DisplayVideo360AdvertiserLinkProposal. - // The DisplayVideo360AdvertiserLinkProposal will be deleted and a new - // DisplayVideo360AdvertiserLink will be created. - rpc ApproveDisplayVideo360AdvertiserLinkProposal(ApproveDisplayVideo360AdvertiserLinkProposalRequest) returns (ApproveDisplayVideo360AdvertiserLinkProposalResponse) { - option (google.api.http) = { - post: "/v1alpha/{name=properties/*/displayVideo360AdvertiserLinkProposals/*}:approve" - body: "*" - }; - } - - // 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. - rpc CancelDisplayVideo360AdvertiserLinkProposal(CancelDisplayVideo360AdvertiserLinkProposalRequest) returns (DisplayVideo360AdvertiserLinkProposal) { - option (google.api.http) = { - post: "/v1alpha/{name=properties/*/displayVideo360AdvertiserLinkProposals/*}:cancel" - body: "*" - }; - } - - // Creates a CustomDimension. - rpc CreateCustomDimension(CreateCustomDimensionRequest) returns (CustomDimension) { - option (google.api.http) = { - post: "/v1alpha/{parent=properties/*}/customDimensions" - body: "custom_dimension" - }; - option (google.api.method_signature) = "parent,custom_dimension"; - } - - // Updates a CustomDimension on a property. - rpc UpdateCustomDimension(UpdateCustomDimensionRequest) returns (CustomDimension) { - option (google.api.http) = { - patch: "/v1alpha/{custom_dimension.name=properties/*/customDimensions/*}" - body: "custom_dimension" - }; - option (google.api.method_signature) = "custom_dimension,update_mask"; - } - - // Lists CustomDimensions on a property. - rpc ListCustomDimensions(ListCustomDimensionsRequest) returns (ListCustomDimensionsResponse) { - option (google.api.http) = { - get: "/v1alpha/{parent=properties/*}/customDimensions" - }; - option (google.api.method_signature) = "parent"; - } - - // Archives a CustomDimension on a property. - rpc ArchiveCustomDimension(ArchiveCustomDimensionRequest) returns (google.protobuf.Empty) { - option (google.api.http) = { - post: "/v1alpha/{name=properties/*/customDimensions/*}:archive" - body: "*" - }; - option (google.api.method_signature) = "name"; - } - - // Lookup for a single CustomDimension. - rpc GetCustomDimension(GetCustomDimensionRequest) returns (CustomDimension) { - option (google.api.http) = { - get: "/v1alpha/{name=properties/*/customDimensions/*}" - }; - option (google.api.method_signature) = "name"; - } - - // Creates a CustomMetric. - rpc CreateCustomMetric(CreateCustomMetricRequest) returns (CustomMetric) { - option (google.api.http) = { - post: "/v1alpha/{parent=properties/*}/customMetrics" - body: "custom_metric" - }; - option (google.api.method_signature) = "parent,custom_metric"; - } - - // Updates a CustomMetric on a property. - rpc UpdateCustomMetric(UpdateCustomMetricRequest) returns (CustomMetric) { - option (google.api.http) = { - patch: "/v1alpha/{custom_metric.name=properties/*/customMetrics/*}" - body: "custom_metric" - }; - option (google.api.method_signature) = "custom_metric,update_mask"; - } - - // Lists CustomMetrics on a property. - rpc ListCustomMetrics(ListCustomMetricsRequest) returns (ListCustomMetricsResponse) { - option (google.api.http) = { - get: "/v1alpha/{parent=properties/*}/customMetrics" - }; - option (google.api.method_signature) = "parent"; - } - - // Archives a CustomMetric on a property. - rpc ArchiveCustomMetric(ArchiveCustomMetricRequest) returns (google.protobuf.Empty) { - option (google.api.http) = { - post: "/v1alpha/{name=properties/*/customMetrics/*}:archive" - body: "*" - }; - option (google.api.method_signature) = "name"; - } - - // Lookup for a single CustomMetric. - rpc GetCustomMetric(GetCustomMetricRequest) returns (CustomMetric) { - option (google.api.http) = { - get: "/v1alpha/{name=properties/*/customMetrics/*}" - }; - option (google.api.method_signature) = "name"; - } - - // Returns the singleton data retention settings for this property. - rpc GetDataRetentionSettings(GetDataRetentionSettingsRequest) returns (DataRetentionSettings) { - option (google.api.http) = { - get: "/v1alpha/{name=properties/*/dataRetentionSettings}" - }; - option (google.api.method_signature) = "name"; - } - - // Updates the singleton data retention settings for this property. - rpc UpdateDataRetentionSettings(UpdateDataRetentionSettingsRequest) returns (DataRetentionSettings) { - option (google.api.http) = { - patch: "/v1alpha/{data_retention_settings.name=properties/*/dataRetentionSettings}" - body: "data_retention_settings" - }; - option (google.api.method_signature) = "data_retention_settings,update_mask"; - } - - // Creates a DataStream. - rpc CreateDataStream(CreateDataStreamRequest) returns (DataStream) { - option (google.api.http) = { - post: "/v1alpha/{parent=properties/*}/dataStreams" - body: "data_stream" - }; - option (google.api.method_signature) = "parent,data_stream"; - } - - // Deletes a DataStream on a property. - rpc DeleteDataStream(DeleteDataStreamRequest) returns (google.protobuf.Empty) { - option (google.api.http) = { - delete: "/v1alpha/{name=properties/*/dataStreams/*}" - }; - option (google.api.method_signature) = "name"; - } - - // Updates a DataStream on a property. - rpc UpdateDataStream(UpdateDataStreamRequest) returns (DataStream) { - option (google.api.http) = { - patch: "/v1alpha/{data_stream.name=properties/*/dataStreams/*}" - body: "data_stream" - }; - option (google.api.method_signature) = "data_stream,update_mask"; - } - - // Lists DataStreams on a property. - rpc ListDataStreams(ListDataStreamsRequest) returns (ListDataStreamsResponse) { - option (google.api.http) = { - get: "/v1alpha/{parent=properties/*}/dataStreams" - }; - option (google.api.method_signature) = "parent"; - } - - // Lookup for a single DataStream. - rpc GetDataStream(GetDataStreamRequest) returns (DataStream) { - option (google.api.http) = { - get: "/v1alpha/{name=properties/*/dataStreams/*}" - }; - option (google.api.method_signature) = "name"; - } - - // Lookup for a single Audience. - // Audiences created before 2020 may not be supported. - rpc GetAudience(GetAudienceRequest) returns (Audience) { - option (google.api.http) = { - get: "/v1alpha/{name=properties/*/audiences/*}" - }; - option (google.api.method_signature) = "name"; - } - - // Lists Audiences on a property. - // Audiences created before 2020 may not be supported. - rpc ListAudiences(ListAudiencesRequest) returns (ListAudiencesResponse) { - option (google.api.http) = { - get: "/v1alpha/{parent=properties/*}/audiences" - }; - option (google.api.method_signature) = "parent"; - } - - // Creates an Audience. - rpc CreateAudience(CreateAudienceRequest) returns (Audience) { - option (google.api.http) = { - post: "/v1alpha/{parent=properties/*}/audiences" - body: "audience" - }; - option (google.api.method_signature) = "parent,audience"; - } - - // Updates an Audience on a property. - rpc UpdateAudience(UpdateAudienceRequest) returns (Audience) { - option (google.api.http) = { - patch: "/v1alpha/{audience.name=properties/*/audiences/*}" - body: "audience" - }; - option (google.api.method_signature) = "audience,update_mask"; - } - - // Archives an Audience on a property. - rpc ArchiveAudience(ArchiveAudienceRequest) returns (google.protobuf.Empty) { - option (google.api.http) = { - post: "/v1alpha/{name=properties/*/audiences/*}:archive" - body: "*" - }; - } - - // Lookup for a AttributionSettings singleton. - rpc GetAttributionSettings(GetAttributionSettingsRequest) returns (AttributionSettings) { - option (google.api.http) = { - get: "/v1alpha/{name=properties/*/attributionSettings}" - }; - option (google.api.method_signature) = "name"; - } - - // Updates attribution settings on a property. - rpc UpdateAttributionSettings(UpdateAttributionSettingsRequest) returns (AttributionSettings) { - option (google.api.http) = { - patch: "/v1alpha/{attribution_settings.name=properties/*/attributionSettings}" - body: "attribution_settings" - }; - option (google.api.method_signature) = "attribution_settings,update_mask"; - } - - // Returns a customized report of data access records. The report provides - // records of each time a user reads Google Analytics reporting data. Access - // records are retained for up to 2 years. - // - // Data Access Reports can be requested for a property. The property must be - // in Google Analytics 360. This method is only available to Administrators. - // - // These data access records include GA4 UI Reporting, GA4 UI Explorations, - // GA4 Data API, and other products like Firebase & Admob that can retrieve - // data from Google Analytics through a linkage. These records don't include - // property configuration changes like adding a stream or changing a - // property's time zone. For configuration change history, see - // [searchChangeHistoryEvents](https://developers.google.com/analytics/devguides/config/admin/v1/rest/v1alpha/accounts/searchChangeHistoryEvents). - rpc RunAccessReport(RunAccessReportRequest) returns (RunAccessReportResponse) { - option (google.api.http) = { - post: "/v1alpha/{entity=properties/*}:runAccessReport" - body: "*" - }; - } -} - -// The request for a Data Access Record Report. -message RunAccessReportRequest { - // The Data Access Report is requested for this property. - // For example if "123" is your GA4 property ID, then entity should be - // "properties/123". - string entity = 1; - - // The dimensions requested and displayed in the response. Requests are - // allowed up to 9 dimensions. - repeated AccessDimension dimensions = 2; - - // The metrics requested and displayed in the response. Requests are allowed - // up to 10 metrics. - repeated AccessMetric metrics = 3; - - // Date ranges of access records to read. If multiple date ranges are - // requested, each response row will contain a zero based date range index. If - // two date ranges overlap, the access records for the overlapping days is - // included in the response rows for both date ranges. Requests are allowed up - // to 2 date ranges. - repeated AccessDateRange date_ranges = 4; - - // Dimension filters allow you to restrict report response to specific - // dimension values which match the filter. For example, filtering on access - // records of a single user. To learn more, see [Fundamentals of Dimension - // Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters) - // for examples. Metrics cannot be used in this filter. - AccessFilterExpression dimension_filter = 5; - - // Metric filters allow you to restrict report response to specific metric - // values which match the filter. Metric filters are applied after aggregating - // the report's rows, similar to SQL having-clause. Dimensions cannot be used - // in this filter. - AccessFilterExpression metric_filter = 6; - - // The row count of the start row. The first row is counted as row 0. If - // offset is unspecified, it is treated as 0. If offset is zero, then this - // method will return the first page of results with `limit` entries. - // - // To learn more about this pagination parameter, see - // [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - int64 offset = 7; - - // The number of rows to return. If unspecified, 10,000 rows are returned. The - // API returns a maximum of 100,000 rows per request, no matter how many you - // ask for. `limit` must be positive. - // - // The API may return fewer rows than the requested `limit`, if there aren't - // as many remaining rows as the `limit`. For instance, there are fewer than - // 300 possible values for the dimension `country`, so when reporting on only - // `country`, you can't get more than 300 rows, even if you set `limit` to a - // higher value. - // - // To learn more about this pagination parameter, see - // [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - int64 limit = 8; - - // This request's time zone if specified. If unspecified, the property's time - // zone is used. The request's time zone is used to interpret the start & end - // dates of the report. - // - // Formatted as strings from the IANA Time Zone database - // (https://www.iana.org/time-zones); for example "America/New_York" or - // "Asia/Tokyo". - string time_zone = 9; - - // Specifies how rows are ordered in the response. - repeated AccessOrderBy order_bys = 10; - - // Toggles whether to return the current state of this Analytics Property's - // quota. Quota is returned in [AccessQuota](#AccessQuota). - bool return_entity_quota = 11; -} - -// The customized Data Access Record Report response. -message RunAccessReportResponse { - // The header for a column in the report that corresponds to a specific - // dimension. The number of DimensionHeaders and ordering of DimensionHeaders - // matches the dimensions present in rows. - repeated AccessDimensionHeader dimension_headers = 1; - - // The header for a column in the report that corresponds to a specific - // metric. The number of MetricHeaders and ordering of MetricHeaders matches - // the metrics present in rows. - repeated AccessMetricHeader metric_headers = 2; - - // Rows of dimension value combinations and metric values in the report. - repeated AccessRow rows = 3; - - // The total number of rows in the query result. `rowCount` is independent of - // the number of rows returned in the response, the `limit` request - // parameter, and the `offset` request parameter. For example if a query - // returns 175 rows and includes `limit` of 50 in the API request, the - // response will contain `rowCount` of 175 but only 50 rows. - // - // To learn more about this pagination parameter, see - // [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - int32 row_count = 4; - - // The quota state for this Analytics property including this request. - AccessQuota quota = 5; -} - -// Request message for GetAccount RPC. -message GetAccountRequest { - // 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) = { - type: "analyticsadmin.googleapis.com/Account" - } - ]; -} - -// Request message for ListAccounts RPC. -message ListAccountsRequest { - // 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; - - // 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; - - // 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; -} - -// Request message for ListAccounts RPC. -message ListAccountsResponse { - // Results that were accessible to the caller. - repeated Account accounts = 1; - - // A token, which can be sent as `page_token` to retrieve the next page. - // If this field is omitted, there are no subsequent pages. - string next_page_token = 2; -} - -// Request message for DeleteAccount RPC. -message DeleteAccountRequest { - // 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) = { - type: "analyticsadmin.googleapis.com/Account" - } - ]; -} - -// Request message for UpdateAccount RPC. -message UpdateAccountRequest { - // Required. The account to update. - // The account's `name` field is used to identify the account. - Account account = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The list of fields to be updated. Field names must be in snake case - // (e.g., "field_to_update"). Omitted fields will not be updated. To replace - // the entire entity, use one path with the string "*" to match all fields. - google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; -} - -// Request message for ProvisionAccountTicket RPC. -message ProvisionAccountTicketRequest { - // The account to create. - Account account = 1; - - // Redirect URI where the user will be sent after accepting Terms of Service. - // Must be configured in Developers Console as a Redirect URI - string redirect_uri = 2; -} - -// Response message for ProvisionAccountTicket RPC. -message ProvisionAccountTicketResponse { - // The param to be passed in the ToS link. - string account_ticket_id = 1; -} - -// Request message for GetProperty RPC. -message GetPropertyRequest { - // 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) = { - type: "analyticsadmin.googleapis.com/Property" - } - ]; -} - -// Request message for ListProperties RPC. -message ListPropertiesRequest { - // 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]; - - // 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; - - // 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; - - // 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; -} - -// Response message for ListProperties RPC. -message ListPropertiesResponse { - // Results that matched the filter criteria and were accessible to the caller. - repeated Property properties = 1; - - // A token, which can be sent as `page_token` to retrieve the next page. - // If this field is omitted, there are no subsequent pages. - string next_page_token = 2; -} - -// Request message for UpdateProperty RPC. -message UpdatePropertyRequest { - // Required. The property to update. - // The property's `name` field is used to identify the property to be - // updated. - Property property = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The list of fields to be updated. Field names must be in snake case - // (e.g., "field_to_update"). Omitted fields will not be updated. To replace - // the entire entity, use one path with the string "*" to match all fields. - google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; -} - -// Request message for CreateProperty RPC. -message CreatePropertyRequest { - // Required. The property to create. - // Note: the supplied property must specify its parent. - Property property = 1 [(google.api.field_behavior) = REQUIRED]; -} - -// Request message for DeleteProperty RPC. -message DeletePropertyRequest { - // 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) = { - type: "analyticsadmin.googleapis.com/Property" - } - ]; -} - -// Request message for GetUserLink RPC. -message GetUserLinkRequest { - // Required. Example format: accounts/1234/userLinks/5678 - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "analyticsadmin.googleapis.com/UserLink" - } - ]; -} - -// Request message for BatchGetUserLinks RPC. -message BatchGetUserLinksRequest { - // Required. The account or property that all user links in the request are - // for. The parent of all provided values for the 'names' field must match - // this field. - // Example format: accounts/1234 - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "analyticsadmin.googleapis.com/UserLink" - } - ]; - - // Required. The names of the user links to retrieve. - // A maximum of 1000 user links can be retrieved in a batch. - // Format: accounts/{accountId}/userLinks/{userLinkId} - repeated string names = 2 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "analyticsadmin.googleapis.com/UserLink" - } - ]; -} - -// Response message for BatchGetUserLinks RPC. -message BatchGetUserLinksResponse { - // The requested user links. - repeated UserLink user_links = 1; -} - -// Request message for ListUserLinks RPC. -message ListUserLinksRequest { - // Required. Example format: accounts/1234 - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "analyticsadmin.googleapis.com/UserLink" - } - ]; - - // The maximum number of user links to return. - // The service may return fewer than this value. - // If unspecified, at most 200 user links will be returned. - // The maximum value is 500; values above 500 will be coerced to 500. - int32 page_size = 2; - - // A page token, received from a previous `ListUserLinks` call. - // Provide this to retrieve the subsequent page. - // When paginating, all other parameters provided to `ListUserLinks` must - // match the call that provided the page token. - string page_token = 3; -} - -// Response message for ListUserLinks RPC. -message ListUserLinksResponse { - // List of UserLinks. These will be ordered stably, but in an arbitrary order. - repeated UserLink user_links = 1; - - // A token, which can be sent as `page_token` to retrieve the next page. - // If this field is omitted, there are no subsequent pages. - string next_page_token = 2; -} - -// Request message for AuditUserLinks RPC. -message AuditUserLinksRequest { - // Required. Example format: accounts/1234 - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "analyticsadmin.googleapis.com/UserLink" - } - ]; - - // The maximum number of user links to return. - // The service may return fewer than this value. - // If unspecified, at most 1000 user links will be returned. - // The maximum value is 5000; values above 5000 will be coerced to 5000. - int32 page_size = 2; - - // A page token, received from a previous `AuditUserLinks` call. - // Provide this to retrieve the subsequent page. - // When paginating, all other parameters provided to `AuditUserLinks` must - // match the call that provided the page token. - string page_token = 3; -} - -// Response message for AuditUserLinks RPC. -message AuditUserLinksResponse { - // List of AuditUserLinks. These will be ordered stably, but in an arbitrary - // order. - repeated AuditUserLink user_links = 1; - - // A token, which can be sent as `page_token` to retrieve the next page. - // If this field is omitted, there are no subsequent pages. - string next_page_token = 2; -} - -// Request message for CreateUserLink RPC. -// -// Users can have multiple email addresses associated with their Google -// account, and one of these email addresses is the "primary" email address. -// Any of the email addresses associated with a Google account may be used -// for a new UserLink, but the returned UserLink will always contain the -// "primary" email address. As a result, the input and output email address -// for this request may differ. -message CreateUserLinkRequest { - // Required. Example format: accounts/1234 - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "analyticsadmin.googleapis.com/UserLink" - } - ]; - - // Optional. If set, then email the new user notifying them that they've been granted - // permissions to the resource. - bool notify_new_user = 2 [(google.api.field_behavior) = OPTIONAL]; - - // Required. The user link to create. - UserLink user_link = 3 [(google.api.field_behavior) = REQUIRED]; -} - -// Request message for BatchCreateUserLinks RPC. -message BatchCreateUserLinksRequest { - // Required. The account or property that all user links in the request are for. - // This field is required. The parent field in the CreateUserLinkRequest - // messages must either be empty or match this field. - // Example format: accounts/1234 - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "analyticsadmin.googleapis.com/UserLink" - } - ]; - - // Optional. If set, then email the new users notifying them that they've been granted - // permissions to the resource. Regardless of whether this is set or not, - // notify_new_user field inside each individual request is ignored. - bool notify_new_users = 2 [(google.api.field_behavior) = OPTIONAL]; - - // Required. The requests specifying the user links to create. - // A maximum of 1000 user links can be created in a batch. - repeated CreateUserLinkRequest requests = 3 [(google.api.field_behavior) = REQUIRED]; -} - -// Response message for BatchCreateUserLinks RPC. -message BatchCreateUserLinksResponse { - // The user links created. - repeated UserLink user_links = 1; -} - -// Request message for UpdateUserLink RPC. -message UpdateUserLinkRequest { - // Required. The user link to update. - UserLink user_link = 1 [(google.api.field_behavior) = REQUIRED]; -} - -// Request message for BatchUpdateUserLinks RPC. -message BatchUpdateUserLinksRequest { - // Required. The account or property that all user links in the request are - // for. The parent field in the UpdateUserLinkRequest messages must either be - // empty or match this field. - // Example format: accounts/1234 - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "analyticsadmin.googleapis.com/UserLink" - } - ]; - - // Required. The requests specifying the user links to update. - // A maximum of 1000 user links can be updated in a batch. - repeated UpdateUserLinkRequest requests = 2 [(google.api.field_behavior) = REQUIRED]; -} - -// Response message for BatchUpdateUserLinks RPC. -message BatchUpdateUserLinksResponse { - // The user links updated. - repeated UserLink user_links = 1; -} - -// Request message for DeleteUserLink RPC. -message DeleteUserLinkRequest { - // Required. Example format: accounts/1234/userLinks/5678 - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "analyticsadmin.googleapis.com/UserLink" - } - ]; -} - -// Request message for BatchDeleteUserLinks RPC. -message BatchDeleteUserLinksRequest { - // Required. The account or property that all user links in the request are - // for. The parent of all values for user link names to delete must match this - // field. - // Example format: accounts/1234 - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "analyticsadmin.googleapis.com/UserLink" - } - ]; - - // Required. The requests specifying the user links to update. - // A maximum of 1000 user links can be updated in a batch. - repeated DeleteUserLinkRequest requests = 2 [(google.api.field_behavior) = REQUIRED]; -} - -// Request message for CreateFirebaseLink RPC -message CreateFirebaseLinkRequest { - // Required. Format: properties/{property_id} - // Example: properties/1234 - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "analyticsadmin.googleapis.com/FirebaseLink" - } - ]; - - // Required. The Firebase link to create. - FirebaseLink firebase_link = 2 [(google.api.field_behavior) = REQUIRED]; -} - -// Request message for DeleteFirebaseLink RPC -message DeleteFirebaseLinkRequest { - // 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) = { - type: "analyticsadmin.googleapis.com/FirebaseLink" - } - ]; -} - -// Request message for ListFirebaseLinks RPC -message ListFirebaseLinksRequest { - // Required. Format: properties/{property_id} - // Example: properties/1234 - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "analyticsadmin.googleapis.com/FirebaseLink" - } - ]; - - // 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; - - // A page token, received from a previous `ListFirebaseLinks` 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; -} - -// Response message for ListFirebaseLinks RPC -message ListFirebaseLinksResponse { - // List of FirebaseLinks. This will have at most one value. - repeated FirebaseLink firebase_links = 1; - - // A token, which can be sent as `page_token` to retrieve the next page. - // If this field is omitted, there are no subsequent pages. - // Currently, Google Analytics supports only one FirebaseLink per property, - // so this will never be populated. - string next_page_token = 2; -} - -// Request message for GetGlobalSiteTag RPC. -message GetGlobalSiteTagRequest { - // 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) = { - type: "analyticsadmin.googleapis.com/GlobalSiteTag" - } - ]; -} - -// Request message for CreateGoogleAdsLink RPC -message CreateGoogleAdsLinkRequest { - // Required. Example format: properties/1234 - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "analyticsadmin.googleapis.com/GoogleAdsLink" - } - ]; - - // Required. The GoogleAdsLink to create. - GoogleAdsLink google_ads_link = 2 [(google.api.field_behavior) = REQUIRED]; -} - -// Request message for UpdateGoogleAdsLink RPC -message UpdateGoogleAdsLinkRequest { - // The GoogleAdsLink to update - GoogleAdsLink google_ads_link = 1; - - // Required. The list of fields to be updated. Field names must be in snake case - // (e.g., "field_to_update"). Omitted fields will not be updated. To replace - // the entire entity, use one path with the string "*" to match all fields. - google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; -} - -// Request message for DeleteGoogleAdsLink RPC. -message DeleteGoogleAdsLinkRequest { - // Required. Example format: properties/1234/googleAdsLinks/5678 - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "analyticsadmin.googleapis.com/GoogleAdsLink" - } - ]; -} - -// Request message for ListGoogleAdsLinks RPC. -message ListGoogleAdsLinksRequest { - // Required. Example format: properties/1234 - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "analyticsadmin.googleapis.com/GoogleAdsLink" - } - ]; - - // The maximum number of resources to return. - // If unspecified, at most 50 resources will be returned. - // The maximum value is 200 (higher values will be coerced to the maximum). - int32 page_size = 2; - - // A page token, received from a previous `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; -} - -// Response message for ListGoogleAdsLinks RPC. -message ListGoogleAdsLinksResponse { - // List of GoogleAdsLinks. - repeated GoogleAdsLink google_ads_links = 1; - - // A token, which can be sent as `page_token` to retrieve the next page. - // If this field is omitted, there are no subsequent pages. - string next_page_token = 2; -} - -// Request message for GetDataSharingSettings RPC. -message GetDataSharingSettingsRequest { - // 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) = { - type: "analyticsadmin.googleapis.com/DataSharingSettings" - } - ]; -} - -// Request message for ListAccountSummaries RPC. -message ListAccountSummariesRequest { - // 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; - - // 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; -} - -// Response message for ListAccountSummaries RPC. -message ListAccountSummariesResponse { - // Account summaries of all accounts the caller has access to. - repeated AccountSummary account_summaries = 1; - - // A token, which can be sent as `page_token` to retrieve the next page. - // If this field is omitted, there are no subsequent pages. - string next_page_token = 2; -} - -// Request message for AcknowledgeUserDataCollection RPC. -message AcknowledgeUserDataCollectionRequest { - // Required. The property for which to acknowledge user data collection. - string property = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "analyticsadmin.googleapis.com/Property" - } - ]; - - // Required. An acknowledgement that the caller of this method understands the terms - // of user data collection. - // - // This field must contain the exact value: - // "I acknowledge that I have the necessary privacy disclosures and rights - // from my end users for the collection and processing of their data, - // including the association of such data with the visitation information - // Google Analytics collects from my site and/or app property." - string acknowledgement = 2 [(google.api.field_behavior) = REQUIRED]; -} - -// Response message for AcknowledgeUserDataCollection RPC. -message AcknowledgeUserDataCollectionResponse { - -} - -// Request message for SearchChangeHistoryEvents RPC. -message SearchChangeHistoryEventsRequest { - // Required. The account resource for which to return change history resources. - string account = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "analyticsadmin.googleapis.com/Account" - } - ]; - - // 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) = { - type: "analyticsadmin.googleapis.com/Property" - } - ]; - - // Optional. If set, only return changes if they are for a resource that matches at - // least one of these types. - repeated ChangeHistoryResourceType resource_type = 3 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. If set, only return changes that match one or more of these types of - // actions. - repeated ActionType action = 4 [(google.api.field_behavior) = OPTIONAL]; - - // 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]; - - // Optional. If set, only return changes made after this time (inclusive). - google.protobuf.Timestamp earliest_change_time = 6 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. If set, only return changes made before this time (inclusive). - google.protobuf.Timestamp latest_change_time = 7 [(google.api.field_behavior) = OPTIONAL]; - - // 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]; - - // 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]; -} - -// Response message for SearchAccounts RPC. -message SearchChangeHistoryEventsResponse { - // Results that were accessible to the caller. - repeated ChangeHistoryEvent change_history_events = 1; - - // A token, which can be sent as `page_token` to retrieve the next page. - // If this field is omitted, there are no subsequent pages. - string next_page_token = 2; -} - -// Request message for GetMeasurementProtocolSecret RPC. -message GetMeasurementProtocolSecretRequest { - // 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) = { - type: "analyticsadmin.googleapis.com/MeasurementProtocolSecret" - } - ]; -} - -// Request message for CreateMeasurementProtocolSecret RPC -message CreateMeasurementProtocolSecretRequest { - // 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) = { - child_type: "analyticsadmin.googleapis.com/MeasurementProtocolSecret" - } - ]; - - // Required. The measurement protocol secret to create. - MeasurementProtocolSecret measurement_protocol_secret = 2 [(google.api.field_behavior) = REQUIRED]; -} - -// Request message for DeleteMeasurementProtocolSecret RPC -message DeleteMeasurementProtocolSecretRequest { - // 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) = { - type: "analyticsadmin.googleapis.com/MeasurementProtocolSecret" - } - ]; -} - -// Request message for UpdateMeasurementProtocolSecret RPC -message UpdateMeasurementProtocolSecretRequest { - // Required. The measurement protocol secret to update. - MeasurementProtocolSecret measurement_protocol_secret = 1 [(google.api.field_behavior) = REQUIRED]; - - // The list of fields to be updated. Omitted fields will not be updated. - google.protobuf.FieldMask update_mask = 2; -} - -// Request message for ListMeasurementProtocolSecret RPC -message ListMeasurementProtocolSecretsRequest { - // 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) = { - child_type: "analyticsadmin.googleapis.com/MeasurementProtocolSecret" - } - ]; - - // 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; - - // 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; -} - -// Response message for ListMeasurementProtocolSecret RPC -message ListMeasurementProtocolSecretsResponse { - // A list of secrets for the parent stream specified in the request. - repeated MeasurementProtocolSecret measurement_protocol_secrets = 1; - - // A token, which can be sent as `page_token` to retrieve the next page. - // If this field is omitted, there are no subsequent pages. - string next_page_token = 2; -} - -// Request message for GetGoogleSignalsSettings RPC -message GetGoogleSignalsSettingsRequest { - // 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) = { - type: "analyticsadmin.googleapis.com/GoogleSignalsSettings" - } - ]; -} - -// Request message for UpdateGoogleSignalsSettings RPC -message UpdateGoogleSignalsSettingsRequest { - // Required. The settings to update. - // The `name` field is used to identify the settings to be updated. - GoogleSignalsSettings google_signals_settings = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The list of fields to be updated. Field names must be in snake case - // (e.g., "field_to_update"). Omitted fields will not be updated. To replace - // the entire entity, use one path with the string "*" to match all fields. - google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; -} - -// Request message for CreateConversionEvent RPC -message CreateConversionEventRequest { - // Required. The conversion event to create. - ConversionEvent conversion_event = 1 [(google.api.field_behavior) = REQUIRED]; - - // 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) = { - child_type: "analyticsadmin.googleapis.com/ConversionEvent" - } - ]; -} - -// Request message for GetConversionEvent RPC -message GetConversionEventRequest { - // 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) = { - type: "analyticsadmin.googleapis.com/ConversionEvent" - } - ]; -} - -// Request message for DeleteConversionEvent RPC -message DeleteConversionEventRequest { - // 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) = { - type: "analyticsadmin.googleapis.com/ConversionEvent" - } - ]; -} - -// Request message for ListConversionEvents RPC -message ListConversionEventsRequest { - // Required. The resource name of the parent property. - // Example: 'properties/123' - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "analyticsadmin.googleapis.com/ConversionEvent" - } - ]; - - // The maximum number of resources to return. - // If unspecified, at most 50 resources will be returned. - // The maximum value is 200; (higher values will be coerced to the maximum) - int32 page_size = 2; - - // A page token, received from a previous `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; -} - -// Response message for ListConversionEvents RPC. -message ListConversionEventsResponse { - // The requested conversion events - repeated ConversionEvent conversion_events = 1; - - // A token, which can be sent as `page_token` to retrieve the next page. - // If this field is omitted, there are no subsequent pages. - string next_page_token = 2; -} - -// Request message for GetDisplayVideo360AdvertiserLink RPC. -message GetDisplayVideo360AdvertiserLinkRequest { - // 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) = { - type: "analyticsadmin.googleapis.com/DisplayVideo360AdvertiserLink" - } - ]; -} - -// Request message for ListDisplayVideo360AdvertiserLinks RPC. -message ListDisplayVideo360AdvertiserLinksRequest { - // Required. Example format: properties/1234 - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "analyticsadmin.googleapis.com/DisplayVideo360AdvertiserLink" - } - ]; - - // The maximum number of resources to return. - // If unspecified, at most 50 resources will be returned. - // The maximum value is 200 (higher values will be coerced to the maximum). - int32 page_size = 2; - - // A page token, received from a previous `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; -} - -// Response message for ListDisplayVideo360AdvertiserLinks RPC. -message ListDisplayVideo360AdvertiserLinksResponse { - // List of DisplayVideo360AdvertiserLinks. - repeated DisplayVideo360AdvertiserLink display_video_360_advertiser_links = 1; - - // A token, which can be sent as `page_token` to retrieve the next page. - // If this field is omitted, there are no subsequent pages. - string next_page_token = 2; -} - -// Request message for CreateDisplayVideo360AdvertiserLink RPC. -message CreateDisplayVideo360AdvertiserLinkRequest { - // Required. Example format: properties/1234 - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "analyticsadmin.googleapis.com/DisplayVideo360AdvertiserLink" - } - ]; - - // Required. The DisplayVideo360AdvertiserLink to create. - DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 2 [(google.api.field_behavior) = REQUIRED]; -} - -// Request message for DeleteDisplayVideo360AdvertiserLink RPC. -message DeleteDisplayVideo360AdvertiserLinkRequest { - // 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) = { - type: "analyticsadmin.googleapis.com/DisplayVideo360AdvertiserLink" - } - ]; -} - -// Request message for UpdateDisplayVideo360AdvertiserLink RPC. -message UpdateDisplayVideo360AdvertiserLinkRequest { - // The DisplayVideo360AdvertiserLink to update - DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 1; - - // Required. The list of fields to be updated. Omitted fields will not be updated. - // To replace the entire entity, use one path with the string "*" to match - // all fields. - google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; -} - -// Request message for GetDisplayVideo360AdvertiserLinkProposal RPC. -message GetDisplayVideo360AdvertiserLinkProposalRequest { - // 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) = { - type: "analyticsadmin.googleapis.com/DisplayVideo360AdvertiserLinkProposal" - } - ]; -} - -// Request message for ListDisplayVideo360AdvertiserLinkProposals RPC. -message ListDisplayVideo360AdvertiserLinkProposalsRequest { - // Required. Example format: properties/1234 - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "analyticsadmin.googleapis.com/DisplayVideo360AdvertiserLinkProposal" - } - ]; - - // The maximum number of resources to return. - // If unspecified, at most 50 resources will be returned. - // The maximum value is 200 (higher values will be coerced to the maximum). - int32 page_size = 2; - - // A page token, received from a previous - // `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; -} - -// Response message for ListDisplayVideo360AdvertiserLinkProposals RPC. -message ListDisplayVideo360AdvertiserLinkProposalsResponse { - // List of DisplayVideo360AdvertiserLinkProposals. - repeated DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposals = 1; - - // A token, which can be sent as `page_token` to retrieve the next page. - // If this field is omitted, there are no subsequent pages. - string next_page_token = 2; -} - -// Request message for CreateDisplayVideo360AdvertiserLinkProposal RPC. -message CreateDisplayVideo360AdvertiserLinkProposalRequest { - // Required. Example format: properties/1234 - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "analyticsadmin.googleapis.com/DisplayVideo360AdvertiserLinkProposal" - } - ]; - - // Required. The DisplayVideo360AdvertiserLinkProposal to create. - DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposal = 2 [(google.api.field_behavior) = REQUIRED]; -} - -// Request message for DeleteDisplayVideo360AdvertiserLinkProposal RPC. -message DeleteDisplayVideo360AdvertiserLinkProposalRequest { - // 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) = { - type: "analyticsadmin.googleapis.com/DisplayVideo360AdvertiserLinkProposal" - } - ]; -} - -// Request message for ApproveDisplayVideo360AdvertiserLinkProposal RPC. -message ApproveDisplayVideo360AdvertiserLinkProposalRequest { - // 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) = { - type: "analyticsadmin.googleapis.com/DisplayVideo360AdvertiserLinkProposal" - } - ]; -} - -// Response message for ApproveDisplayVideo360AdvertiserLinkProposal RPC. -message ApproveDisplayVideo360AdvertiserLinkProposalResponse { - // The DisplayVideo360AdvertiserLink created as a result of approving the - // proposal. - DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 1; -} - -// Request message for CancelDisplayVideo360AdvertiserLinkProposal RPC. -message CancelDisplayVideo360AdvertiserLinkProposalRequest { - // 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) = { - type: "analyticsadmin.googleapis.com/DisplayVideo360AdvertiserLinkProposal" - } - ]; -} - -// Request message for CreateCustomDimension RPC. -message CreateCustomDimensionRequest { - // Required. Example format: properties/1234 - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "analyticsadmin.googleapis.com/CustomDimension" - } - ]; - - // Required. The CustomDimension to create. - CustomDimension custom_dimension = 2 [(google.api.field_behavior) = REQUIRED]; -} - -// Request message for UpdateCustomDimension RPC. -message UpdateCustomDimensionRequest { - // The CustomDimension to update - CustomDimension custom_dimension = 1; - - // Required. The list of fields to be updated. Omitted fields will not be updated. - // To replace the entire entity, use one path with the string "*" to match - // all fields. - google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; -} - -// Request message for ListCustomDimensions RPC. -message ListCustomDimensionsRequest { - // Required. Example format: properties/1234 - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "analyticsadmin.googleapis.com/CustomDimension" - } - ]; - - // The maximum number of resources to return. - // If unspecified, at most 50 resources will be returned. - // The maximum value is 200 (higher values will be coerced to the maximum). - int32 page_size = 2; - - // A page token, received from a previous `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; -} - -// Response message for ListCustomDimensions RPC. -message ListCustomDimensionsResponse { - // List of CustomDimensions. - repeated CustomDimension custom_dimensions = 1; - - // A token, which can be sent as `page_token` to retrieve the next page. - // If this field is omitted, there are no subsequent pages. - string next_page_token = 2; -} - -// Request message for ArchiveCustomDimension RPC. -message ArchiveCustomDimensionRequest { - // 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) = { - type: "analyticsadmin.googleapis.com/CustomDimension" - } - ]; -} - -// Request message for GetCustomDimension RPC. -message GetCustomDimensionRequest { - // 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) = { - type: "analyticsadmin.googleapis.com/CustomDimension" - } - ]; -} - -// Request message for CreateCustomMetric RPC. -message CreateCustomMetricRequest { - // Required. Example format: properties/1234 - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "analyticsadmin.googleapis.com/CustomMetric" - } - ]; - - // Required. The CustomMetric to create. - CustomMetric custom_metric = 2 [(google.api.field_behavior) = REQUIRED]; -} - -// Request message for UpdateCustomMetric RPC. -message UpdateCustomMetricRequest { - // The CustomMetric to update - CustomMetric custom_metric = 1; - - // Required. The list of fields to be updated. Omitted fields will not be updated. - // To replace the entire entity, use one path with the string "*" to match - // all fields. - google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; -} - -// Request message for ListCustomMetrics RPC. -message ListCustomMetricsRequest { - // Required. Example format: properties/1234 - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "analyticsadmin.googleapis.com/CustomMetric" - } - ]; - - // The maximum number of resources to return. - // If unspecified, at most 50 resources will be returned. - // The maximum value is 200 (higher values will be coerced to the maximum). - int32 page_size = 2; - - // A page token, received from a previous `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; -} - -// Response message for ListCustomMetrics RPC. -message ListCustomMetricsResponse { - // List of CustomMetrics. - repeated CustomMetric custom_metrics = 1; - - // A token, which can be sent as `page_token` to retrieve the next page. - // If this field is omitted, there are no subsequent pages. - string next_page_token = 2; -} - -// Request message for ArchiveCustomMetric RPC. -message ArchiveCustomMetricRequest { - // 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) = { - type: "analyticsadmin.googleapis.com/CustomMetric" - } - ]; -} - -// Request message for GetCustomMetric RPC. -message GetCustomMetricRequest { - // 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) = { - type: "analyticsadmin.googleapis.com/CustomMetric" - } - ]; -} - -// Request message for GetDataRetentionSettings RPC. -message GetDataRetentionSettingsRequest { - // 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) = { - type: "analyticsadmin.googleapis.com/DataRetentionSettings" - } - ]; -} - -// Request message for UpdateDataRetentionSettings RPC. -message UpdateDataRetentionSettingsRequest { - // Required. The settings to update. - // The `name` field is used to identify the settings to be updated. - DataRetentionSettings data_retention_settings = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The list of fields to be updated. Field names must be in snake case - // (e.g., "field_to_update"). Omitted fields will not be updated. To replace - // the entire entity, use one path with the string "*" to match all fields. - google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; -} - -// Request message for CreateDataStream RPC. -message CreateDataStreamRequest { - // Required. Example format: properties/1234 - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "analyticsadmin.googleapis.com/DataStream" - } - ]; - - // Required. The DataStream to create. - DataStream data_stream = 2 [(google.api.field_behavior) = REQUIRED]; -} - -// Request message for DeleteDataStream RPC. -message DeleteDataStreamRequest { - // Required. The name of the DataStream to delete. - // Example format: properties/1234/dataStreams/5678 - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "analyticsadmin.googleapis.com/DataStream" - } - ]; -} - -// Request message for UpdateDataStream RPC. -message UpdateDataStreamRequest { - // The DataStream to update - DataStream data_stream = 1; - - // Required. The list of fields to be updated. Omitted fields will not be updated. - // To replace the entire entity, use one path with the string "*" to match - // all fields. - google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; -} - -// Request message for ListDataStreams RPC. -message ListDataStreamsRequest { - // Required. Example format: properties/1234 - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "analyticsadmin.googleapis.com/DataStream" - } - ]; - - // The maximum number of resources to return. - // If unspecified, at most 50 resources will be returned. - // The maximum value is 200 (higher values will be coerced to the maximum). - int32 page_size = 2; - - // A page token, received from a previous `ListDataStreams` call. - // Provide this to retrieve the subsequent page. - // - // When paginating, all other parameters provided to `ListDataStreams` must - // match the call that provided the page token. - string page_token = 3; -} - -// Response message for ListDataStreams RPC. -message ListDataStreamsResponse { - // List of DataStreams. - repeated DataStream data_streams = 1; - - // A token, which can be sent as `page_token` to retrieve the next page. - // If this field is omitted, there are no subsequent pages. - string next_page_token = 2; -} - -// Request message for GetDataStream RPC. -message GetDataStreamRequest { - // Required. The name of the DataStream to get. - // Example format: properties/1234/dataStreams/5678 - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "analyticsadmin.googleapis.com/DataStream" - } - ]; -} - -// Request message for GetAudience RPC. -message GetAudienceRequest { - // 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) = { - type: "analyticsadmin.googleapis.com/Audience" - } - ]; -} - -// Request message for ListAudiences RPC. -message ListAudiencesRequest { - // Required. Example format: properties/1234 - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "analyticsadmin.googleapis.com/Audience" - } - ]; - - // The maximum number of resources to return. - // If unspecified, at most 50 resources will be returned. - // The maximum value is 200 (higher values will be coerced to the maximum). - int32 page_size = 2; - - // A page token, received from a previous `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; -} - -// Response message for ListAudiences RPC. -message ListAudiencesResponse { - // List of Audiences. - repeated Audience audiences = 1; - - // A token, which can be sent as `page_token` to retrieve the next page. - // If this field is omitted, there are no subsequent pages. - string next_page_token = 2; -} - -// Request message for CreateAudience RPC. -message CreateAudienceRequest { - // Required. Example format: properties/1234 - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "analyticsadmin.googleapis.com/Audience" - } - ]; - - // Required. The audience to create. - Audience audience = 2 [(google.api.field_behavior) = REQUIRED]; -} - -// Request message for UpdateAudience RPC. -message UpdateAudienceRequest { - // Required. The audience to update. - // The audience's `name` field is used to identify the audience to be updated. - Audience audience = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The list of fields to be updated. Field names must be in snake case - // (e.g., "field_to_update"). Omitted fields will not be updated. To replace - // the entire entity, use one path with the string "*" to match all fields. - google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; -} - -// Request message for ArchiveAudience RPC. -message ArchiveAudienceRequest { - // Required. Example format: properties/1234/audiences/5678 - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "analyticsadmin.googleapis.com/Audience" - } - ]; -} - -// Request message for GetAttributionSettings RPC. -message GetAttributionSettingsRequest { - // 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) = { - type: "analyticsadmin.googleapis.com/AttributionSettings" - } - ]; -} - -// Request message for UpdateAttributionSettings RPC -message UpdateAttributionSettingsRequest { - // Required. The attribution settings to update. - // The `name` field is used to identify the settings to be updated. - AttributionSettings attribution_settings = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The list of fields to be updated. Field names must be in snake case - // (e.g., "field_to_update"). Omitted fields will not be updated. To replace - // the entire entity, use one path with the string "*" to match all fields. - google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; -} diff --git a/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/audience.proto b/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/audience.proto deleted file mode 100644 index e12943e1..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/audience.proto +++ /dev/null @@ -1,419 +0,0 @@ -// Copyright 2022 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.analytics.admin.v1alpha; - -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/duration.proto"; - -option go_package = "google.golang.org/genproto/googleapis/analytics/admin/v1alpha;admin"; -option java_multiple_files = true; -option java_outer_classname = "AudienceProto"; -option java_package = "com.google.analytics.admin.v1alpha"; - -// Specifies how to evaluate users for joining an Audience. -enum AudienceFilterScope { - // Scope is not specified. - 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; - - // User joins the Audience if the filter condition is met within one - // session. - 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; -} - -// A specific filter for a single dimension or metric. -message AudienceDimensionOrMetricFilter { - // A filter for a string-type dimension that matches a particular pattern. - message StringFilter { - // The match type for the string filter. - enum MatchType { - // Unspecified - MATCH_TYPE_UNSPECIFIED = 0; - - // Exact match of the string value. - EXACT = 1; - - // Begins with the string value. - BEGINS_WITH = 2; - - // Ends with the string value. - ENDS_WITH = 3; - - // Contains the string value. - CONTAINS = 4; - - // Full regular expression matches with the string value. - FULL_REGEXP = 5; - - // Partial regular expression matches with the string value. - PARTIAL_REGEXP = 6; - } - - // Required. The match type for the string filter. - MatchType match_type = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The string value to be matched against. - string value = 2 [(google.api.field_behavior) = REQUIRED]; - - // Optional. If true, the match is case-sensitive. If false, the match is - // case-insensitive. - bool case_sensitive = 3 [(google.api.field_behavior) = OPTIONAL]; - } - - // A filter for a string dimension that matches a particular list of options. - message InListFilter { - // Required. The list of possible string values to match against. Must be non-empty. - repeated string values = 1 [(google.api.field_behavior) = REQUIRED]; - - // Optional. If true, the match is case-sensitive. If false, the match is - // case-insensitive. - bool case_sensitive = 2 [(google.api.field_behavior) = OPTIONAL]; - } - - // To represent a number. - message NumericValue { - // One of a numeric value. - oneof one_value { - // Integer value. - int64 int64_value = 1; - - // Double value. - double double_value = 2; - } - } - - // A filter for numeric or date values on a dimension or metric. - message NumericFilter { - // The operation applied to a numeric filter. - enum Operation { - // Unspecified. - OPERATION_UNSPECIFIED = 0; - - // Equal. - EQUAL = 1; - - // Less than. - LESS_THAN = 2; - - // Less than or equal. - LESS_THAN_OR_EQUAL = 3; - - // Greater than. - GREATER_THAN = 4; - - // Greater than or equal. - GREATER_THAN_OR_EQUAL = 5; - } - - // Required. The operation applied to a numeric filter. - Operation operation = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The numeric or date value to match against. - NumericValue value = 2 [(google.api.field_behavior) = REQUIRED]; - } - - // A filter for numeric or date values between certain values on a dimension - // or metric. - message BetweenFilter { - // Required. Begins with this number, inclusive. - NumericValue from_value = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. Ends with this number, inclusive. - NumericValue to_value = 2 [(google.api.field_behavior) = REQUIRED]; - } - - // One of the above filters. - oneof one_filter { - // A filter for a string-type dimension that matches a particular pattern. - StringFilter string_filter = 2; - - // A filter for a string dimension that matches a particular list of - // options. - InListFilter in_list_filter = 3; - - // A filter for numeric or date values on a dimension or metric. - NumericFilter numeric_filter = 4; - - // A filter for numeric or date values between certain values on a dimension - // or metric. - BetweenFilter between_filter = 5; - } - - // Required. Immutable. The dimension name or metric name to filter. - string field_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.field_behavior) = IMMUTABLE - ]; - - // 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]; - - // 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 - // (i.e., 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]; -} - -// 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. -message AudienceEventFilter { - // Required. Immutable. The name of the event to match against. - string event_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.field_behavior) = IMMUTABLE - ]; - - // 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 (i.e., 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. - AudienceFilterExpression event_parameter_filter_expression = 2 [(google.api.field_behavior) = OPTIONAL]; -} - -// A logical expression of Audience dimension, metric, or event filters. -message AudienceFilterExpression { - // The expression applied to a filter. - oneof expr { - // 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. - AudienceFilterExpressionList and_group = 1; - - // A list of expressions to OR’ed together. It cannot contain - // AudienceFilterExpressions with and_group or or_group. - AudienceFilterExpressionList or_group = 2; - - // A filter expression to be NOT'ed (i.e., inverted, complemented). It - // can only include a dimension_or_metric_filter. This cannot be set on the - // top level AudienceFilterExpression. - AudienceFilterExpression not_expression = 3; - - // A filter on a single dimension or metric. This cannot be set on the top - // level AudienceFilterExpression. - AudienceDimensionOrMetricFilter dimension_or_metric_filter = 4; - - // Creates a filter that matches a specific event. This cannot be set on the - // top level AudienceFilterExpression. - AudienceEventFilter event_filter = 5; - } -} - -// A list of Audience filter expressions. -message AudienceFilterExpressionList { - // A list of Audience filter expressions. - repeated AudienceFilterExpression filter_expressions = 1; -} - -// Defines a simple filter that a user must satisfy to be a member of the -// Audience. -message AudienceSimpleFilter { - // Required. Immutable. Specifies the scope for this filter. - AudienceFilterScope scope = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.field_behavior) = IMMUTABLE - ]; - - // Required. Immutable. A logical expression of Audience dimension, metric, or event filters. - AudienceFilterExpression filter_expression = 2 [ - (google.api.field_behavior) = REQUIRED, - (google.api.field_behavior) = IMMUTABLE - ]; -} - -// Defines filters that must occur in a specific order for the user to be a -// member of the Audience. -message AudienceSequenceFilter { - // A condition that must occur in the specified step order for this user - // to match the sequence. - message AudienceSequenceStep { - // Required. Immutable. Specifies the scope for this step. - AudienceFilterScope scope = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.field_behavior) = IMMUTABLE - ]; - - // 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]; - - // Optional. When set, this step must be satisfied within the constraint_duration of - // the previous step (i.e., 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]; - - // Required. Immutable. A logical expression of Audience dimension, metric, or event filters in - // each step. - AudienceFilterExpression filter_expression = 4 [ - (google.api.field_behavior) = REQUIRED, - (google.api.field_behavior) = IMMUTABLE - ]; - } - - // Required. Immutable. Specifies the scope for this filter. - AudienceFilterScope scope = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.field_behavior) = IMMUTABLE - ]; - - // Optional. Defines the time period in which the whole sequence must occur. - google.protobuf.Duration sequence_maximum_duration = 2 [(google.api.field_behavior) = OPTIONAL]; - - // Required. An ordered sequence of steps. A user must complete each step in order to - // join the sequence filter. - repeated AudienceSequenceStep sequence_steps = 3 [(google.api.field_behavior) = REQUIRED]; -} - -// A clause for defining either a simple or sequence filter. A filter can be -// inclusive (i.e., users satisfying the filter clause are included in the -// Audience) or exclusive (i.e., users satisfying the filter clause are -// excluded from the Audience). -message AudienceFilterClause { - // Specifies whether this is an include or exclude filter clause. - enum AudienceClauseType { - // Unspecified clause type. - AUDIENCE_CLAUSE_TYPE_UNSPECIFIED = 0; - - // Users will be included in the Audience if the filter clause is met. - INCLUDE = 1; - - // Users will be excluded from the Audience if the filter clause is met. - EXCLUDE = 2; - } - - oneof filter { - // A simple filter that a user must satisfy to be a member of the Audience. - AudienceSimpleFilter simple_filter = 2; - - // Filters that must occur in a specific order for the user to be a member - // of the Audience. - AudienceSequenceFilter sequence_filter = 3; - } - - // Required. Specifies whether this is an include or exclude filter clause. - AudienceClauseType clause_type = 1 [(google.api.field_behavior) = REQUIRED]; -} - -// Specifies an event to log when a user joins the Audience. -message AudienceEventTrigger { - // Determines when to log the event. - enum LogCondition { - // Log condition is not specified. - LOG_CONDITION_UNSPECIFIED = 0; - - // The event should be logged only when a user is joined. - 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; - } - - // Required. The event name that will be logged. - string event_name = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. When to log the event. - LogCondition log_condition = 2 [(google.api.field_behavior) = REQUIRED]; -} - -// A resource message representing a GA4 Audience. -message Audience { - option (google.api.resource) = { - type: "analyticsadmin.googleapis.com/Audience" - pattern: "properties/{property}/audiences/{audience}" - }; - - // Specifies how long an exclusion lasts for users that meet the exclusion - // filter. - enum AudienceExclusionDurationMode { - // Not specified. - AUDIENCE_EXCLUSION_DURATION_MODE_UNSPECIFIED = 0; - - // Exclude users from the Audience during periods when they meet the - // filter clause. - EXCLUDE_TEMPORARILY = 1; - - // Exclude users from the Audience if they've ever met the filter clause. - EXCLUDE_PERMANENTLY = 2; - } - - // Output only. The resource name for this Audience resource. - // Format: properties/{propertyId}/audiences/{audienceId} - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Required. The display name of the Audience. - string display_name = 2 [(google.api.field_behavior) = REQUIRED]; - - // Required. The description of the Audience. - string description = 3 [(google.api.field_behavior) = REQUIRED]; - - // 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 - ]; - - // 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]; - - // 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. - AudienceEventTrigger event_trigger = 6 [(google.api.field_behavior) = OPTIONAL]; - - // 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. - AudienceExclusionDurationMode exclusion_duration_mode = 7 [(google.api.field_behavior) = IMMUTABLE]; - - // Required. Immutable. null Filter clauses that define the Audience. All clauses will be AND’ed - // together. - repeated AudienceFilterClause filter_clauses = 8 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.field_behavior) = REQUIRED, - (google.api.field_behavior) = UNORDERED_LIST - ]; -} diff --git a/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/resources.proto b/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/resources.proto deleted file mode 100644 index 337c7fe6..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/resources.proto +++ /dev/null @@ -1,1300 +0,0 @@ -// Copyright 2022 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.analytics.admin.v1alpha; - -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/timestamp.proto"; -import "google/protobuf/wrappers.proto"; - -option go_package = "google.golang.org/genproto/googleapis/analytics/admin/v1alpha;admin"; -option java_multiple_files = true; -option java_outer_classname = "ResourcesProto"; -option java_package = "com.google.analytics.admin.v1alpha"; - -// The category selected for this property, used for industry benchmarking. -enum IndustryCategory { - // Industry category unspecified - INDUSTRY_CATEGORY_UNSPECIFIED = 0; - - // Automotive - AUTOMOTIVE = 1; - - // Business and industrial markets - BUSINESS_AND_INDUSTRIAL_MARKETS = 2; - - // Finance - FINANCE = 3; - - // Healthcare - HEALTHCARE = 4; - - // Technology - TECHNOLOGY = 5; - - // Travel - TRAVEL = 6; - - // Other - OTHER = 7; - - // Arts and entertainment - ARTS_AND_ENTERTAINMENT = 8; - - // Beauty and fitness - BEAUTY_AND_FITNESS = 9; - - // Books and literature - BOOKS_AND_LITERATURE = 10; - - // Food and drink - FOOD_AND_DRINK = 11; - - // Games - GAMES = 12; - - // Hobbies and leisure - HOBBIES_AND_LEISURE = 13; - - // Home and garden - HOME_AND_GARDEN = 14; - - // Internet and telecom - INTERNET_AND_TELECOM = 15; - - // Law and government - LAW_AND_GOVERNMENT = 16; - - // News - NEWS = 17; - - // Online communities - ONLINE_COMMUNITIES = 18; - - // People and society - PEOPLE_AND_SOCIETY = 19; - - // Pets and animals - PETS_AND_ANIMALS = 20; - - // Real estate - REAL_ESTATE = 21; - - // Reference - REFERENCE = 22; - - // Science - SCIENCE = 23; - - // Sports - SPORTS = 24; - - // Jobs and education - JOBS_AND_EDUCATION = 25; - - // Shopping - SHOPPING = 26; -} - -// Various levels of service for Google Analytics. -enum ServiceLevel { - // Service level not specified or invalid. - SERVICE_LEVEL_UNSPECIFIED = 0; - - // The standard version of Google Analytics. - GOOGLE_ANALYTICS_STANDARD = 1; - - // The paid, premium version of Google Analytics. - GOOGLE_ANALYTICS_360 = 2; -} - -// Different kinds of actors that can make changes to Google Analytics -// resources. -enum ActorType { - // Unknown or unspecified actor type. - ACTOR_TYPE_UNSPECIFIED = 0; - - // Changes made by the user specified in actor_email. - USER = 1; - - // Changes made by the Google Analytics system. - SYSTEM = 2; - - // Changes made by Google Analytics support team staff. - SUPPORT = 3; -} - -// Types of actions that may change a resource. -enum ActionType { - // Action type unknown or not specified. - ACTION_TYPE_UNSPECIFIED = 0; - - // Resource was created in this change. - CREATED = 1; - - // Resource was updated in this change. - UPDATED = 2; - - // Resource was deleted in this change. - DELETED = 3; -} - -// Types of resources whose changes may be returned from change history. -enum ChangeHistoryResourceType { - // Resource type unknown or not specified. - CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED = 0; - - // Account resource - ACCOUNT = 1; - - // Property resource - PROPERTY = 2; - - // FirebaseLink resource - FIREBASE_LINK = 6; - - // GoogleAdsLink resource - GOOGLE_ADS_LINK = 7; - - // GoogleSignalsSettings resource - GOOGLE_SIGNALS_SETTINGS = 8; - - // ConversionEvent resource - CONVERSION_EVENT = 9; - - // MeasurementProtocolSecret resource - MEASUREMENT_PROTOCOL_SECRET = 10; - - // CustomDimension resource - CUSTOM_DIMENSION = 11; - - // CustomMetric resource - CUSTOM_METRIC = 12; - - // DataRetentionSettings resource - DATA_RETENTION_SETTINGS = 13; - - // DisplayVideo360AdvertiserLink resource - DISPLAY_VIDEO_360_ADVERTISER_LINK = 14; - - // DisplayVideo360AdvertiserLinkProposal resource - DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL = 15; - - // SearchAds360Link resource - SEARCH_ADS_360_LINK = 16; - - // DataStream resource - DATA_STREAM = 18; - - // AttributionSettings resource - ATTRIBUTION_SETTINGS = 20; -} - -// Status of the Google Signals settings (i.e., whether this feature has been -// enabled for the property). -enum GoogleSignalsState { - // 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 is enabled. - GOOGLE_SIGNALS_ENABLED = 1; - - // Google Signals is disabled. - GOOGLE_SIGNALS_DISABLED = 2; -} - -// Consent field of the Google Signals settings (i.e., whether the user has -// consented to the Google Signals terms of service.) -enum GoogleSignalsConsent { - // 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; - - // Terms of service have been accepted - GOOGLE_SIGNALS_CONSENT_CONSENTED = 2; - - // Terms of service have not been accepted - GOOGLE_SIGNALS_CONSENT_NOT_CONSENTED = 1; -} - -// An indication of which product the user initiated a link proposal from. -enum LinkProposalInitiatingProduct { - // Unspecified product. - LINK_PROPOSAL_INITIATING_PRODUCT_UNSPECIFIED = 0; - - // This proposal was created by a user from Google Analytics. - GOOGLE_ANALYTICS = 1; - - // This proposal was created by a user from a linked product (not Google - // Analytics). - LINKED_PRODUCT = 2; -} - -// The state of a link proposal resource. -enum LinkProposalState { - // Unspecified state - LINK_PROPOSAL_STATE_UNSPECIFIED = 0; - - // This proposal is awaiting review from a Google Analytics user. This - // proposal will automatically expire after some time. - 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. - 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. - WITHDRAWN = 3; - - // This proposal has been declined by an admin on the receiving product. This - // proposal will be automatically deleted after some time. - 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 - // time. - EXPIRED = 5; - - // This proposal has become obsolete because a link was directly created to - // the same external product resource that this proposal specifies. This - // proposal will be automatically deleted after some time. - OBSOLETE = 6; -} - -// Types of Property resources. -enum PropertyType { - // Unknown or unspecified property type - PROPERTY_TYPE_UNSPECIFIED = 0; - - // Ordinary GA4 property - PROPERTY_TYPE_ORDINARY = 1; - - // GA4 subproperty - PROPERTY_TYPE_SUBPROPERTY = 2; - - // GA4 rollup property - PROPERTY_TYPE_ROLLUP = 3; -} - -// A resource message representing a Google Analytics account. -message Account { - option (google.api.resource) = { - type: "analyticsadmin.googleapis.com/Account" - pattern: "accounts/{account}" - }; - - // Output only. Resource name of this account. - // Format: accounts/{account} - // Example: "accounts/100" - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Time when this account was originally created. - google.protobuf.Timestamp create_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Time when account payload fields were last updated. - google.protobuf.Timestamp update_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Required. Human-readable display name for this account. - string display_name = 4 [(google.api.field_behavior) = REQUIRED]; - - // Country of business. Must be a Unicode CLDR region code. - string region_code = 5; - - // 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]; -} - -// A resource message representing a Google Analytics GA4 property. -message Property { - option (google.api.resource) = { - type: "analyticsadmin.googleapis.com/Property" - pattern: "properties/{property}" - }; - - // Output only. Resource name of this property. - // Format: properties/{property_id} - // Example: "properties/1000" - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // 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 - // via Google Analytics Admin API. - PropertyType property_type = 14 [(google.api.field_behavior) = IMMUTABLE]; - - // Output only. Time when the entity was originally created. - google.protobuf.Timestamp create_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Time when entity payload fields were last updated. - google.protobuf.Timestamp update_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // 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]; - - // 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]; - - // Industry associated with this property - // Example: AUTOMOTIVE, FOOD_AND_DRINK - IndustryCategory industry_category = 6; - - // 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]; - - // 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; - - // Output only. The Google Analytics service level that applies to this property. - ServiceLevel service_level = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // 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]; - - // 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]; - - // Immutable. The resource name of the parent account - // Format: accounts/{account_id} - // Example: "accounts/123" - string account = 13 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "analyticsadmin.googleapis.com/Account" - } - ]; -} - -// A resource message representing a data stream. -message DataStream { - option (google.api.resource) = { - type: "analyticsadmin.googleapis.com/DataStream" - pattern: "properties/{property}/dataStreams/{data_stream}" - }; - - // Data specific to web streams. - message WebStreamData { - // Output only. Analytics "Measurement ID", without the "G-" prefix. - // Example: "G-1A2BCD345E" would just be "1A2BCD345E" - string measurement_id = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. ID of the corresponding web app in Firebase, if any. - // This ID can change if the web app is deleted and recreated. - string firebase_app_id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Immutable. Domain name of the web app being measured, or empty. - // Example: "http://www.google.com", "https://www.google.com" - string default_uri = 3 [(google.api.field_behavior) = IMMUTABLE]; - } - - // Data specific to Android app streams. - message AndroidAppStreamData { - // Output only. ID of the corresponding Android app in Firebase, if any. - // This ID can change if the Android app is deleted and recreated. - string firebase_app_id = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Immutable. The package name for the app being measured. - // Example: "com.example.myandroidapp" - string package_name = 2 [(google.api.field_behavior) = IMMUTABLE]; - } - - // Data specific to iOS app streams. - message IosAppStreamData { - // Output only. ID of the corresponding iOS app in Firebase, if any. - // This ID can change if the iOS app is deleted and recreated. - string firebase_app_id = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Required. Immutable. The Apple App Store Bundle ID for the app - // Example: "com.example.myiosapp" - string bundle_id = 2 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.field_behavior) = REQUIRED - ]; - } - - // The type of the data stream. - enum DataStreamType { - // Type unknown or not specified. - DATA_STREAM_TYPE_UNSPECIFIED = 0; - - // Web data stream. - WEB_DATA_STREAM = 1; - - // Android app data stream. - ANDROID_APP_DATA_STREAM = 2; - - // iOS app data stream. - IOS_APP_DATA_STREAM = 3; - } - - // Data for specific data stream types. The message that will be - // set corresponds to the type of this stream. - oneof stream_data { - // Data specific to web streams. Must be populated if type is - // WEB_DATA_STREAM. - WebStreamData web_stream_data = 6; - - // Data specific to Android app streams. Must be populated if type is - // ANDROID_APP_DATA_STREAM. - AndroidAppStreamData android_app_stream_data = 7; - - // Data specific to iOS app streams. Must be populated if type is - // IOS_APP_DATA_STREAM. - IosAppStreamData ios_app_stream_data = 8; - } - - // Output only. Resource name of this Data Stream. - // Format: properties/{property_id}/dataStreams/{stream_id} - // Example: "properties/1000/dataStreams/2000" - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Required. Immutable. The type of this DataStream resource. - DataStreamType type = 2 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.field_behavior) = REQUIRED - ]; - - // Human-readable display name for the Data Stream. - // - // Required for web data streams. - // - // The max allowed display name length is 255 UTF-16 code units. - string display_name = 3; - - // Output only. Time when this stream was originally created. - google.protobuf.Timestamp create_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Time when stream payload fields were last updated. - google.protobuf.Timestamp update_time = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -// A resource message representing a user's permissions on an Account or -// Property resource. -message UserLink { - option (google.api.resource) = { - type: "analyticsadmin.googleapis.com/UserLink" - pattern: "accounts/{account}/userLinks/{user_link}" - pattern: "properties/{property}/userLinks/{user_link}" - }; - - // Output only. Example format: properties/1234/userLinks/5678 - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Immutable. Email address of the user to link - string email_address = 2 [(google.api.field_behavior) = IMMUTABLE]; - - // Roles directly assigned to this user for this account or property. - // - // Valid values: - // predefinedRoles/viewer - // predefinedRoles/analyst - // predefinedRoles/editor - // predefinedRoles/admin - // predefinedRoles/no-cost-data - // predefinedRoles/no-revenue-data - // - // Excludes roles that are inherited from a higher-level entity, group, - // or organization admin role. - // - // A UserLink that is updated to have an empty list of direct_roles will be - // deleted. - repeated string direct_roles = 3; -} - -// Read-only resource used to summarize a principal's effective roles. -message AuditUserLink { - // Example format: properties/1234/userLinks/5678 - string name = 1; - - // Email address of the linked user - string email_address = 2; - - // Roles directly assigned to this user for this entity. - // - // Format: predefinedRoles/viewer - // - // Excludes roles that are inherited from an account (if this is for a - // property), group, or organization admin role. - repeated string direct_roles = 3; - - // Union of all permissions a user has at this account or property (includes - // direct permissions, group-inherited permissions, etc.). - // - // Format: predefinedRoles/viewer - repeated string effective_roles = 4; -} - -// A link between a GA4 property and a Firebase project. -message FirebaseLink { - option (google.api.resource) = { - type: "analyticsadmin.googleapis.com/FirebaseLink" - pattern: "properties/{property}/firebaseLinks/{firebase_link}" - }; - - // Output only. Example format: properties/1234/firebaseLinks/5678 - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // 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]; - - // Output only. Time when this FirebaseLink was originally created. - google.protobuf.Timestamp create_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -// Read-only resource with the tag for sending data from a website to a -// DataStream. Only present for web DataStream resources. -message GlobalSiteTag { - option (google.api.resource) = { - type: "analyticsadmin.googleapis.com/GlobalSiteTag" - pattern: "properties/{property}/dataStreams/{data_stream}/globalSiteTag" - }; - - // 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]; - - // 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]; -} - -// A link between a GA4 property and a Google Ads account. -message GoogleAdsLink { - option (google.api.resource) = { - type: "analyticsadmin.googleapis.com/GoogleAdsLink" - pattern: "properties/{property}/googleAdsLinks/{google_ads_link}" - }; - - // 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]; - - // Immutable. Google Ads customer ID. - string customer_id = 3 [(google.api.field_behavior) = IMMUTABLE]; - - // Output only. If true, this link is for a Google Ads manager account. - bool can_manage_clients = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // 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; - - // Output only. Time when this link was originally created. - google.protobuf.Timestamp create_time = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Time when this link was last updated. - google.protobuf.Timestamp update_time = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // 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]; -} - -// A resource message representing data sharing settings of a Google Analytics -// account. -message DataSharingSettings { - option (google.api.resource) = { - type: "analyticsadmin.googleapis.com/DataSharingSettings" - pattern: "accounts/{account}/dataSharingSettings" - }; - - // Output only. Resource name. - // Format: accounts/{account}/dataSharingSettings - // Example: "accounts/1000/dataSharingSettings" - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Allows Google support to access the data in order to help troubleshoot - // issues. - bool sharing_with_google_support_enabled = 2; - - // 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; - - // 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; - - // Allows Google to use the data to improve other Google products or services. - bool sharing_with_google_products_enabled = 5; - - // Allows Google to share the data anonymously in aggregate form with others. - bool sharing_with_others_enabled = 6; -} - -// A virtual resource representing an overview of an account and -// all its child GA4 properties. -message AccountSummary { - option (google.api.resource) = { - type: "analyticsadmin.googleapis.com/AccountSummary" - pattern: "accountSummaries/{account_summary}" - }; - - // Resource name for this account summary. - // Format: accountSummaries/{account_id} - // Example: "accountSummaries/1000" - string name = 1; - - // Resource name of account referred to by this account summary - // Format: accounts/{account_id} - // Example: "accounts/1000" - string account = 2 [(google.api.resource_reference) = { - type: "analyticsadmin.googleapis.com/Account" - }]; - - // Display name for the account referred to in this account summary. - string display_name = 3; - - // List of summaries for child accounts of this account. - repeated PropertySummary property_summaries = 4; -} - -// A virtual resource representing metadata for a GA4 property. -message PropertySummary { - // Resource name of property referred to by this property summary - // Format: properties/{property_id} - // Example: "properties/1000" - string property = 1 [(google.api.resource_reference) = { - type: "analyticsadmin.googleapis.com/Property" - }]; - - // Display name for the property referred to in this property summary. - string display_name = 2; - - // The property's property type. - PropertyType property_type = 3; - - // 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; -} - -// A secret value used for sending hits to Measurement Protocol. -message MeasurementProtocolSecret { - option (google.api.resource) = { - type: "analyticsadmin.googleapis.com/MeasurementProtocolSecret" - pattern: "properties/{property}/dataStreams/{data_stream}/measurementProtocolSecrets/{measurement_protocol_secret}" - }; - - // 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]; - - // Required. Human-readable display name for this secret. - string display_name = 2 [(google.api.field_behavior) = REQUIRED]; - - // 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]; -} - -// 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. -message ChangeHistoryEvent { - // ID of this change history event. This ID is unique across Google Analytics. - string id = 1; - - // Time when change was made. - google.protobuf.Timestamp change_time = 2; - - // The type of actor that made this change. - ActorType actor_type = 3; - - // 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; - - // 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; - - // A list of changes made in this change history event that fit the filters - // specified in SearchChangeHistoryEventsRequest. - repeated ChangeHistoryChange changes = 6; -} - -// A description of a change to a single Google Analytics resource. -message ChangeHistoryChange { - // A snapshot of a resource as before or after the result of a change in - // change history. - message ChangeHistoryResource { - oneof resource { - // A snapshot of an Account resource in change history. - Account account = 1; - - // A snapshot of a Property resource in change history. - Property property = 2; - - // A snapshot of a FirebaseLink resource in change history. - FirebaseLink firebase_link = 6; - - // A snapshot of a GoogleAdsLink resource in change history. - GoogleAdsLink google_ads_link = 7; - - // A snapshot of a GoogleSignalsSettings resource in change history. - GoogleSignalsSettings google_signals_settings = 8; - - // A snapshot of a DisplayVideo360AdvertiserLink resource in change - // history. - DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 9; - - // A snapshot of a DisplayVideo360AdvertiserLinkProposal resource in - // change history. - DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposal = 10; - - // A snapshot of a ConversionEvent resource in change history. - ConversionEvent conversion_event = 11; - - // A snapshot of a MeasurementProtocolSecret resource in change history. - MeasurementProtocolSecret measurement_protocol_secret = 12; - - // A snapshot of a CustomDimension resource in change history. - CustomDimension custom_dimension = 13; - - // A snapshot of a CustomMetric resource in change history. - CustomMetric custom_metric = 14; - - // A snapshot of a data retention settings resource in change history. - DataRetentionSettings data_retention_settings = 15; - - // A snapshot of a DataStream resource in change history. - DataStream data_stream = 18; - - // A snapshot of AttributionSettings resource in change history. - AttributionSettings attribution_settings = 20; - } - } - - // Resource name of the resource whose changes are described by this entry. - string resource = 1; - - // The type of action that changed this resource. - ActionType action = 2; - - // Resource contents from before the change was made. If this resource was - // created in this change, this field will be missing. - ChangeHistoryResource resource_before_change = 3; - - // Resource contents from after the change was made. If this resource was - // deleted in this change, this field will be missing. - ChangeHistoryResource resource_after_change = 4; -} - -// A link between a GA4 property and a Display & Video 360 advertiser. -message DisplayVideo360AdvertiserLink { - option (google.api.resource) = { - type: "analyticsadmin.googleapis.com/DisplayVideo360AdvertiserLink" - pattern: "properties/{property}/displayVideo360AdvertiserLinks/{display_video_360_advertiser_link}" - }; - - // 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]; - - // Immutable. The Display & Video 360 Advertiser's advertiser ID. - string advertiser_id = 2 [(google.api.field_behavior) = IMMUTABLE]; - - // Output only. The display name of the Display & Video 360 Advertiser. - string advertiser_display_name = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // 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; - - // 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]; - - // 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]; -} - -// 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. -message DisplayVideo360AdvertiserLinkProposal { - option (google.api.resource) = { - type: "analyticsadmin.googleapis.com/DisplayVideo360AdvertiserLinkProposal" - pattern: "properties/{property}/displayVideo360AdvertiserLinkProposals/{display_video_360_advertiser_link_proposal}" - }; - - // 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]; - - // Immutable. The Display & Video 360 Advertiser's advertiser ID. - string advertiser_id = 2 [(google.api.field_behavior) = IMMUTABLE]; - - // Output only. The status information for this link proposal. - LinkProposalStatusDetails link_proposal_status_details = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // 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]; - - // 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]; - - // 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]; - - // 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]; - - // 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]; -} - -// Status information for a link proposal. -message LinkProposalStatusDetails { - // Output only. The source of this proposal. - LinkProposalInitiatingProduct link_proposal_initiating_product = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The email address of the user that proposed this linkage. - string requestor_email = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The state of this proposal. - LinkProposalState link_proposal_state = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -// A conversion event in a Google Analytics property. -message ConversionEvent { - option (google.api.resource) = { - type: "analyticsadmin.googleapis.com/ConversionEvent" - pattern: "properties/{property}/conversionEvents/{conversion_event}" - }; - - // Output only. Resource name of this conversion event. - // Format: properties/{property}/conversionEvents/{conversion_event} - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Immutable. The event name for this conversion event. - // Examples: 'click', 'purchase' - string event_name = 2 [(google.api.field_behavior) = IMMUTABLE]; - - // Output only. Time when this conversion event was created in the property. - google.protobuf.Timestamp create_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. If set, this event can currently be deleted via DeleteConversionEvent. - bool deletable = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // 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]; -} - -// Settings values for Google Signals. This is a singleton resource. -message GoogleSignalsSettings { - option (google.api.resource) = { - type: "analyticsadmin.googleapis.com/GoogleSignalsSettings" - pattern: "properties/{property}/googleSignalsSettings" - }; - - // 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]; - - // Status of this setting. - GoogleSignalsState state = 3; - - // Output only. Terms of Service acceptance. - GoogleSignalsConsent consent = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -// A definition for a CustomDimension. -message CustomDimension { - option (google.api.resource) = { - type: "analyticsadmin.googleapis.com/CustomDimension" - pattern: "properties/{property}/customDimensions/{custom_dimension}" - }; - - // Valid values for the scope of this dimension. - enum DimensionScope { - // Scope unknown or not specified. - DIMENSION_SCOPE_UNSPECIFIED = 0; - - // Dimension scoped to an event. - EVENT = 1; - - // Dimension scoped to a user. - USER = 2; - } - - // Output only. Resource name for this CustomDimension resource. - // Format: properties/{property}/customDimensions/{customDimension} - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // 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. - // - // 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 - ]; - - // 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]; - - // Optional. Description for this custom dimension. Max length of 150 characters. - string description = 4 [(google.api.field_behavior) = OPTIONAL]; - - // Required. Immutable. The scope of this dimension. - DimensionScope scope = 5 [ - (google.api.field_behavior) = REQUIRED, - (google.api.field_behavior) = IMMUTABLE - ]; - - // 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]; -} - -// A definition for a custom metric. -message CustomMetric { - option (google.api.resource) = { - type: "analyticsadmin.googleapis.com/CustomMetric" - pattern: "properties/{property}/customMetrics/{custom_metric}" - }; - - // Possible types of representing the custom metric's value. - // - // Currency representation may change in the future, requiring a breaking API - // change. - enum MeasurementUnit { - // MeasurementUnit unspecified or missing. - MEASUREMENT_UNIT_UNSPECIFIED = 0; - - // This metric uses default units. - STANDARD = 1; - - // This metric measures a currency. - CURRENCY = 2; - - // This metric measures feet. - FEET = 3; - - // This metric measures meters. - METERS = 4; - - // This metric measures kilometers. - KILOMETERS = 5; - - // This metric measures miles. - MILES = 6; - - // This metric measures milliseconds. - MILLISECONDS = 7; - - // This metric measures seconds. - SECONDS = 8; - - // This metric measures minutes. - MINUTES = 9; - - // This metric measures hours. - HOURS = 10; - } - - // The scope of this metric. - enum MetricScope { - // Scope unknown or not specified. - METRIC_SCOPE_UNSPECIFIED = 0; - - // Metric scoped to an event. - EVENT = 1; - } - - // Labels that mark the data in this custom metric as data that should be - // restricted to specific users. - enum RestrictedMetricType { - // Type unknown or unspecified. - RESTRICTED_METRIC_TYPE_UNSPECIFIED = 0; - - // Metric reports cost data. - COST_DATA = 1; - - // Metric reports revenue data. - REVENUE_DATA = 2; - } - - // Output only. Resource name for this CustomMetric resource. - // Format: properties/{property}/customMetrics/{customMetric} - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // 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 - ]; - - // 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]; - - // Optional. Description for this custom dimension. - // Max length of 150 characters. - string description = 4 [(google.api.field_behavior) = OPTIONAL]; - - // Required. The type for the custom metric's value. - MeasurementUnit measurement_unit = 5 [(google.api.field_behavior) = REQUIRED]; - - // Required. Immutable. The scope of this custom metric. - MetricScope scope = 6 [ - (google.api.field_behavior) = REQUIRED, - (google.api.field_behavior) = IMMUTABLE - ]; - - // 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 RestrictedMetricType restricted_metric_type = 8 [(google.api.field_behavior) = OPTIONAL]; -} - -// Settings values for data retention. This is a singleton resource. -message DataRetentionSettings { - option (google.api.resource) = { - type: "analyticsadmin.googleapis.com/DataRetentionSettings" - pattern: "properties/{property}/dataRetentionSettings" - }; - - // Valid values for the data retention duration. - enum RetentionDuration { - // Data retention time duration is not specified. - RETENTION_DURATION_UNSPECIFIED = 0; - - // The data retention time duration is 2 months. - TWO_MONTHS = 1; - - // The data retention time duration is 14 months. - FOURTEEN_MONTHS = 3; - - // The data retention time duration is 26 months. - // Available to 360 properties only. - TWENTY_SIX_MONTHS = 4; - - // The data retention time duration is 38 months. - // Available to 360 properties only. - THIRTY_EIGHT_MONTHS = 5; - - // The data retention time duration is 50 months. - // Available to 360 properties only. - FIFTY_MONTHS = 6; - } - - // Output only. Resource name for this DataRetentionSetting resource. - // Format: properties/{property}/dataRetentionSettings - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // The length of time that event-level data is retained. - RetentionDuration event_data_retention = 2; - - // If true, reset the retention period for the user identifier with every - // event from that user. - bool reset_user_data_on_new_activity = 3; -} - -// The attribution settings used for a given property. This is a singleton -// resource. -message AttributionSettings { - option (google.api.resource) = { - type: "analyticsadmin.googleapis.com/AttributionSettings" - pattern: "properties/{property}/attributionSettings" - }; - - // 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. - enum AcquisitionConversionEventLookbackWindow { - // Lookback window size unspecified. - ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED = 0; - - // 7-day lookback window. - ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_7_DAYS = 1; - - // 30-day lookback window. - ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_30_DAYS = 2; - } - - // 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. - enum OtherConversionEventLookbackWindow { - // Lookback window size unspecified. - OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED = 0; - - // 30-day lookback window. - OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_30_DAYS = 1; - - // 60-day lookback window. - OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_60_DAYS = 2; - - // 90-day lookback window. - OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_90_DAYS = 3; - } - - // The reporting attribution model used to calculate conversion credit in this - // property's reports. - enum ReportingAttributionModel { - // Reporting attribution model unspecified. - 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. - CROSS_CHANNEL_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. - CROSS_CHANNEL_LAST_CLICK = 2; - - // Gives all credit for the conversion to the first channel that a customer - // clicked (or engaged view through for YouTube) before converting. - CROSS_CHANNEL_FIRST_CLICK = 3; - - // Distributes the credit for the conversion equally across all the channels - // a customer clicked (or engaged view through for YouTube) before - // converting. - CROSS_CHANNEL_LINEAR = 4; - - // Attributes 40% credit to the first and last interaction, and the - // remaining 20% credit is distributed evenly to the middle interactions. - CROSS_CHANNEL_POSITION_BASED = 5; - - // Gives more credit to the touchpoints that happened closer in time to - // the conversion. - CROSS_CHANNEL_TIME_DECAY = 6; - - // Attributes 100% of the conversion value to the last Google Ads channel - // that the customer clicked through before converting. - ADS_PREFERRED_LAST_CLICK = 7; - } - - // 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]; - - // Required. The lookback window configuration for acquisition conversion events. - // The default window size is 30 days. - AcquisitionConversionEventLookbackWindow acquisition_conversion_event_lookback_window = 2 [(google.api.field_behavior) = REQUIRED]; - - // Required. The lookback window for all other, non-acquisition conversion events. - // The default window size is 90 days. - OtherConversionEventLookbackWindow other_conversion_event_lookback_window = 3 [(google.api.field_behavior) = REQUIRED]; - - // 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. - ReportingAttributionModel reporting_attribution_model = 4 [(google.api.field_behavior) = REQUIRED]; -} diff --git a/proto-google-analytics-admin-v1beta/clirr-ignored-differences.xml b/proto-google-analytics-admin-v1beta/clirr-ignored-differences.xml deleted file mode 100644 index 205fd85b..00000000 --- a/proto-google-analytics-admin-v1beta/clirr-ignored-differences.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - 7012 - com/google/analytics/admin/v1beta/*OrBuilder - * get*(*) - - - 7012 - com/google/analytics/admin/v1beta/*OrBuilder - boolean contains*(*) - - - 7012 - com/google/analytics/admin/v1beta/*OrBuilder - boolean has*(*) - - diff --git a/proto-google-analytics-admin-v1beta/pom.xml b/proto-google-analytics-admin-v1beta/pom.xml deleted file mode 100644 index 4c44bf35..00000000 --- a/proto-google-analytics-admin-v1beta/pom.xml +++ /dev/null @@ -1,42 +0,0 @@ - - 4.0.0 - com.google.api.grpc - proto-google-analytics-admin-v1beta - 0.13.5 - proto-google-analytics-admin-v1beta - Proto library for google-analytics-admin - - com.google.analytics - google-analytics-admin-parent - 0.13.5 - - - - com.google.protobuf - protobuf-java - - - com.google.api.grpc - proto-google-common-protos - - - com.google.api - api-common - - - com.google.guava - guava - - - - - - - org.codehaus.mojo - flatten-maven-plugin - - - - diff --git a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/Account.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/Account.java deleted file mode 100644 index a1efea52..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/Account.java +++ /dev/null @@ -1,1647 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - 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 getCreateTime(); - } - - 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 getUpdateTime(); - } - - public static final int DISPLAY_NAME_FIELD_NUMBER = 4; - 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; - 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_; - /** - * - * - *
-   * 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(); - name_ = ""; - - if (createTimeBuilder_ == null) { - createTime_ = null; - } else { - createTime_ = null; - createTimeBuilder_ = null; - } - if (updateTimeBuilder_ == null) { - updateTime_ = null; - } else { - updateTime_ = null; - 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); - result.name_ = name_; - if (createTimeBuilder_ == null) { - result.createTime_ = createTime_; - } else { - result.createTime_ = createTimeBuilder_.build(); - } - if (updateTimeBuilder_ == null) { - result.updateTime_ = updateTime_; - } else { - result.updateTime_ = updateTimeBuilder_.build(); - } - result.displayName_ = displayName_; - result.regionCode_ = regionCode_; - result.deleted_ = deleted_; - 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.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_; - onChanged(); - } - if (other.hasCreateTime()) { - mergeCreateTime(other.getCreateTime()); - } - if (other.hasUpdateTime()) { - mergeUpdateTime(other.getUpdateTime()); - } - if (!other.getDisplayName().isEmpty()) { - displayName_ = other.displayName_; - onChanged(); - } - if (!other.getRegionCode().isEmpty()) { - regionCode_ = other.regionCode_; - 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(); - - break; - } // case 10 - case 18: - { - input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - case 26: - { - input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 26 - case 34: - { - displayName_ = input.readStringRequireUtf8(); - - break; - } // case 34 - case 42: - { - regionCode_ = input.readStringRequireUtf8(); - - break; - } // case 42 - case 48: - { - deleted_ = input.readBool(); - - 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 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; - 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(); - 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; - 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 createTimeBuilder_ != null || 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. - */ - 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; - onChanged(); - } else { - createTimeBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - createTimeBuilder_.setMessage(builderForValue.build()); - } - - 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 (createTime_ != null) { - createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); - } else { - createTime_ = value; - } - onChanged(); - } else { - createTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Output only. Time when this account was originally created.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearCreateTime() { - if (createTimeBuilder_ == null) { - createTime_ = null; - onChanged(); - } else { - createTime_ = null; - createTimeBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Output only. Time when this account was originally created.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - - 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 updateTimeBuilder_ != null || 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. - */ - 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; - onChanged(); - } else { - updateTimeBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - updateTimeBuilder_.setMessage(builderForValue.build()); - } - - 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 (updateTime_ != null) { - updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); - } else { - updateTime_ = value; - } - onChanged(); - } else { - updateTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Output only. Time when account payload fields were last updated.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearUpdateTime() { - if (updateTimeBuilder_ == null) { - updateTime_ = null; - onChanged(); - } else { - updateTime_ = null; - updateTimeBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Output only. Time when 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() { - - 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; - 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(); - 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; - 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; - 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(); - 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; - 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; - 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() { - - 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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccountName.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccountName.java deleted file mode 100644 index 8b200bcd..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccountName.java +++ /dev/null @@ -1,168 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 com.google.api.pathtemplate.PathTemplate; -import com.google.api.resourcenames.ResourceName; -import com.google.common.base.Preconditions; -import com.google.common.collect.ImmutableMap; -import java.util.ArrayList; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -@Generated("by gapic-generator-java") -public class AccountName implements ResourceName { - private static final PathTemplate ACCOUNT = - PathTemplate.createWithoutUrlEncoding("accounts/{account}"); - private volatile Map fieldValuesMap; - private final String account; - - @Deprecated - protected AccountName() { - account = null; - } - - private AccountName(Builder builder) { - account = Preconditions.checkNotNull(builder.getAccount()); - } - - public String getAccount() { - return account; - } - - public static Builder newBuilder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder(this); - } - - public static AccountName of(String account) { - return newBuilder().setAccount(account).build(); - } - - public static String format(String account) { - return newBuilder().setAccount(account).build().toString(); - } - - public static AccountName parse(String formattedString) { - if (formattedString.isEmpty()) { - return null; - } - Map matchMap = - ACCOUNT.validatedMatch( - formattedString, "AccountName.parse: formattedString not in valid format"); - return of(matchMap.get("account")); - } - - public static List parseList(List formattedStrings) { - List list = new ArrayList<>(formattedStrings.size()); - for (String formattedString : formattedStrings) { - list.add(parse(formattedString)); - } - return list; - } - - public static List toStringList(List values) { - List list = new ArrayList<>(values.size()); - for (AccountName value : values) { - if (value == null) { - list.add(""); - } else { - list.add(value.toString()); - } - } - return list; - } - - public static boolean isParsableFrom(String formattedString) { - return ACCOUNT.matches(formattedString); - } - - @Override - public Map getFieldValuesMap() { - if (fieldValuesMap == null) { - synchronized (this) { - if (fieldValuesMap == null) { - ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); - if (account != null) { - fieldMapBuilder.put("account", account); - } - fieldValuesMap = fieldMapBuilder.build(); - } - } - } - return fieldValuesMap; - } - - public String getFieldValue(String fieldName) { - return getFieldValuesMap().get(fieldName); - } - - @Override - public String toString() { - return ACCOUNT.instantiate("account", account); - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (o != null || getClass() == o.getClass()) { - AccountName that = ((AccountName) o); - return Objects.equals(this.account, that.account); - } - return false; - } - - @Override - public int hashCode() { - int h = 1; - h *= 1000003; - h ^= Objects.hashCode(account); - return h; - } - - /** Builder for accounts/{account}. */ - public static class Builder { - private String account; - - protected Builder() {} - - public String getAccount() { - return account; - } - - public Builder setAccount(String account) { - this.account = account; - return this; - } - - private Builder(AccountName accountName) { - this.account = accountName.account; - } - - public AccountName build() { - return new AccountName(this); - } - } -} diff --git a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccountOrBuilder.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccountOrBuilder.java deleted file mode 100644 index a1501352..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccountOrBuilder.java +++ /dev/null @@ -1,194 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccountSummary.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccountSummary.java deleted file mode 100644 index 307fd511..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccountSummary.java +++ /dev/null @@ -1,1507 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - 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; - 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; - 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; - 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(); - name_ = ""; - - account_ = ""; - - displayName_ = ""; - - if (propertySummariesBuilder_ == null) { - propertySummaries_ = java.util.Collections.emptyList(); - } else { - propertySummaries_ = null; - propertySummariesBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - 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); - int from_bitField0_ = bitField0_; - result.name_ = name_; - result.account_ = account_; - result.displayName_ = displayName_; - if (propertySummariesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - propertySummaries_ = java.util.Collections.unmodifiableList(propertySummaries_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.propertySummaries_ = propertySummaries_; - } else { - result.propertySummaries_ = propertySummariesBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.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_; - onChanged(); - } - if (!other.getAccount().isEmpty()) { - account_ = other.account_; - onChanged(); - } - if (!other.getDisplayName().isEmpty()) { - displayName_ = other.displayName_; - onChanged(); - } - if (propertySummariesBuilder_ == null) { - if (!other.propertySummaries_.isEmpty()) { - if (propertySummaries_.isEmpty()) { - propertySummaries_ = other.propertySummaries_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensurePropertySummariesIsMutable(); - propertySummaries_.addAll(other.propertySummaries_); - } - onChanged(); - } - } else { - if (!other.propertySummaries_.isEmpty()) { - if (propertySummariesBuilder_.isEmpty()) { - propertySummariesBuilder_.dispose(); - propertySummariesBuilder_ = null; - propertySummaries_ = other.propertySummaries_; - bitField0_ = (bitField0_ & ~0x00000001); - 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(); - - break; - } // case 10 - case 18: - { - account_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: - { - displayName_ = input.readStringRequireUtf8(); - - 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; - 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(); - 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; - 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; - 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(); - 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; - 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; - 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(); - 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; - onChanged(); - return this; - } - - private java.util.List propertySummaries_ = - java.util.Collections.emptyList(); - - private void ensurePropertySummariesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - propertySummaries_ = - new java.util.ArrayList( - propertySummaries_); - bitField0_ |= 0x00000001; - } - } - - 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_ & ~0x00000001); - 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_ & 0x00000001) != 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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccountSummaryOrBuilder.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccountSummaryOrBuilder.java deleted file mode 100644 index 49033a60..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccountSummaryOrBuilder.java +++ /dev/null @@ -1,161 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AcknowledgeUserDataCollectionRequest.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AcknowledgeUserDataCollectionRequest.java deleted file mode 100644 index 09e8b8ba..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AcknowledgeUserDataCollectionRequest.java +++ /dev/null @@ -1,863 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - private volatile java.lang.Object property_; - /** - * - * - *
-   * Required. The property for which to acknowledge user data collection.
-   * 
- * - * - * string property = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The property. - */ - @java.lang.Override - public java.lang.String getProperty() { - java.lang.Object ref = property_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - property_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The property for which to acknowledge user data collection.
-   * 
- * - * - * string property = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for property. - */ - @java.lang.Override - public com.google.protobuf.ByteString getPropertyBytes() { - java.lang.Object ref = property_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - property_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ACKNOWLEDGEMENT_FIELD_NUMBER = 2; - private volatile java.lang.Object acknowledgement_; - /** - * - * - *
-   * Required. An acknowledgement that the caller of this method understands the terms
-   * of user data collection.
-   * This field must contain the exact value:
-   * "I acknowledge that I have the necessary privacy disclosures and rights
-   * from my end users for the collection and processing of their data,
-   * including the association of such data with the visitation information
-   * Google Analytics collects from my site and/or app property."
-   * 
- * - * string acknowledgement = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The acknowledgement. - */ - @java.lang.Override - public java.lang.String getAcknowledgement() { - java.lang.Object ref = acknowledgement_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - acknowledgement_ = s; - return s; - } - } - /** - * - * - *
-   * Required. An acknowledgement that the caller of this method understands the terms
-   * of user data collection.
-   * This field must contain the exact value:
-   * "I acknowledge that I have the necessary privacy disclosures and rights
-   * from my end users for the collection and processing of their data,
-   * including the association of such data with the visitation information
-   * Google Analytics collects from my site and/or app property."
-   * 
- * - * string acknowledgement = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for acknowledgement. - */ - @java.lang.Override - public com.google.protobuf.ByteString getAcknowledgementBytes() { - java.lang.Object ref = acknowledgement_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - acknowledgement_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(property_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, property_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(acknowledgement_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, acknowledgement_); - } - getUnknownFields().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(); - 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); - result.property_ = property_; - result.acknowledgement_ = acknowledgement_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.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_; - onChanged(); - } - if (!other.getAcknowledgement().isEmpty()) { - acknowledgement_ = other.acknowledgement_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 18: - { - acknowledgement_ = input.readStringRequireUtf8(); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object property_ = ""; - /** - * - * - *
-     * Required. The property for which to acknowledge user data collection.
-     * 
- * - * - * string property = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The property. - */ - public java.lang.String getProperty() { - java.lang.Object ref = property_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - property_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The property for which to acknowledge user data collection.
-     * 
- * - * - * string property = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for property. - */ - public com.google.protobuf.ByteString getPropertyBytes() { - java.lang.Object ref = property_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - property_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The property for which to acknowledge user data collection.
-     * 
- * - * - * string property = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The property to set. - * @return This builder for chaining. - */ - public Builder setProperty(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - property_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The property for which to acknowledge user data collection.
-     * 
- * - * - * string property = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearProperty() { - - property_ = getDefaultInstance().getProperty(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The property for which to acknowledge user data collection.
-     * 
- * - * - * string property = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for property to set. - * @return This builder for chaining. - */ - public Builder setPropertyBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - property_ = value; - onChanged(); - return this; - } - - private java.lang.Object acknowledgement_ = ""; - /** - * - * - *
-     * Required. An acknowledgement that the caller of this method understands the terms
-     * of user data collection.
-     * This field must contain the exact value:
-     * "I acknowledge that I have the necessary privacy disclosures and rights
-     * from my end users for the collection and processing of their data,
-     * including the association of such data with the visitation information
-     * Google Analytics collects from my site and/or app property."
-     * 
- * - * string acknowledgement = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The acknowledgement. - */ - public java.lang.String getAcknowledgement() { - java.lang.Object ref = acknowledgement_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - acknowledgement_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. An acknowledgement that the caller of this method understands the terms
-     * of user data collection.
-     * This field must contain the exact value:
-     * "I acknowledge that I have the necessary privacy disclosures and rights
-     * from my end users for the collection and processing of their data,
-     * including the association of such data with the visitation information
-     * Google Analytics collects from my site and/or app property."
-     * 
- * - * string acknowledgement = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for acknowledgement. - */ - public com.google.protobuf.ByteString getAcknowledgementBytes() { - java.lang.Object ref = acknowledgement_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - acknowledgement_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. An acknowledgement that the caller of this method understands the terms
-     * of user data collection.
-     * This field must contain the exact value:
-     * "I acknowledge that I have the necessary privacy disclosures and rights
-     * from my end users for the collection and processing of their data,
-     * including the association of such data with the visitation information
-     * Google Analytics collects from my site and/or app property."
-     * 
- * - * string acknowledgement = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The acknowledgement to set. - * @return This builder for chaining. - */ - public Builder setAcknowledgement(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - acknowledgement_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. An acknowledgement that the caller of this method understands the terms
-     * of user data collection.
-     * This field must contain the exact value:
-     * "I acknowledge that I have the necessary privacy disclosures and rights
-     * from my end users for the collection and processing of their data,
-     * including the association of such data with the visitation information
-     * Google Analytics collects from my site and/or app property."
-     * 
- * - * string acknowledgement = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearAcknowledgement() { - - acknowledgement_ = getDefaultInstance().getAcknowledgement(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. An acknowledgement that the caller of this method understands the terms
-     * of user data collection.
-     * This field must contain the exact value:
-     * "I acknowledge that I have the necessary privacy disclosures and rights
-     * from my end users for the collection and processing of their data,
-     * including the association of such data with the visitation information
-     * Google Analytics collects from my site and/or app property."
-     * 
- * - * string acknowledgement = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for acknowledgement to set. - * @return This builder for chaining. - */ - public Builder setAcknowledgementBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - acknowledgement_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AcknowledgeUserDataCollectionRequestOrBuilder.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AcknowledgeUserDataCollectionRequestOrBuilder.java deleted file mode 100644 index 528bdff1..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AcknowledgeUserDataCollectionRequestOrBuilder.java +++ /dev/null @@ -1,91 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AcknowledgeUserDataCollectionResponse.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AcknowledgeUserDataCollectionResponse.java deleted file mode 100644 index 12985a8c..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AcknowledgeUserDataCollectionResponse.java +++ /dev/null @@ -1,453 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AcknowledgeUserDataCollectionResponseOrBuilder.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AcknowledgeUserDataCollectionResponseOrBuilder.java deleted file mode 100644 index 8b67545d..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AcknowledgeUserDataCollectionResponseOrBuilder.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ActionType.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ActionType.java deleted file mode 100644 index 88a782e2..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ActionType.java +++ /dev/null @@ -1,198 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ActorType.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ActorType.java deleted file mode 100644 index b3d1ccfb..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ActorType.java +++ /dev/null @@ -1,199 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AnalyticsAdminProto.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AnalyticsAdminProto.java deleted file mode 100644 index dbb0229e..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AnalyticsAdminProto.java +++ /dev/null @@ -1,1256 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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_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_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\032-google/analytics/admin/v1beta/reso" - + "urces.proto\032\034google/api/annotations.prot" - + "o\032\027google/api/client.proto\032\037google/api/f" - + "ield_behavior.proto\032\031google/api/resource" - + ".proto\032\033google/protobuf/empty.proto\032 goo" - + "gle/protobuf/field_mask.proto\032\037google/pr" - + "otobuf/timestamp.proto\"P\n\021GetAccountRequ" - + "est\022;\n\004name\030\001 \001(\tB-\340A\002\372A\'\n%analyticsadmi" - + "n.googleapis.com/Account\"R\n\023ListAccounts" - + "Request\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\024ListAcco" - + "untsResponse\0228\n\010accounts\030\001 \003(\0132&.google." - + "analytics.admin.v1beta.Account\022\027\n\017next_p" - + "age_token\030\002 \001(\t\"S\n\024DeleteAccountRequest\022" - + ";\n\004name\030\001 \001(\tB-\340A\002\372A\'\n%analyticsadmin.go" - + "ogleapis.com/Account\"\212\001\n\024UpdateAccountRe" - + "quest\022<\n\007account\030\001 \001(\0132&.google.analytic" - + "s.admin.v1beta.AccountB\003\340A\002\0224\n\013update_ma" - + "sk\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A" - + "\002\"n\n\035ProvisionAccountTicketRequest\0227\n\007ac" - + "count\030\001 \001(\0132&.google.analytics.admin.v1b" - + "eta.Account\022\024\n\014redirect_uri\030\002 \001(\t\";\n\036Pro" - + "visionAccountTicketResponse\022\031\n\021account_t" - + "icket_id\030\001 \001(\t\"R\n\022GetPropertyRequest\022<\n\004" - + "name\030\001 \001(\tB.\340A\002\372A(\n&analyticsadmin.googl" - + "eapis.com/Property\"i\n\025ListPropertiesRequ" - + "est\022\023\n\006filter\030\001 \001(\tB\003\340A\002\022\021\n\tpage_size\030\002 " - + "\001(\005\022\022\n\npage_token\030\003 \001(\t\022\024\n\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\"\215\001" - + "\n\025UpdatePropertyRequest\022>\n\010property\030\001 \001(" - + "\0132\'.google.analytics.admin.v1beta.Proper" - + "tyB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.google.pr" - + "otobuf.FieldMaskB\003\340A\002\"W\n\025CreatePropertyR" - + "equest\022>\n\010property\030\001 \001(\0132\'.google.analyt" - + "ics.admin.v1beta.PropertyB\003\340A\002\"U\n\025Delete" - + "PropertyRequest\022<\n\004name\030\001 \001(\tB.\340A\002\372A(\n&a" - + "nalyticsadmin.googleapis.com/Property\"\250\001" - + "\n\031CreateFirebaseLinkRequest\022B\n\006parent\030\001 " - + "\001(\tB2\340A\002\372A,\022*analyticsadmin.googleapis.c" - + "om/FirebaseLink\022G\n\rfirebase_link\030\002 \001(\0132+" - + ".google.analytics.admin.v1beta.FirebaseL" - + "inkB\003\340A\002\"]\n\031DeleteFirebaseLinkRequest\022@\n" - + "\004name\030\001 \001(\tB2\340A\002\372A,\n*analyticsadmin.goog" - + "leapis.com/FirebaseLink\"\205\001\n\030ListFirebase" - + "LinksRequest\022B\n\006parent\030\001 \001(\tB2\340A\002\372A,\022*an" - + "alyticsadmin.googleapis.com/FirebaseLink" - + "\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"" - + "y\n\031ListFirebaseLinksResponse\022C\n\016firebase" - + "_links\030\001 \003(\0132+.google.analytics.admin.v1" - + "beta.FirebaseLink\022\027\n\017next_page_token\030\002 \001" - + "(\t\"\255\001\n\032CreateGoogleAdsLinkRequest\022C\n\006par" - + "ent\030\001 \001(\tB3\340A\002\372A-\022+analyticsadmin.google" - + "apis.com/GoogleAdsLink\022J\n\017google_ads_lin" - + "k\030\002 \001(\0132,.google.analytics.admin.v1beta." - + "GoogleAdsLinkB\003\340A\002\"\231\001\n\032UpdateGoogleAdsLi" - + "nkRequest\022E\n\017google_ads_link\030\001 \001(\0132,.goo" - + "gle.analytics.admin.v1beta.GoogleAdsLink" - + "\0224\n\013update_mask\030\002 \001(\0132\032.google.protobuf." - + "FieldMaskB\003\340A\002\"_\n\032DeleteGoogleAdsLinkReq" - + "uest\022A\n\004name\030\001 \001(\tB3\340A\002\372A-\n+analyticsadm" - + "in.googleapis.com/GoogleAdsLink\"\207\001\n\031List" - + "GoogleAdsLinksRequest\022C\n\006parent\030\001 \001(\tB3\340" - + "A\002\372A-\022+analyticsadmin.googleapis.com/Goo" - + "gleAdsLink\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_to" - + "ken\030\003 \001(\t\"}\n\032ListGoogleAdsLinksResponse\022" - + "F\n\020google_ads_links\030\001 \003(\0132,.google.analy" - + "tics.admin.v1beta.GoogleAdsLink\022\027\n\017next_" - + "page_token\030\002 \001(\t\"h\n\035GetDataSharingSettin" - + "gsRequest\022G\n\004name\030\001 \001(\tB9\340A\002\372A3\n1analyti" - + "csadmin.googleapis.com/DataSharingSettin" - + "gs\"D\n\033ListAccountSummariesRequest\022\021\n\tpag" - + "e_size\030\001 \001(\005\022\022\n\npage_token\030\002 \001(\t\"\201\001\n\034Lis" - + "tAccountSummariesResponse\022H\n\021account_sum" - + "maries\030\001 \003(\0132-.google.analytics.admin.v1" - + "beta.AccountSummary\022\027\n\017next_page_token\030\002" - + " \001(\t\"\206\001\n$AcknowledgeUserDataCollectionRe" - + "quest\022@\n\010property\030\001 \001(\tB.\340A\002\372A(\n&analyti" - + "csadmin.googleapis.com/Property\022\034\n\017ackno" - + "wledgement\030\002 \001(\tB\003\340A\002\"\'\n%AcknowledgeUser" - + "DataCollectionResponse\"\201\004\n SearchChangeH" - + "istoryEventsRequest\022>\n\007account\030\001 \001(\tB-\340A" - + "\002\372A\'\n%analyticsadmin.googleapis.com/Acco" - + "unt\022@\n\010property\030\002 \001(\tB.\340A\001\372A(\n&analytics" - + "admin.googleapis.com/Property\022T\n\rresourc" - + "e_type\030\003 \003(\01628.google.analytics.admin.v1" - + "beta.ChangeHistoryResourceTypeB\003\340A\001\022>\n\006a" - + "ction\030\004 \003(\0162).google.analytics.admin.v1b" - + "eta.ActionTypeB\003\340A\001\022\030\n\013actor_email\030\005 \003(\t" - + "B\003\340A\001\022=\n\024earliest_change_time\030\006 \001(\0132\032.go" - + "ogle.protobuf.TimestampB\003\340A\001\022;\n\022latest_c" - + "hange_time\030\007 \001(\0132\032.google.protobuf.Times" - + "tampB\003\340A\001\022\026\n\tpage_size\030\010 \001(\005B\003\340A\001\022\027\n\npag" - + "e_token\030\t \001(\tB\003\340A\001\"\216\001\n!SearchChangeHisto" - + "ryEventsResponse\022P\n\025change_history_event" - + "s\030\001 \003(\01321.google.analytics.admin.v1beta." - + "ChangeHistoryEvent\022\027\n\017next_page_token\030\002 " - + "\001(\t\"t\n#GetMeasurementProtocolSecretReque" - + "st\022M\n\004name\030\001 \001(\tB?\340A\002\372A9\n7analyticsadmin" - + ".googleapis.com/MeasurementProtocolSecre" - + "t\"\335\001\n&CreateMeasurementProtocolSecretReq" - + "uest\022O\n\006parent\030\001 \001(\tB?\340A\002\372A9\0227analyticsa" - + "dmin.googleapis.com/MeasurementProtocolS" - + "ecret\022b\n\033measurement_protocol_secret\030\002 \001" - + "(\01328.google.analytics.admin.v1beta.Measu" - + "rementProtocolSecretB\003\340A\002\"w\n&DeleteMeasu" - + "rementProtocolSecretRequest\022M\n\004name\030\001 \001(" - + "\tB?\340A\002\372A9\n7analyticsadmin.googleapis.com" - + "/MeasurementProtocolSecret\"\275\001\n&UpdateMea" - + "surementProtocolSecretRequest\022b\n\033measure" - + "ment_protocol_secret\030\001 \001(\01328.google.anal" - + "ytics.admin.v1beta.MeasurementProtocolSe" - + "cretB\003\340A\002\022/\n\013update_mask\030\002 \001(\0132\032.google." - + "protobuf.FieldMask\"\237\001\n%ListMeasurementPr" - + "otocolSecretsRequest\022O\n\006parent\030\001 \001(\tB?\340A" - + "\002\372A9\0227analyticsadmin.googleapis.com/Meas" - + "urementProtocolSecret\022\021\n\tpage_size\030\002 \001(\005" - + "\022\022\n\npage_token\030\003 \001(\t\"\241\001\n&ListMeasurement" - + "ProtocolSecretsResponse\022^\n\034measurement_p" - + "rotocol_secrets\030\001 \003(\01328.google.analytics" - + ".admin.v1beta.MeasurementProtocolSecret\022" - + "\027\n\017next_page_token\030\002 \001(\t\"\264\001\n\034CreateConve" - + "rsionEventRequest\022M\n\020conversion_event\030\001 " - + "\001(\0132..google.analytics.admin.v1beta.Conv" - + "ersionEventB\003\340A\002\022E\n\006parent\030\002 \001(\tB5\340A\002\372A/" - + "\022-analyticsadmin.googleapis.com/Conversi" - + "onEvent\"`\n\031GetConversionEventRequest\022C\n\004" - + "name\030\001 \001(\tB5\340A\002\372A/\n-analyticsadmin.googl" - + "eapis.com/ConversionEvent\"c\n\034DeleteConve" - + "rsionEventRequest\022C\n\004name\030\001 \001(\tB5\340A\002\372A/\n" - + "-analyticsadmin.googleapis.com/Conversio" - + "nEvent\"\213\001\n\033ListConversionEventsRequest\022E" - + "\n\006parent\030\001 \001(\tB5\340A\002\372A/\022-analyticsadmin.g" - + "oogleapis.com/ConversionEvent\022\021\n\tpage_si" - + "ze\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"\202\001\n\034ListCon" - + "versionEventsResponse\022I\n\021conversion_even" - + "ts\030\001 \003(\0132..google.analytics.admin.v1beta" - + ".ConversionEvent\022\027\n\017next_page_token\030\002 \001(" - + "\t\"\264\001\n\034CreateCustomDimensionRequest\022E\n\006pa" - + "rent\030\001 \001(\tB5\340A\002\372A/\022-analyticsadmin.googl" - + "eapis.com/CustomDimension\022M\n\020custom_dime" - + "nsion\030\002 \001(\0132..google.analytics.admin.v1b" - + "eta.CustomDimensionB\003\340A\002\"\236\001\n\034UpdateCusto" - + "mDimensionRequest\022H\n\020custom_dimension\030\001 " - + "\001(\0132..google.analytics.admin.v1beta.Cust" - + "omDimension\0224\n\013update_mask\030\002 \001(\0132\032.googl" - + "e.protobuf.FieldMaskB\003\340A\002\"\213\001\n\033ListCustom" - + "DimensionsRequest\022E\n\006parent\030\001 \001(\tB5\340A\002\372A" - + "/\022-analyticsadmin.googleapis.com/CustomD" - + "imension\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_toke" - + "n\030\003 \001(\t\"\202\001\n\034ListCustomDimensionsResponse" - + "\022I\n\021custom_dimensions\030\001 \003(\0132..google.ana" - + "lytics.admin.v1beta.CustomDimension\022\027\n\017n" - + "ext_page_token\030\002 \001(\t\"d\n\035ArchiveCustomDim" - + "ensionRequest\022C\n\004name\030\001 \001(\tB5\340A\002\372A/\n-ana" - + "lyticsadmin.googleapis.com/CustomDimensi" - + "on\"`\n\031GetCustomDimensionRequest\022C\n\004name\030" - + "\001 \001(\tB5\340A\002\372A/\n-analyticsadmin.googleapis" - + ".com/CustomDimension\"\250\001\n\031CreateCustomMet" - + "ricRequest\022B\n\006parent\030\001 \001(\tB2\340A\002\372A,\022*anal" - + "yticsadmin.googleapis.com/CustomMetric\022G" - + "\n\rcustom_metric\030\002 \001(\0132+.google.analytics" - + ".admin.v1beta.CustomMetricB\003\340A\002\"\225\001\n\031Upda" - + "teCustomMetricRequest\022B\n\rcustom_metric\030\001" - + " \001(\0132+.google.analytics.admin.v1beta.Cus" - + "tomMetric\0224\n\013update_mask\030\002 \001(\0132\032.google." - + "protobuf.FieldMaskB\003\340A\002\"\205\001\n\030ListCustomMe" - + "tricsRequest\022B\n\006parent\030\001 \001(\tB2\340A\002\372A,\022*an" - + "alyticsadmin.googleapis.com/CustomMetric" - + "\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"" - + "y\n\031ListCustomMetricsResponse\022C\n\016custom_m" - + "etrics\030\001 \003(\0132+.google.analytics.admin.v1" - + "beta.CustomMetric\022\027\n\017next_page_token\030\002 \001" - + "(\t\"^\n\032ArchiveCustomMetricRequest\022@\n\004name" - + "\030\001 \001(\tB2\340A\002\372A,\n*analyticsadmin.googleapi" - + "s.com/CustomMetric\"Z\n\026GetCustomMetricReq" - + "uest\022@\n\004name\030\001 \001(\tB2\340A\002\372A,\n*analyticsadm" - + "in.googleapis.com/CustomMetric\"l\n\037GetDat" - + "aRetentionSettingsRequest\022I\n\004name\030\001 \001(\tB" - + ";\340A\002\372A5\n3analyticsadmin.googleapis.com/D" - + "ataRetentionSettings\"\266\001\n\"UpdateDataReten" - + "tionSettingsRequest\022Z\n\027data_retention_se" - + "ttings\030\001 \001(\01324.google.analytics.admin.v1" - + "beta.DataRetentionSettingsB\003\340A\002\0224\n\013updat" - + "e_mask\030\002 \001(\0132\032.google.protobuf.FieldMask" - + "B\003\340A\002\"\240\001\n\027CreateDataStreamRequest\022@\n\006par" - + "ent\030\001 \001(\tB0\340A\002\372A*\022(analyticsadmin.google" - + "apis.com/DataStream\022C\n\013data_stream\030\002 \001(\013" - + "2).google.analytics.admin.v1beta.DataStr" - + "eamB\003\340A\002\"Y\n\027DeleteDataStreamRequest\022>\n\004n" - + "ame\030\001 \001(\tB0\340A\002\372A*\n(analyticsadmin.google" - + "apis.com/DataStream\"\217\001\n\027UpdateDataStream" - + "Request\022>\n\013data_stream\030\001 \001(\0132).google.an" - + "alytics.admin.v1beta.DataStream\0224\n\013updat" - + "e_mask\030\002 \001(\0132\032.google.protobuf.FieldMask" - + "B\003\340A\002\"\201\001\n\026ListDataStreamsRequest\022@\n\006pare" - + "nt\030\001 \001(\tB0\340A\002\372A*\022(analyticsadmin.googlea" - + "pis.com/DataStream\022\021\n\tpage_size\030\002 \001(\005\022\022\n" - + "\npage_token\030\003 \001(\t\"s\n\027ListDataStreamsResp" - + "onse\022?\n\014data_streams\030\001 \003(\0132).google.anal" - + "ytics.admin.v1beta.DataStream\022\027\n\017next_pa" - + "ge_token\030\002 \001(\t\"V\n\024GetDataStreamRequest\022>" - + "\n\004name\030\001 \001(\tB0\340A\002\372A*\n(analyticsadmin.goo" - + "gleapis.com/DataStream2\353L\n\025AnalyticsAdmi" - + "nService\022\220\001\n\nGetAccount\0220.google.analyti" - + "cs.admin.v1beta.GetAccountRequest\032&.goog" - + "le.analytics.admin.v1beta.Account\"(\202\323\344\223\002" - + "\033\022\031/v1beta/{name=accounts/*}\332A\004name\022\221\001\n\014" - + "ListAccounts\0222.google.analytics.admin.v1" - + "beta.ListAccountsRequest\0323.google.analyt" - + "ics.admin.v1beta.ListAccountsResponse\"\030\202" - + "\323\344\223\002\022\022\020/v1beta/accounts\022\206\001\n\rDeleteAccoun" - + "t\0223.google.analytics.admin.v1beta.Delete" - + "AccountRequest\032\026.google.protobuf.Empty\"(" - + "\202\323\344\223\002\033*\031/v1beta/{name=accounts/*}\332A\004name" - + "\022\266\001\n\rUpdateAccount\0223.google.analytics.ad" - + "min.v1beta.UpdateAccountRequest\032&.google" - + ".analytics.admin.v1beta.Account\"H\202\323\344\223\002,2" - + "!/v1beta/{account.name=accounts/*}:\007acco" - + "unt\332A\023account,update_mask\022\311\001\n\026ProvisionA" - + "ccountTicket\022<.google.analytics.admin.v1" - + "beta.ProvisionAccountTicketRequest\032=.goo" - + "gle.analytics.admin.v1beta.ProvisionAcco" - + "untTicketResponse\"2\202\323\344\223\002,\"\'/v1beta/accou" - + "nts:provisionAccountTicket:\001*\022\261\001\n\024ListAc" - + "countSummaries\022:.google.analytics.admin." - + "v1beta.ListAccountSummariesRequest\032;.goo" - + "gle.analytics.admin.v1beta.ListAccountSu" - + "mmariesResponse\" \202\323\344\223\002\032\022\030/v1beta/account" - + "Summaries\022\225\001\n\013GetProperty\0221.google.analy" - + "tics.admin.v1beta.GetPropertyRequest\032\'.g" - + "oogle.analytics.admin.v1beta.Property\"*\202" - + "\323\344\223\002\035\022\033/v1beta/{name=properties/*}\332A\004nam" - + "e\022\231\001\n\016ListProperties\0224.google.analytics." - + "admin.v1beta.ListPropertiesRequest\0325.goo" - + "gle.analytics.admin.v1beta.ListPropertie" - + "sResponse\"\032\202\323\344\223\002\024\022\022/v1beta/properties\022\240\001" - + "\n\016CreateProperty\0224.google.analytics.admi" - + "n.v1beta.CreatePropertyRequest\032\'.google." - + "analytics.admin.v1beta.Property\"/\202\323\344\223\002\036\"" - + "\022/v1beta/properties:\010property\332A\010property" - + "\022\233\001\n\016DeleteProperty\0224.google.analytics.a" - + "dmin.v1beta.DeletePropertyRequest\032\'.goog" - + "le.analytics.admin.v1beta.Property\"*\202\323\344\223" - + "\002\035*\033/v1beta/{name=properties/*}\332A\004name\022\276" - + "\001\n\016UpdateProperty\0224.google.analytics.adm" - + "in.v1beta.UpdatePropertyRequest\032\'.google" - + ".analytics.admin.v1beta.Property\"M\202\323\344\223\0020" - + "2$/v1beta/{property.name=properties/*}:\010" - + "property\332A\024property,update_mask\022\326\001\n\022Crea" - + "teFirebaseLink\0228.google.analytics.admin." - + "v1beta.CreateFirebaseLinkRequest\032+.googl" - + "e.analytics.admin.v1beta.FirebaseLink\"Y\202" - + "\323\344\223\002<\"+/v1beta/{parent=properties/*}/fir" - + "ebaseLinks:\rfirebase_link\332A\024parent,fireb" - + "ase_link\022\242\001\n\022DeleteFirebaseLink\0228.google" - + ".analytics.admin.v1beta.DeleteFirebaseLi" - + "nkRequest\032\026.google.protobuf.Empty\":\202\323\344\223\002" - + "-*+/v1beta/{name=properties/*/firebaseLi" - + "nks/*}\332A\004name\022\304\001\n\021ListFirebaseLinks\0227.go" - + "ogle.analytics.admin.v1beta.ListFirebase" - + "LinksRequest\0328.google.analytics.admin.v1" - + "beta.ListFirebaseLinksResponse\"<\202\323\344\223\002-\022+" - + "/v1beta/{parent=properties/*}/firebaseLi" - + "nks\332A\006parent\022\336\001\n\023CreateGoogleAdsLink\0229.g" - + "oogle.analytics.admin.v1beta.CreateGoogl" - + "eAdsLinkRequest\032,.google.analytics.admin" - + ".v1beta.GoogleAdsLink\"^\202\323\344\223\002?\",/v1beta/{" - + "parent=properties/*}/googleAdsLinks:\017goo" - + "gle_ads_link\332A\026parent,google_ads_link\022\363\001" - + "\n\023UpdateGoogleAdsLink\0229.google.analytics" - + ".admin.v1beta.UpdateGoogleAdsLinkRequest" - + "\032,.google.analytics.admin.v1beta.GoogleA" - + "dsLink\"s\202\323\344\223\002O2.google.analytics.admin.v1" - + "beta.GetDataRetentionSettingsRequest\0324.g" - + "oogle.analytics.admin.v1beta.DataRetenti" - + "onSettings\"@\202\323\344\223\0023\0221/v1beta/{name=proper" - + "ties/*/dataRetentionSettings}\332A\004name\022\251\002\n" - + "\033UpdateDataRetentionSettings\022A.google.an" - + "alytics.admin.v1beta.UpdateDataRetention" - + "SettingsRequest\0324.google.analytics.admin" - + ".v1beta.DataRetentionSettings\"\220\001\202\323\344\223\002d2I" - + "/v1beta/{data_retention_settings.name=pr" - + "operties/*/dataRetentionSettings}:\027data_" - + "retention_settings\332A#data_retention_sett" - + "ings,update_mask\022\312\001\n\020CreateDataStream\0226." - + "google.analytics.admin.v1beta.CreateData" - + "StreamRequest\032).google.analytics.admin.v" - + "1beta.DataStream\"S\202\323\344\223\0028\")/v1beta/{paren" - + "t=properties/*}/dataStreams:\013data_stream" - + "\332A\022parent,data_stream\022\234\001\n\020DeleteDataStre" - + "am\0226.google.analytics.admin.v1beta.Delet" - + "eDataStreamRequest\032\026.google.protobuf.Emp" - + "ty\"8\202\323\344\223\002+*)/v1beta/{name=properties/*/d" - + "ataStreams/*}\332A\004name\022\333\001\n\020UpdateDataStrea" - + "m\0226.google.analytics.admin.v1beta.Update" - + "DataStreamRequest\032).google.analytics.adm" - + "in.v1beta.DataStream\"d\202\323\344\223\002D25/v1beta/{d" - + "ata_stream.name=properties/*/dataStreams" - + "/*}:\013data_stream\332A\027data_stream,update_ma" - + "sk\022\274\001\n\017ListDataStreams\0225.google.analytic" - + "s.admin.v1beta.ListDataStreamsRequest\0326." - + "google.analytics.admin.v1beta.ListDataSt" - + "reamsResponse\":\202\323\344\223\002+\022)/v1beta/{parent=p" - + "roperties/*}/dataStreams\332A\006parent\022\251\001\n\rGe" - + "tDataStream\0223.google.analytics.admin.v1b" - + "eta.GetDataStreamRequest\032).google.analyt" - + "ics.admin.v1beta.DataStream\"8\202\323\344\223\002+\022)/v1" - + "beta/{name=properties/*/dataStreams/*}\332A" - + "\004name\032\204\001\312A\035analyticsadmin.googleapis.com" - + "\322Aahttps://www.googleapis.com/auth/analy" - + "tics.edit,https://www.googleapis.com/aut" - + "h/analytics.readonlyB~\n!com.google.analy" - + "tics.admin.v1betaB\023AnalyticsAdminProtoP\001" - + "ZBgoogle.golang.org/genproto/googleapis/" - + "analytics/admin/v1beta;adminb\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - 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_GetAccountRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - 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(1); - 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(2); - 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(3); - 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(4); - 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(5); - 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(6); - 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(7); - 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(8); - 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(9); - 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(10); - 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(11); - 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(12); - 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(13); - 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(14); - 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(15); - 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(16); - 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(17); - 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(18); - 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(19); - 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(20); - 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(21); - 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(22); - 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(23); - 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(24); - 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(25); - 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(26); - 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(27); - 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(28); - 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(29); - 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(30); - 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(31); - 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(32); - 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(33); - 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(34); - 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(35); - 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_GetConversionEventRequest_descriptor = - getDescriptor().getMessageTypes().get(36); - 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(37); - 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(38); - 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(39); - 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(40); - 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(41); - 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(42); - 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(43); - 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(44); - 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(45); - 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(46); - 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(47); - 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(48); - 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(49); - 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(50); - 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(51); - 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(52); - 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(53); - 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(54); - 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(55); - 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(56); - 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(57); - 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(58); - 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(59); - 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.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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ArchiveCustomDimensionRequest.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ArchiveCustomDimensionRequest.java deleted file mode 100644 index 8c4d1893..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ArchiveCustomDimensionRequest.java +++ /dev/null @@ -1,643 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - 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(); - 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); - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.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_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - 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 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; - 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(); - 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; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ArchiveCustomDimensionRequestOrBuilder.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ArchiveCustomDimensionRequestOrBuilder.java deleted file mode 100644 index e8f8c4bb..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ArchiveCustomDimensionRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ArchiveCustomMetricRequest.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ArchiveCustomMetricRequest.java deleted file mode 100644 index 0b12a67b..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ArchiveCustomMetricRequest.java +++ /dev/null @@ -1,640 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - 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(); - 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); - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.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_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - 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 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; - 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(); - 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; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ArchiveCustomMetricRequestOrBuilder.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ArchiveCustomMetricRequestOrBuilder.java deleted file mode 100644 index 1a2428dc..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ArchiveCustomMetricRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ChangeHistoryChange.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ChangeHistoryChange.java deleted file mode 100644 index 30d3fb68..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ChangeHistoryChange.java +++ /dev/null @@ -1,4691 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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(); - - public 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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - 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(); - 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 (resourceCase_ == 1) { - if (accountBuilder_ == null) { - result.resource_ = resource_; - } else { - result.resource_ = accountBuilder_.build(); - } - } - if (resourceCase_ == 2) { - if (propertyBuilder_ == null) { - result.resource_ = resource_; - } else { - result.resource_ = propertyBuilder_.build(); - } - } - if (resourceCase_ == 6) { - if (firebaseLinkBuilder_ == null) { - result.resource_ = resource_; - } else { - result.resource_ = firebaseLinkBuilder_.build(); - } - } - if (resourceCase_ == 7) { - if (googleAdsLinkBuilder_ == null) { - result.resource_ = resource_; - } else { - result.resource_ = googleAdsLinkBuilder_.build(); - } - } - if (resourceCase_ == 11) { - if (conversionEventBuilder_ == null) { - result.resource_ = resource_; - } else { - result.resource_ = conversionEventBuilder_.build(); - } - } - if (resourceCase_ == 12) { - if (measurementProtocolSecretBuilder_ == null) { - result.resource_ = resource_; - } else { - result.resource_ = measurementProtocolSecretBuilder_.build(); - } - } - if (resourceCase_ == 15) { - if (dataRetentionSettingsBuilder_ == null) { - result.resource_ = resource_; - } else { - result.resource_ = dataRetentionSettingsBuilder_.build(); - } - } - if (resourceCase_ == 18) { - if (dataStreamBuilder_ == null) { - result.resource_ = resource_; - } else { - result.resource_ = dataStreamBuilder_.build(); - } - } - result.resourceCase_ = resourceCase_; - 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.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 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; - 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_; - /** - * - * - *
-   * 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() { - @SuppressWarnings("deprecation") - com.google.analytics.admin.v1beta.ActionType result = - com.google.analytics.admin.v1beta.ActionType.valueOf(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 getResourceBeforeChange(); - } - - 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 getResourceAfterChange(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 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(); - resource_ = ""; - - action_ = 0; - - if (resourceBeforeChangeBuilder_ == null) { - resourceBeforeChange_ = null; - } else { - resourceBeforeChange_ = null; - resourceBeforeChangeBuilder_ = null; - } - if (resourceAfterChangeBuilder_ == null) { - resourceAfterChange_ = null; - } else { - resourceAfterChange_ = null; - 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); - result.resource_ = resource_; - result.action_ = action_; - if (resourceBeforeChangeBuilder_ == null) { - result.resourceBeforeChange_ = resourceBeforeChange_; - } else { - result.resourceBeforeChange_ = resourceBeforeChangeBuilder_.build(); - } - if (resourceAfterChangeBuilder_ == null) { - result.resourceAfterChange_ = resourceAfterChange_; - } else { - result.resourceAfterChange_ = resourceAfterChangeBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.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_; - 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(); - - break; - } // case 10 - case 16: - { - action_ = input.readEnum(); - - break; - } // case 16 - case 26: - { - input.readMessage( - getResourceBeforeChangeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 26 - case 34: - { - input.readMessage( - getResourceAfterChangeFieldBuilder().getBuilder(), extensionRegistry); - - 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 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; - 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(); - 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; - 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; - 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() { - @SuppressWarnings("deprecation") - com.google.analytics.admin.v1beta.ActionType result = - com.google.analytics.admin.v1beta.ActionType.valueOf(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(); - } - - 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() { - - 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 resourceBeforeChangeBuilder_ != null || 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. - */ - 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; - onChanged(); - } else { - resourceBeforeChangeBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - resourceBeforeChangeBuilder_.setMessage(builderForValue.build()); - } - - 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 (resourceBeforeChange_ != null) { - resourceBeforeChange_ = - com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource - .newBuilder(resourceBeforeChange_) - .mergeFrom(value) - .buildPartial(); - } else { - resourceBeforeChange_ = value; - } - onChanged(); - } else { - resourceBeforeChangeBuilder_.mergeFrom(value); - } - - 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() { - if (resourceBeforeChangeBuilder_ == null) { - resourceBeforeChange_ = null; - onChanged(); - } else { - resourceBeforeChange_ = null; - resourceBeforeChangeBuilder_ = null; - } - - 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() { - - 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 resourceAfterChangeBuilder_ != null || 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. - */ - 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; - onChanged(); - } else { - resourceAfterChangeBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - resourceAfterChangeBuilder_.setMessage(builderForValue.build()); - } - - 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 (resourceAfterChange_ != null) { - resourceAfterChange_ = - com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource - .newBuilder(resourceAfterChange_) - .mergeFrom(value) - .buildPartial(); - } else { - resourceAfterChange_ = value; - } - onChanged(); - } else { - resourceAfterChangeBuilder_.mergeFrom(value); - } - - 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() { - if (resourceAfterChangeBuilder_ == null) { - resourceAfterChange_ = null; - onChanged(); - } else { - resourceAfterChange_ = null; - resourceAfterChangeBuilder_ = null; - } - - 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() { - - 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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ChangeHistoryChangeOrBuilder.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ChangeHistoryChangeOrBuilder.java deleted file mode 100644 index cc1ae56f..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ChangeHistoryChangeOrBuilder.java +++ /dev/null @@ -1,167 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ChangeHistoryEvent.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ChangeHistoryEvent.java deleted file mode 100644 index cef15d0f..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ChangeHistoryEvent.java +++ /dev/null @@ -1,1846 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - 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 getChangeTime(); - } - - public static final int ACTOR_TYPE_FIELD_NUMBER = 3; - private int actorType_; - /** - * - * - *
-   * 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() { - @SuppressWarnings("deprecation") - com.google.analytics.admin.v1beta.ActorType result = - com.google.analytics.admin.v1beta.ActorType.valueOf(actorType_); - return result == null ? com.google.analytics.admin.v1beta.ActorType.UNRECOGNIZED : result; - } - - public static final int USER_ACTOR_EMAIL_FIELD_NUMBER = 4; - 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_; - /** - * - * - *
-   * 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; - 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(); - id_ = ""; - - if (changeTimeBuilder_ == null) { - changeTime_ = null; - } else { - changeTime_ = null; - changeTimeBuilder_ = null; - } - actorType_ = 0; - - userActorEmail_ = ""; - - changesFiltered_ = false; - - if (changesBuilder_ == null) { - changes_ = java.util.Collections.emptyList(); - } else { - changes_ = null; - changesBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - 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); - int from_bitField0_ = bitField0_; - result.id_ = id_; - if (changeTimeBuilder_ == null) { - result.changeTime_ = changeTime_; - } else { - result.changeTime_ = changeTimeBuilder_.build(); - } - result.actorType_ = actorType_; - result.userActorEmail_ = userActorEmail_; - result.changesFiltered_ = changesFiltered_; - if (changesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - changes_ = java.util.Collections.unmodifiableList(changes_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.changes_ = changes_; - } else { - result.changes_ = changesBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.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_; - onChanged(); - } - if (other.hasChangeTime()) { - mergeChangeTime(other.getChangeTime()); - } - if (other.actorType_ != 0) { - setActorTypeValue(other.getActorTypeValue()); - } - if (!other.getUserActorEmail().isEmpty()) { - userActorEmail_ = other.userActorEmail_; - onChanged(); - } - if (other.getChangesFiltered() != false) { - setChangesFiltered(other.getChangesFiltered()); - } - if (changesBuilder_ == null) { - if (!other.changes_.isEmpty()) { - if (changes_.isEmpty()) { - changes_ = other.changes_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureChangesIsMutable(); - changes_.addAll(other.changes_); - } - onChanged(); - } - } else { - if (!other.changes_.isEmpty()) { - if (changesBuilder_.isEmpty()) { - changesBuilder_.dispose(); - changesBuilder_ = null; - changes_ = other.changes_; - bitField0_ = (bitField0_ & ~0x00000001); - 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(); - - break; - } // case 10 - case 18: - { - input.readMessage(getChangeTimeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - case 24: - { - actorType_ = input.readEnum(); - - break; - } // case 24 - case 34: - { - userActorEmail_ = input.readStringRequireUtf8(); - - break; - } // case 34 - case 40: - { - changesFiltered_ = input.readBool(); - - 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; - 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(); - 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; - 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 changeTimeBuilder_ != null || changeTime_ != null; - } - /** - * - * - *
-     * 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; - onChanged(); - } else { - changeTimeBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - changeTimeBuilder_.setMessage(builderForValue.build()); - } - - 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 (changeTime_ != null) { - changeTime_ = - com.google.protobuf.Timestamp.newBuilder(changeTime_).mergeFrom(value).buildPartial(); - } else { - changeTime_ = value; - } - onChanged(); - } else { - changeTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Time when change was made.
-     * 
- * - * .google.protobuf.Timestamp change_time = 2; - */ - public Builder clearChangeTime() { - if (changeTimeBuilder_ == null) { - changeTime_ = null; - onChanged(); - } else { - changeTime_ = null; - changeTimeBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Time when change was made.
-     * 
- * - * .google.protobuf.Timestamp change_time = 2; - */ - public com.google.protobuf.Timestamp.Builder getChangeTimeBuilder() { - - 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; - 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() { - @SuppressWarnings("deprecation") - com.google.analytics.admin.v1beta.ActorType result = - com.google.analytics.admin.v1beta.ActorType.valueOf(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(); - } - - 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() { - - 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; - 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(); - 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; - 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; - 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() { - - changesFiltered_ = false; - onChanged(); - return this; - } - - private java.util.List changes_ = - java.util.Collections.emptyList(); - - private void ensureChangesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - changes_ = - new java.util.ArrayList( - changes_); - bitField0_ |= 0x00000001; - } - } - - 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_ & ~0x00000001); - 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_ & 0x00000001) != 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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ChangeHistoryEventOrBuilder.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ChangeHistoryEventOrBuilder.java deleted file mode 100644 index 542dfc9e..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ChangeHistoryEventOrBuilder.java +++ /dev/null @@ -1,210 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ChangeHistoryResourceType.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ChangeHistoryResourceType.java deleted file mode 100644 index 415fd23d..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ChangeHistoryResourceType.java +++ /dev/null @@ -1,399 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ConversionEvent.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ConversionEvent.java deleted file mode 100644 index 53b756da..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ConversionEvent.java +++ /dev/null @@ -1,1293 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ConversionEvent(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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); - } - - public static final int NAME_FIELD_NUMBER = 1; - 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; - 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 getCreateTime(); - } - - public static final int DELETABLE_FIELD_NUMBER = 4; - private boolean deletable_; - /** - * - * - *
-   * Output only. If set, this event can currently be deleted via 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_; - /** - * - * - *
-   * 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_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 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_); - } - getUnknownFields().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_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return 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 (!getUnknownFields().equals(other.getUnknownFields())) return false; - 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 = (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(); - name_ = ""; - - eventName_ = ""; - - if (createTimeBuilder_ == null) { - createTime_ = null; - } else { - createTime_ = null; - createTimeBuilder_ = null; - } - deletable_ = false; - - custom_ = 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_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); - result.name_ = name_; - result.eventName_ = eventName_; - if (createTimeBuilder_ == null) { - result.createTime_ = createTime_; - } else { - result.createTime_ = createTimeBuilder_.build(); - } - result.deletable_ = deletable_; - result.custom_ = custom_; - 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.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_; - onChanged(); - } - if (!other.getEventName().isEmpty()) { - eventName_ = other.eventName_; - onChanged(); - } - if (other.hasCreateTime()) { - mergeCreateTime(other.getCreateTime()); - } - if (other.getDeletable() != false) { - setDeletable(other.getDeletable()); - } - if (other.getCustom() != false) { - setCustom(other.getCustom()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 18: - { - eventName_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: - { - input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 26 - case 32: - { - deletable_ = input.readBool(); - - break; - } // case 32 - case 40: - { - custom_ = input.readBool(); - - 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 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; - 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(); - 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; - 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; - 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(); - 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; - 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 createTimeBuilder_ != null || 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. - */ - 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; - onChanged(); - } else { - createTimeBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - createTimeBuilder_.setMessage(builderForValue.build()); - } - - 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 (createTime_ != null) { - createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); - } else { - createTime_ = value; - } - onChanged(); - } else { - createTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Output only. Time when this conversion event was created in the property.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearCreateTime() { - if (createTimeBuilder_ == null) { - createTime_ = null; - onChanged(); - } else { - createTime_ = null; - createTimeBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Output only. Time when this 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() { - - 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 via 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 via 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; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. If set, this event can currently be deleted via DeleteConversionEvent.
-     * 
- * - * bool deletable = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearDeletable() { - - 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; - 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() { - - custom_ = 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.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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ConversionEventName.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ConversionEventName.java deleted file mode 100644 index 9704b3e6..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ConversionEventName.java +++ /dev/null @@ -1,198 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 com.google.api.pathtemplate.PathTemplate; -import com.google.api.resourcenames.ResourceName; -import com.google.common.base.Preconditions; -import com.google.common.collect.ImmutableMap; -import java.util.ArrayList; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -@Generated("by gapic-generator-java") -public class ConversionEventName implements ResourceName { - private static final PathTemplate PROPERTY_CONVERSION_EVENT = - PathTemplate.createWithoutUrlEncoding( - "properties/{property}/conversionEvents/{conversion_event}"); - private volatile Map fieldValuesMap; - private final String property; - private final String conversionEvent; - - @Deprecated - protected ConversionEventName() { - property = null; - conversionEvent = null; - } - - private ConversionEventName(Builder builder) { - property = Preconditions.checkNotNull(builder.getProperty()); - conversionEvent = Preconditions.checkNotNull(builder.getConversionEvent()); - } - - public String getProperty() { - return property; - } - - public String getConversionEvent() { - return conversionEvent; - } - - public static Builder newBuilder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder(this); - } - - public static ConversionEventName of(String property, String conversionEvent) { - return newBuilder().setProperty(property).setConversionEvent(conversionEvent).build(); - } - - public static String format(String property, String conversionEvent) { - return newBuilder() - .setProperty(property) - .setConversionEvent(conversionEvent) - .build() - .toString(); - } - - public static ConversionEventName parse(String formattedString) { - if (formattedString.isEmpty()) { - return null; - } - Map matchMap = - PROPERTY_CONVERSION_EVENT.validatedMatch( - formattedString, "ConversionEventName.parse: formattedString not in valid format"); - return of(matchMap.get("property"), matchMap.get("conversion_event")); - } - - public static List parseList(List formattedStrings) { - List list = new ArrayList<>(formattedStrings.size()); - for (String formattedString : formattedStrings) { - list.add(parse(formattedString)); - } - return list; - } - - public static List toStringList(List values) { - List list = new ArrayList<>(values.size()); - for (ConversionEventName value : values) { - if (value == null) { - list.add(""); - } else { - list.add(value.toString()); - } - } - return list; - } - - public static boolean isParsableFrom(String formattedString) { - return PROPERTY_CONVERSION_EVENT.matches(formattedString); - } - - @Override - public Map getFieldValuesMap() { - if (fieldValuesMap == null) { - synchronized (this) { - if (fieldValuesMap == null) { - ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); - if (property != null) { - fieldMapBuilder.put("property", property); - } - if (conversionEvent != null) { - fieldMapBuilder.put("conversion_event", conversionEvent); - } - fieldValuesMap = fieldMapBuilder.build(); - } - } - } - return fieldValuesMap; - } - - public String getFieldValue(String fieldName) { - return getFieldValuesMap().get(fieldName); - } - - @Override - public String toString() { - return PROPERTY_CONVERSION_EVENT.instantiate( - "property", property, "conversion_event", conversionEvent); - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (o != null || getClass() == o.getClass()) { - ConversionEventName that = ((ConversionEventName) o); - return Objects.equals(this.property, that.property) - && Objects.equals(this.conversionEvent, that.conversionEvent); - } - return false; - } - - @Override - public int hashCode() { - int h = 1; - h *= 1000003; - h ^= Objects.hashCode(property); - h *= 1000003; - h ^= Objects.hashCode(conversionEvent); - return h; - } - - /** Builder for properties/{property}/conversionEvents/{conversion_event}. */ - public static class Builder { - private String property; - private String conversionEvent; - - protected Builder() {} - - public String getProperty() { - return property; - } - - public String getConversionEvent() { - return conversionEvent; - } - - public Builder setProperty(String property) { - this.property = property; - return this; - } - - public Builder setConversionEvent(String conversionEvent) { - this.conversionEvent = conversionEvent; - return this; - } - - private Builder(ConversionEventName conversionEventName) { - this.property = conversionEventName.property; - this.conversionEvent = conversionEventName.conversionEvent; - } - - public ConversionEventName build() { - return new ConversionEventName(this); - } - } -} diff --git a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ConversionEventOrBuilder.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ConversionEventOrBuilder.java deleted file mode 100644 index 8da75979..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ConversionEventOrBuilder.java +++ /dev/null @@ -1,148 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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 via 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(); -} diff --git a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateConversionEventRequest.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateConversionEventRequest.java deleted file mode 100644 index 719b3871..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateConversionEventRequest.java +++ /dev/null @@ -1,935 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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 getConversionEvent(); - } - - public static final int PARENT_FIELD_NUMBER = 2; - 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(); - if (conversionEventBuilder_ == null) { - conversionEvent_ = null; - } else { - conversionEvent_ = null; - 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 (conversionEventBuilder_ == null) { - result.conversionEvent_ = conversionEvent_; - } else { - result.conversionEvent_ = conversionEventBuilder_.build(); - } - result.parent_ = parent_; - 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.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_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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); - - break; - } // case 10 - case 18: - { - parent_ = input.readStringRequireUtf8(); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - 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 conversionEventBuilder_ != null || conversionEvent_ != null; - } - /** - * - * - *
-     * 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; - onChanged(); - } else { - conversionEventBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - conversionEventBuilder_.setMessage(builderForValue.build()); - } - - 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 (conversionEvent_ != null) { - conversionEvent_ = - com.google.analytics.admin.v1beta.ConversionEvent.newBuilder(conversionEvent_) - .mergeFrom(value) - .buildPartial(); - } else { - conversionEvent_ = value; - } - onChanged(); - } else { - conversionEventBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. The conversion event to create.
-     * 
- * - * - * .google.analytics.admin.v1beta.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearConversionEvent() { - if (conversionEventBuilder_ == null) { - conversionEvent_ = null; - onChanged(); - } else { - conversionEvent_ = null; - conversionEventBuilder_ = null; - } - - 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() { - - 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; - 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(); - 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; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateConversionEventRequestOrBuilder.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateConversionEventRequestOrBuilder.java deleted file mode 100644 index 229978c5..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateConversionEventRequestOrBuilder.java +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateCustomDimensionRequest.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateCustomDimensionRequest.java deleted file mode 100644 index bc1d2996..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateCustomDimensionRequest.java +++ /dev/null @@ -1,928 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - 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 getCustomDimension(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 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(); - parent_ = ""; - - if (customDimensionBuilder_ == null) { - customDimension_ = null; - } else { - customDimension_ = null; - 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); - result.parent_ = parent_; - if (customDimensionBuilder_ == null) { - result.customDimension_ = customDimension_; - } else { - result.customDimension_ = customDimensionBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.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_; - 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(); - - break; - } // case 10 - case 18: - { - input.readMessage(getCustomDimensionFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object parent_ = ""; - /** - * - * - *
-     * Required. Example format: properties/1234
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. Example format: properties/1234
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. Example format: properties/1234
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - parent_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Example format: properties/1234
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearParent() { - - parent_ = getDefaultInstance().getParent(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Example format: properties/1234
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - parent_ = value; - onChanged(); - return this; - } - - private com.google.analytics.admin.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 customDimensionBuilder_ != null || customDimension_ != null; - } - /** - * - * - *
-     * 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; - onChanged(); - } else { - customDimensionBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - customDimensionBuilder_.setMessage(builderForValue.build()); - } - - 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 (customDimension_ != null) { - customDimension_ = - com.google.analytics.admin.v1beta.CustomDimension.newBuilder(customDimension_) - .mergeFrom(value) - .buildPartial(); - } else { - customDimension_ = value; - } - onChanged(); - } else { - customDimensionBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. The CustomDimension to create.
-     * 
- * - * - * .google.analytics.admin.v1beta.CustomDimension custom_dimension = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearCustomDimension() { - if (customDimensionBuilder_ == null) { - customDimension_ = null; - onChanged(); - } else { - customDimension_ = null; - customDimensionBuilder_ = null; - } - - 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() { - - 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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateCustomDimensionRequestOrBuilder.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateCustomDimensionRequestOrBuilder.java deleted file mode 100644 index 429ebb19..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateCustomDimensionRequestOrBuilder.java +++ /dev/null @@ -1,95 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateCustomMetricRequest.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateCustomMetricRequest.java deleted file mode 100644 index 0b76a9a5..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateCustomMetricRequest.java +++ /dev/null @@ -1,922 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - 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 getCustomMetric(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 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(); - parent_ = ""; - - if (customMetricBuilder_ == null) { - customMetric_ = null; - } else { - customMetric_ = null; - 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); - result.parent_ = parent_; - if (customMetricBuilder_ == null) { - result.customMetric_ = customMetric_; - } else { - result.customMetric_ = customMetricBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.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_; - 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(); - - break; - } // case 10 - case 18: - { - input.readMessage(getCustomMetricFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object parent_ = ""; - /** - * - * - *
-     * Required. Example format: properties/1234
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. Example format: properties/1234
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. Example format: properties/1234
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - parent_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Example format: properties/1234
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearParent() { - - parent_ = getDefaultInstance().getParent(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Example format: properties/1234
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - parent_ = value; - onChanged(); - return this; - } - - private com.google.analytics.admin.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 customMetricBuilder_ != null || customMetric_ != null; - } - /** - * - * - *
-     * 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; - onChanged(); - } else { - customMetricBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - customMetricBuilder_.setMessage(builderForValue.build()); - } - - 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 (customMetric_ != null) { - customMetric_ = - com.google.analytics.admin.v1beta.CustomMetric.newBuilder(customMetric_) - .mergeFrom(value) - .buildPartial(); - } else { - customMetric_ = value; - } - onChanged(); - } else { - customMetricBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. The CustomMetric to create.
-     * 
- * - * - * .google.analytics.admin.v1beta.CustomMetric custom_metric = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearCustomMetric() { - if (customMetricBuilder_ == null) { - customMetric_ = null; - onChanged(); - } else { - customMetric_ = null; - customMetricBuilder_ = null; - } - - 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() { - - 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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateCustomMetricRequestOrBuilder.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateCustomMetricRequestOrBuilder.java deleted file mode 100644 index 0dc1e8b8..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateCustomMetricRequestOrBuilder.java +++ /dev/null @@ -1,95 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateDataStreamRequest.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateDataStreamRequest.java deleted file mode 100644 index 4f94b10b..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateDataStreamRequest.java +++ /dev/null @@ -1,922 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - 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 getDataStream(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (dataStream_ != null) { - output.writeMessage(2, getDataStream()); - } - getUnknownFields().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(); - parent_ = ""; - - if (dataStreamBuilder_ == null) { - dataStream_ = null; - } else { - dataStream_ = null; - dataStreamBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.admin.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); - result.parent_ = parent_; - if (dataStreamBuilder_ == null) { - result.dataStream_ = dataStream_; - } else { - result.dataStream_ = dataStreamBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.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_; - 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(); - - break; - } // case 10 - case 18: - { - input.readMessage(getDataStreamFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object parent_ = ""; - /** - * - * - *
-     * Required. Example format: properties/1234
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. Example format: properties/1234
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. Example format: properties/1234
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - parent_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Example format: properties/1234
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearParent() { - - parent_ = getDefaultInstance().getParent(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Example format: properties/1234
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - parent_ = value; - onChanged(); - return this; - } - - private com.google.analytics.admin.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 dataStreamBuilder_ != null || dataStream_ != null; - } - /** - * - * - *
-     * 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; - onChanged(); - } else { - dataStreamBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - dataStreamBuilder_.setMessage(builderForValue.build()); - } - - 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 (dataStream_ != null) { - dataStream_ = - com.google.analytics.admin.v1beta.DataStream.newBuilder(dataStream_) - .mergeFrom(value) - .buildPartial(); - } else { - dataStream_ = value; - } - onChanged(); - } else { - dataStreamBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. The DataStream to create.
-     * 
- * - * - * .google.analytics.admin.v1beta.DataStream data_stream = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearDataStream() { - if (dataStreamBuilder_ == null) { - dataStream_ = null; - onChanged(); - } else { - dataStream_ = null; - dataStreamBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. The DataStream to create.
-     * 
- * - * - * .google.analytics.admin.v1beta.DataStream data_stream = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.analytics.admin.v1beta.DataStream.Builder getDataStreamBuilder() { - - 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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateDataStreamRequestOrBuilder.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateDataStreamRequestOrBuilder.java deleted file mode 100644 index 3647940c..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateDataStreamRequestOrBuilder.java +++ /dev/null @@ -1,95 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateFirebaseLinkRequest.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateFirebaseLinkRequest.java deleted file mode 100644 index 0485c928..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateFirebaseLinkRequest.java +++ /dev/null @@ -1,929 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - 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 getFirebaseLink(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 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(); - parent_ = ""; - - if (firebaseLinkBuilder_ == null) { - firebaseLink_ = null; - } else { - firebaseLink_ = null; - 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); - result.parent_ = parent_; - if (firebaseLinkBuilder_ == null) { - result.firebaseLink_ = firebaseLink_; - } else { - result.firebaseLink_ = firebaseLinkBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.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_; - 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(); - - break; - } // case 10 - case 18: - { - input.readMessage(getFirebaseLinkFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - 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; - 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(); - 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; - 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 firebaseLinkBuilder_ != null || firebaseLink_ != null; - } - /** - * - * - *
-     * 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; - onChanged(); - } else { - firebaseLinkBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - firebaseLinkBuilder_.setMessage(builderForValue.build()); - } - - 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 (firebaseLink_ != null) { - firebaseLink_ = - com.google.analytics.admin.v1beta.FirebaseLink.newBuilder(firebaseLink_) - .mergeFrom(value) - .buildPartial(); - } else { - firebaseLink_ = value; - } - onChanged(); - } else { - firebaseLinkBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. The Firebase link to create.
-     * 
- * - * - * .google.analytics.admin.v1beta.FirebaseLink firebase_link = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearFirebaseLink() { - if (firebaseLinkBuilder_ == null) { - firebaseLink_ = null; - onChanged(); - } else { - firebaseLink_ = null; - firebaseLinkBuilder_ = null; - } - - 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() { - - 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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateFirebaseLinkRequestOrBuilder.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateFirebaseLinkRequestOrBuilder.java deleted file mode 100644 index 48c15e4a..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateFirebaseLinkRequestOrBuilder.java +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateGoogleAdsLinkRequest.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateGoogleAdsLinkRequest.java deleted file mode 100644 index 6010356e..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateGoogleAdsLinkRequest.java +++ /dev/null @@ -1,925 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - 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 getGoogleAdsLink(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 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(); - parent_ = ""; - - if (googleAdsLinkBuilder_ == null) { - googleAdsLink_ = null; - } else { - googleAdsLink_ = null; - 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); - result.parent_ = parent_; - if (googleAdsLinkBuilder_ == null) { - result.googleAdsLink_ = googleAdsLink_; - } else { - result.googleAdsLink_ = googleAdsLinkBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.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_; - 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(); - - break; - } // case 10 - case 18: - { - input.readMessage(getGoogleAdsLinkFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object parent_ = ""; - /** - * - * - *
-     * Required. Example format: properties/1234
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. Example format: properties/1234
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. Example format: properties/1234
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - parent_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Example format: properties/1234
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearParent() { - - parent_ = getDefaultInstance().getParent(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Example format: properties/1234
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - parent_ = value; - onChanged(); - return this; - } - - private com.google.analytics.admin.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 googleAdsLinkBuilder_ != null || googleAdsLink_ != null; - } - /** - * - * - *
-     * 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; - onChanged(); - } else { - googleAdsLinkBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - googleAdsLinkBuilder_.setMessage(builderForValue.build()); - } - - 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 (googleAdsLink_ != null) { - googleAdsLink_ = - com.google.analytics.admin.v1beta.GoogleAdsLink.newBuilder(googleAdsLink_) - .mergeFrom(value) - .buildPartial(); - } else { - googleAdsLink_ = value; - } - onChanged(); - } else { - googleAdsLinkBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. The GoogleAdsLink to create.
-     * 
- * - * - * .google.analytics.admin.v1beta.GoogleAdsLink google_ads_link = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearGoogleAdsLink() { - if (googleAdsLinkBuilder_ == null) { - googleAdsLink_ = null; - onChanged(); - } else { - googleAdsLink_ = null; - googleAdsLinkBuilder_ = null; - } - - 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() { - - 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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateGoogleAdsLinkRequestOrBuilder.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateGoogleAdsLinkRequestOrBuilder.java deleted file mode 100644 index fb3805dc..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateGoogleAdsLinkRequestOrBuilder.java +++ /dev/null @@ -1,95 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateMeasurementProtocolSecretRequest.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateMeasurementProtocolSecretRequest.java deleted file mode 100644 index 7fb9ed52..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateMeasurementProtocolSecretRequest.java +++ /dev/null @@ -1,958 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - 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 getMeasurementProtocolSecret(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 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(); - parent_ = ""; - - if (measurementProtocolSecretBuilder_ == null) { - measurementProtocolSecret_ = null; - } else { - measurementProtocolSecret_ = null; - 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); - result.parent_ = parent_; - if (measurementProtocolSecretBuilder_ == null) { - result.measurementProtocolSecret_ = measurementProtocolSecret_; - } else { - result.measurementProtocolSecret_ = measurementProtocolSecretBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof com.google.analytics.admin.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_; - 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(); - - break; - } // case 10 - case 18: - { - input.readMessage( - getMeasurementProtocolSecretFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - 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; - 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(); - 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; - 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 measurementProtocolSecretBuilder_ != null || 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. - */ - 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; - onChanged(); - } else { - measurementProtocolSecretBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - measurementProtocolSecretBuilder_.setMessage(builderForValue.build()); - } - - 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 (measurementProtocolSecret_ != null) { - measurementProtocolSecret_ = - com.google.analytics.admin.v1beta.MeasurementProtocolSecret.newBuilder( - measurementProtocolSecret_) - .mergeFrom(value) - .buildPartial(); - } else { - measurementProtocolSecret_ = value; - } - onChanged(); - } else { - measurementProtocolSecretBuilder_.mergeFrom(value); - } - - 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() { - if (measurementProtocolSecretBuilder_ == null) { - measurementProtocolSecret_ = null; - onChanged(); - } else { - measurementProtocolSecret_ = null; - measurementProtocolSecretBuilder_ = null; - } - - 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() { - - 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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateMeasurementProtocolSecretRequestOrBuilder.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateMeasurementProtocolSecretRequestOrBuilder.java deleted file mode 100644 index cde0ea2a..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateMeasurementProtocolSecretRequestOrBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreatePropertyRequest.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreatePropertyRequest.java deleted file mode 100644 index cd2177ef..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreatePropertyRequest.java +++ /dev/null @@ -1,740 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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 getProperty(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (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(); - if (propertyBuilder_ == null) { - property_ = null; - } else { - property_ = null; - 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 (propertyBuilder_ == null) { - result.property_ = property_; - } else { - result.property_ = propertyBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.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); - - 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 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 propertyBuilder_ != null || 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. - */ - 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; - onChanged(); - } else { - propertyBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - propertyBuilder_.setMessage(builderForValue.build()); - } - - 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 (property_ != null) { - property_ = - com.google.analytics.admin.v1beta.Property.newBuilder(property_) - .mergeFrom(value) - .buildPartial(); - } else { - property_ = value; - } - onChanged(); - } else { - propertyBuilder_.mergeFrom(value); - } - - 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() { - if (propertyBuilder_ == null) { - property_ = null; - onChanged(); - } else { - property_ = null; - propertyBuilder_ = null; - } - - 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() { - - 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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreatePropertyRequestOrBuilder.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreatePropertyRequestOrBuilder.java deleted file mode 100644 index 569aaa21..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreatePropertyRequestOrBuilder.java +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CustomDimension.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CustomDimension.java deleted file mode 100644 index e5558456..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CustomDimension.java +++ /dev/null @@ -1,1672 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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), - 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; - - 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; - 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; - 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; - 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.
-   * 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.
-   * 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; - 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; - 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_; - /** - * - * - *
-   * 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() { - @SuppressWarnings("deprecation") - com.google.analytics.admin.v1beta.CustomDimension.DimensionScope result = - com.google.analytics.admin.v1beta.CustomDimension.DimensionScope.valueOf(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_; - /** - * - * - *
-   * 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(); - 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); - result.name_ = name_; - result.parameterName_ = parameterName_; - result.displayName_ = displayName_; - result.description_ = description_; - result.scope_ = scope_; - result.disallowAdsPersonalization_ = disallowAdsPersonalization_; - 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.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_; - onChanged(); - } - if (!other.getParameterName().isEmpty()) { - parameterName_ = other.parameterName_; - onChanged(); - } - if (!other.getDisplayName().isEmpty()) { - displayName_ = other.displayName_; - onChanged(); - } - if (!other.getDescription().isEmpty()) { - description_ = other.description_; - 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(); - - break; - } // case 10 - case 18: - { - parameterName_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: - { - displayName_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 34: - { - description_ = input.readStringRequireUtf8(); - - break; - } // case 34 - case 40: - { - scope_ = input.readEnum(); - - break; - } // case 40 - case 48: - { - disallowAdsPersonalization_ = input.readBool(); - - 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 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; - 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(); - 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; - 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.
-     * 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.
-     * 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.
-     * 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; - 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.
-     * 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(); - 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.
-     * 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; - 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; - 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(); - 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; - 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; - 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(); - 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; - 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; - 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() { - @SuppressWarnings("deprecation") - com.google.analytics.admin.v1beta.CustomDimension.DimensionScope result = - com.google.analytics.admin.v1beta.CustomDimension.DimensionScope.valueOf(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(); - } - - 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() { - - 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; - 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() { - - 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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CustomDimensionName.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CustomDimensionName.java deleted file mode 100644 index 1c7f20ed..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CustomDimensionName.java +++ /dev/null @@ -1,198 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 com.google.api.pathtemplate.PathTemplate; -import com.google.api.resourcenames.ResourceName; -import com.google.common.base.Preconditions; -import com.google.common.collect.ImmutableMap; -import java.util.ArrayList; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -@Generated("by gapic-generator-java") -public class CustomDimensionName implements ResourceName { - private static final PathTemplate PROPERTY_CUSTOM_DIMENSION = - PathTemplate.createWithoutUrlEncoding( - "properties/{property}/customDimensions/{custom_dimension}"); - private volatile Map fieldValuesMap; - private final String property; - private final String customDimension; - - @Deprecated - protected CustomDimensionName() { - property = null; - customDimension = null; - } - - private CustomDimensionName(Builder builder) { - property = Preconditions.checkNotNull(builder.getProperty()); - customDimension = Preconditions.checkNotNull(builder.getCustomDimension()); - } - - public String getProperty() { - return property; - } - - public String getCustomDimension() { - return customDimension; - } - - public static Builder newBuilder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder(this); - } - - public static CustomDimensionName of(String property, String customDimension) { - return newBuilder().setProperty(property).setCustomDimension(customDimension).build(); - } - - public static String format(String property, String customDimension) { - return newBuilder() - .setProperty(property) - .setCustomDimension(customDimension) - .build() - .toString(); - } - - public static CustomDimensionName parse(String formattedString) { - if (formattedString.isEmpty()) { - return null; - } - Map matchMap = - PROPERTY_CUSTOM_DIMENSION.validatedMatch( - formattedString, "CustomDimensionName.parse: formattedString not in valid format"); - return of(matchMap.get("property"), matchMap.get("custom_dimension")); - } - - public static List parseList(List formattedStrings) { - List list = new ArrayList<>(formattedStrings.size()); - for (String formattedString : formattedStrings) { - list.add(parse(formattedString)); - } - return list; - } - - public static List toStringList(List values) { - List list = new ArrayList<>(values.size()); - for (CustomDimensionName value : values) { - if (value == null) { - list.add(""); - } else { - list.add(value.toString()); - } - } - return list; - } - - public static boolean isParsableFrom(String formattedString) { - return PROPERTY_CUSTOM_DIMENSION.matches(formattedString); - } - - @Override - public Map getFieldValuesMap() { - if (fieldValuesMap == null) { - synchronized (this) { - if (fieldValuesMap == null) { - ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); - if (property != null) { - fieldMapBuilder.put("property", property); - } - if (customDimension != null) { - fieldMapBuilder.put("custom_dimension", customDimension); - } - fieldValuesMap = fieldMapBuilder.build(); - } - } - } - return fieldValuesMap; - } - - public String getFieldValue(String fieldName) { - return getFieldValuesMap().get(fieldName); - } - - @Override - public String toString() { - return PROPERTY_CUSTOM_DIMENSION.instantiate( - "property", property, "custom_dimension", customDimension); - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (o != null || getClass() == o.getClass()) { - CustomDimensionName that = ((CustomDimensionName) o); - return Objects.equals(this.property, that.property) - && Objects.equals(this.customDimension, that.customDimension); - } - return false; - } - - @Override - public int hashCode() { - int h = 1; - h *= 1000003; - h ^= Objects.hashCode(property); - h *= 1000003; - h ^= Objects.hashCode(customDimension); - return h; - } - - /** Builder for properties/{property}/customDimensions/{custom_dimension}. */ - public static class Builder { - private String property; - private String customDimension; - - protected Builder() {} - - public String getProperty() { - return property; - } - - public String getCustomDimension() { - return customDimension; - } - - public Builder setProperty(String property) { - this.property = property; - return this; - } - - public Builder setCustomDimension(String customDimension) { - this.customDimension = customDimension; - return this; - } - - private Builder(CustomDimensionName customDimensionName) { - this.property = customDimensionName.property; - this.customDimension = customDimensionName.customDimension; - } - - public CustomDimensionName build() { - return new CustomDimensionName(this); - } - } -} diff --git a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CustomDimensionOrBuilder.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CustomDimensionOrBuilder.java deleted file mode 100644 index 7c44a5b7..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CustomDimensionOrBuilder.java +++ /dev/null @@ -1,195 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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.
-   * 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.
-   * 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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CustomMetric.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CustomMetric.java deleted file mode 100644 index 394635ab..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CustomMetric.java +++ /dev/null @@ -1,2675 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - 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; - 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; - 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; - 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_; - /** - * - * - *
-   * 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() { - @SuppressWarnings("deprecation") - com.google.analytics.admin.v1beta.CustomMetric.MeasurementUnit result = - com.google.analytics.admin.v1beta.CustomMetric.MeasurementUnit.valueOf(measurementUnit_); - return result == null - ? com.google.analytics.admin.v1beta.CustomMetric.MeasurementUnit.UNRECOGNIZED - : result; - } - - public static final int SCOPE_FIELD_NUMBER = 6; - private int 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 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() { - @SuppressWarnings("deprecation") - com.google.analytics.admin.v1beta.CustomMetric.MetricScope result = - com.google.analytics.admin.v1beta.CustomMetric.MetricScope.valueOf(scope_); - return result == null - ? com.google.analytics.admin.v1beta.CustomMetric.MetricScope.UNRECOGNIZED - : result; - } - - public static final int RESTRICTED_METRIC_TYPE_FIELD_NUMBER = 8; - 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) { - @SuppressWarnings("deprecation") - com.google.analytics.admin.v1beta.CustomMetric.RestrictedMetricType result = - com.google.analytics.admin.v1beta.CustomMetric.RestrictedMetricType.valueOf(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(); - name_ = ""; - - parameterName_ = ""; - - displayName_ = ""; - - description_ = ""; - - measurementUnit_ = 0; - - scope_ = 0; - - restrictedMetricType_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - 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); - int from_bitField0_ = bitField0_; - result.name_ = name_; - result.parameterName_ = parameterName_; - result.displayName_ = displayName_; - result.description_ = description_; - result.measurementUnit_ = measurementUnit_; - result.scope_ = scope_; - if (((bitField0_ & 0x00000001) != 0)) { - restrictedMetricType_ = java.util.Collections.unmodifiableList(restrictedMetricType_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.restrictedMetricType_ = restrictedMetricType_; - 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.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_; - onChanged(); - } - if (!other.getParameterName().isEmpty()) { - parameterName_ = other.parameterName_; - onChanged(); - } - if (!other.getDisplayName().isEmpty()) { - displayName_ = other.displayName_; - onChanged(); - } - if (!other.getDescription().isEmpty()) { - description_ = other.description_; - 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_ & ~0x00000001); - } 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(); - - break; - } // case 10 - case 18: - { - parameterName_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: - { - displayName_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 34: - { - description_ = input.readStringRequireUtf8(); - - break; - } // case 34 - case 40: - { - measurementUnit_ = input.readEnum(); - - break; - } // case 40 - case 48: - { - scope_ = input.readEnum(); - - 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; - 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(); - 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; - 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; - 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(); - 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; - 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; - 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(); - 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; - 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; - 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(); - 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; - 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; - 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() { - @SuppressWarnings("deprecation") - com.google.analytics.admin.v1beta.CustomMetric.MeasurementUnit result = - com.google.analytics.admin.v1beta.CustomMetric.MeasurementUnit.valueOf(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(); - } - - 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() { - - 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; - 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() { - @SuppressWarnings("deprecation") - com.google.analytics.admin.v1beta.CustomMetric.MetricScope result = - com.google.analytics.admin.v1beta.CustomMetric.MetricScope.valueOf(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(); - } - - 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() { - - scope_ = 0; - onChanged(); - return this; - } - - private java.util.List restrictedMetricType_ = - java.util.Collections.emptyList(); - - private void ensureRestrictedMetricTypeIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - restrictedMetricType_ = new java.util.ArrayList(restrictedMetricType_); - bitField0_ |= 0x00000001; - } - } - /** - * - * - *
-     * 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_ & ~0x00000001); - 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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CustomMetricName.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CustomMetricName.java deleted file mode 100644 index 4a6c1bf8..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CustomMetricName.java +++ /dev/null @@ -1,192 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 com.google.api.pathtemplate.PathTemplate; -import com.google.api.resourcenames.ResourceName; -import com.google.common.base.Preconditions; -import com.google.common.collect.ImmutableMap; -import java.util.ArrayList; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -@Generated("by gapic-generator-java") -public class CustomMetricName implements ResourceName { - private static final PathTemplate PROPERTY_CUSTOM_METRIC = - PathTemplate.createWithoutUrlEncoding("properties/{property}/customMetrics/{custom_metric}"); - private volatile Map fieldValuesMap; - private final String property; - private final String customMetric; - - @Deprecated - protected CustomMetricName() { - property = null; - customMetric = null; - } - - private CustomMetricName(Builder builder) { - property = Preconditions.checkNotNull(builder.getProperty()); - customMetric = Preconditions.checkNotNull(builder.getCustomMetric()); - } - - public String getProperty() { - return property; - } - - public String getCustomMetric() { - return customMetric; - } - - public static Builder newBuilder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder(this); - } - - public static CustomMetricName of(String property, String customMetric) { - return newBuilder().setProperty(property).setCustomMetric(customMetric).build(); - } - - public static String format(String property, String customMetric) { - return newBuilder().setProperty(property).setCustomMetric(customMetric).build().toString(); - } - - public static CustomMetricName parse(String formattedString) { - if (formattedString.isEmpty()) { - return null; - } - Map matchMap = - PROPERTY_CUSTOM_METRIC.validatedMatch( - formattedString, "CustomMetricName.parse: formattedString not in valid format"); - return of(matchMap.get("property"), matchMap.get("custom_metric")); - } - - public static List parseList(List formattedStrings) { - List list = new ArrayList<>(formattedStrings.size()); - for (String formattedString : formattedStrings) { - list.add(parse(formattedString)); - } - return list; - } - - public static List toStringList(List values) { - List list = new ArrayList<>(values.size()); - for (CustomMetricName value : values) { - if (value == null) { - list.add(""); - } else { - list.add(value.toString()); - } - } - return list; - } - - public static boolean isParsableFrom(String formattedString) { - return PROPERTY_CUSTOM_METRIC.matches(formattedString); - } - - @Override - public Map getFieldValuesMap() { - if (fieldValuesMap == null) { - synchronized (this) { - if (fieldValuesMap == null) { - ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); - if (property != null) { - fieldMapBuilder.put("property", property); - } - if (customMetric != null) { - fieldMapBuilder.put("custom_metric", customMetric); - } - fieldValuesMap = fieldMapBuilder.build(); - } - } - } - return fieldValuesMap; - } - - public String getFieldValue(String fieldName) { - return getFieldValuesMap().get(fieldName); - } - - @Override - public String toString() { - return PROPERTY_CUSTOM_METRIC.instantiate("property", property, "custom_metric", customMetric); - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (o != null || getClass() == o.getClass()) { - CustomMetricName that = ((CustomMetricName) o); - return Objects.equals(this.property, that.property) - && Objects.equals(this.customMetric, that.customMetric); - } - return false; - } - - @Override - public int hashCode() { - int h = 1; - h *= 1000003; - h ^= Objects.hashCode(property); - h *= 1000003; - h ^= Objects.hashCode(customMetric); - return h; - } - - /** Builder for properties/{property}/customMetrics/{custom_metric}. */ - public static class Builder { - private String property; - private String customMetric; - - protected Builder() {} - - public String getProperty() { - return property; - } - - public String getCustomMetric() { - return customMetric; - } - - public Builder setProperty(String property) { - this.property = property; - return this; - } - - public Builder setCustomMetric(String customMetric) { - this.customMetric = customMetric; - return this; - } - - private Builder(CustomMetricName customMetricName) { - this.property = customMetricName.property; - this.customMetric = customMetricName.customMetric; - } - - public CustomMetricName build() { - return new CustomMetricName(this); - } - } -} diff --git a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CustomMetricOrBuilder.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CustomMetricOrBuilder.java deleted file mode 100644 index 085976da..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CustomMetricOrBuilder.java +++ /dev/null @@ -1,292 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataRetentionSettings.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataRetentionSettings.java deleted file mode 100644 index 315794d5..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataRetentionSettings.java +++ /dev/null @@ -1,1130 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - 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_; - /** - * - * - *
-   * 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() { - @SuppressWarnings("deprecation") - com.google.analytics.admin.v1beta.DataRetentionSettings.RetentionDuration result = - com.google.analytics.admin.v1beta.DataRetentionSettings.RetentionDuration.valueOf( - 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_; - /** - * - * - *
-   * 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(); - 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); - result.name_ = name_; - result.eventDataRetention_ = eventDataRetention_; - result.resetUserDataOnNewActivity_ = resetUserDataOnNewActivity_; - 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.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_; - 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(); - - break; - } // case 10 - case 16: - { - eventDataRetention_ = input.readEnum(); - - break; - } // case 16 - case 24: - { - resetUserDataOnNewActivity_ = input.readBool(); - - 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 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; - 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(); - 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; - 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; - 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() { - @SuppressWarnings("deprecation") - com.google.analytics.admin.v1beta.DataRetentionSettings.RetentionDuration result = - com.google.analytics.admin.v1beta.DataRetentionSettings.RetentionDuration.valueOf( - 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(); - } - - 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() { - - 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; - 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() { - - 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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataRetentionSettingsName.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataRetentionSettingsName.java deleted file mode 100644 index 0924dba3..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataRetentionSettingsName.java +++ /dev/null @@ -1,169 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 com.google.api.pathtemplate.PathTemplate; -import com.google.api.resourcenames.ResourceName; -import com.google.common.base.Preconditions; -import com.google.common.collect.ImmutableMap; -import java.util.ArrayList; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -@Generated("by gapic-generator-java") -public class DataRetentionSettingsName implements ResourceName { - private static final PathTemplate PROPERTY = - PathTemplate.createWithoutUrlEncoding("properties/{property}/dataRetentionSettings"); - private volatile Map fieldValuesMap; - private final String property; - - @Deprecated - protected DataRetentionSettingsName() { - property = null; - } - - private DataRetentionSettingsName(Builder builder) { - property = Preconditions.checkNotNull(builder.getProperty()); - } - - public String getProperty() { - return property; - } - - public static Builder newBuilder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder(this); - } - - public static DataRetentionSettingsName of(String property) { - return newBuilder().setProperty(property).build(); - } - - public static String format(String property) { - return newBuilder().setProperty(property).build().toString(); - } - - public static DataRetentionSettingsName parse(String formattedString) { - if (formattedString.isEmpty()) { - return null; - } - Map matchMap = - PROPERTY.validatedMatch( - formattedString, - "DataRetentionSettingsName.parse: formattedString not in valid format"); - return of(matchMap.get("property")); - } - - public static List parseList(List formattedStrings) { - List list = new ArrayList<>(formattedStrings.size()); - for (String formattedString : formattedStrings) { - list.add(parse(formattedString)); - } - return list; - } - - public static List toStringList(List values) { - List list = new ArrayList<>(values.size()); - for (DataRetentionSettingsName value : values) { - if (value == null) { - list.add(""); - } else { - list.add(value.toString()); - } - } - return list; - } - - public static boolean isParsableFrom(String formattedString) { - return PROPERTY.matches(formattedString); - } - - @Override - public Map getFieldValuesMap() { - if (fieldValuesMap == null) { - synchronized (this) { - if (fieldValuesMap == null) { - ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); - if (property != null) { - fieldMapBuilder.put("property", property); - } - fieldValuesMap = fieldMapBuilder.build(); - } - } - } - return fieldValuesMap; - } - - public String getFieldValue(String fieldName) { - return getFieldValuesMap().get(fieldName); - } - - @Override - public String toString() { - return PROPERTY.instantiate("property", property); - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (o != null || getClass() == o.getClass()) { - DataRetentionSettingsName that = ((DataRetentionSettingsName) o); - return Objects.equals(this.property, that.property); - } - return false; - } - - @Override - public int hashCode() { - int h = 1; - h *= 1000003; - h ^= Objects.hashCode(property); - return h; - } - - /** Builder for properties/{property}/dataRetentionSettings. */ - public static class Builder { - private String property; - - protected Builder() {} - - public String getProperty() { - return property; - } - - public Builder setProperty(String property) { - this.property = property; - return this; - } - - private Builder(DataRetentionSettingsName dataRetentionSettingsName) { - this.property = dataRetentionSettingsName.property; - } - - public DataRetentionSettingsName build() { - return new DataRetentionSettingsName(this); - } - } -} diff --git a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataRetentionSettingsOrBuilder.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataRetentionSettingsOrBuilder.java deleted file mode 100644 index bed08030..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataRetentionSettingsOrBuilder.java +++ /dev/null @@ -1,95 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataSharingSettings.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataSharingSettings.java deleted file mode 100644 index f3f7cf91..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataSharingSettings.java +++ /dev/null @@ -1,1123 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - 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_; - /** - * - * - *
-   * 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_; - /** - * - * - *
-   * 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_; - /** - * - * - *
-   * 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_; - /** - * - * - *
-   * 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_; - /** - * - * - *
-   * 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(); - 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); - result.name_ = name_; - result.sharingWithGoogleSupportEnabled_ = sharingWithGoogleSupportEnabled_; - result.sharingWithGoogleAssignedSalesEnabled_ = sharingWithGoogleAssignedSalesEnabled_; - result.sharingWithGoogleAnySalesEnabled_ = sharingWithGoogleAnySalesEnabled_; - result.sharingWithGoogleProductsEnabled_ = sharingWithGoogleProductsEnabled_; - result.sharingWithOthersEnabled_ = sharingWithOthersEnabled_; - 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.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_; - 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(); - - break; - } // case 10 - case 16: - { - sharingWithGoogleSupportEnabled_ = input.readBool(); - - break; - } // case 16 - case 24: - { - sharingWithGoogleAssignedSalesEnabled_ = input.readBool(); - - break; - } // case 24 - case 32: - { - sharingWithGoogleAnySalesEnabled_ = input.readBool(); - - break; - } // case 32 - case 40: - { - sharingWithGoogleProductsEnabled_ = input.readBool(); - - break; - } // case 40 - case 48: - { - sharingWithOthersEnabled_ = input.readBool(); - - 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 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; - 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(); - 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; - 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; - 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() { - - 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; - 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() { - - 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; - 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() { - - 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; - 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() { - - 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; - 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() { - - 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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataSharingSettingsName.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataSharingSettingsName.java deleted file mode 100644 index e8056172..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataSharingSettingsName.java +++ /dev/null @@ -1,168 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 com.google.api.pathtemplate.PathTemplate; -import com.google.api.resourcenames.ResourceName; -import com.google.common.base.Preconditions; -import com.google.common.collect.ImmutableMap; -import java.util.ArrayList; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -@Generated("by gapic-generator-java") -public class DataSharingSettingsName implements ResourceName { - private static final PathTemplate ACCOUNT = - PathTemplate.createWithoutUrlEncoding("accounts/{account}/dataSharingSettings"); - private volatile Map fieldValuesMap; - private final String account; - - @Deprecated - protected DataSharingSettingsName() { - account = null; - } - - private DataSharingSettingsName(Builder builder) { - account = Preconditions.checkNotNull(builder.getAccount()); - } - - public String getAccount() { - return account; - } - - public static Builder newBuilder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder(this); - } - - public static DataSharingSettingsName of(String account) { - return newBuilder().setAccount(account).build(); - } - - public static String format(String account) { - return newBuilder().setAccount(account).build().toString(); - } - - public static DataSharingSettingsName parse(String formattedString) { - if (formattedString.isEmpty()) { - return null; - } - Map matchMap = - ACCOUNT.validatedMatch( - formattedString, "DataSharingSettingsName.parse: formattedString not in valid format"); - return of(matchMap.get("account")); - } - - public static List parseList(List formattedStrings) { - List list = new ArrayList<>(formattedStrings.size()); - for (String formattedString : formattedStrings) { - list.add(parse(formattedString)); - } - return list; - } - - public static List toStringList(List values) { - List list = new ArrayList<>(values.size()); - for (DataSharingSettingsName value : values) { - if (value == null) { - list.add(""); - } else { - list.add(value.toString()); - } - } - return list; - } - - public static boolean isParsableFrom(String formattedString) { - return ACCOUNT.matches(formattedString); - } - - @Override - public Map getFieldValuesMap() { - if (fieldValuesMap == null) { - synchronized (this) { - if (fieldValuesMap == null) { - ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); - if (account != null) { - fieldMapBuilder.put("account", account); - } - fieldValuesMap = fieldMapBuilder.build(); - } - } - } - return fieldValuesMap; - } - - public String getFieldValue(String fieldName) { - return getFieldValuesMap().get(fieldName); - } - - @Override - public String toString() { - return ACCOUNT.instantiate("account", account); - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (o != null || getClass() == o.getClass()) { - DataSharingSettingsName that = ((DataSharingSettingsName) o); - return Objects.equals(this.account, that.account); - } - return false; - } - - @Override - public int hashCode() { - int h = 1; - h *= 1000003; - h ^= Objects.hashCode(account); - return h; - } - - /** Builder for accounts/{account}/dataSharingSettings. */ - public static class Builder { - private String account; - - protected Builder() {} - - public String getAccount() { - return account; - } - - public Builder setAccount(String account) { - this.account = account; - return this; - } - - private Builder(DataSharingSettingsName dataSharingSettingsName) { - this.account = dataSharingSettingsName.account; - } - - public DataSharingSettingsName build() { - return new DataSharingSettingsName(this); - } - } -} diff --git a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataSharingSettingsOrBuilder.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataSharingSettingsOrBuilder.java deleted file mode 100644 index c23e0c30..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataSharingSettingsOrBuilder.java +++ /dev/null @@ -1,123 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataStream.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataStream.java deleted file mode 100644 index d7dcfaf2..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataStream.java +++ /dev/null @@ -1,5630 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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", without the "G-" prefix.
-     * Example: "G-1A2BCD345E" would just be "1A2BCD345E"
-     * 
- * - * string measurement_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The measurementId. - */ - java.lang.String getMeasurementId(); - /** - * - * - *
-     * Output only. Analytics "Measurement ID", without the "G-" prefix.
-     * Example: "G-1A2BCD345E" would just be "1A2BCD345E"
-     * 
- * - * string measurement_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for measurementId. - */ - com.google.protobuf.ByteString getMeasurementIdBytes(); - - /** - * - * - *
-     * Output only. ID of the corresponding web app in Firebase, if any.
-     * This ID can change if the web app is deleted and recreated.
-     * 
- * - * string firebase_app_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The firebaseAppId. - */ - java.lang.String getFirebaseAppId(); - /** - * - * - *
-     * Output only. ID of the corresponding web app in Firebase, if any.
-     * This ID can change if the web app is deleted and recreated.
-     * 
- * - * string firebase_app_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for firebaseAppId. - */ - com.google.protobuf.ByteString getFirebaseAppIdBytes(); - - /** - * - * - *
-     * Immutable. Domain name of the web app being measured, or empty.
-     * Example: "http://www.google.com", "https://www.google.com"
-     * 
- * - * string default_uri = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @return The defaultUri. - */ - java.lang.String getDefaultUri(); - /** - * - * - *
-     * Immutable. Domain name of the web app being measured, or empty.
-     * Example: "http://www.google.com", "https://www.google.com"
-     * 
- * - * string default_uri = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @return The bytes for defaultUri. - */ - com.google.protobuf.ByteString getDefaultUriBytes(); - } - /** - * - * - *
-   * Data specific to web streams.
-   * 
- * - * Protobuf type {@code google.analytics.admin.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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - private volatile java.lang.Object measurementId_; - /** - * - * - *
-     * Output only. Analytics "Measurement ID", without the "G-" prefix.
-     * Example: "G-1A2BCD345E" would just be "1A2BCD345E"
-     * 
- * - * string measurement_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The measurementId. - */ - @java.lang.Override - public java.lang.String getMeasurementId() { - java.lang.Object ref = measurementId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - measurementId_ = s; - return s; - } - } - /** - * - * - *
-     * Output only. Analytics "Measurement ID", without the "G-" prefix.
-     * Example: "G-1A2BCD345E" would just be "1A2BCD345E"
-     * 
- * - * string measurement_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for measurementId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getMeasurementIdBytes() { - java.lang.Object ref = measurementId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - measurementId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int FIREBASE_APP_ID_FIELD_NUMBER = 2; - private volatile java.lang.Object firebaseAppId_; - /** - * - * - *
-     * Output only. ID of the corresponding web app in Firebase, if any.
-     * This ID can change if the web app is deleted and recreated.
-     * 
- * - * string firebase_app_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The firebaseAppId. - */ - @java.lang.Override - public java.lang.String getFirebaseAppId() { - java.lang.Object ref = firebaseAppId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - firebaseAppId_ = s; - return s; - } - } - /** - * - * - *
-     * Output only. ID of the corresponding web app in Firebase, if any.
-     * This ID can change if the web app is deleted and recreated.
-     * 
- * - * string firebase_app_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for firebaseAppId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getFirebaseAppIdBytes() { - java.lang.Object ref = firebaseAppId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - firebaseAppId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DEFAULT_URI_FIELD_NUMBER = 3; - private volatile java.lang.Object defaultUri_; - /** - * - * - *
-     * Immutable. Domain name of the web app being measured, or empty.
-     * Example: "http://www.google.com", "https://www.google.com"
-     * 
- * - * string default_uri = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @return The defaultUri. - */ - @java.lang.Override - public java.lang.String getDefaultUri() { - java.lang.Object ref = defaultUri_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - defaultUri_ = s; - return s; - } - } - /** - * - * - *
-     * Immutable. Domain name of the web app being measured, or empty.
-     * Example: "http://www.google.com", "https://www.google.com"
-     * 
- * - * string default_uri = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @return The bytes for defaultUri. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDefaultUriBytes() { - java.lang.Object ref = defaultUri_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - defaultUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(measurementId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, measurementId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(firebaseAppId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, firebaseAppId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultUri_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, defaultUri_); - } - getUnknownFields().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(); - 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); - result.measurementId_ = measurementId_; - result.firebaseAppId_ = firebaseAppId_; - result.defaultUri_ = defaultUri_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.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_; - onChanged(); - } - if (!other.getFirebaseAppId().isEmpty()) { - firebaseAppId_ = other.firebaseAppId_; - onChanged(); - } - if (!other.getDefaultUri().isEmpty()) { - defaultUri_ = other.defaultUri_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 18: - { - firebaseAppId_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: - { - defaultUri_ = input.readStringRequireUtf8(); - - 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 java.lang.Object measurementId_ = ""; - /** - * - * - *
-       * Output only. Analytics "Measurement ID", without the "G-" prefix.
-       * Example: "G-1A2BCD345E" would just be "1A2BCD345E"
-       * 
- * - * string measurement_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The measurementId. - */ - public java.lang.String getMeasurementId() { - java.lang.Object ref = measurementId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - measurementId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-       * Output only. Analytics "Measurement ID", without the "G-" prefix.
-       * Example: "G-1A2BCD345E" would just be "1A2BCD345E"
-       * 
- * - * string measurement_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for measurementId. - */ - public com.google.protobuf.ByteString getMeasurementIdBytes() { - java.lang.Object ref = measurementId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - measurementId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-       * Output only. Analytics "Measurement ID", without the "G-" prefix.
-       * Example: "G-1A2BCD345E" would just be "1A2BCD345E"
-       * 
- * - * string measurement_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The measurementId to set. - * @return This builder for chaining. - */ - public Builder setMeasurementId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - measurementId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-       * Output only. Analytics "Measurement ID", without the "G-" prefix.
-       * Example: "G-1A2BCD345E" would just be "1A2BCD345E"
-       * 
- * - * string measurement_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearMeasurementId() { - - measurementId_ = getDefaultInstance().getMeasurementId(); - onChanged(); - return this; - } - /** - * - * - *
-       * Output only. Analytics "Measurement ID", without the "G-" prefix.
-       * Example: "G-1A2BCD345E" would just be "1A2BCD345E"
-       * 
- * - * string measurement_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes for measurementId to set. - * @return This builder for chaining. - */ - public Builder setMeasurementIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - measurementId_ = value; - onChanged(); - return this; - } - - private java.lang.Object firebaseAppId_ = ""; - /** - * - * - *
-       * Output only. ID of the corresponding web app in Firebase, if any.
-       * This ID can change if the web app is deleted and recreated.
-       * 
- * - * string firebase_app_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The firebaseAppId. - */ - public java.lang.String getFirebaseAppId() { - java.lang.Object ref = firebaseAppId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - firebaseAppId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-       * Output only. ID of the corresponding web app in Firebase, if any.
-       * This ID can change if the web app is deleted and recreated.
-       * 
- * - * string firebase_app_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for firebaseAppId. - */ - public com.google.protobuf.ByteString getFirebaseAppIdBytes() { - java.lang.Object ref = firebaseAppId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - firebaseAppId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-       * Output only. ID of the corresponding web app in Firebase, if any.
-       * This ID can change if the web app is deleted and recreated.
-       * 
- * - * string firebase_app_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The firebaseAppId to set. - * @return This builder for chaining. - */ - public Builder setFirebaseAppId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - firebaseAppId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-       * Output only. ID of the corresponding web app in Firebase, if any.
-       * This ID can change if the web app is deleted and recreated.
-       * 
- * - * string firebase_app_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearFirebaseAppId() { - - firebaseAppId_ = getDefaultInstance().getFirebaseAppId(); - onChanged(); - return this; - } - /** - * - * - *
-       * Output only. ID of the corresponding web app in Firebase, if any.
-       * This ID can change if the web app is deleted and recreated.
-       * 
- * - * string firebase_app_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes for firebaseAppId to set. - * @return This builder for chaining. - */ - public Builder setFirebaseAppIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - firebaseAppId_ = value; - onChanged(); - return this; - } - - private java.lang.Object defaultUri_ = ""; - /** - * - * - *
-       * Immutable. Domain name of the web app being measured, or empty.
-       * Example: "http://www.google.com", "https://www.google.com"
-       * 
- * - * string default_uri = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @return The defaultUri. - */ - public java.lang.String getDefaultUri() { - java.lang.Object ref = defaultUri_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - defaultUri_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-       * Immutable. Domain name of the web app being measured, or empty.
-       * Example: "http://www.google.com", "https://www.google.com"
-       * 
- * - * string default_uri = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @return The bytes for defaultUri. - */ - public com.google.protobuf.ByteString getDefaultUriBytes() { - java.lang.Object ref = defaultUri_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - defaultUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-       * Immutable. Domain name of the web app being measured, or empty.
-       * Example: "http://www.google.com", "https://www.google.com"
-       * 
- * - * string default_uri = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @param value The defaultUri to set. - * @return This builder for chaining. - */ - public Builder setDefaultUri(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - defaultUri_ = value; - onChanged(); - return this; - } - /** - * - * - *
-       * Immutable. Domain name of the web app being measured, or empty.
-       * Example: "http://www.google.com", "https://www.google.com"
-       * 
- * - * string default_uri = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @return This builder for chaining. - */ - public Builder clearDefaultUri() { - - defaultUri_ = getDefaultInstance().getDefaultUri(); - onChanged(); - return this; - } - /** - * - * - *
-       * Immutable. Domain name of the web app being measured, or empty.
-       * Example: "http://www.google.com", "https://www.google.com"
-       * 
- * - * string default_uri = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @param value The bytes for defaultUri to set. - * @return This builder for chaining. - */ - public Builder setDefaultUriBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - defaultUri_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - private volatile java.lang.Object firebaseAppId_; - /** - * - * - *
-     * Output only. ID of the corresponding Android app in Firebase, if any.
-     * This ID can change if the Android app is deleted and recreated.
-     * 
- * - * string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The firebaseAppId. - */ - @java.lang.Override - public java.lang.String getFirebaseAppId() { - java.lang.Object ref = firebaseAppId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - firebaseAppId_ = s; - return s; - } - } - /** - * - * - *
-     * Output only. ID of the corresponding Android app in Firebase, if any.
-     * This ID can change if the Android app is deleted and recreated.
-     * 
- * - * string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for firebaseAppId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getFirebaseAppIdBytes() { - java.lang.Object ref = firebaseAppId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - firebaseAppId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PACKAGE_NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object packageName_; - /** - * - * - *
-     * Immutable. The package name for the app being measured.
-     * Example: "com.example.myandroidapp"
-     * 
- * - * string package_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @return The packageName. - */ - @java.lang.Override - public java.lang.String getPackageName() { - java.lang.Object ref = packageName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - packageName_ = s; - return s; - } - } - /** - * - * - *
-     * Immutable. The package name for the app being measured.
-     * Example: "com.example.myandroidapp"
-     * 
- * - * string package_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @return The bytes for packageName. - */ - @java.lang.Override - public com.google.protobuf.ByteString getPackageNameBytes() { - java.lang.Object ref = packageName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - packageName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(firebaseAppId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, firebaseAppId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(packageName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, packageName_); - } - getUnknownFields().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(); - 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); - result.firebaseAppId_ = firebaseAppId_; - result.packageName_ = packageName_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.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_; - onChanged(); - } - if (!other.getPackageName().isEmpty()) { - packageName_ = other.packageName_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 18: - { - packageName_ = input.readStringRequireUtf8(); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object firebaseAppId_ = ""; - /** - * - * - *
-       * Output only. ID of the corresponding Android app in Firebase, if any.
-       * This ID can change if the Android app is deleted and recreated.
-       * 
- * - * string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The firebaseAppId. - */ - public java.lang.String getFirebaseAppId() { - java.lang.Object ref = firebaseAppId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - firebaseAppId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-       * Output only. ID of the corresponding Android app in Firebase, if any.
-       * This ID can change if the Android app is deleted and recreated.
-       * 
- * - * string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for firebaseAppId. - */ - public com.google.protobuf.ByteString getFirebaseAppIdBytes() { - java.lang.Object ref = firebaseAppId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - firebaseAppId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-       * Output only. ID of the corresponding Android app in Firebase, if any.
-       * This ID can change if the Android app is deleted and recreated.
-       * 
- * - * string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The firebaseAppId to set. - * @return This builder for chaining. - */ - public Builder setFirebaseAppId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - firebaseAppId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-       * Output only. ID of the corresponding Android app in Firebase, if any.
-       * This ID can change if the Android app is deleted and recreated.
-       * 
- * - * string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearFirebaseAppId() { - - firebaseAppId_ = getDefaultInstance().getFirebaseAppId(); - onChanged(); - return this; - } - /** - * - * - *
-       * Output only. ID of the corresponding Android app in Firebase, if any.
-       * This ID can change if the Android app is deleted and recreated.
-       * 
- * - * string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes for firebaseAppId to set. - * @return This builder for chaining. - */ - public Builder setFirebaseAppIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - firebaseAppId_ = value; - onChanged(); - return this; - } - - private java.lang.Object packageName_ = ""; - /** - * - * - *
-       * Immutable. The package name for the app being measured.
-       * Example: "com.example.myandroidapp"
-       * 
- * - * string package_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @return The packageName. - */ - public java.lang.String getPackageName() { - java.lang.Object ref = packageName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - packageName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-       * Immutable. The package name for the app being measured.
-       * Example: "com.example.myandroidapp"
-       * 
- * - * string package_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @return The bytes for packageName. - */ - public com.google.protobuf.ByteString getPackageNameBytes() { - java.lang.Object ref = packageName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - packageName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-       * Immutable. The package name for the app being measured.
-       * Example: "com.example.myandroidapp"
-       * 
- * - * string package_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @param value The packageName to set. - * @return This builder for chaining. - */ - public Builder setPackageName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - packageName_ = value; - onChanged(); - return this; - } - /** - * - * - *
-       * Immutable. The package name for the app being measured.
-       * Example: "com.example.myandroidapp"
-       * 
- * - * string package_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @return This builder for chaining. - */ - public Builder clearPackageName() { - - packageName_ = getDefaultInstance().getPackageName(); - onChanged(); - return this; - } - /** - * - * - *
-       * Immutable. The package name for the app being measured.
-       * Example: "com.example.myandroidapp"
-       * 
- * - * string package_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @param value The bytes for packageName to set. - * @return This builder for chaining. - */ - public Builder setPackageNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - packageName_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - private volatile java.lang.Object firebaseAppId_; - /** - * - * - *
-     * Output only. ID of the corresponding iOS app in Firebase, if any.
-     * This ID can change if the iOS app is deleted and recreated.
-     * 
- * - * string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The firebaseAppId. - */ - @java.lang.Override - public java.lang.String getFirebaseAppId() { - java.lang.Object ref = firebaseAppId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - firebaseAppId_ = s; - return s; - } - } - /** - * - * - *
-     * Output only. ID of the corresponding iOS app in Firebase, if any.
-     * This ID can change if the iOS app is deleted and recreated.
-     * 
- * - * string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for firebaseAppId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getFirebaseAppIdBytes() { - java.lang.Object ref = firebaseAppId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - firebaseAppId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int BUNDLE_ID_FIELD_NUMBER = 2; - private volatile java.lang.Object bundleId_; - /** - * - * - *
-     * Required. Immutable. The Apple App Store Bundle ID for the app
-     * Example: "com.example.myiosapp"
-     * 
- * - * - * string bundle_id = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - * - * - * @return The bundleId. - */ - @java.lang.Override - public java.lang.String getBundleId() { - java.lang.Object ref = bundleId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - bundleId_ = s; - return s; - } - } - /** - * - * - *
-     * Required. Immutable. The Apple App Store Bundle ID for the app
-     * Example: "com.example.myiosapp"
-     * 
- * - * - * string bundle_id = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - * - * - * @return The bytes for bundleId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getBundleIdBytes() { - java.lang.Object ref = bundleId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - bundleId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(firebaseAppId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, firebaseAppId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bundleId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, bundleId_); - } - getUnknownFields().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(); - 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); - result.firebaseAppId_ = firebaseAppId_; - result.bundleId_ = bundleId_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.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_; - onChanged(); - } - if (!other.getBundleId().isEmpty()) { - bundleId_ = other.bundleId_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 18: - { - bundleId_ = input.readStringRequireUtf8(); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object firebaseAppId_ = ""; - /** - * - * - *
-       * Output only. ID of the corresponding iOS app in Firebase, if any.
-       * This ID can change if the iOS app is deleted and recreated.
-       * 
- * - * string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The firebaseAppId. - */ - public java.lang.String getFirebaseAppId() { - java.lang.Object ref = firebaseAppId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - firebaseAppId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-       * Output only. ID of the corresponding iOS app in Firebase, if any.
-       * This ID can change if the iOS app is deleted and recreated.
-       * 
- * - * string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for firebaseAppId. - */ - public com.google.protobuf.ByteString getFirebaseAppIdBytes() { - java.lang.Object ref = firebaseAppId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - firebaseAppId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-       * Output only. ID of the corresponding iOS app in Firebase, if any.
-       * This ID can change if the iOS app is deleted and recreated.
-       * 
- * - * string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The firebaseAppId to set. - * @return This builder for chaining. - */ - public Builder setFirebaseAppId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - firebaseAppId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-       * Output only. ID of the corresponding iOS app in Firebase, if any.
-       * This ID can change if the iOS app is deleted and recreated.
-       * 
- * - * string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearFirebaseAppId() { - - firebaseAppId_ = getDefaultInstance().getFirebaseAppId(); - onChanged(); - return this; - } - /** - * - * - *
-       * Output only. ID of the corresponding iOS app in Firebase, if any.
-       * This ID can change if the iOS app is deleted and recreated.
-       * 
- * - * string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes for firebaseAppId to set. - * @return This builder for chaining. - */ - public Builder setFirebaseAppIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - firebaseAppId_ = value; - onChanged(); - return this; - } - - private java.lang.Object bundleId_ = ""; - /** - * - * - *
-       * Required. Immutable. The Apple App Store Bundle ID for the app
-       * Example: "com.example.myiosapp"
-       * 
- * - * - * string bundle_id = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - * - * - * @return The bundleId. - */ - public java.lang.String getBundleId() { - java.lang.Object ref = bundleId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - bundleId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-       * Required. Immutable. The Apple App Store Bundle ID for the app
-       * Example: "com.example.myiosapp"
-       * 
- * - * - * string bundle_id = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - * - * - * @return The bytes for bundleId. - */ - public com.google.protobuf.ByteString getBundleIdBytes() { - java.lang.Object ref = bundleId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - bundleId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-       * Required. Immutable. The Apple App Store Bundle ID for the app
-       * Example: "com.example.myiosapp"
-       * 
- * - * - * string bundle_id = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - * - * - * @param value The bundleId to set. - * @return This builder for chaining. - */ - public Builder setBundleId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - bundleId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-       * Required. Immutable. The Apple App Store Bundle ID for the app
-       * Example: "com.example.myiosapp"
-       * 
- * - * - * string bundle_id = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - * - * - * @return This builder for chaining. - */ - public Builder clearBundleId() { - - bundleId_ = getDefaultInstance().getBundleId(); - onChanged(); - return this; - } - /** - * - * - *
-       * Required. Immutable. The Apple App Store Bundle ID for the app
-       * Example: "com.example.myiosapp"
-       * 
- * - * - * string bundle_id = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - * - * - * @param value The bytes for bundleId to set. - * @return This builder for chaining. - */ - public Builder setBundleIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - bundleId_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.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; - 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; - private volatile java.lang.Object name_; - /** - * - * - *
-   * Output only. Resource name of this Data Stream.
-   * Format: properties/{property_id}/dataStreams/{stream_id}
-   * Example: "properties/1000/dataStreams/2000"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * Output only. Resource name of this Data Stream.
-   * Format: properties/{property_id}/dataStreams/{stream_id}
-   * Example: "properties/1000/dataStreams/2000"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TYPE_FIELD_NUMBER = 2; - private int type_; - /** - * - * - *
-   * Required. Immutable. The type of this DataStream resource.
-   * 
- * - * - * .google.analytics.admin.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() { - @SuppressWarnings("deprecation") - com.google.analytics.admin.v1beta.DataStream.DataStreamType result = - com.google.analytics.admin.v1beta.DataStream.DataStreamType.valueOf(type_); - return result == null - ? com.google.analytics.admin.v1beta.DataStream.DataStreamType.UNRECOGNIZED - : result; - } - - public static final int DISPLAY_NAME_FIELD_NUMBER = 3; - private volatile java.lang.Object displayName_; - /** - * - * - *
-   * Human-readable display name for the Data Stream.
-   * Required for web data streams.
-   * The max allowed display name length is 255 UTF-16 code units.
-   * 
- * - * string display_name = 3; - * - * @return The displayName. - */ - @java.lang.Override - public java.lang.String getDisplayName() { - java.lang.Object ref = displayName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - displayName_ = s; - return s; - } - } - /** - * - * - *
-   * Human-readable display name for the Data Stream.
-   * Required for web data streams.
-   * The max allowed display name length is 255 UTF-16 code units.
-   * 
- * - * string display_name = 3; - * - * @return The bytes for displayName. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDisplayNameBytes() { - java.lang.Object ref = displayName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - displayName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CREATE_TIME_FIELD_NUMBER = 4; - private com.google.protobuf.Timestamp createTime_; - /** - * - * - *
-   * Output only. Time when this stream was originally created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the createTime field is set. - */ - @java.lang.Override - public boolean hasCreateTime() { - return createTime_ != null; - } - /** - * - * - *
-   * Output only. Time when this stream was originally created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The createTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getCreateTime() { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; - } - /** - * - * - *
-   * Output only. Time when this stream was originally created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return getCreateTime(); - } - - public static final int UPDATE_TIME_FIELD_NUMBER = 5; - private com.google.protobuf.Timestamp updateTime_; - /** - * - * - *
-   * Output only. Time when stream payload fields were last updated.
-   * 
- * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the updateTime field is set. - */ - @java.lang.Override - public boolean hasUpdateTime() { - return updateTime_ != null; - } - /** - * - * - *
-   * Output only. Time when stream payload fields were last updated.
-   * 
- * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The updateTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getUpdateTime() { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; - } - /** - * - * - *
-   * Output only. Time when stream payload fields were last updated.
-   * 
- * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - return getUpdateTime(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (type_ - != com.google.analytics.admin.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(); - if (webStreamDataBuilder_ != null) { - webStreamDataBuilder_.clear(); - } - if (androidAppStreamDataBuilder_ != null) { - androidAppStreamDataBuilder_.clear(); - } - if (iosAppStreamDataBuilder_ != null) { - iosAppStreamDataBuilder_.clear(); - } - name_ = ""; - - type_ = 0; - - displayName_ = ""; - - if (createTimeBuilder_ == null) { - createTime_ = null; - } else { - createTime_ = null; - createTimeBuilder_ = null; - } - if (updateTimeBuilder_ == null) { - updateTime_ = null; - } else { - updateTime_ = null; - updateTimeBuilder_ = null; - } - streamDataCase_ = 0; - streamData_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.admin.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 (streamDataCase_ == 6) { - if (webStreamDataBuilder_ == null) { - result.streamData_ = streamData_; - } else { - result.streamData_ = webStreamDataBuilder_.build(); - } - } - if (streamDataCase_ == 7) { - if (androidAppStreamDataBuilder_ == null) { - result.streamData_ = streamData_; - } else { - result.streamData_ = androidAppStreamDataBuilder_.build(); - } - } - if (streamDataCase_ == 8) { - if (iosAppStreamDataBuilder_ == null) { - result.streamData_ = streamData_; - } else { - result.streamData_ = iosAppStreamDataBuilder_.build(); - } - } - result.name_ = name_; - result.type_ = type_; - result.displayName_ = displayName_; - if (createTimeBuilder_ == null) { - result.createTime_ = createTime_; - } else { - result.createTime_ = createTimeBuilder_.build(); - } - if (updateTimeBuilder_ == null) { - result.updateTime_ = updateTime_; - } else { - result.updateTime_ = updateTimeBuilder_.build(); - } - result.streamDataCase_ = streamDataCase_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.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_; - onChanged(); - } - if (other.type_ != 0) { - setTypeValue(other.getTypeValue()); - } - if (!other.getDisplayName().isEmpty()) { - displayName_ = other.displayName_; - onChanged(); - } - if (other.hasCreateTime()) { - mergeCreateTime(other.getCreateTime()); - } - if (other.hasUpdateTime()) { - mergeUpdateTime(other.getUpdateTime()); - } - switch (other.getStreamDataCase()) { - case WEB_STREAM_DATA: - { - mergeWebStreamData(other.getWebStreamData()); - break; - } - case ANDROID_APP_STREAM_DATA: - { - mergeAndroidAppStreamData(other.getAndroidAppStreamData()); - break; - } - case IOS_APP_STREAM_DATA: - { - mergeIosAppStreamData(other.getIosAppStreamData()); - break; - } - case STREAMDATA_NOT_SET: - { - break; - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 16: - { - type_ = input.readEnum(); - - break; - } // case 16 - case 26: - { - displayName_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 34: - { - input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 34 - case 42: - { - input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - - 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 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; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Resource name of this Data Stream.
-     * Format: properties/{property_id}/dataStreams/{stream_id}
-     * Example: "properties/1000/dataStreams/2000"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Resource name of this Data Stream.
-     * Format: properties/{property_id}/dataStreams/{stream_id}
-     * Example: "properties/1000/dataStreams/2000"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private int type_ = 0; - /** - * - * - *
-     * Required. Immutable. The type of this DataStream resource.
-     * 
- * - * - * .google.analytics.admin.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; - 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() { - @SuppressWarnings("deprecation") - com.google.analytics.admin.v1beta.DataStream.DataStreamType result = - com.google.analytics.admin.v1beta.DataStream.DataStreamType.valueOf(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(); - } - - 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() { - - type_ = 0; - onChanged(); - return this; - } - - private java.lang.Object displayName_ = ""; - /** - * - * - *
-     * Human-readable display name for the Data Stream.
-     * Required for web data streams.
-     * The max allowed display name length is 255 UTF-16 code units.
-     * 
- * - * string display_name = 3; - * - * @return The displayName. - */ - public java.lang.String getDisplayName() { - java.lang.Object ref = displayName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - displayName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Human-readable display name for the Data Stream.
-     * Required for web data streams.
-     * The max allowed display name length is 255 UTF-16 code units.
-     * 
- * - * string display_name = 3; - * - * @return The bytes for displayName. - */ - public com.google.protobuf.ByteString getDisplayNameBytes() { - java.lang.Object ref = displayName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - displayName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Human-readable display name for the Data Stream.
-     * Required for web data streams.
-     * The max allowed display name length is 255 UTF-16 code units.
-     * 
- * - * string display_name = 3; - * - * @param value The displayName to set. - * @return This builder for chaining. - */ - public Builder setDisplayName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - displayName_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Human-readable display name for the Data Stream.
-     * Required for web data streams.
-     * The max allowed display name length is 255 UTF-16 code units.
-     * 
- * - * string display_name = 3; - * - * @return This builder for chaining. - */ - public Builder clearDisplayName() { - - displayName_ = getDefaultInstance().getDisplayName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Human-readable display name for the Data Stream.
-     * Required for web data streams.
-     * The max allowed display name length is 255 UTF-16 code units.
-     * 
- * - * string display_name = 3; - * - * @param value The bytes for displayName to set. - * @return This builder for chaining. - */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - displayName_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.Timestamp createTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; - /** - * - * - *
-     * Output only. Time when this stream was originally created.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the createTime field is set. - */ - public boolean hasCreateTime() { - return createTimeBuilder_ != null || createTime_ != null; - } - /** - * - * - *
-     * Output only. Time when this stream was originally created.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The createTime. - */ - public com.google.protobuf.Timestamp getCreateTime() { - if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; - } else { - return createTimeBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Output only. Time when this stream was originally created.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setCreateTime(com.google.protobuf.Timestamp value) { - if (createTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - createTime_ = value; - onChanged(); - } else { - createTimeBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Output only. Time when this stream was originally created.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (createTimeBuilder_ == null) { - createTime_ = builderForValue.build(); - onChanged(); - } else { - createTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Output only. Time when this stream was originally created.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { - if (createTimeBuilder_ == null) { - if (createTime_ != null) { - createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); - } else { - createTime_ = value; - } - onChanged(); - } else { - createTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Output only. Time when this stream was originally created.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearCreateTime() { - if (createTimeBuilder_ == null) { - createTime_ = null; - onChanged(); - } else { - createTime_ = null; - createTimeBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Output only. Time when this stream was originally created.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - - onChanged(); - return getCreateTimeFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Output only. Time when this stream was originally created.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - if (createTimeBuilder_ != null) { - return createTimeBuilder_.getMessageOrBuilder(); - } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; - } - } - /** - * - * - *
-     * Output only. Time when this stream was originally created.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - getCreateTimeFieldBuilder() { - if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); - createTime_ = null; - } - return createTimeBuilder_; - } - - private com.google.protobuf.Timestamp updateTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; - /** - * - * - *
-     * Output only. Time when stream payload fields were last updated.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the updateTime field is set. - */ - public boolean hasUpdateTime() { - return updateTimeBuilder_ != null || updateTime_ != null; - } - /** - * - * - *
-     * Output only. Time when stream payload fields were last updated.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The updateTime. - */ - public com.google.protobuf.Timestamp getUpdateTime() { - if (updateTimeBuilder_ == null) { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; - } else { - return updateTimeBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Output only. Time when stream payload fields were last updated.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setUpdateTime(com.google.protobuf.Timestamp value) { - if (updateTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateTime_ = value; - onChanged(); - } else { - updateTimeBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Output only. Time when stream payload fields were last updated.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (updateTimeBuilder_ == null) { - updateTime_ = builderForValue.build(); - onChanged(); - } else { - updateTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Output only. Time when stream payload fields were last updated.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { - if (updateTimeBuilder_ == null) { - if (updateTime_ != null) { - updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); - } else { - updateTime_ = value; - } - onChanged(); - } else { - updateTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Output only. Time when stream payload fields were last updated.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearUpdateTime() { - if (updateTimeBuilder_ == null) { - updateTime_ = null; - onChanged(); - } else { - updateTime_ = null; - updateTimeBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Output only. Time when stream payload fields were last updated.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - - onChanged(); - return getUpdateTimeFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Output only. Time when stream payload fields were last updated.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - if (updateTimeBuilder_ != null) { - return updateTimeBuilder_.getMessageOrBuilder(); - } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; - } - } - /** - * - * - *
-     * Output only. Time when stream payload fields were last updated.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - getUpdateTimeFieldBuilder() { - if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), getParentForChildren(), isClean()); - updateTime_ = null; - } - return updateTimeBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataStreamName.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataStreamName.java deleted file mode 100644 index 6c912976..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataStreamName.java +++ /dev/null @@ -1,192 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 com.google.api.pathtemplate.PathTemplate; -import com.google.api.resourcenames.ResourceName; -import com.google.common.base.Preconditions; -import com.google.common.collect.ImmutableMap; -import java.util.ArrayList; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -@Generated("by gapic-generator-java") -public class DataStreamName implements ResourceName { - private static final PathTemplate PROPERTY_DATA_STREAM = - PathTemplate.createWithoutUrlEncoding("properties/{property}/dataStreams/{data_stream}"); - private volatile Map fieldValuesMap; - private final String property; - private final String dataStream; - - @Deprecated - protected DataStreamName() { - property = null; - dataStream = null; - } - - private DataStreamName(Builder builder) { - property = Preconditions.checkNotNull(builder.getProperty()); - dataStream = Preconditions.checkNotNull(builder.getDataStream()); - } - - public String getProperty() { - return property; - } - - public String getDataStream() { - return dataStream; - } - - public static Builder newBuilder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder(this); - } - - public static DataStreamName of(String property, String dataStream) { - return newBuilder().setProperty(property).setDataStream(dataStream).build(); - } - - public static String format(String property, String dataStream) { - return newBuilder().setProperty(property).setDataStream(dataStream).build().toString(); - } - - public static DataStreamName parse(String formattedString) { - if (formattedString.isEmpty()) { - return null; - } - Map matchMap = - PROPERTY_DATA_STREAM.validatedMatch( - formattedString, "DataStreamName.parse: formattedString not in valid format"); - return of(matchMap.get("property"), matchMap.get("data_stream")); - } - - public static List parseList(List formattedStrings) { - List list = new ArrayList<>(formattedStrings.size()); - for (String formattedString : formattedStrings) { - list.add(parse(formattedString)); - } - return list; - } - - public static List toStringList(List values) { - List list = new ArrayList<>(values.size()); - for (DataStreamName value : values) { - if (value == null) { - list.add(""); - } else { - list.add(value.toString()); - } - } - return list; - } - - public static boolean isParsableFrom(String formattedString) { - return PROPERTY_DATA_STREAM.matches(formattedString); - } - - @Override - public Map getFieldValuesMap() { - if (fieldValuesMap == null) { - synchronized (this) { - if (fieldValuesMap == null) { - ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); - if (property != null) { - fieldMapBuilder.put("property", property); - } - if (dataStream != null) { - fieldMapBuilder.put("data_stream", dataStream); - } - fieldValuesMap = fieldMapBuilder.build(); - } - } - } - return fieldValuesMap; - } - - public String getFieldValue(String fieldName) { - return getFieldValuesMap().get(fieldName); - } - - @Override - public String toString() { - return PROPERTY_DATA_STREAM.instantiate("property", property, "data_stream", dataStream); - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (o != null || getClass() == o.getClass()) { - DataStreamName that = ((DataStreamName) o); - return Objects.equals(this.property, that.property) - && Objects.equals(this.dataStream, that.dataStream); - } - return false; - } - - @Override - public int hashCode() { - int h = 1; - h *= 1000003; - h ^= Objects.hashCode(property); - h *= 1000003; - h ^= Objects.hashCode(dataStream); - return h; - } - - /** Builder for properties/{property}/dataStreams/{data_stream}. */ - public static class Builder { - private String property; - private String dataStream; - - protected Builder() {} - - public String getProperty() { - return property; - } - - public String getDataStream() { - return dataStream; - } - - public Builder setProperty(String property) { - this.property = property; - return this; - } - - public Builder setDataStream(String dataStream) { - this.dataStream = dataStream; - return this; - } - - private Builder(DataStreamName dataStreamName) { - this.property = dataStreamName.property; - this.dataStream = dataStreamName.dataStream; - } - - public DataStreamName build() { - return new DataStreamName(this); - } - } -} diff --git a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataStreamOrBuilder.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataStreamOrBuilder.java deleted file mode 100644 index 30731d5d..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataStreamOrBuilder.java +++ /dev/null @@ -1,315 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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(); - - public com.google.analytics.admin.v1beta.DataStream.StreamDataCase getStreamDataCase(); -} diff --git a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeleteAccountRequest.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeleteAccountRequest.java deleted file mode 100644 index f84eeccd..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeleteAccountRequest.java +++ /dev/null @@ -1,644 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - 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(); - 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); - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.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_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - 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 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; - 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(); - 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; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeleteAccountRequestOrBuilder.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeleteAccountRequestOrBuilder.java deleted file mode 100644 index 41666700..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeleteAccountRequestOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeleteConversionEventRequest.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeleteConversionEventRequest.java deleted file mode 100644 index 634dfbba..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeleteConversionEventRequest.java +++ /dev/null @@ -1,649 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - 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(); - 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); - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.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_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - 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 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; - 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(); - 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; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeleteConversionEventRequestOrBuilder.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeleteConversionEventRequestOrBuilder.java deleted file mode 100644 index 59d7788e..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeleteConversionEventRequestOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeleteDataStreamRequest.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeleteDataStreamRequest.java deleted file mode 100644 index d165374a..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeleteDataStreamRequest.java +++ /dev/null @@ -1,637 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - 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(); - 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); - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.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_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - 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 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; - 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(); - 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; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeleteDataStreamRequestOrBuilder.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeleteDataStreamRequestOrBuilder.java deleted file mode 100644 index 58b8f635..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeleteDataStreamRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeleteFirebaseLinkRequest.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeleteFirebaseLinkRequest.java deleted file mode 100644 index 55aec843..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeleteFirebaseLinkRequest.java +++ /dev/null @@ -1,637 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - 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(); - 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); - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.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_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - 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 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; - 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(); - 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; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeleteFirebaseLinkRequestOrBuilder.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeleteFirebaseLinkRequestOrBuilder.java deleted file mode 100644 index a79f08c7..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeleteFirebaseLinkRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeleteGoogleAdsLinkRequest.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeleteGoogleAdsLinkRequest.java deleted file mode 100644 index 59a7d610..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeleteGoogleAdsLinkRequest.java +++ /dev/null @@ -1,633 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - 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(); - 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); - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.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_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - 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 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; - 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(); - 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; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeleteGoogleAdsLinkRequestOrBuilder.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeleteGoogleAdsLinkRequestOrBuilder.java deleted file mode 100644 index ad68b6f2..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeleteGoogleAdsLinkRequestOrBuilder.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeleteMeasurementProtocolSecretRequest.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeleteMeasurementProtocolSecretRequest.java deleted file mode 100644 index f733d1f9..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeleteMeasurementProtocolSecretRequest.java +++ /dev/null @@ -1,661 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - 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(); - 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); - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof com.google.analytics.admin.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_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - 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 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; - 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(); - 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; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeleteMeasurementProtocolSecretRequestOrBuilder.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeleteMeasurementProtocolSecretRequestOrBuilder.java deleted file mode 100644 index 20d7012f..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeleteMeasurementProtocolSecretRequestOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeletePropertyRequest.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeletePropertyRequest.java deleted file mode 100644 index fcd34ee3..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeletePropertyRequest.java +++ /dev/null @@ -1,644 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - 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(); - 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); - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.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_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - 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 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; - 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(); - 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; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeletePropertyRequestOrBuilder.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeletePropertyRequestOrBuilder.java deleted file mode 100644 index 6157f1ff..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeletePropertyRequestOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/FirebaseLink.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/FirebaseLink.java deleted file mode 100644 index 7d094656..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/FirebaseLink.java +++ /dev/null @@ -1,1111 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - 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; - 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 getCreateTime(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 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(); - name_ = ""; - - project_ = ""; - - if (createTimeBuilder_ == null) { - createTime_ = null; - } else { - createTime_ = null; - 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); - result.name_ = name_; - result.project_ = project_; - if (createTimeBuilder_ == null) { - result.createTime_ = createTime_; - } else { - result.createTime_ = createTimeBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.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_; - onChanged(); - } - if (!other.getProject().isEmpty()) { - project_ = other.project_; - 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(); - - break; - } // case 10 - case 18: - { - project_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: - { - input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - - 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 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; - 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(); - 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; - 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; - 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(); - 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; - 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 createTimeBuilder_ != null || 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. - */ - 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; - onChanged(); - } else { - createTimeBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - createTimeBuilder_.setMessage(builderForValue.build()); - } - - 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 (createTime_ != null) { - createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); - } else { - createTime_ = value; - } - onChanged(); - } else { - createTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Output only. Time when this FirebaseLink was originally created.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearCreateTime() { - if (createTimeBuilder_ == null) { - createTime_ = null; - onChanged(); - } else { - createTime_ = null; - createTimeBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Output only. Time when this FirebaseLink was originally created.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - - 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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/FirebaseLinkName.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/FirebaseLinkName.java deleted file mode 100644 index 7a654a32..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/FirebaseLinkName.java +++ /dev/null @@ -1,192 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 com.google.api.pathtemplate.PathTemplate; -import com.google.api.resourcenames.ResourceName; -import com.google.common.base.Preconditions; -import com.google.common.collect.ImmutableMap; -import java.util.ArrayList; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -@Generated("by gapic-generator-java") -public class FirebaseLinkName implements ResourceName { - private static final PathTemplate PROPERTY_FIREBASE_LINK = - PathTemplate.createWithoutUrlEncoding("properties/{property}/firebaseLinks/{firebase_link}"); - private volatile Map fieldValuesMap; - private final String property; - private final String firebaseLink; - - @Deprecated - protected FirebaseLinkName() { - property = null; - firebaseLink = null; - } - - private FirebaseLinkName(Builder builder) { - property = Preconditions.checkNotNull(builder.getProperty()); - firebaseLink = Preconditions.checkNotNull(builder.getFirebaseLink()); - } - - public String getProperty() { - return property; - } - - public String getFirebaseLink() { - return firebaseLink; - } - - public static Builder newBuilder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder(this); - } - - public static FirebaseLinkName of(String property, String firebaseLink) { - return newBuilder().setProperty(property).setFirebaseLink(firebaseLink).build(); - } - - public static String format(String property, String firebaseLink) { - return newBuilder().setProperty(property).setFirebaseLink(firebaseLink).build().toString(); - } - - public static FirebaseLinkName parse(String formattedString) { - if (formattedString.isEmpty()) { - return null; - } - Map matchMap = - PROPERTY_FIREBASE_LINK.validatedMatch( - formattedString, "FirebaseLinkName.parse: formattedString not in valid format"); - return of(matchMap.get("property"), matchMap.get("firebase_link")); - } - - public static List parseList(List formattedStrings) { - List list = new ArrayList<>(formattedStrings.size()); - for (String formattedString : formattedStrings) { - list.add(parse(formattedString)); - } - return list; - } - - public static List toStringList(List values) { - List list = new ArrayList<>(values.size()); - for (FirebaseLinkName value : values) { - if (value == null) { - list.add(""); - } else { - list.add(value.toString()); - } - } - return list; - } - - public static boolean isParsableFrom(String formattedString) { - return PROPERTY_FIREBASE_LINK.matches(formattedString); - } - - @Override - public Map getFieldValuesMap() { - if (fieldValuesMap == null) { - synchronized (this) { - if (fieldValuesMap == null) { - ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); - if (property != null) { - fieldMapBuilder.put("property", property); - } - if (firebaseLink != null) { - fieldMapBuilder.put("firebase_link", firebaseLink); - } - fieldValuesMap = fieldMapBuilder.build(); - } - } - } - return fieldValuesMap; - } - - public String getFieldValue(String fieldName) { - return getFieldValuesMap().get(fieldName); - } - - @Override - public String toString() { - return PROPERTY_FIREBASE_LINK.instantiate("property", property, "firebase_link", firebaseLink); - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (o != null || getClass() == o.getClass()) { - FirebaseLinkName that = ((FirebaseLinkName) o); - return Objects.equals(this.property, that.property) - && Objects.equals(this.firebaseLink, that.firebaseLink); - } - return false; - } - - @Override - public int hashCode() { - int h = 1; - h *= 1000003; - h ^= Objects.hashCode(property); - h *= 1000003; - h ^= Objects.hashCode(firebaseLink); - return h; - } - - /** Builder for properties/{property}/firebaseLinks/{firebase_link}. */ - public static class Builder { - private String property; - private String firebaseLink; - - protected Builder() {} - - public String getProperty() { - return property; - } - - public String getFirebaseLink() { - return firebaseLink; - } - - public Builder setProperty(String property) { - this.property = property; - return this; - } - - public Builder setFirebaseLink(String firebaseLink) { - this.firebaseLink = firebaseLink; - return this; - } - - private Builder(FirebaseLinkName firebaseLinkName) { - this.property = firebaseLinkName.property; - this.firebaseLink = firebaseLinkName.firebaseLink; - } - - public FirebaseLinkName build() { - return new FirebaseLinkName(this); - } - } -} diff --git a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/FirebaseLinkOrBuilder.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/FirebaseLinkOrBuilder.java deleted file mode 100644 index 86bae030..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/FirebaseLinkOrBuilder.java +++ /dev/null @@ -1,123 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetAccountRequest.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetAccountRequest.java deleted file mode 100644 index 1bf17142..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetAccountRequest.java +++ /dev/null @@ -1,643 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - 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(); - 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); - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.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_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - 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 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; - 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(); - 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; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetAccountRequestOrBuilder.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetAccountRequestOrBuilder.java deleted file mode 100644 index d618363f..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetAccountRequestOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetConversionEventRequest.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetConversionEventRequest.java deleted file mode 100644 index b92d1fa1..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetConversionEventRequest.java +++ /dev/null @@ -1,644 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - 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(); - 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); - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.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_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - 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 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; - 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(); - 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; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetConversionEventRequestOrBuilder.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetConversionEventRequestOrBuilder.java deleted file mode 100644 index fdd3c74c..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetConversionEventRequestOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetCustomDimensionRequest.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetCustomDimensionRequest.java deleted file mode 100644 index 922a5e33..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetCustomDimensionRequest.java +++ /dev/null @@ -1,637 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - 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(); - 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); - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.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_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - 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 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; - 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(); - 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; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetCustomDimensionRequestOrBuilder.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetCustomDimensionRequestOrBuilder.java deleted file mode 100644 index 2b670f37..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetCustomDimensionRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetCustomMetricRequest.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetCustomMetricRequest.java deleted file mode 100644 index a6f491fe..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetCustomMetricRequest.java +++ /dev/null @@ -1,637 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - 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(); - 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); - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.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_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - 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 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; - 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(); - 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; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetCustomMetricRequestOrBuilder.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetCustomMetricRequestOrBuilder.java deleted file mode 100644 index 6a34dd0c..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetCustomMetricRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetDataRetentionSettingsRequest.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetDataRetentionSettingsRequest.java deleted file mode 100644 index 52535d00..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetDataRetentionSettingsRequest.java +++ /dev/null @@ -1,660 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - 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(); - 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); - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.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_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - 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 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; - 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(); - 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; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetDataRetentionSettingsRequestOrBuilder.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetDataRetentionSettingsRequestOrBuilder.java deleted file mode 100644 index e4a28fc4..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetDataRetentionSettingsRequestOrBuilder.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetDataSharingSettingsRequest.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetDataSharingSettingsRequest.java deleted file mode 100644 index d54fa49f..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetDataSharingSettingsRequest.java +++ /dev/null @@ -1,650 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - 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(); - 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); - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.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_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - 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 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; - 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(); - 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; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetDataSharingSettingsRequestOrBuilder.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetDataSharingSettingsRequestOrBuilder.java deleted file mode 100644 index 19282a80..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetDataSharingSettingsRequestOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetDataStreamRequest.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetDataStreamRequest.java deleted file mode 100644 index c4dafef7..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetDataStreamRequest.java +++ /dev/null @@ -1,637 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - 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(); - 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); - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.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_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - 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 java.lang.Object name_ = ""; - /** - * - * - *
-     * Required. The name of the DataStream to get.
-     * Example format: properties/1234/dataStreams/5678
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The name of the DataStream to get.
-     * Example format: properties/1234/dataStreams/5678
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The name of the DataStream to get.
-     * Example format: properties/1234/dataStreams/5678
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The name of the DataStream to get.
-     * Example format: properties/1234/dataStreams/5678
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The name of the DataStream to get.
-     * Example format: properties/1234/dataStreams/5678
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetDataStreamRequestOrBuilder.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetDataStreamRequestOrBuilder.java deleted file mode 100644 index 52da04b1..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetDataStreamRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetMeasurementProtocolSecretRequest.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetMeasurementProtocolSecretRequest.java deleted file mode 100644 index 41d64bdf..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetMeasurementProtocolSecretRequest.java +++ /dev/null @@ -1,656 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - 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(); - 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); - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.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_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - 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 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; - 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(); - 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; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetMeasurementProtocolSecretRequestOrBuilder.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetMeasurementProtocolSecretRequestOrBuilder.java deleted file mode 100644 index a80e7791..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetMeasurementProtocolSecretRequestOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetPropertyRequest.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetPropertyRequest.java deleted file mode 100644 index dd0e2c90..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetPropertyRequest.java +++ /dev/null @@ -1,643 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - 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(); - 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); - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.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_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - 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 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; - 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(); - 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; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetPropertyRequestOrBuilder.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetPropertyRequestOrBuilder.java deleted file mode 100644 index 4b2fd57e..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetPropertyRequestOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GoogleAdsLink.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GoogleAdsLink.java deleted file mode 100644 index 24397209..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GoogleAdsLink.java +++ /dev/null @@ -1,1952 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - 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; - 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_; - /** - * - * - *
-   * 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 getAdsPersonalizationEnabled(); - } - - 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 getCreateTime(); - } - - 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 getUpdateTime(); - } - - public static final int CREATOR_EMAIL_ADDRESS_FIELD_NUMBER = 9; - 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(); - name_ = ""; - - customerId_ = ""; - - canManageClients_ = false; - - if (adsPersonalizationEnabledBuilder_ == null) { - adsPersonalizationEnabled_ = null; - } else { - adsPersonalizationEnabled_ = null; - adsPersonalizationEnabledBuilder_ = null; - } - if (createTimeBuilder_ == null) { - createTime_ = null; - } else { - createTime_ = null; - createTimeBuilder_ = null; - } - if (updateTimeBuilder_ == null) { - updateTime_ = null; - } else { - updateTime_ = null; - 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); - result.name_ = name_; - result.customerId_ = customerId_; - result.canManageClients_ = canManageClients_; - if (adsPersonalizationEnabledBuilder_ == null) { - result.adsPersonalizationEnabled_ = adsPersonalizationEnabled_; - } else { - result.adsPersonalizationEnabled_ = adsPersonalizationEnabledBuilder_.build(); - } - if (createTimeBuilder_ == null) { - result.createTime_ = createTime_; - } else { - result.createTime_ = createTimeBuilder_.build(); - } - if (updateTimeBuilder_ == null) { - result.updateTime_ = updateTime_; - } else { - result.updateTime_ = updateTimeBuilder_.build(); - } - result.creatorEmailAddress_ = creatorEmailAddress_; - 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.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_; - onChanged(); - } - if (!other.getCustomerId().isEmpty()) { - customerId_ = other.customerId_; - 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_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 26: - { - customerId_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 32: - { - canManageClients_ = input.readBool(); - - break; - } // case 32 - case 42: - { - input.readMessage( - getAdsPersonalizationEnabledFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 42 - case 58: - { - input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 58 - case 66: - { - input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 66 - case 74: - { - creatorEmailAddress_ = input.readStringRequireUtf8(); - - 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 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; - 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(); - 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; - 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; - 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(); - 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; - 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; - 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() { - - 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 adsPersonalizationEnabledBuilder_ != null || 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. - */ - 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; - onChanged(); - } else { - adsPersonalizationEnabledBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - adsPersonalizationEnabledBuilder_.setMessage(builderForValue.build()); - } - - 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 (adsPersonalizationEnabled_ != null) { - adsPersonalizationEnabled_ = - com.google.protobuf.BoolValue.newBuilder(adsPersonalizationEnabled_) - .mergeFrom(value) - .buildPartial(); - } else { - adsPersonalizationEnabled_ = value; - } - onChanged(); - } else { - adsPersonalizationEnabledBuilder_.mergeFrom(value); - } - - 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() { - if (adsPersonalizationEnabledBuilder_ == null) { - adsPersonalizationEnabled_ = null; - onChanged(); - } else { - adsPersonalizationEnabled_ = null; - adsPersonalizationEnabledBuilder_ = null; - } - - 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() { - - 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 createTimeBuilder_ != null || 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. - */ - 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; - onChanged(); - } else { - createTimeBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - createTimeBuilder_.setMessage(builderForValue.build()); - } - - 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 (createTime_ != null) { - createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); - } else { - createTime_ = value; - } - onChanged(); - } else { - createTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Output only. Time when this link was originally created.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearCreateTime() { - if (createTimeBuilder_ == null) { - createTime_ = null; - onChanged(); - } else { - createTime_ = null; - createTimeBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Output only. Time when this link was originally created.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - - 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 updateTimeBuilder_ != null || 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. - */ - 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; - onChanged(); - } else { - updateTimeBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - updateTimeBuilder_.setMessage(builderForValue.build()); - } - - 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 (updateTime_ != null) { - updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); - } else { - updateTime_ = value; - } - onChanged(); - } else { - updateTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Output only. Time when this link was last updated.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearUpdateTime() { - if (updateTimeBuilder_ == null) { - updateTime_ = null; - onChanged(); - } else { - updateTime_ = null; - updateTimeBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Output only. Time when this link was last updated.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - - 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; - 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(); - 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; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GoogleAdsLinkName.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GoogleAdsLinkName.java deleted file mode 100644 index e583cdba..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GoogleAdsLinkName.java +++ /dev/null @@ -1,194 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 com.google.api.pathtemplate.PathTemplate; -import com.google.api.resourcenames.ResourceName; -import com.google.common.base.Preconditions; -import com.google.common.collect.ImmutableMap; -import java.util.ArrayList; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -@Generated("by gapic-generator-java") -public class GoogleAdsLinkName implements ResourceName { - private static final PathTemplate PROPERTY_GOOGLE_ADS_LINK = - PathTemplate.createWithoutUrlEncoding( - "properties/{property}/googleAdsLinks/{google_ads_link}"); - private volatile Map fieldValuesMap; - private final String property; - private final String googleAdsLink; - - @Deprecated - protected GoogleAdsLinkName() { - property = null; - googleAdsLink = null; - } - - private GoogleAdsLinkName(Builder builder) { - property = Preconditions.checkNotNull(builder.getProperty()); - googleAdsLink = Preconditions.checkNotNull(builder.getGoogleAdsLink()); - } - - public String getProperty() { - return property; - } - - public String getGoogleAdsLink() { - return googleAdsLink; - } - - public static Builder newBuilder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder(this); - } - - public static GoogleAdsLinkName of(String property, String googleAdsLink) { - return newBuilder().setProperty(property).setGoogleAdsLink(googleAdsLink).build(); - } - - public static String format(String property, String googleAdsLink) { - return newBuilder().setProperty(property).setGoogleAdsLink(googleAdsLink).build().toString(); - } - - public static GoogleAdsLinkName parse(String formattedString) { - if (formattedString.isEmpty()) { - return null; - } - Map matchMap = - PROPERTY_GOOGLE_ADS_LINK.validatedMatch( - formattedString, "GoogleAdsLinkName.parse: formattedString not in valid format"); - return of(matchMap.get("property"), matchMap.get("google_ads_link")); - } - - public static List parseList(List formattedStrings) { - List list = new ArrayList<>(formattedStrings.size()); - for (String formattedString : formattedStrings) { - list.add(parse(formattedString)); - } - return list; - } - - public static List toStringList(List values) { - List list = new ArrayList<>(values.size()); - for (GoogleAdsLinkName value : values) { - if (value == null) { - list.add(""); - } else { - list.add(value.toString()); - } - } - return list; - } - - public static boolean isParsableFrom(String formattedString) { - return PROPERTY_GOOGLE_ADS_LINK.matches(formattedString); - } - - @Override - public Map getFieldValuesMap() { - if (fieldValuesMap == null) { - synchronized (this) { - if (fieldValuesMap == null) { - ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); - if (property != null) { - fieldMapBuilder.put("property", property); - } - if (googleAdsLink != null) { - fieldMapBuilder.put("google_ads_link", googleAdsLink); - } - fieldValuesMap = fieldMapBuilder.build(); - } - } - } - return fieldValuesMap; - } - - public String getFieldValue(String fieldName) { - return getFieldValuesMap().get(fieldName); - } - - @Override - public String toString() { - return PROPERTY_GOOGLE_ADS_LINK.instantiate( - "property", property, "google_ads_link", googleAdsLink); - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (o != null || getClass() == o.getClass()) { - GoogleAdsLinkName that = ((GoogleAdsLinkName) o); - return Objects.equals(this.property, that.property) - && Objects.equals(this.googleAdsLink, that.googleAdsLink); - } - return false; - } - - @Override - public int hashCode() { - int h = 1; - h *= 1000003; - h ^= Objects.hashCode(property); - h *= 1000003; - h ^= Objects.hashCode(googleAdsLink); - return h; - } - - /** Builder for properties/{property}/googleAdsLinks/{google_ads_link}. */ - public static class Builder { - private String property; - private String googleAdsLink; - - protected Builder() {} - - public String getProperty() { - return property; - } - - public String getGoogleAdsLink() { - return googleAdsLink; - } - - public Builder setProperty(String property) { - this.property = property; - return this; - } - - public Builder setGoogleAdsLink(String googleAdsLink) { - this.googleAdsLink = googleAdsLink; - return this; - } - - private Builder(GoogleAdsLinkName googleAdsLinkName) { - this.property = googleAdsLinkName.property; - this.googleAdsLink = googleAdsLinkName.googleAdsLink; - } - - public GoogleAdsLinkName build() { - return new GoogleAdsLinkName(this); - } - } -} diff --git a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GoogleAdsLinkOrBuilder.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GoogleAdsLinkOrBuilder.java deleted file mode 100644 index f6a3bc59..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GoogleAdsLinkOrBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/IndustryCategory.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/IndustryCategory.java deleted file mode 100644 index a20d0eb8..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/IndustryCategory.java +++ /dev/null @@ -1,704 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListAccountSummariesRequest.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListAccountSummariesRequest.java deleted file mode 100644 index 21dfe49e..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListAccountSummariesRequest.java +++ /dev/null @@ -1,743 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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_; - /** - * - * - *
-   * 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; - 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(); - 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); - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.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_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == 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(); - - break; - } // case 8 - case 18: - { - pageToken_ = input.readStringRequireUtf8(); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - 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; - 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() { - - 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; - 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(); - 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; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListAccountSummariesRequestOrBuilder.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListAccountSummariesRequestOrBuilder.java deleted file mode 100644 index ab103473..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListAccountSummariesRequestOrBuilder.java +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListAccountSummariesResponse.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListAccountSummariesResponse.java deleted file mode 100644 index 73be2844..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListAccountSummariesResponse.java +++ /dev/null @@ -1,1132 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - 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; - 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(); - 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); - int from_bitField0_ = bitField0_; - if (accountSummariesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - accountSummaries_ = java.util.Collections.unmodifiableList(accountSummaries_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.accountSummaries_ = accountSummaries_; - } else { - result.accountSummaries_ = accountSummariesBuilder_.build(); - } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.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_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // 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; - onChanged(); - return this; - } - /** - * - * - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * - * @return This builder for chaining. - */ - public Builder clearNextPageToken() { - - nextPageToken_ = getDefaultInstance().getNextPageToken(); - onChanged(); - return this; - } - /** - * - * - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * - * @param value The bytes for nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - nextPageToken_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListAccountSummariesResponseOrBuilder.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListAccountSummariesResponseOrBuilder.java deleted file mode 100644 index d5f1f9b6..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListAccountSummariesResponseOrBuilder.java +++ /dev/null @@ -1,104 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListAccountsRequest.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListAccountsRequest.java deleted file mode 100644 index 4842f315..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListAccountsRequest.java +++ /dev/null @@ -1,839 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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_; - /** - * - * - *
-   * 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; - 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_; - /** - * - * - *
-   * 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(); - 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); - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; - result.showDeleted_ = showDeleted_; - 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.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_; - 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(); - - break; - } // case 8 - case 18: - { - pageToken_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 24: - { - showDeleted_ = input.readBool(); - - 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 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; - 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() { - - 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; - 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(); - 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; - 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; - 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() { - - 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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListAccountsRequestOrBuilder.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListAccountsRequestOrBuilder.java deleted file mode 100644 index 5e8c093c..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListAccountsRequestOrBuilder.java +++ /dev/null @@ -1,87 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListAccountsResponse.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListAccountsResponse.java deleted file mode 100644 index 07b33f0b..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListAccountsResponse.java +++ /dev/null @@ -1,1112 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - 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; - 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(); - 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); - int from_bitField0_ = bitField0_; - if (accountsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - accounts_ = java.util.Collections.unmodifiableList(accounts_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.accounts_ = accounts_; - } else { - result.accounts_ = accountsBuilder_.build(); - } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.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_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // 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; - onChanged(); - return this; - } - /** - * - * - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * - * @return This builder for chaining. - */ - public Builder clearNextPageToken() { - - nextPageToken_ = getDefaultInstance().getNextPageToken(); - onChanged(); - return this; - } - /** - * - * - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * - * @param value The bytes for nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - nextPageToken_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListAccountsResponseOrBuilder.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListAccountsResponseOrBuilder.java deleted file mode 100644 index dcfa3cf7..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListAccountsResponseOrBuilder.java +++ /dev/null @@ -1,104 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListConversionEventsRequest.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListConversionEventsRequest.java deleted file mode 100644 index fd272894..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListConversionEventsRequest.java +++ /dev/null @@ -1,938 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - 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_; - /** - * - * - *
-   * The maximum number of resources to return.
-   * If unspecified, at most 50 resources will be returned.
-   * The maximum value is 200; (higher values will be coerced to the maximum)
-   * 
- * - * int32 page_size = 2; - * - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - - public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - private volatile java.lang.Object pageToken_; - /** - * - * - *
-   * A page token, received from a previous `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(); - 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); - result.parent_ = parent_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.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_; - onChanged(); - } - if (other.getPageSize() != 0) { - setPageSize(other.getPageSize()); - } - if (!other.getPageToken().isEmpty()) { - pageToken_ = other.pageToken_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - - 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 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; - 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(); - 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; - onChanged(); - return this; - } - - private int pageSize_; - /** - * - * - *
-     * The maximum number of resources to return.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200; (higher values will be coerced to the maximum)
-     * 
- * - * int32 page_size = 2; - * - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - /** - * - * - *
-     * The maximum number of resources to return.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200; (higher values will be coerced to the maximum)
-     * 
- * - * int32 page_size = 2; - * - * @param value The pageSize to set. - * @return This builder for chaining. - */ - public Builder setPageSize(int value) { - - pageSize_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The maximum number of resources to return.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200; (higher values will be coerced to the maximum)
-     * 
- * - * int32 page_size = 2; - * - * @return This builder for chaining. - */ - public Builder clearPageSize() { - - pageSize_ = 0; - onChanged(); - return this; - } - - private java.lang.Object pageToken_ = ""; - /** - * - * - *
-     * A page token, received from a previous `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; - 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(); - 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; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListConversionEventsRequestOrBuilder.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListConversionEventsRequestOrBuilder.java deleted file mode 100644 index 3a4645c3..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListConversionEventsRequestOrBuilder.java +++ /dev/null @@ -1,102 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListConversionEventsResponse.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListConversionEventsResponse.java deleted file mode 100644 index 4bd79e0b..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListConversionEventsResponse.java +++ /dev/null @@ -1,1133 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - 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; - 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(); - 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); - int from_bitField0_ = bitField0_; - if (conversionEventsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - conversionEvents_ = java.util.Collections.unmodifiableList(conversionEvents_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.conversionEvents_ = conversionEvents_; - } else { - result.conversionEvents_ = conversionEventsBuilder_.build(); - } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.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_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // 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; - onChanged(); - return this; - } - /** - * - * - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * - * @return This builder for chaining. - */ - public Builder clearNextPageToken() { - - nextPageToken_ = getDefaultInstance().getNextPageToken(); - onChanged(); - return this; - } - /** - * - * - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * - * @param value The bytes for nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - nextPageToken_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListConversionEventsResponseOrBuilder.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListConversionEventsResponseOrBuilder.java deleted file mode 100644 index a12e3dd8..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListConversionEventsResponseOrBuilder.java +++ /dev/null @@ -1,105 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListCustomDimensionsRequest.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListCustomDimensionsRequest.java deleted file mode 100644 index e880e795..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListCustomDimensionsRequest.java +++ /dev/null @@ -1,931 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - private volatile java.lang.Object parent_; - /** - * - * - *
-   * Required. Example format: properties/1234
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - * - * - *
-   * Required. Example format: properties/1234
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PAGE_SIZE_FIELD_NUMBER = 2; - private int pageSize_; - /** - * - * - *
-   * The maximum number of resources to return.
-   * If unspecified, at most 50 resources will be returned.
-   * The maximum value is 200 (higher values will be coerced to the maximum).
-   * 
- * - * int32 page_size = 2; - * - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - - public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - private volatile java.lang.Object pageToken_; - /** - * - * - *
-   * A page token, received from a previous `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(); - 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); - result.parent_ = parent_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.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_; - onChanged(); - } - if (other.getPageSize() != 0) { - setPageSize(other.getPageSize()); - } - if (!other.getPageToken().isEmpty()) { - pageToken_ = other.pageToken_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - - 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 java.lang.Object parent_ = ""; - /** - * - * - *
-     * Required. Example format: properties/1234
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. Example format: properties/1234
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. Example format: properties/1234
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - parent_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Example format: properties/1234
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearParent() { - - parent_ = getDefaultInstance().getParent(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Example format: properties/1234
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - parent_ = value; - onChanged(); - return this; - } - - private int pageSize_; - /** - * - * - *
-     * The maximum number of resources to return.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200 (higher values will be coerced to the maximum).
-     * 
- * - * int32 page_size = 2; - * - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - /** - * - * - *
-     * The maximum number of resources to return.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200 (higher values will be coerced to the maximum).
-     * 
- * - * int32 page_size = 2; - * - * @param value The pageSize to set. - * @return This builder for chaining. - */ - public Builder setPageSize(int value) { - - pageSize_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The maximum number of resources to return.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200 (higher values will be coerced to the maximum).
-     * 
- * - * int32 page_size = 2; - * - * @return This builder for chaining. - */ - public Builder clearPageSize() { - - pageSize_ = 0; - onChanged(); - return this; - } - - private java.lang.Object pageToken_ = ""; - /** - * - * - *
-     * A page token, received from a previous `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; - 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(); - 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; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListCustomDimensionsRequestOrBuilder.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListCustomDimensionsRequestOrBuilder.java deleted file mode 100644 index db163958..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListCustomDimensionsRequestOrBuilder.java +++ /dev/null @@ -1,100 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListCustomDimensionsResponse.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListCustomDimensionsResponse.java deleted file mode 100644 index afdb3a74..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListCustomDimensionsResponse.java +++ /dev/null @@ -1,1133 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - 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; - 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(); - 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); - int from_bitField0_ = bitField0_; - if (customDimensionsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - customDimensions_ = java.util.Collections.unmodifiableList(customDimensions_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.customDimensions_ = customDimensions_; - } else { - result.customDimensions_ = customDimensionsBuilder_.build(); - } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.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_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // 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; - onChanged(); - return this; - } - /** - * - * - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * - * @return This builder for chaining. - */ - public Builder clearNextPageToken() { - - nextPageToken_ = getDefaultInstance().getNextPageToken(); - onChanged(); - return this; - } - /** - * - * - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * - * @param value The bytes for nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - nextPageToken_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListCustomDimensionsResponseOrBuilder.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListCustomDimensionsResponseOrBuilder.java deleted file mode 100644 index 4af913b0..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListCustomDimensionsResponseOrBuilder.java +++ /dev/null @@ -1,105 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListCustomMetricsRequest.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListCustomMetricsRequest.java deleted file mode 100644 index 6e3239a2..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListCustomMetricsRequest.java +++ /dev/null @@ -1,928 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - private volatile java.lang.Object parent_; - /** - * - * - *
-   * Required. Example format: properties/1234
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - * - * - *
-   * Required. Example format: properties/1234
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PAGE_SIZE_FIELD_NUMBER = 2; - private int pageSize_; - /** - * - * - *
-   * The maximum number of resources to return.
-   * If unspecified, at most 50 resources will be returned.
-   * The maximum value is 200 (higher values will be coerced to the maximum).
-   * 
- * - * int32 page_size = 2; - * - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - - public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - private volatile java.lang.Object pageToken_; - /** - * - * - *
-   * A page token, received from a previous `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(); - 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); - result.parent_ = parent_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.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_; - onChanged(); - } - if (other.getPageSize() != 0) { - setPageSize(other.getPageSize()); - } - if (!other.getPageToken().isEmpty()) { - pageToken_ = other.pageToken_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - - 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 java.lang.Object parent_ = ""; - /** - * - * - *
-     * Required. Example format: properties/1234
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. Example format: properties/1234
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. Example format: properties/1234
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - parent_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Example format: properties/1234
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearParent() { - - parent_ = getDefaultInstance().getParent(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Example format: properties/1234
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - parent_ = value; - onChanged(); - return this; - } - - private int pageSize_; - /** - * - * - *
-     * The maximum number of resources to return.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200 (higher values will be coerced to the maximum).
-     * 
- * - * int32 page_size = 2; - * - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - /** - * - * - *
-     * The maximum number of resources to return.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200 (higher values will be coerced to the maximum).
-     * 
- * - * int32 page_size = 2; - * - * @param value The pageSize to set. - * @return This builder for chaining. - */ - public Builder setPageSize(int value) { - - pageSize_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The maximum number of resources to return.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200 (higher values will be coerced to the maximum).
-     * 
- * - * int32 page_size = 2; - * - * @return This builder for chaining. - */ - public Builder clearPageSize() { - - pageSize_ = 0; - onChanged(); - return this; - } - - private java.lang.Object pageToken_ = ""; - /** - * - * - *
-     * A page token, received from a previous `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; - 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(); - 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; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListCustomMetricsRequestOrBuilder.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListCustomMetricsRequestOrBuilder.java deleted file mode 100644 index d1949dfd..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListCustomMetricsRequestOrBuilder.java +++ /dev/null @@ -1,100 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListCustomMetricsResponse.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListCustomMetricsResponse.java deleted file mode 100644 index af88d9d9..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListCustomMetricsResponse.java +++ /dev/null @@ -1,1123 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - 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; - 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(); - 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); - int from_bitField0_ = bitField0_; - if (customMetricsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - customMetrics_ = java.util.Collections.unmodifiableList(customMetrics_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.customMetrics_ = customMetrics_; - } else { - result.customMetrics_ = customMetricsBuilder_.build(); - } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.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_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // 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; - onChanged(); - return this; - } - /** - * - * - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * - * @return This builder for chaining. - */ - public Builder clearNextPageToken() { - - nextPageToken_ = getDefaultInstance().getNextPageToken(); - onChanged(); - return this; - } - /** - * - * - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * - * @param value The bytes for nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - nextPageToken_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListCustomMetricsResponseOrBuilder.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListCustomMetricsResponseOrBuilder.java deleted file mode 100644 index f46ad12c..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListCustomMetricsResponseOrBuilder.java +++ /dev/null @@ -1,104 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListDataStreamsRequest.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListDataStreamsRequest.java deleted file mode 100644 index fa63ec6d..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListDataStreamsRequest.java +++ /dev/null @@ -1,928 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - private volatile java.lang.Object parent_; - /** - * - * - *
-   * Required. Example format: properties/1234
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - * - * - *
-   * Required. Example format: properties/1234
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PAGE_SIZE_FIELD_NUMBER = 2; - private int pageSize_; - /** - * - * - *
-   * The maximum number of resources to return.
-   * If unspecified, at most 50 resources will be returned.
-   * The maximum value is 200 (higher values will be coerced to the maximum).
-   * 
- * - * int32 page_size = 2; - * - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - - public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - private volatile java.lang.Object pageToken_; - /** - * - * - *
-   * A page token, received from a previous `ListDataStreams` call.
-   * Provide this to retrieve the subsequent page.
-   * When paginating, all other parameters provided to `ListDataStreams` must
-   * match the call that provided the page token.
-   * 
- * - * string page_token = 3; - * - * @return The pageToken. - */ - @java.lang.Override - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } - } - /** - * - * - *
-   * A page token, received from a previous `ListDataStreams` call.
-   * Provide this to retrieve the subsequent page.
-   * When paginating, all other parameters provided to `ListDataStreams` must
-   * match the call that provided the page token.
-   * 
- * - * string page_token = 3; - * - * @return The bytes for pageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (pageSize_ != 0) { - output.writeInt32(2, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); - } - getUnknownFields().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(); - 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); - result.parent_ = parent_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.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_; - onChanged(); - } - if (other.getPageSize() != 0) { - setPageSize(other.getPageSize()); - } - if (!other.getPageToken().isEmpty()) { - pageToken_ = other.pageToken_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - - 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 java.lang.Object parent_ = ""; - /** - * - * - *
-     * Required. Example format: properties/1234
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. Example format: properties/1234
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. Example format: properties/1234
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - parent_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Example format: properties/1234
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearParent() { - - parent_ = getDefaultInstance().getParent(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Example format: properties/1234
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - parent_ = value; - onChanged(); - return this; - } - - private int pageSize_; - /** - * - * - *
-     * The maximum number of resources to return.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200 (higher values will be coerced to the maximum).
-     * 
- * - * int32 page_size = 2; - * - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - /** - * - * - *
-     * The maximum number of resources to return.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200 (higher values will be coerced to the maximum).
-     * 
- * - * int32 page_size = 2; - * - * @param value The pageSize to set. - * @return This builder for chaining. - */ - public Builder setPageSize(int value) { - - pageSize_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The maximum number of resources to return.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200 (higher values will be coerced to the maximum).
-     * 
- * - * int32 page_size = 2; - * - * @return This builder for chaining. - */ - public Builder clearPageSize() { - - pageSize_ = 0; - onChanged(); - return this; - } - - private java.lang.Object pageToken_ = ""; - /** - * - * - *
-     * A page token, received from a previous `ListDataStreams` call.
-     * Provide this to retrieve the subsequent page.
-     * When paginating, all other parameters provided to `ListDataStreams` must
-     * match the call that provided the page token.
-     * 
- * - * string page_token = 3; - * - * @return The pageToken. - */ - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * A page token, received from a previous `ListDataStreams` call.
-     * Provide this to retrieve the subsequent page.
-     * When paginating, all other parameters provided to `ListDataStreams` must
-     * match the call that provided the page token.
-     * 
- * - * string page_token = 3; - * - * @return The bytes for pageToken. - */ - public com.google.protobuf.ByteString getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * A page token, received from a previous `ListDataStreams` call.
-     * Provide this to retrieve the subsequent page.
-     * When paginating, all other parameters provided to `ListDataStreams` must
-     * match the call that provided the page token.
-     * 
- * - * string page_token = 3; - * - * @param value The pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - pageToken_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * A page token, received from a previous `ListDataStreams` call.
-     * Provide this to retrieve the subsequent page.
-     * When paginating, all other parameters provided to `ListDataStreams` must
-     * match the call that provided the page token.
-     * 
- * - * string page_token = 3; - * - * @return This builder for chaining. - */ - public Builder clearPageToken() { - - pageToken_ = getDefaultInstance().getPageToken(); - onChanged(); - return this; - } - /** - * - * - *
-     * A page token, received from a previous `ListDataStreams` call.
-     * Provide this to retrieve the subsequent page.
-     * When paginating, all other parameters provided to `ListDataStreams` must
-     * match the call that provided the page token.
-     * 
- * - * string page_token = 3; - * - * @param value The bytes for pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - pageToken_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListDataStreamsRequestOrBuilder.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListDataStreamsRequestOrBuilder.java deleted file mode 100644 index a35523bb..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListDataStreamsRequestOrBuilder.java +++ /dev/null @@ -1,100 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListDataStreamsResponse.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListDataStreamsResponse.java deleted file mode 100644 index c33aa986..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListDataStreamsResponse.java +++ /dev/null @@ -1,1115 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - 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; - 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(); - 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); - int from_bitField0_ = bitField0_; - if (dataStreamsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - dataStreams_ = java.util.Collections.unmodifiableList(dataStreams_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.dataStreams_ = dataStreams_; - } else { - result.dataStreams_ = dataStreamsBuilder_.build(); - } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.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_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // 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; - onChanged(); - return this; - } - /** - * - * - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * - * @return This builder for chaining. - */ - public Builder clearNextPageToken() { - - nextPageToken_ = getDefaultInstance().getNextPageToken(); - onChanged(); - return this; - } - /** - * - * - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * - * @param value The bytes for nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - nextPageToken_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListDataStreamsResponseOrBuilder.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListDataStreamsResponseOrBuilder.java deleted file mode 100644 index ac945433..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListDataStreamsResponseOrBuilder.java +++ /dev/null @@ -1,104 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListFirebaseLinksRequest.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListFirebaseLinksRequest.java deleted file mode 100644 index 1ff55eac..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListFirebaseLinksRequest.java +++ /dev/null @@ -1,939 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - 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_; - /** - * - * - *
-   * 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; - 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 `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 `ListFirebaseLinks` 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; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 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(); - 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); - result.parent_ = parent_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.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_; - onChanged(); - } - if (other.getPageSize() != 0) { - setPageSize(other.getPageSize()); - } - if (!other.getPageToken().isEmpty()) { - pageToken_ = other.pageToken_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - - 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 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; - 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(); - 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; - 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; - 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() { - - 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 `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 `ListFirebaseLinks` 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 `ListFirebaseLinks` 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; - 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 `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(); - 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 `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; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListFirebaseLinksRequestOrBuilder.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListFirebaseLinksRequestOrBuilder.java deleted file mode 100644 index 1ec86b50..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListFirebaseLinksRequestOrBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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 `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 `ListFirebaseLinks` 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(); -} diff --git a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListFirebaseLinksResponse.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListFirebaseLinksResponse.java deleted file mode 100644 index ead1f17c..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListFirebaseLinksResponse.java +++ /dev/null @@ -1,1137 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - 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; - 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(); - 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); - int from_bitField0_ = bitField0_; - if (firebaseLinksBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - firebaseLinks_ = java.util.Collections.unmodifiableList(firebaseLinks_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.firebaseLinks_ = firebaseLinks_; - } else { - result.firebaseLinks_ = firebaseLinksBuilder_.build(); - } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.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_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // 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; - 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(); - 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; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListFirebaseLinksResponseOrBuilder.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListFirebaseLinksResponseOrBuilder.java deleted file mode 100644 index 6a331f61..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListFirebaseLinksResponseOrBuilder.java +++ /dev/null @@ -1,108 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListGoogleAdsLinksRequest.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListGoogleAdsLinksRequest.java deleted file mode 100644 index 1b04bb64..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListGoogleAdsLinksRequest.java +++ /dev/null @@ -1,928 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - private volatile java.lang.Object parent_; - /** - * - * - *
-   * Required. Example format: properties/1234
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - * - * - *
-   * Required. Example format: properties/1234
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PAGE_SIZE_FIELD_NUMBER = 2; - private int pageSize_; - /** - * - * - *
-   * The maximum number of resources to return.
-   * If unspecified, at most 50 resources will be returned.
-   * The maximum value is 200 (higher values will be coerced to the maximum).
-   * 
- * - * int32 page_size = 2; - * - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - - public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - private volatile java.lang.Object pageToken_; - /** - * - * - *
-   * A page token, received from a previous `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(); - 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); - result.parent_ = parent_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.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_; - onChanged(); - } - if (other.getPageSize() != 0) { - setPageSize(other.getPageSize()); - } - if (!other.getPageToken().isEmpty()) { - pageToken_ = other.pageToken_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - - 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 java.lang.Object parent_ = ""; - /** - * - * - *
-     * Required. Example format: properties/1234
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. Example format: properties/1234
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. Example format: properties/1234
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - parent_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Example format: properties/1234
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearParent() { - - parent_ = getDefaultInstance().getParent(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Example format: properties/1234
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - parent_ = value; - onChanged(); - return this; - } - - private int pageSize_; - /** - * - * - *
-     * The maximum number of resources to return.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200 (higher values will be coerced to the maximum).
-     * 
- * - * int32 page_size = 2; - * - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - /** - * - * - *
-     * The maximum number of resources to return.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200 (higher values will be coerced to the maximum).
-     * 
- * - * int32 page_size = 2; - * - * @param value The pageSize to set. - * @return This builder for chaining. - */ - public Builder setPageSize(int value) { - - pageSize_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The maximum number of resources to return.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200 (higher values will be coerced to the maximum).
-     * 
- * - * int32 page_size = 2; - * - * @return This builder for chaining. - */ - public Builder clearPageSize() { - - pageSize_ = 0; - onChanged(); - return this; - } - - private java.lang.Object pageToken_ = ""; - /** - * - * - *
-     * A page token, received from a previous `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; - 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(); - 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; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListGoogleAdsLinksRequestOrBuilder.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListGoogleAdsLinksRequestOrBuilder.java deleted file mode 100644 index 5eb2f6f9..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListGoogleAdsLinksRequestOrBuilder.java +++ /dev/null @@ -1,100 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListGoogleAdsLinksResponse.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListGoogleAdsLinksResponse.java deleted file mode 100644 index 47ca526a..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListGoogleAdsLinksResponse.java +++ /dev/null @@ -1,1128 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - 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; - 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(); - 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); - int from_bitField0_ = bitField0_; - if (googleAdsLinksBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - googleAdsLinks_ = java.util.Collections.unmodifiableList(googleAdsLinks_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.googleAdsLinks_ = googleAdsLinks_; - } else { - result.googleAdsLinks_ = googleAdsLinksBuilder_.build(); - } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.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_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // 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; - onChanged(); - return this; - } - /** - * - * - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * - * @return This builder for chaining. - */ - public Builder clearNextPageToken() { - - nextPageToken_ = getDefaultInstance().getNextPageToken(); - onChanged(); - return this; - } - /** - * - * - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * - * @param value The bytes for nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - nextPageToken_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListGoogleAdsLinksResponseOrBuilder.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListGoogleAdsLinksResponseOrBuilder.java deleted file mode 100644 index 1eefa5c0..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListGoogleAdsLinksResponseOrBuilder.java +++ /dev/null @@ -1,104 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListMeasurementProtocolSecretsRequest.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListMeasurementProtocolSecretsRequest.java deleted file mode 100644 index 9ec52dd1..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListMeasurementProtocolSecretsRequest.java +++ /dev/null @@ -1,958 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - 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_; - /** - * - * - *
-   * 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; - 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(); - 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); - result.parent_ = parent_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof com.google.analytics.admin.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_; - onChanged(); - } - if (other.getPageSize() != 0) { - setPageSize(other.getPageSize()); - } - if (!other.getPageToken().isEmpty()) { - pageToken_ = other.pageToken_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - - 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 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; - 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(); - 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; - 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; - 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() { - - 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; - 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(); - 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; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListMeasurementProtocolSecretsRequestOrBuilder.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListMeasurementProtocolSecretsRequestOrBuilder.java deleted file mode 100644 index 0a97ffe8..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListMeasurementProtocolSecretsRequestOrBuilder.java +++ /dev/null @@ -1,104 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListMeasurementProtocolSecretsResponse.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListMeasurementProtocolSecretsResponse.java deleted file mode 100644 index fcff3c0b..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListMeasurementProtocolSecretsResponse.java +++ /dev/null @@ -1,1207 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - 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; - 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(); - 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); - int from_bitField0_ = bitField0_; - if (measurementProtocolSecretsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - measurementProtocolSecrets_ = - java.util.Collections.unmodifiableList(measurementProtocolSecrets_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.measurementProtocolSecrets_ = measurementProtocolSecrets_; - } else { - result.measurementProtocolSecrets_ = measurementProtocolSecretsBuilder_.build(); - } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof com.google.analytics.admin.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_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // 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; - onChanged(); - return this; - } - /** - * - * - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * - * @return This builder for chaining. - */ - public Builder clearNextPageToken() { - - nextPageToken_ = getDefaultInstance().getNextPageToken(); - onChanged(); - return this; - } - /** - * - * - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * - * @param value The bytes for nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - nextPageToken_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListMeasurementProtocolSecretsResponseOrBuilder.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListMeasurementProtocolSecretsResponseOrBuilder.java deleted file mode 100644 index 1679c590..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListMeasurementProtocolSecretsResponseOrBuilder.java +++ /dev/null @@ -1,117 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListPropertiesRequest.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListPropertiesRequest.java deleted file mode 100644 index c3be87e0..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListPropertiesRequest.java +++ /dev/null @@ -1,1115 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - 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_; - /** - * - * - *
-   * 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; - 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_; - /** - * - * - *
-   * 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(); - 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); - result.filter_ = filter_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; - result.showDeleted_ = showDeleted_; - 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.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_; - onChanged(); - } - if (other.getPageSize() != 0) { - setPageSize(other.getPageSize()); - } - if (!other.getPageToken().isEmpty()) { - pageToken_ = other.pageToken_; - 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(); - - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 32: - { - showDeleted_ = input.readBool(); - - 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 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; - 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(); - 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; - 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; - 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() { - - 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; - 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(); - 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; - 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; - 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() { - - 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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListPropertiesRequestOrBuilder.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListPropertiesRequestOrBuilder.java deleted file mode 100644 index e1a21e48..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListPropertiesRequestOrBuilder.java +++ /dev/null @@ -1,140 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListPropertiesResponse.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListPropertiesResponse.java deleted file mode 100644 index 01d74e42..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListPropertiesResponse.java +++ /dev/null @@ -1,1114 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - 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; - 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(); - 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); - int from_bitField0_ = bitField0_; - if (propertiesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - properties_ = java.util.Collections.unmodifiableList(properties_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.properties_ = properties_; - } else { - result.properties_ = propertiesBuilder_.build(); - } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.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_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // 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; - onChanged(); - return this; - } - /** - * - * - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * - * @return This builder for chaining. - */ - public Builder clearNextPageToken() { - - nextPageToken_ = getDefaultInstance().getNextPageToken(); - onChanged(); - return this; - } - /** - * - * - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * - * @param value The bytes for nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - nextPageToken_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListPropertiesResponseOrBuilder.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListPropertiesResponseOrBuilder.java deleted file mode 100644 index b83b2c46..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListPropertiesResponseOrBuilder.java +++ /dev/null @@ -1,104 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/MeasurementProtocolSecret.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/MeasurementProtocolSecret.java deleted file mode 100644 index fede1b1c..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/MeasurementProtocolSecret.java +++ /dev/null @@ -1,1007 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - 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; - 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; - 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(); - 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); - result.name_ = name_; - result.displayName_ = displayName_; - result.secretValue_ = secretValue_; - 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.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_; - onChanged(); - } - if (!other.getDisplayName().isEmpty()) { - displayName_ = other.displayName_; - onChanged(); - } - if (!other.getSecretValue().isEmpty()) { - secretValue_ = other.secretValue_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 18: - { - displayName_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: - { - secretValue_ = input.readStringRequireUtf8(); - - 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 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; - 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(); - 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; - 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; - 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(); - 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; - 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; - 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(); - 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; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/MeasurementProtocolSecretName.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/MeasurementProtocolSecretName.java deleted file mode 100644 index 586ba50d..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/MeasurementProtocolSecretName.java +++ /dev/null @@ -1,241 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 com.google.api.pathtemplate.PathTemplate; -import com.google.api.resourcenames.ResourceName; -import com.google.common.base.Preconditions; -import com.google.common.collect.ImmutableMap; -import java.util.ArrayList; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -@Generated("by gapic-generator-java") -public class MeasurementProtocolSecretName implements ResourceName { - private static final PathTemplate PROPERTY_DATA_STREAM_MEASUREMENT_PROTOCOL_SECRET = - PathTemplate.createWithoutUrlEncoding( - "properties/{property}/dataStreams/{data_stream}/measurementProtocolSecrets/{measurement_protocol_secret}"); - private volatile Map fieldValuesMap; - private final String property; - private final String dataStream; - private final String measurementProtocolSecret; - - @Deprecated - protected MeasurementProtocolSecretName() { - property = null; - dataStream = null; - measurementProtocolSecret = null; - } - - private MeasurementProtocolSecretName(Builder builder) { - property = Preconditions.checkNotNull(builder.getProperty()); - dataStream = Preconditions.checkNotNull(builder.getDataStream()); - measurementProtocolSecret = Preconditions.checkNotNull(builder.getMeasurementProtocolSecret()); - } - - public String getProperty() { - return property; - } - - public String getDataStream() { - return dataStream; - } - - public String getMeasurementProtocolSecret() { - return measurementProtocolSecret; - } - - public static Builder newBuilder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder(this); - } - - public static MeasurementProtocolSecretName of( - String property, String dataStream, String measurementProtocolSecret) { - return newBuilder() - .setProperty(property) - .setDataStream(dataStream) - .setMeasurementProtocolSecret(measurementProtocolSecret) - .build(); - } - - public static String format( - String property, String dataStream, String measurementProtocolSecret) { - return newBuilder() - .setProperty(property) - .setDataStream(dataStream) - .setMeasurementProtocolSecret(measurementProtocolSecret) - .build() - .toString(); - } - - public static MeasurementProtocolSecretName parse(String formattedString) { - if (formattedString.isEmpty()) { - return null; - } - Map matchMap = - PROPERTY_DATA_STREAM_MEASUREMENT_PROTOCOL_SECRET.validatedMatch( - formattedString, - "MeasurementProtocolSecretName.parse: formattedString not in valid format"); - return of( - matchMap.get("property"), - matchMap.get("data_stream"), - matchMap.get("measurement_protocol_secret")); - } - - public static List parseList(List formattedStrings) { - List list = new ArrayList<>(formattedStrings.size()); - for (String formattedString : formattedStrings) { - list.add(parse(formattedString)); - } - return list; - } - - public static List toStringList(List values) { - List list = new ArrayList<>(values.size()); - for (MeasurementProtocolSecretName value : values) { - if (value == null) { - list.add(""); - } else { - list.add(value.toString()); - } - } - return list; - } - - public static boolean isParsableFrom(String formattedString) { - return PROPERTY_DATA_STREAM_MEASUREMENT_PROTOCOL_SECRET.matches(formattedString); - } - - @Override - public Map getFieldValuesMap() { - if (fieldValuesMap == null) { - synchronized (this) { - if (fieldValuesMap == null) { - ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); - if (property != null) { - fieldMapBuilder.put("property", property); - } - if (dataStream != null) { - fieldMapBuilder.put("data_stream", dataStream); - } - if (measurementProtocolSecret != null) { - fieldMapBuilder.put("measurement_protocol_secret", measurementProtocolSecret); - } - fieldValuesMap = fieldMapBuilder.build(); - } - } - } - return fieldValuesMap; - } - - public String getFieldValue(String fieldName) { - return getFieldValuesMap().get(fieldName); - } - - @Override - public String toString() { - return PROPERTY_DATA_STREAM_MEASUREMENT_PROTOCOL_SECRET.instantiate( - "property", - property, - "data_stream", - dataStream, - "measurement_protocol_secret", - measurementProtocolSecret); - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (o != null || getClass() == o.getClass()) { - MeasurementProtocolSecretName that = ((MeasurementProtocolSecretName) o); - return Objects.equals(this.property, that.property) - && Objects.equals(this.dataStream, that.dataStream) - && Objects.equals(this.measurementProtocolSecret, that.measurementProtocolSecret); - } - return false; - } - - @Override - public int hashCode() { - int h = 1; - h *= 1000003; - h ^= Objects.hashCode(property); - h *= 1000003; - h ^= Objects.hashCode(dataStream); - h *= 1000003; - h ^= Objects.hashCode(measurementProtocolSecret); - return h; - } - - /** - * Builder for - * properties/{property}/dataStreams/{data_stream}/measurementProtocolSecrets/{measurement_protocol_secret}. - */ - public static class Builder { - private String property; - private String dataStream; - private String measurementProtocolSecret; - - protected Builder() {} - - public String getProperty() { - return property; - } - - public String getDataStream() { - return dataStream; - } - - public String getMeasurementProtocolSecret() { - return measurementProtocolSecret; - } - - public Builder setProperty(String property) { - this.property = property; - return this; - } - - public Builder setDataStream(String dataStream) { - this.dataStream = dataStream; - return this; - } - - public Builder setMeasurementProtocolSecret(String measurementProtocolSecret) { - this.measurementProtocolSecret = measurementProtocolSecret; - return this; - } - - private Builder(MeasurementProtocolSecretName measurementProtocolSecretName) { - this.property = measurementProtocolSecretName.property; - this.dataStream = measurementProtocolSecretName.dataStream; - this.measurementProtocolSecret = measurementProtocolSecretName.measurementProtocolSecret; - } - - public MeasurementProtocolSecretName build() { - return new MeasurementProtocolSecretName(this); - } - } -} diff --git a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/MeasurementProtocolSecretOrBuilder.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/MeasurementProtocolSecretOrBuilder.java deleted file mode 100644 index d250e4e8..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/MeasurementProtocolSecretOrBuilder.java +++ /dev/null @@ -1,110 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/Property.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/Property.java deleted file mode 100644 index 74100e8a..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/Property.java +++ /dev/null @@ -1,3317 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - 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_; - /** - * - * - *
-   * 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
-   * via 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
-   * via 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() { - @SuppressWarnings("deprecation") - com.google.analytics.admin.v1beta.PropertyType result = - com.google.analytics.admin.v1beta.PropertyType.valueOf(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 getCreateTime(); - } - - 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 getUpdateTime(); - } - - public static final int PARENT_FIELD_NUMBER = 2; - 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; - 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_; - /** - * - * - *
-   * 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() { - @SuppressWarnings("deprecation") - com.google.analytics.admin.v1beta.IndustryCategory result = - com.google.analytics.admin.v1beta.IndustryCategory.valueOf(industryCategory_); - return result == null - ? com.google.analytics.admin.v1beta.IndustryCategory.UNRECOGNIZED - : result; - } - - public static final int TIME_ZONE_FIELD_NUMBER = 7; - 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; - 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_; - /** - * - * - *
-   * 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() { - @SuppressWarnings("deprecation") - com.google.analytics.admin.v1beta.ServiceLevel result = - com.google.analytics.admin.v1beta.ServiceLevel.valueOf(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 getDeleteTime(); - } - - 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 getExpireTime(); - } - - public static final int ACCOUNT_FIELD_NUMBER = 13; - private volatile java.lang.Object account_; - /** - * - * - *
-   * Immutable. The resource name of the parent account
-   * Format: accounts/{account_id}
-   * Example: "accounts/123"
-   * 
- * - * - * string account = 13 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * - * @return The account. - */ - @java.lang.Override - public java.lang.String getAccount() { - java.lang.Object ref = account_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - account_ = s; - return s; - } - } - /** - * - * - *
-   * Immutable. The resource name of the parent account
-   * Format: accounts/{account_id}
-   * Example: "accounts/123"
-   * 
- * - * - * string account = 13 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for account. - */ - @java.lang.Override - public com.google.protobuf.ByteString getAccountBytes() { - java.lang.Object ref = account_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - account_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 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(); - name_ = ""; - - propertyType_ = 0; - - if (createTimeBuilder_ == null) { - createTime_ = null; - } else { - createTime_ = null; - createTimeBuilder_ = null; - } - if (updateTimeBuilder_ == null) { - updateTime_ = null; - } else { - updateTime_ = null; - updateTimeBuilder_ = null; - } - parent_ = ""; - - displayName_ = ""; - - industryCategory_ = 0; - - timeZone_ = ""; - - currencyCode_ = ""; - - serviceLevel_ = 0; - - if (deleteTimeBuilder_ == null) { - deleteTime_ = null; - } else { - deleteTime_ = null; - deleteTimeBuilder_ = null; - } - if (expireTimeBuilder_ == null) { - expireTime_ = null; - } else { - expireTime_ = null; - 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); - result.name_ = name_; - result.propertyType_ = propertyType_; - if (createTimeBuilder_ == null) { - result.createTime_ = createTime_; - } else { - result.createTime_ = createTimeBuilder_.build(); - } - if (updateTimeBuilder_ == null) { - result.updateTime_ = updateTime_; - } else { - result.updateTime_ = updateTimeBuilder_.build(); - } - result.parent_ = parent_; - result.displayName_ = displayName_; - result.industryCategory_ = industryCategory_; - result.timeZone_ = timeZone_; - result.currencyCode_ = currencyCode_; - result.serviceLevel_ = serviceLevel_; - if (deleteTimeBuilder_ == null) { - result.deleteTime_ = deleteTime_; - } else { - result.deleteTime_ = deleteTimeBuilder_.build(); - } - if (expireTimeBuilder_ == null) { - result.expireTime_ = expireTime_; - } else { - result.expireTime_ = expireTimeBuilder_.build(); - } - result.account_ = account_; - 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.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_; - 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_; - onChanged(); - } - if (!other.getDisplayName().isEmpty()) { - displayName_ = other.displayName_; - onChanged(); - } - if (other.industryCategory_ != 0) { - setIndustryCategoryValue(other.getIndustryCategoryValue()); - } - if (!other.getTimeZone().isEmpty()) { - timeZone_ = other.timeZone_; - onChanged(); - } - if (!other.getCurrencyCode().isEmpty()) { - currencyCode_ = other.currencyCode_; - 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_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 18: - { - parent_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: - { - input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 26 - case 34: - { - input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 34 - case 42: - { - displayName_ = input.readStringRequireUtf8(); - - break; - } // case 42 - case 48: - { - industryCategory_ = input.readEnum(); - - break; - } // case 48 - case 58: - { - timeZone_ = input.readStringRequireUtf8(); - - break; - } // case 58 - case 66: - { - currencyCode_ = input.readStringRequireUtf8(); - - break; - } // case 66 - case 80: - { - serviceLevel_ = input.readEnum(); - - break; - } // case 80 - case 90: - { - input.readMessage(getDeleteTimeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 90 - case 98: - { - input.readMessage(getExpireTimeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 98 - case 106: - { - account_ = input.readStringRequireUtf8(); - - break; - } // case 106 - case 112: - { - propertyType_ = input.readEnum(); - - 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 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; - 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(); - 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; - 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
-     * via 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
-     * via 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; - 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
-     * via 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() { - @SuppressWarnings("deprecation") - com.google.analytics.admin.v1beta.PropertyType result = - com.google.analytics.admin.v1beta.PropertyType.valueOf(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
-     * via 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(); - } - - 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
-     * via 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() { - - 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 createTimeBuilder_ != null || 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. - */ - 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; - onChanged(); - } else { - createTimeBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - createTimeBuilder_.setMessage(builderForValue.build()); - } - - 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 (createTime_ != null) { - createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); - } else { - createTime_ = value; - } - onChanged(); - } else { - createTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Output only. Time when the entity was originally created.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearCreateTime() { - if (createTimeBuilder_ == null) { - createTime_ = null; - onChanged(); - } else { - createTime_ = null; - createTimeBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Output only. Time when the entity was originally created.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - - 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 updateTimeBuilder_ != null || 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. - */ - 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; - onChanged(); - } else { - updateTimeBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - updateTimeBuilder_.setMessage(builderForValue.build()); - } - - 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 (updateTime_ != null) { - updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); - } else { - updateTime_ = value; - } - onChanged(); - } else { - updateTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Output only. Time when entity payload fields were last updated.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearUpdateTime() { - if (updateTimeBuilder_ == null) { - updateTime_ = null; - onChanged(); - } else { - updateTime_ = null; - updateTimeBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Output only. Time when 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() { - - 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; - 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(); - 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; - 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; - 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(); - 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; - 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; - 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() { - @SuppressWarnings("deprecation") - com.google.analytics.admin.v1beta.IndustryCategory result = - com.google.analytics.admin.v1beta.IndustryCategory.valueOf(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(); - } - - 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() { - - 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; - 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(); - 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; - 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; - 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(); - 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; - 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; - 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() { - @SuppressWarnings("deprecation") - com.google.analytics.admin.v1beta.ServiceLevel result = - com.google.analytics.admin.v1beta.ServiceLevel.valueOf(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(); - } - - 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() { - - 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 deleteTimeBuilder_ != null || 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. - */ - 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; - onChanged(); - } else { - deleteTimeBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - deleteTimeBuilder_.setMessage(builderForValue.build()); - } - - 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 (deleteTime_ != null) { - deleteTime_ = - com.google.protobuf.Timestamp.newBuilder(deleteTime_).mergeFrom(value).buildPartial(); - } else { - deleteTime_ = value; - } - onChanged(); - } else { - deleteTimeBuilder_.mergeFrom(value); - } - - 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() { - if (deleteTimeBuilder_ == null) { - deleteTime_ = null; - onChanged(); - } else { - deleteTime_ = null; - deleteTimeBuilder_ = null; - } - - 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() { - - 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 expireTimeBuilder_ != null || 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. - */ - 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; - onChanged(); - } else { - expireTimeBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - expireTimeBuilder_.setMessage(builderForValue.build()); - } - - 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 (expireTime_ != null) { - expireTime_ = - com.google.protobuf.Timestamp.newBuilder(expireTime_).mergeFrom(value).buildPartial(); - } else { - expireTime_ = value; - } - onChanged(); - } else { - expireTimeBuilder_.mergeFrom(value); - } - - 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() { - if (expireTimeBuilder_ == null) { - expireTime_ = null; - onChanged(); - } else { - expireTime_ = null; - expireTimeBuilder_ = null; - } - - 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() { - - 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; - onChanged(); - return this; - } - /** - * - * - *
-     * Immutable. The resource name of the parent account
-     * Format: accounts/{account_id}
-     * Example: "accounts/123"
-     * 
- * - * - * string account = 13 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearAccount() { - - account_ = getDefaultInstance().getAccount(); - onChanged(); - return this; - } - /** - * - * - *
-     * Immutable. The resource name of the parent account
-     * Format: accounts/{account_id}
-     * Example: "accounts/123"
-     * 
- * - * - * string account = 13 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for account to set. - * @return This builder for chaining. - */ - public Builder setAccountBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - account_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/PropertyName.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/PropertyName.java deleted file mode 100644 index fc6c68e3..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/PropertyName.java +++ /dev/null @@ -1,168 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 com.google.api.pathtemplate.PathTemplate; -import com.google.api.resourcenames.ResourceName; -import com.google.common.base.Preconditions; -import com.google.common.collect.ImmutableMap; -import java.util.ArrayList; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -@Generated("by gapic-generator-java") -public class PropertyName implements ResourceName { - private static final PathTemplate PROPERTY = - PathTemplate.createWithoutUrlEncoding("properties/{property}"); - private volatile Map fieldValuesMap; - private final String property; - - @Deprecated - protected PropertyName() { - property = null; - } - - private PropertyName(Builder builder) { - property = Preconditions.checkNotNull(builder.getProperty()); - } - - public String getProperty() { - return property; - } - - public static Builder newBuilder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder(this); - } - - public static PropertyName of(String property) { - return newBuilder().setProperty(property).build(); - } - - public static String format(String property) { - return newBuilder().setProperty(property).build().toString(); - } - - public static PropertyName parse(String formattedString) { - if (formattedString.isEmpty()) { - return null; - } - Map matchMap = - PROPERTY.validatedMatch( - formattedString, "PropertyName.parse: formattedString not in valid format"); - return of(matchMap.get("property")); - } - - public static List parseList(List formattedStrings) { - List list = new ArrayList<>(formattedStrings.size()); - for (String formattedString : formattedStrings) { - list.add(parse(formattedString)); - } - return list; - } - - public static List toStringList(List values) { - List list = new ArrayList<>(values.size()); - for (PropertyName value : values) { - if (value == null) { - list.add(""); - } else { - list.add(value.toString()); - } - } - return list; - } - - public static boolean isParsableFrom(String formattedString) { - return PROPERTY.matches(formattedString); - } - - @Override - public Map getFieldValuesMap() { - if (fieldValuesMap == null) { - synchronized (this) { - if (fieldValuesMap == null) { - ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); - if (property != null) { - fieldMapBuilder.put("property", property); - } - fieldValuesMap = fieldMapBuilder.build(); - } - } - } - return fieldValuesMap; - } - - public String getFieldValue(String fieldName) { - return getFieldValuesMap().get(fieldName); - } - - @Override - public String toString() { - return PROPERTY.instantiate("property", property); - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (o != null || getClass() == o.getClass()) { - PropertyName that = ((PropertyName) o); - return Objects.equals(this.property, that.property); - } - return false; - } - - @Override - public int hashCode() { - int h = 1; - h *= 1000003; - h ^= Objects.hashCode(property); - return h; - } - - /** Builder for properties/{property}. */ - public static class Builder { - private String property; - - protected Builder() {} - - public String getProperty() { - return property; - } - - public Builder setProperty(String property) { - this.property = property; - return this; - } - - private Builder(PropertyName propertyName) { - this.property = propertyName.property; - } - - public PropertyName build() { - return new PropertyName(this); - } - } -} diff --git a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/PropertyOrBuilder.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/PropertyOrBuilder.java deleted file mode 100644 index 8b84687a..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/PropertyOrBuilder.java +++ /dev/null @@ -1,463 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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
-   * via 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
-   * via 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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/PropertySummary.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/PropertySummary.java deleted file mode 100644 index 47d5561f..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/PropertySummary.java +++ /dev/null @@ -1,1157 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - 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; - 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_; - /** - * - * - *
-   * 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() { - @SuppressWarnings("deprecation") - com.google.analytics.admin.v1beta.PropertyType result = - com.google.analytics.admin.v1beta.PropertyType.valueOf(propertyType_); - return result == null ? com.google.analytics.admin.v1beta.PropertyType.UNRECOGNIZED : result; - } - - public static final int PARENT_FIELD_NUMBER = 4; - 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(); - 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); - result.property_ = property_; - result.displayName_ = displayName_; - result.propertyType_ = propertyType_; - result.parent_ = parent_; - 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.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_; - onChanged(); - } - if (!other.getDisplayName().isEmpty()) { - displayName_ = other.displayName_; - onChanged(); - } - if (other.propertyType_ != 0) { - setPropertyTypeValue(other.getPropertyTypeValue()); - } - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 18: - { - displayName_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 24: - { - propertyType_ = input.readEnum(); - - break; - } // case 24 - case 34: - { - parent_ = input.readStringRequireUtf8(); - - 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 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; - 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(); - 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; - 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; - 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(); - 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; - 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; - 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() { - @SuppressWarnings("deprecation") - com.google.analytics.admin.v1beta.PropertyType result = - com.google.analytics.admin.v1beta.PropertyType.valueOf(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(); - } - - 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() { - - 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; - 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(); - 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; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/PropertySummaryOrBuilder.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/PropertySummaryOrBuilder.java deleted file mode 100644 index 313fff0f..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/PropertySummaryOrBuilder.java +++ /dev/null @@ -1,135 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/PropertyType.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/PropertyType.java deleted file mode 100644 index 9914dfa2..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/PropertyType.java +++ /dev/null @@ -1,198 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ProvisionAccountTicketRequest.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ProvisionAccountTicketRequest.java deleted file mode 100644 index d8b713c9..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ProvisionAccountTicketRequest.java +++ /dev/null @@ -1,896 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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 getAccount(); - } - - public static final int REDIRECT_URI_FIELD_NUMBER = 2; - private volatile java.lang.Object redirectUri_; - /** - * - * - *
-   * Redirect URI where the user will be sent after accepting Terms of Service.
-   * Must be configured in Developers 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 Developers 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(); - if (accountBuilder_ == null) { - account_ = null; - } else { - account_ = null; - 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 (accountBuilder_ == null) { - result.account_ = account_; - } else { - result.account_ = accountBuilder_.build(); - } - result.redirectUri_ = redirectUri_; - 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.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_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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); - - break; - } // case 10 - case 18: - { - redirectUri_ = input.readStringRequireUtf8(); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - 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 accountBuilder_ != null || account_ != null; - } - /** - * - * - *
-     * 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; - onChanged(); - } else { - accountBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - accountBuilder_.setMessage(builderForValue.build()); - } - - 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 (account_ != null) { - account_ = - com.google.analytics.admin.v1beta.Account.newBuilder(account_) - .mergeFrom(value) - .buildPartial(); - } else { - account_ = value; - } - onChanged(); - } else { - accountBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * The account to create.
-     * 
- * - * .google.analytics.admin.v1beta.Account account = 1; - */ - public Builder clearAccount() { - if (accountBuilder_ == null) { - account_ = null; - onChanged(); - } else { - account_ = null; - accountBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * The account to create.
-     * 
- * - * .google.analytics.admin.v1beta.Account account = 1; - */ - public com.google.analytics.admin.v1beta.Account.Builder getAccountBuilder() { - - 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 Developers 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 Developers 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 Developers 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; - onChanged(); - return this; - } - /** - * - * - *
-     * Redirect URI where the user will be sent after accepting Terms of Service.
-     * Must be configured in Developers Console as a Redirect URI
-     * 
- * - * string redirect_uri = 2; - * - * @return This builder for chaining. - */ - public Builder clearRedirectUri() { - - redirectUri_ = getDefaultInstance().getRedirectUri(); - onChanged(); - return this; - } - /** - * - * - *
-     * Redirect URI where the user will be sent after accepting Terms of Service.
-     * Must be configured in Developers 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; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ProvisionAccountTicketRequestOrBuilder.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ProvisionAccountTicketRequestOrBuilder.java deleted file mode 100644 index 9e8f6163..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ProvisionAccountTicketRequestOrBuilder.java +++ /dev/null @@ -1,87 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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 Developers 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 Developers Console as a Redirect URI
-   * 
- * - * string redirect_uri = 2; - * - * @return The bytes for redirectUri. - */ - com.google.protobuf.ByteString getRedirectUriBytes(); -} diff --git a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ProvisionAccountTicketResponse.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ProvisionAccountTicketResponse.java deleted file mode 100644 index 9f6a04df..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ProvisionAccountTicketResponse.java +++ /dev/null @@ -1,623 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - 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(); - 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); - result.accountTicketId_ = accountTicketId_; - 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.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_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - 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 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; - 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(); - 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; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ProvisionAccountTicketResponseOrBuilder.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ProvisionAccountTicketResponseOrBuilder.java deleted file mode 100644 index 0fdfc949..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ProvisionAccountTicketResponseOrBuilder.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ResourcesProto.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ResourcesProto.java deleted file mode 100644 index c78b8307..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ResourcesProto.java +++ /dev/null @@ -1,558 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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\"\216\002\n\007Account\022\021\n\004name\030\001 \001(\tB\003\340A\003\0224\n\013cr" - + "eate_time\030\002 \001(\0132\032.google.protobuf.Timest" - + "ampB\003\340A\003\0224\n\013update_time\030\003 \001(\0132\032.google.p" - + "rotobuf.TimestampB\003\340A\003\022\031\n\014display_name\030\004" - + " \001(\tB\003\340A\002\022\023\n\013region_code\030\005 \001(\t\022\024\n\007delete" - + "d\030\006 \001(\010B\003\340A\003:>\352A;\n%analyticsadmin.google" - + "apis.com/Account\022\022accounts/{account}\"\266\005\n" - + "\010Property\022\021\n\004name\030\001 \001(\tB\003\340A\003\022G\n\rproperty" - + "_type\030\016 \001(\0162+.google.analytics.admin.v1b" - + "eta.PropertyTypeB\003\340A\005\0224\n\013create_time\030\003 \001" - + "(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n\013u" - + "pdate_time\030\004 \001(\0132\032.google.protobuf.Times" - + "tampB\003\340A\003\022\023\n\006parent\030\002 \001(\tB\003\340A\005\022\031\n\014displa" - + "y_name\030\005 \001(\tB\003\340A\002\022J\n\021industry_category\030\006" - + " \001(\0162/.google.analytics.admin.v1beta.Ind" - + "ustryCategory\022\026\n\ttime_zone\030\007 \001(\tB\003\340A\002\022\025\n" - + "\rcurrency_code\030\010 \001(\t\022G\n\rservice_level\030\n " - + "\001(\0162+.google.analytics.admin.v1beta.Serv" - + "iceLevelB\003\340A\003\0224\n\013delete_time\030\013 \001(\0132\032.goo" - + "gle.protobuf.TimestampB\003\340A\003\0224\n\013expire_ti" - + "me\030\014 \001(\0132\032.google.protobuf.TimestampB\003\340A" - + "\003\022>\n\007account\030\r \001(\tB-\340A\005\372A\'\n%analyticsadm" - + "in.googleapis.com/Account:B\352A?\n&analytic" - + "sadmin.googleapis.com/Property\022\025properti" - + "es/{property}\"\365\007\n\nDataStream\022R\n\017web_stre" - + "am_data\030\006 \001(\01327.google.analytics.admin.v" - + "1beta.DataStream.WebStreamDataH\000\022a\n\027andr" - + "oid_app_stream_data\030\007 \001(\0132>.google.analy" - + "tics.admin.v1beta.DataStream.AndroidAppS" - + "treamDataH\000\022Y\n\023ios_app_stream_data\030\010 \001(\013" - + "2:.google.analytics.admin.v1beta.DataStr" - + "eam.IosAppStreamDataH\000\022\021\n\004name\030\001 \001(\tB\003\340A" - + "\003\022N\n\004type\030\002 \001(\01628.google.analytics.admin" - + ".v1beta.DataStream.DataStreamTypeB\006\340A\005\340A" - + "\002\022\024\n\014display_name\030\003 \001(\t\0224\n\013create_time\030\004" - + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" - + "\013update_time\030\005 \001(\0132\032.google.protobuf.Tim" - + "estampB\003\340A\003\032d\n\rWebStreamData\022\033\n\016measurem" - + "ent_id\030\001 \001(\tB\003\340A\003\022\034\n\017firebase_app_id\030\002 \001" - + "(\tB\003\340A\003\022\030\n\013default_uri\030\003 \001(\tB\003\340A\005\032O\n\024And" - + "roidAppStreamData\022\034\n\017firebase_app_id\030\001 \001" - + "(\tB\003\340A\003\022\031\n\014package_name\030\002 \001(\tB\003\340A\005\032K\n\020Io" - + "sAppStreamData\022\034\n\017firebase_app_id\030\001 \001(\tB" - + "\003\340A\003\022\031\n\tbundle_id\030\002 \001(\tB\006\340A\005\340A\002\"}\n\016DataS" - + "treamType\022 \n\034DATA_STREAM_TYPE_UNSPECIFIE" - + "D\020\000\022\023\n\017WEB_DATA_STREAM\020\001\022\033\n\027ANDROID_APP_" - + "DATA_STREAM\020\002\022\027\n\023IOS_APP_DATA_STREAM\020\003:^" - + "\352A[\n(analyticsadmin.googleapis.com/DataS" - + "tream\022/properties/{property}/dataStreams" - + "/{data_stream}B\r\n\013stream_data\"\323\001\n\014Fireba" - + "seLink\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\024\n\007project\030\002 \001" - + "(\tB\003\340A\005\0224\n\013create_time\030\003 \001(\0132\032.google.pr" - + "otobuf.TimestampB\003\340A\003:d\352Aa\n*analyticsadm" - + "in.googleapis.com/FirebaseLink\0223properti" - + "es/{property}/firebaseLinks/{firebase_li" - + "nk}\"\230\003\n\rGoogleAdsLink\022\021\n\004name\030\001 \001(\tB\003\340A\003" - + "\022\030\n\013customer_id\030\003 \001(\tB\003\340A\005\022\037\n\022can_manage" - + "_clients\030\004 \001(\010B\003\340A\003\022?\n\033ads_personalizati" - + "on_enabled\030\005 \001(\0132\032.google.protobuf.BoolV" - + "alue\0224\n\013create_time\030\007 \001(\0132\032.google.proto" - + "buf.TimestampB\003\340A\003\0224\n\013update_time\030\010 \001(\0132" - + "\032.google.protobuf.TimestampB\003\340A\003\022\"\n\025crea" - + "tor_email_address\030\t \001(\tB\003\340A\003:h\352Ae\n+analy" - + "ticsadmin.googleapis.com/GoogleAdsLink\0226" - + "properties/{property}/googleAdsLinks/{go" - + "ogle_ads_link}\"\353\002\n\023DataSharingSettings\022\021" - + "\n\004name\030\001 \001(\tB\003\340A\003\022+\n#sharing_with_google" - + "_support_enabled\030\002 \001(\010\0222\n*sharing_with_g" - + "oogle_assigned_sales_enabled\030\003 \001(\010\022-\n%sh" - + "aring_with_google_any_sales_enabled\030\004 \001(" - + "\010\022,\n$sharing_with_google_products_enable" - + "d\030\005 \001(\010\022#\n\033sharing_with_others_enabled\030\006" - + " \001(\010:^\352A[\n1analyticsadmin.googleapis.com" - + "/DataSharingSettings\022&accounts/{account}" - + "/dataSharingSettings\"\224\002\n\016AccountSummary\022" - + "\014\n\004name\030\001 \001(\t\022;\n\007account\030\002 \001(\tB*\372A\'\n%ana" - + "lyticsadmin.googleapis.com/Account\022\024\n\014di" - + "splay_name\030\003 \001(\t\022J\n\022property_summaries\030\004" - + " \003(\0132..google.analytics.admin.v1beta.Pro" - + "pertySummary:U\352AR\n,analyticsadmin.google" - + "apis.com/AccountSummary\022\"accountSummarie" - + "s/{account_summary}\"\272\001\n\017PropertySummary\022" - + "=\n\010property\030\001 \001(\tB+\372A(\n&analyticsadmin.g" - + "oogleapis.com/Property\022\024\n\014display_name\030\002" - + " \001(\t\022B\n\rproperty_type\030\003 \001(\0162+.google.ana" - + "lytics.admin.v1beta.PropertyType\022\016\n\006pare" - + "nt\030\004 \001(\t\"\216\002\n\031MeasurementProtocolSecret\022\021" - + "\n\004name\030\001 \001(\tB\003\340A\003\022\031\n\014display_name\030\002 \001(\tB" - + "\003\340A\002\022\031\n\014secret_value\030\003 \001(\tB\003\340A\003:\247\001\352A\243\001\n7" - + "analyticsadmin.googleapis.com/Measuremen" - + "tProtocolSecret\022hproperties/{property}/d" - + "ataStreams/{data_stream}/measurementProt" - + "ocolSecrets/{measurement_protocol_secret" - + "}\"\210\002\n\022ChangeHistoryEvent\022\n\n\002id\030\001 \001(\t\022/\n\013" - + "change_time\030\002 \001(\0132\032.google.protobuf.Time" - + "stamp\022<\n\nactor_type\030\003 \001(\0162(.google.analy" - + "tics.admin.v1beta.ActorType\022\030\n\020user_acto" - + "r_email\030\004 \001(\t\022\030\n\020changes_filtered\030\005 \001(\010\022" - + "C\n\007changes\030\006 \003(\01322.google.analytics.admi" - + "n.v1beta.ChangeHistoryChange\"\252\007\n\023ChangeH" - + "istoryChange\022\020\n\010resource\030\001 \001(\t\0229\n\006action" - + "\030\002 \001(\0162).google.analytics.admin.v1beta.A" - + "ctionType\022h\n\026resource_before_change\030\003 \001(" - + "\0132H.google.analytics.admin.v1beta.Change" - + "HistoryChange.ChangeHistoryResource\022g\n\025r" - + "esource_after_change\030\004 \001(\0132H.google.anal" - + "ytics.admin.v1beta.ChangeHistoryChange.C" - + "hangeHistoryResource\032\362\004\n\025ChangeHistoryRe" - + "source\0229\n\007account\030\001 \001(\0132&.google.analyti" - + "cs.admin.v1beta.AccountH\000\022;\n\010property\030\002 " - + "\001(\0132\'.google.analytics.admin.v1beta.Prop" - + "ertyH\000\022D\n\rfirebase_link\030\006 \001(\0132+.google.a" - + "nalytics.admin.v1beta.FirebaseLinkH\000\022G\n\017" - + "google_ads_link\030\007 \001(\0132,.google.analytics" - + ".admin.v1beta.GoogleAdsLinkH\000\022J\n\020convers" - + "ion_event\030\013 \001(\0132..google.analytics.admin" - + ".v1beta.ConversionEventH\000\022_\n\033measurement" - + "_protocol_secret\030\014 \001(\01328.google.analytic" - + "s.admin.v1beta.MeasurementProtocolSecret" - + "H\000\022W\n\027data_retention_settings\030\017 \001(\01324.go" - + "ogle.analytics.admin.v1beta.DataRetentio" - + "nSettingsH\000\022@\n\013data_stream\030\022 \001(\0132).googl" - + "e.analytics.admin.v1beta.DataStreamH\000B\n\n" - + "\010resource\"\217\002\n\017ConversionEvent\022\021\n\004name\030\001 " - + "\001(\tB\003\340A\003\022\027\n\nevent_name\030\002 \001(\tB\003\340A\005\0224\n\013cre" - + "ate_time\030\003 \001(\0132\032.google.protobuf.Timesta" - + "mpB\003\340A\003\022\026\n\tdeletable\030\004 \001(\010B\003\340A\003\022\023\n\006custo" - + "m\030\005 \001(\010B\003\340A\003:m\352Aj\n-analyticsadmin.google" - + "apis.com/ConversionEvent\0229properties/{pr" - + "operty}/conversionEvents/{conversion_eve" - + "nt}\"\261\003\n\017CustomDimension\022\021\n\004name\030\001 \001(\tB\003\340" - + "A\003\022\036\n\016parameter_name\030\002 \001(\tB\006\340A\002\340A\005\022\031\n\014di" - + "splay_name\030\003 \001(\tB\003\340A\002\022\030\n\013description\030\004 \001" - + "(\tB\003\340A\001\022T\n\005scope\030\005 \001(\0162=.google.analytic" - + "s.admin.v1beta.CustomDimension.Dimension" - + "ScopeB\006\340A\002\340A\005\022)\n\034disallow_ads_personaliz" - + "ation\030\006 \001(\010B\003\340A\001\"F\n\016DimensionScope\022\037\n\033DI" - + "MENSION_SCOPE_UNSPECIFIED\020\000\022\t\n\005EVENT\020\001\022\010" - + "\n\004USER\020\002:m\352Aj\n-analyticsadmin.googleapis" - + ".com/CustomDimension\0229properties/{proper" - + "ty}/customDimensions/{custom_dimension}\"" - + "\302\006\n\014CustomMetric\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\036\n\016p" - + "arameter_name\030\002 \001(\tB\006\340A\002\340A\005\022\031\n\014display_n" - + "ame\030\003 \001(\tB\003\340A\002\022\030\n\013description\030\004 \001(\tB\003\340A\001" - + "\022Z\n\020measurement_unit\030\005 \001(\0162;.google.anal" - + "ytics.admin.v1beta.CustomMetric.Measurem" - + "entUnitB\003\340A\002\022N\n\005scope\030\006 \001(\01627.google.ana" - + "lytics.admin.v1beta.CustomMetric.MetricS" - + "copeB\006\340A\002\340A\005\022e\n\026restricted_metric_type\030\010" - + " \003(\0162@.google.analytics.admin.v1beta.Cus" - + "tomMetric.RestrictedMetricTypeB\003\340A\001\"\267\001\n\017" - + "MeasurementUnit\022 \n\034MEASUREMENT_UNIT_UNSP" - + "ECIFIED\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\005M" - + "ILES\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\030" - + "METRIC_SCOPE_UNSPECIFIED\020\000\022\t\n\005EVENT\020\001\"_\n" - + "\024RestrictedMetricType\022&\n\"RESTRICTED_METR" - + "IC_TYPE_UNSPECIFIED\020\000\022\r\n\tCOST_DATA\020\001\022\020\n\014" - + "REVENUE_DATA\020\002:d\352Aa\n*analyticsadmin.goog" - + "leapis.com/CustomMetric\0223properties/{pro" - + "perty}/customMetrics/{custom_metric}\"\301\003\n" - + "\025DataRetentionSettings\022\021\n\004name\030\001 \001(\tB\003\340A" - + "\003\022d\n\024event_data_retention\030\002 \001(\0162F.google" - + ".analytics.admin.v1beta.DataRetentionSet" - + "tings.RetentionDuration\022\'\n\037reset_user_da" - + "ta_on_new_activity\030\003 \001(\010\"\236\001\n\021RetentionDu" - + "ration\022\"\n\036RETENTION_DURATION_UNSPECIFIED" - + "\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_EIGHT_M" - + "ONTHS\020\005\022\020\n\014FIFTY_MONTHS\020\006:e\352Ab\n3analytic" - + "sadmin.googleapis.com/DataRetentionSetti" - + "ngs\022+properties/{property}/dataRetention" - + "Settings*\252\004\n\020IndustryCategory\022!\n\035INDUSTR" - + "Y_CATEGORY_UNSPECIFIED\020\000\022\016\n\nAUTOMOTIVE\020\001" - + "\022#\n\037BUSINESS_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\006TRAVEL\020\006\022\t\n\005OTHER\020\007\022\032\n\026ARTS_AND_EN" - + "TERTAINMENT\020\010\022\026\n\022BEAUTY_AND_FITNESS\020\t\022\030\n" - + "\024BOOKS_AND_LITERATURE\020\n\022\022\n\016FOOD_AND_DRIN" - + "K\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\024INTERNET_AND_TEL" - + "ECOM\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\022PEOPLE_AND_S" - + "OCIETY\020\023\022\024\n\020PETS_AND_ANIMALS\020\024\022\017\n\013REAL_E" - + "STATE\020\025\022\r\n\tREFERENCE\020\026\022\013\n\007SCIENCE\020\027\022\n\n\006S" - + "PORTS\020\030\022\026\n\022JOBS_AND_EDUCATION\020\031\022\014\n\010SHOPP" - + "ING\020\032*f\n\014ServiceLevel\022\035\n\031SERVICE_LEVEL_U" - + "NSPECIFIED\020\000\022\035\n\031GOOGLE_ANALYTICS_STANDAR" - + "D\020\001\022\030\n\024GOOGLE_ANALYTICS_360\020\002*J\n\tActorTy" - + "pe\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_TYPE_UNSPECIFIED\020\000\022\013\n\007CREATED\020" - + "\001\022\013\n\007UPDATED\020\002\022\013\n\007DELETED\020\003*\377\002\n\031ChangeHi" - + "storyResourceType\022,\n(CHANGE_HISTORY_RESO" - + "URCE_TYPE_UNSPECIFIED\020\000\022\013\n\007ACCOUNT\020\001\022\014\n\010" - + "PROPERTY\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\020CONVERSION_EVENT\020\t\022\037\n\033MEASUREMENT_PRO" - + "TOCOL_SECRET\020\n\022\033\n\027DATA_RETENTION_SETTING" - + "S\020\r\022%\n!DISPLAY_VIDEO_360_ADVERTISER_LINK" - + "\020\016\022.\n*DISPLAY_VIDEO_360_ADVERTISER_LINK_" - + "PROPOSAL\020\017\022\017\n\013DATA_STREAM\020\022\022\030\n\024ATTRIBUTI" - + "ON_SETTINGS\020\024*\202\001\n\014PropertyType\022\035\n\031PROPER" - + "TY_TYPE_UNSPECIFIED\020\000\022\032\n\026PROPERTY_TYPE_O" - + "RDINARY\020\001\022\035\n\031PROPERTY_TYPE_SUBPROPERTY\020\002" - + "\022\030\n\024PROPERTY_TYPE_ROLLUP\020\003By\n!com.google" - + ".analytics.admin.v1betaB\016ResourcesProtoP" - + "\001ZBgoogle.golang.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", - }); - 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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/SearchChangeHistoryEventsRequest.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/SearchChangeHistoryEventsRequest.java deleted file mode 100644 index 7c31ad09..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/SearchChangeHistoryEventsRequest.java +++ /dev/null @@ -1,2869 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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.EMPTY; - pageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new SearchChangeHistoryEventsRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - 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; - 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; - 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) { - @SuppressWarnings("deprecation") - com.google.analytics.admin.v1beta.ChangeHistoryResourceType result = - com.google.analytics.admin.v1beta.ChangeHistoryResourceType.valueOf(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; - 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) { - @SuppressWarnings("deprecation") - com.google.analytics.admin.v1beta.ActionType result = - com.google.analytics.admin.v1beta.ActionType.valueOf(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; - private com.google.protobuf.LazyStringList 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 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 getEarliestChangeTime(); - } - - 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 getLatestChangeTime(); - } - - public static final int PAGE_SIZE_FIELD_NUMBER = 8; - 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_; - } - - public static final int PAGE_TOKEN_FIELD_NUMBER = 9; - 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(); - account_ = ""; - - property_ = ""; - - resourceType_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - action_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - actorEmail_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); - if (earliestChangeTimeBuilder_ == null) { - earliestChangeTime_ = null; - } else { - earliestChangeTime_ = null; - earliestChangeTimeBuilder_ = null; - } - if (latestChangeTimeBuilder_ == null) { - latestChangeTime_ = null; - } else { - latestChangeTime_ = null; - 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); - int from_bitField0_ = bitField0_; - result.account_ = account_; - result.property_ = property_; - if (((bitField0_ & 0x00000001) != 0)) { - resourceType_ = java.util.Collections.unmodifiableList(resourceType_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.resourceType_ = resourceType_; - if (((bitField0_ & 0x00000002) != 0)) { - action_ = java.util.Collections.unmodifiableList(action_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.action_ = action_; - if (((bitField0_ & 0x00000004) != 0)) { - actorEmail_ = actorEmail_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.actorEmail_ = actorEmail_; - if (earliestChangeTimeBuilder_ == null) { - result.earliestChangeTime_ = earliestChangeTime_; - } else { - result.earliestChangeTime_ = earliestChangeTimeBuilder_.build(); - } - if (latestChangeTimeBuilder_ == null) { - result.latestChangeTime_ = latestChangeTime_; - } else { - result.latestChangeTime_ = latestChangeTimeBuilder_.build(); - } - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.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_; - onChanged(); - } - if (!other.getProperty().isEmpty()) { - property_ = other.property_; - onChanged(); - } - if (!other.resourceType_.isEmpty()) { - if (resourceType_.isEmpty()) { - resourceType_ = other.resourceType_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureResourceTypeIsMutable(); - resourceType_.addAll(other.resourceType_); - } - onChanged(); - } - if (!other.action_.isEmpty()) { - if (action_.isEmpty()) { - action_ = other.action_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureActionIsMutable(); - action_.addAll(other.action_); - } - onChanged(); - } - if (!other.actorEmail_.isEmpty()) { - if (actorEmail_.isEmpty()) { - actorEmail_ = other.actorEmail_; - bitField0_ = (bitField0_ & ~0x00000004); - } 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_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 10 - case 18: - { - property_ = input.readStringRequireUtf8(); - - 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); - - break; - } // case 50 - case 58: - { - input.readMessage( - getLatestChangeTimeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 58 - case 64: - { - pageSize_ = input.readInt32(); - - break; - } // case 64 - case 74: - { - pageToken_ = input.readStringRequireUtf8(); - - 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; - 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(); - 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; - 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; - 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(); - 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; - onChanged(); - return this; - } - - private java.util.List resourceType_ = java.util.Collections.emptyList(); - - private void ensureResourceTypeIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - resourceType_ = new java.util.ArrayList(resourceType_); - bitField0_ |= 0x00000001; - } - } - /** - * - * - *
-     * 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_ & ~0x00000001); - 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_ & 0x00000002) != 0)) { - action_ = new java.util.ArrayList(action_); - bitField0_ |= 0x00000002; - } - } - /** - * - * - *
-     * 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_ & ~0x00000002); - 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.LazyStringList actorEmail_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureActorEmailIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - actorEmail_ = new com.google.protobuf.LazyStringArrayList(actorEmail_); - bitField0_ |= 0x00000004; - } - } - /** - * - * - *
-     * 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_.getUnmodifiableView(); - } - /** - * - * - *
-     * 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); - 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); - 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_); - 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.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); - 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); - 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 earliestChangeTimeBuilder_ != null || 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. - */ - 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; - onChanged(); - } else { - earliestChangeTimeBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - earliestChangeTimeBuilder_.setMessage(builderForValue.build()); - } - - 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 (earliestChangeTime_ != null) { - earliestChangeTime_ = - com.google.protobuf.Timestamp.newBuilder(earliestChangeTime_) - .mergeFrom(value) - .buildPartial(); - } else { - earliestChangeTime_ = value; - } - onChanged(); - } else { - earliestChangeTimeBuilder_.mergeFrom(value); - } - - 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() { - if (earliestChangeTimeBuilder_ == null) { - earliestChangeTime_ = null; - onChanged(); - } else { - earliestChangeTime_ = null; - earliestChangeTimeBuilder_ = null; - } - - 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() { - - 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 latestChangeTimeBuilder_ != null || 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. - */ - 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; - onChanged(); - } else { - latestChangeTimeBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - latestChangeTimeBuilder_.setMessage(builderForValue.build()); - } - - 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 (latestChangeTime_ != null) { - latestChangeTime_ = - com.google.protobuf.Timestamp.newBuilder(latestChangeTime_) - .mergeFrom(value) - .buildPartial(); - } else { - latestChangeTime_ = value; - } - onChanged(); - } else { - latestChangeTimeBuilder_.mergeFrom(value); - } - - 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() { - if (latestChangeTimeBuilder_ == null) { - latestChangeTime_ = null; - onChanged(); - } else { - latestChangeTime_ = null; - latestChangeTimeBuilder_ = null; - } - - 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() { - - 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; - 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() { - - 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; - 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(); - 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; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/SearchChangeHistoryEventsRequestOrBuilder.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/SearchChangeHistoryEventsRequestOrBuilder.java deleted file mode 100644 index eb347d9a..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/SearchChangeHistoryEventsRequestOrBuilder.java +++ /dev/null @@ -1,421 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/SearchChangeHistoryEventsResponse.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/SearchChangeHistoryEventsResponse.java deleted file mode 100644 index e59ed92f..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/SearchChangeHistoryEventsResponse.java +++ /dev/null @@ -1,1165 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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; - 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; - 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(); - 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); - int from_bitField0_ = bitField0_; - if (changeHistoryEventsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - changeHistoryEvents_ = java.util.Collections.unmodifiableList(changeHistoryEvents_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.changeHistoryEvents_ = changeHistoryEvents_; - } else { - result.changeHistoryEvents_ = changeHistoryEventsBuilder_.build(); - } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.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_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // 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; - onChanged(); - return this; - } - /** - * - * - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * - * @return This builder for chaining. - */ - public Builder clearNextPageToken() { - - nextPageToken_ = getDefaultInstance().getNextPageToken(); - onChanged(); - return this; - } - /** - * - * - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * - * @param value The bytes for nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - nextPageToken_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/SearchChangeHistoryEventsResponseOrBuilder.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/SearchChangeHistoryEventsResponseOrBuilder.java deleted file mode 100644 index 8686a73d..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/SearchChangeHistoryEventsResponseOrBuilder.java +++ /dev/null @@ -1,110 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ServiceLevel.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ServiceLevel.java deleted file mode 100644 index 72dd45b9..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ServiceLevel.java +++ /dev/null @@ -1,176 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateAccountRequest.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateAccountRequest.java deleted file mode 100644 index 581ae052..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateAccountRequest.java +++ /dev/null @@ -1,1039 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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 getAccount(); - } - - public static final int UPDATE_MASK_FIELD_NUMBER = 2; - private com.google.protobuf.FieldMask updateMask_; - /** - * - * - *
-   * Required. The list of fields to be updated. Field names must be in snake case
-   * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-   * the entire entity, use one path with the string "*" to match all fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the updateMask field is set. - */ - @java.lang.Override - public boolean hasUpdateMask() { - return updateMask_ != null; - } - /** - * - * - *
-   * Required. The list of fields to be updated. Field names must be in snake case
-   * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-   * the entire entity, use one path with the string "*" to match all fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The updateMask. - */ - @java.lang.Override - public com.google.protobuf.FieldMask getUpdateMask() { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - /** - * - * - *
-   * Required. The list of fields to be updated. Field names must be in snake case
-   * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-   * the entire entity, use one path with the string "*" to match all fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return getUpdateMask(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (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(); - if (accountBuilder_ == null) { - account_ = null; - } else { - account_ = null; - accountBuilder_ = null; - } - if (updateMaskBuilder_ == null) { - updateMask_ = null; - } else { - updateMask_ = null; - updateMaskBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.admin.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 (accountBuilder_ == null) { - result.account_ = account_; - } else { - result.account_ = accountBuilder_.build(); - } - if (updateMaskBuilder_ == null) { - result.updateMask_ = updateMask_; - } else { - result.updateMask_ = updateMaskBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.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); - - break; - } // case 10 - case 18: - { - input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - 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 accountBuilder_ != null || 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. - */ - 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; - onChanged(); - } else { - accountBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - accountBuilder_.setMessage(builderForValue.build()); - } - - 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 (account_ != null) { - account_ = - com.google.analytics.admin.v1beta.Account.newBuilder(account_) - .mergeFrom(value) - .buildPartial(); - } else { - account_ = value; - } - onChanged(); - } else { - accountBuilder_.mergeFrom(value); - } - - 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() { - if (accountBuilder_ == null) { - account_ = null; - onChanged(); - } else { - account_ = null; - accountBuilder_ = null; - } - - 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() { - - 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
-     * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-     * the entire entity, use one path with the string "*" to match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the updateMask field is set. - */ - public boolean hasUpdateMask() { - return updateMaskBuilder_ != null || updateMask_ != null; - } - /** - * - * - *
-     * Required. The list of fields to be updated. Field names must be in snake case
-     * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-     * the entire entity, use one path with the string "*" to match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The updateMask. - */ - public com.google.protobuf.FieldMask getUpdateMask() { - if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; - } else { - return updateMaskBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. The list of fields to be updated. Field names must be in snake case
-     * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-     * the entire entity, use one path with the string "*" to match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateMask_ = value; - onChanged(); - } else { - updateMaskBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. The list of fields to be updated. Field names must be in snake case
-     * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-     * the entire entity, use one path with the string "*" to match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { - if (updateMaskBuilder_ == null) { - updateMask_ = builderForValue.build(); - onChanged(); - } else { - updateMaskBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. The list of fields to be updated. Field names must be in snake case
-     * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-     * the entire entity, use one path with the string "*" to match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (updateMask_ != null) { - updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); - } else { - updateMask_ = value; - } - onChanged(); - } else { - updateMaskBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. The list of fields to be updated. Field names must be in snake case
-     * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-     * the entire entity, use one path with the string "*" to match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearUpdateMask() { - if (updateMaskBuilder_ == null) { - updateMask_ = null; - onChanged(); - } else { - updateMask_ = null; - updateMaskBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. The list of fields to be updated. Field names must be in snake case
-     * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-     * the entire entity, use one path with the string "*" to match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - - onChanged(); - return getUpdateMaskFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The list of fields to be updated. Field names must be in snake case
-     * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-     * the entire entity, use one path with the string "*" to match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - if (updateMaskBuilder_ != null) { - return updateMaskBuilder_.getMessageOrBuilder(); - } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; - } - } - /** - * - * - *
-     * Required. The list of fields to be updated. Field names must be in snake case
-     * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-     * the entire entity, use one path with the string "*" to match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - getUpdateMaskFieldBuilder() { - if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), getParentForChildren(), isClean()); - updateMask_ = null; - } - return updateMaskBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateAccountRequestOrBuilder.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateAccountRequestOrBuilder.java deleted file mode 100644 index 0fba6bf2..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateAccountRequestOrBuilder.java +++ /dev/null @@ -1,113 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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
-   * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-   * the entire entity, use one path with the string "*" to match all fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the updateMask field is set. - */ - boolean hasUpdateMask(); - /** - * - * - *
-   * Required. The list of fields to be updated. Field names must be in snake case
-   * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-   * the entire entity, use one path with the string "*" to match all fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The updateMask. - */ - com.google.protobuf.FieldMask getUpdateMask(); - /** - * - * - *
-   * Required. The list of fields to be updated. Field names must be in snake case
-   * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-   * the entire entity, use one path with the string "*" to match all fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); -} diff --git a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateCustomDimensionRequest.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateCustomDimensionRequest.java deleted file mode 100644 index 3b022a35..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateCustomDimensionRequest.java +++ /dev/null @@ -1,1010 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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 getCustomDimension(); - } - - public static final int UPDATE_MASK_FIELD_NUMBER = 2; - private com.google.protobuf.FieldMask updateMask_; - /** - * - * - *
-   * Required. The list of fields to be updated. Omitted fields will not be updated.
-   * To replace the entire entity, use one path with the string "*" to match
-   * all fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the updateMask field is set. - */ - @java.lang.Override - public boolean hasUpdateMask() { - return updateMask_ != null; - } - /** - * - * - *
-   * Required. The list of fields to be updated. Omitted fields will not be updated.
-   * To replace the entire entity, use one path with the string "*" to match
-   * all fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The updateMask. - */ - @java.lang.Override - public com.google.protobuf.FieldMask getUpdateMask() { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - /** - * - * - *
-   * Required. The list of fields to be updated. Omitted fields will not be updated.
-   * To replace the entire entity, use one path with the string "*" to match
-   * all fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return getUpdateMask(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (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(); - if (customDimensionBuilder_ == null) { - customDimension_ = null; - } else { - customDimension_ = null; - customDimensionBuilder_ = null; - } - if (updateMaskBuilder_ == null) { - updateMask_ = null; - } else { - updateMask_ = null; - updateMaskBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.admin.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 (customDimensionBuilder_ == null) { - result.customDimension_ = customDimension_; - } else { - result.customDimension_ = customDimensionBuilder_.build(); - } - if (updateMaskBuilder_ == null) { - result.updateMask_ = updateMask_; - } else { - result.updateMask_ = updateMaskBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.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); - - break; - } // case 10 - case 18: - { - input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - 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_; - /** - * - * - *
-     * The CustomDimension to update
-     * 
- * - * .google.analytics.admin.v1beta.CustomDimension custom_dimension = 1; - * - * @return Whether the customDimension field is set. - */ - public boolean hasCustomDimension() { - return customDimensionBuilder_ != null || customDimension_ != null; - } - /** - * - * - *
-     * 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; - onChanged(); - } else { - customDimensionBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - customDimensionBuilder_.setMessage(builderForValue.build()); - } - - 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 (customDimension_ != null) { - customDimension_ = - com.google.analytics.admin.v1beta.CustomDimension.newBuilder(customDimension_) - .mergeFrom(value) - .buildPartial(); - } else { - customDimension_ = value; - } - onChanged(); - } else { - customDimensionBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * The CustomDimension to update
-     * 
- * - * .google.analytics.admin.v1beta.CustomDimension custom_dimension = 1; - */ - public Builder clearCustomDimension() { - if (customDimensionBuilder_ == null) { - customDimension_ = null; - onChanged(); - } else { - customDimension_ = null; - customDimensionBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * The CustomDimension to update
-     * 
- * - * .google.analytics.admin.v1beta.CustomDimension custom_dimension = 1; - */ - public com.google.analytics.admin.v1beta.CustomDimension.Builder getCustomDimensionBuilder() { - - 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 updateMaskBuilder_ != null || updateMask_ != null; - } - /** - * - * - *
-     * Required. The list of fields to be updated. Omitted fields will not be updated.
-     * To replace the entire entity, use one path with the string "*" to match
-     * all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The updateMask. - */ - public com.google.protobuf.FieldMask getUpdateMask() { - if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; - } else { - return updateMaskBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. The list of fields to be updated. Omitted fields will not be updated.
-     * To replace the entire entity, use one path with the string "*" to match
-     * all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateMask_ = value; - onChanged(); - } else { - updateMaskBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. The list of fields to be updated. Omitted fields will not be updated.
-     * To replace the entire entity, use one path with the string "*" to match
-     * all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { - if (updateMaskBuilder_ == null) { - updateMask_ = builderForValue.build(); - onChanged(); - } else { - updateMaskBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. The list of fields to be updated. Omitted fields will not be updated.
-     * To replace the entire entity, use one path with the string "*" to match
-     * all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (updateMask_ != null) { - updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); - } else { - updateMask_ = value; - } - onChanged(); - } else { - updateMaskBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. The list of fields to be updated. Omitted fields will not be updated.
-     * To replace the entire entity, use one path with the string "*" to match
-     * all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearUpdateMask() { - if (updateMaskBuilder_ == null) { - updateMask_ = null; - onChanged(); - } else { - updateMask_ = null; - updateMaskBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. The list of fields to be updated. Omitted fields will not be updated.
-     * To replace the entire entity, use one path with the string "*" to match
-     * all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - - onChanged(); - return getUpdateMaskFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The list of fields to be updated. Omitted fields will not be updated.
-     * To replace the entire entity, use one path with the string "*" to match
-     * all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - if (updateMaskBuilder_ != null) { - return updateMaskBuilder_.getMessageOrBuilder(); - } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; - } - } - /** - * - * - *
-     * Required. The list of fields to be updated. Omitted fields will not be updated.
-     * To replace the entire entity, use one path with the string "*" to match
-     * all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - getUpdateMaskFieldBuilder() { - if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), getParentForChildren(), isClean()); - updateMask_ = null; - } - return updateMaskBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateCustomDimensionRequestOrBuilder.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateCustomDimensionRequestOrBuilder.java deleted file mode 100644 index fc32b920..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateCustomDimensionRequestOrBuilder.java +++ /dev/null @@ -1,104 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateCustomMetricRequest.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateCustomMetricRequest.java deleted file mode 100644 index 2b5ba82a..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateCustomMetricRequest.java +++ /dev/null @@ -1,1004 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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 getCustomMetric(); - } - - public static final int UPDATE_MASK_FIELD_NUMBER = 2; - private com.google.protobuf.FieldMask updateMask_; - /** - * - * - *
-   * Required. The list of fields to be updated. Omitted fields will not be updated.
-   * To replace the entire entity, use one path with the string "*" to match
-   * all fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the updateMask field is set. - */ - @java.lang.Override - public boolean hasUpdateMask() { - return updateMask_ != null; - } - /** - * - * - *
-   * Required. The list of fields to be updated. Omitted fields will not be updated.
-   * To replace the entire entity, use one path with the string "*" to match
-   * all fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The updateMask. - */ - @java.lang.Override - public com.google.protobuf.FieldMask getUpdateMask() { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - /** - * - * - *
-   * Required. The list of fields to be updated. Omitted fields will not be updated.
-   * To replace the entire entity, use one path with the string "*" to match
-   * all fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return getUpdateMask(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (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(); - if (customMetricBuilder_ == null) { - customMetric_ = null; - } else { - customMetric_ = null; - customMetricBuilder_ = null; - } - if (updateMaskBuilder_ == null) { - updateMask_ = null; - } else { - updateMask_ = null; - updateMaskBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.admin.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 (customMetricBuilder_ == null) { - result.customMetric_ = customMetric_; - } else { - result.customMetric_ = customMetricBuilder_.build(); - } - if (updateMaskBuilder_ == null) { - result.updateMask_ = updateMask_; - } else { - result.updateMask_ = updateMaskBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.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); - - break; - } // case 10 - case 18: - { - input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - 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_; - /** - * - * - *
-     * The CustomMetric to update
-     * 
- * - * .google.analytics.admin.v1beta.CustomMetric custom_metric = 1; - * - * @return Whether the customMetric field is set. - */ - public boolean hasCustomMetric() { - return customMetricBuilder_ != null || customMetric_ != null; - } - /** - * - * - *
-     * 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; - onChanged(); - } else { - customMetricBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - customMetricBuilder_.setMessage(builderForValue.build()); - } - - 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 (customMetric_ != null) { - customMetric_ = - com.google.analytics.admin.v1beta.CustomMetric.newBuilder(customMetric_) - .mergeFrom(value) - .buildPartial(); - } else { - customMetric_ = value; - } - onChanged(); - } else { - customMetricBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * The CustomMetric to update
-     * 
- * - * .google.analytics.admin.v1beta.CustomMetric custom_metric = 1; - */ - public Builder clearCustomMetric() { - if (customMetricBuilder_ == null) { - customMetric_ = null; - onChanged(); - } else { - customMetric_ = null; - customMetricBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * The CustomMetric to update
-     * 
- * - * .google.analytics.admin.v1beta.CustomMetric custom_metric = 1; - */ - public com.google.analytics.admin.v1beta.CustomMetric.Builder getCustomMetricBuilder() { - - 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 updateMaskBuilder_ != null || updateMask_ != null; - } - /** - * - * - *
-     * Required. The list of fields to be updated. Omitted fields will not be updated.
-     * To replace the entire entity, use one path with the string "*" to match
-     * all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The updateMask. - */ - public com.google.protobuf.FieldMask getUpdateMask() { - if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; - } else { - return updateMaskBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. The list of fields to be updated. Omitted fields will not be updated.
-     * To replace the entire entity, use one path with the string "*" to match
-     * all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateMask_ = value; - onChanged(); - } else { - updateMaskBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. The list of fields to be updated. Omitted fields will not be updated.
-     * To replace the entire entity, use one path with the string "*" to match
-     * all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { - if (updateMaskBuilder_ == null) { - updateMask_ = builderForValue.build(); - onChanged(); - } else { - updateMaskBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. The list of fields to be updated. Omitted fields will not be updated.
-     * To replace the entire entity, use one path with the string "*" to match
-     * all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (updateMask_ != null) { - updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); - } else { - updateMask_ = value; - } - onChanged(); - } else { - updateMaskBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. The list of fields to be updated. Omitted fields will not be updated.
-     * To replace the entire entity, use one path with the string "*" to match
-     * all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearUpdateMask() { - if (updateMaskBuilder_ == null) { - updateMask_ = null; - onChanged(); - } else { - updateMask_ = null; - updateMaskBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. The list of fields to be updated. Omitted fields will not be updated.
-     * To replace the entire entity, use one path with the string "*" to match
-     * all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - - onChanged(); - return getUpdateMaskFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The list of fields to be updated. Omitted fields will not be updated.
-     * To replace the entire entity, use one path with the string "*" to match
-     * all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - if (updateMaskBuilder_ != null) { - return updateMaskBuilder_.getMessageOrBuilder(); - } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; - } - } - /** - * - * - *
-     * Required. The list of fields to be updated. Omitted fields will not be updated.
-     * To replace the entire entity, use one path with the string "*" to match
-     * all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - getUpdateMaskFieldBuilder() { - if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), getParentForChildren(), isClean()); - updateMask_ = null; - } - return updateMaskBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateCustomMetricRequestOrBuilder.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateCustomMetricRequestOrBuilder.java deleted file mode 100644 index 2e3f2238..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateCustomMetricRequestOrBuilder.java +++ /dev/null @@ -1,104 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateDataRetentionSettingsRequest.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateDataRetentionSettingsRequest.java deleted file mode 100644 index 2c5ecdf7..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateDataRetentionSettingsRequest.java +++ /dev/null @@ -1,1059 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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 getDataRetentionSettings(); - } - - public static final int UPDATE_MASK_FIELD_NUMBER = 2; - private com.google.protobuf.FieldMask updateMask_; - /** - * - * - *
-   * Required. The list of fields to be updated. Field names must be in snake case
-   * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-   * the entire entity, use one path with the string "*" to match all fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the updateMask field is set. - */ - @java.lang.Override - public boolean hasUpdateMask() { - return updateMask_ != null; - } - /** - * - * - *
-   * Required. The list of fields to be updated. Field names must be in snake case
-   * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-   * the entire entity, use one path with the string "*" to match all fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The updateMask. - */ - @java.lang.Override - public com.google.protobuf.FieldMask getUpdateMask() { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - /** - * - * - *
-   * Required. The list of fields to be updated. Field names must be in snake case
-   * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-   * the entire entity, use one path with the string "*" to match all fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return getUpdateMask(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (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(); - if (dataRetentionSettingsBuilder_ == null) { - dataRetentionSettings_ = null; - } else { - dataRetentionSettings_ = null; - dataRetentionSettingsBuilder_ = null; - } - if (updateMaskBuilder_ == null) { - updateMask_ = null; - } else { - updateMask_ = null; - updateMaskBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.admin.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 (dataRetentionSettingsBuilder_ == null) { - result.dataRetentionSettings_ = dataRetentionSettings_; - } else { - result.dataRetentionSettings_ = dataRetentionSettingsBuilder_.build(); - } - if (updateMaskBuilder_ == null) { - result.updateMask_ = updateMask_; - } else { - result.updateMask_ = updateMaskBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.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); - - break; - } // case 10 - case 18: - { - input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - 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 dataRetentionSettingsBuilder_ != null || 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. - */ - 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; - onChanged(); - } else { - dataRetentionSettingsBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - dataRetentionSettingsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. The settings to update.
-     * The `name` field is used to identify the settings to be updated.
-     * 
- * - * - * .google.analytics.admin.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 (dataRetentionSettings_ != null) { - dataRetentionSettings_ = - com.google.analytics.admin.v1beta.DataRetentionSettings.newBuilder( - dataRetentionSettings_) - .mergeFrom(value) - .buildPartial(); - } else { - dataRetentionSettings_ = value; - } - onChanged(); - } else { - dataRetentionSettingsBuilder_.mergeFrom(value); - } - - 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() { - if (dataRetentionSettingsBuilder_ == null) { - dataRetentionSettings_ = null; - onChanged(); - } else { - dataRetentionSettings_ = null; - dataRetentionSettingsBuilder_ = null; - } - - 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() { - - 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 updateMaskBuilder_ != null || updateMask_ != null; - } - /** - * - * - *
-     * Required. The list of fields to be updated. Field names must be in snake case
-     * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-     * the entire entity, use one path with the string "*" to match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The updateMask. - */ - public com.google.protobuf.FieldMask getUpdateMask() { - if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; - } else { - return updateMaskBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. The list of fields to be updated. Field names must be in snake case
-     * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-     * the entire entity, use one path with the string "*" to match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateMask_ = value; - onChanged(); - } else { - updateMaskBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. The list of fields to be updated. Field names must be in snake case
-     * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-     * the entire entity, use one path with the string "*" to match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { - if (updateMaskBuilder_ == null) { - updateMask_ = builderForValue.build(); - onChanged(); - } else { - updateMaskBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. The list of fields to be updated. Field names must be in snake case
-     * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-     * the entire entity, use one path with the string "*" to match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (updateMask_ != null) { - updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); - } else { - updateMask_ = value; - } - onChanged(); - } else { - updateMaskBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. The list of fields to be updated. Field names must be in snake case
-     * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-     * the entire entity, use one path with the string "*" to match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearUpdateMask() { - if (updateMaskBuilder_ == null) { - updateMask_ = null; - onChanged(); - } else { - updateMask_ = null; - updateMaskBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. The list of fields to be updated. Field names must be in snake case
-     * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-     * the entire entity, use one path with the string "*" to match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - - onChanged(); - return getUpdateMaskFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The list of fields to be updated. Field names must be in snake case
-     * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-     * the entire entity, use one path with the string "*" to match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - if (updateMaskBuilder_ != null) { - return updateMaskBuilder_.getMessageOrBuilder(); - } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; - } - } - /** - * - * - *
-     * Required. The list of fields to be updated. Field names must be in snake case
-     * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-     * the entire entity, use one path with the string "*" to match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - getUpdateMaskFieldBuilder() { - if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), getParentForChildren(), isClean()); - updateMask_ = null; - } - return updateMaskBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateDataRetentionSettingsRequestOrBuilder.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateDataRetentionSettingsRequestOrBuilder.java deleted file mode 100644 index 6ad37f6e..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateDataRetentionSettingsRequestOrBuilder.java +++ /dev/null @@ -1,114 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateDataStreamRequest.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateDataStreamRequest.java deleted file mode 100644 index 94f39adb..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateDataStreamRequest.java +++ /dev/null @@ -1,1004 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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 getDataStream(); - } - - public static final int UPDATE_MASK_FIELD_NUMBER = 2; - private com.google.protobuf.FieldMask updateMask_; - /** - * - * - *
-   * Required. The list of fields to be updated. Omitted fields will not be updated.
-   * To replace the entire entity, use one path with the string "*" to match
-   * all fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the updateMask field is set. - */ - @java.lang.Override - public boolean hasUpdateMask() { - return updateMask_ != null; - } - /** - * - * - *
-   * Required. The list of fields to be updated. Omitted fields will not be updated.
-   * To replace the entire entity, use one path with the string "*" to match
-   * all fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The updateMask. - */ - @java.lang.Override - public com.google.protobuf.FieldMask getUpdateMask() { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - /** - * - * - *
-   * Required. The list of fields to be updated. Omitted fields will not be updated.
-   * To replace the entire entity, use one path with the string "*" to match
-   * all fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return getUpdateMask(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (dataStream_ != null) { - output.writeMessage(1, getDataStream()); - } - if (updateMask_ != null) { - output.writeMessage(2, getUpdateMask()); - } - 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(); - if (dataStreamBuilder_ == null) { - dataStream_ = null; - } else { - dataStream_ = null; - dataStreamBuilder_ = null; - } - if (updateMaskBuilder_ == null) { - updateMask_ = null; - } else { - updateMask_ = null; - updateMaskBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.admin.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 (dataStreamBuilder_ == null) { - result.dataStream_ = dataStream_; - } else { - result.dataStream_ = dataStreamBuilder_.build(); - } - if (updateMaskBuilder_ == null) { - result.updateMask_ = updateMask_; - } else { - result.updateMask_ = updateMaskBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.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); - - break; - } // case 10 - case 18: - { - input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - 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_; - /** - * - * - *
-     * The DataStream to update
-     * 
- * - * .google.analytics.admin.v1beta.DataStream data_stream = 1; - * - * @return Whether the dataStream field is set. - */ - public boolean hasDataStream() { - return dataStreamBuilder_ != null || dataStream_ != null; - } - /** - * - * - *
-     * The DataStream to update
-     * 
- * - * .google.analytics.admin.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; - onChanged(); - } else { - dataStreamBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - dataStreamBuilder_.setMessage(builderForValue.build()); - } - - 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 (dataStream_ != null) { - dataStream_ = - com.google.analytics.admin.v1beta.DataStream.newBuilder(dataStream_) - .mergeFrom(value) - .buildPartial(); - } else { - dataStream_ = value; - } - onChanged(); - } else { - dataStreamBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * The DataStream to update
-     * 
- * - * .google.analytics.admin.v1beta.DataStream data_stream = 1; - */ - public Builder clearDataStream() { - if (dataStreamBuilder_ == null) { - dataStream_ = null; - onChanged(); - } else { - dataStream_ = null; - dataStreamBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * The DataStream to update
-     * 
- * - * .google.analytics.admin.v1beta.DataStream data_stream = 1; - */ - public com.google.analytics.admin.v1beta.DataStream.Builder getDataStreamBuilder() { - - 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 updateMaskBuilder_ != null || updateMask_ != null; - } - /** - * - * - *
-     * Required. The list of fields to be updated. Omitted fields will not be updated.
-     * To replace the entire entity, use one path with the string "*" to match
-     * all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The updateMask. - */ - public com.google.protobuf.FieldMask getUpdateMask() { - if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; - } else { - return updateMaskBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. The list of fields to be updated. Omitted fields will not be updated.
-     * To replace the entire entity, use one path with the string "*" to match
-     * all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateMask_ = value; - onChanged(); - } else { - updateMaskBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. The list of fields to be updated. Omitted fields will not be updated.
-     * To replace the entire entity, use one path with the string "*" to match
-     * all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { - if (updateMaskBuilder_ == null) { - updateMask_ = builderForValue.build(); - onChanged(); - } else { - updateMaskBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. The list of fields to be updated. Omitted fields will not be updated.
-     * To replace the entire entity, use one path with the string "*" to match
-     * all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (updateMask_ != null) { - updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); - } else { - updateMask_ = value; - } - onChanged(); - } else { - updateMaskBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. The list of fields to be updated. Omitted fields will not be updated.
-     * To replace the entire entity, use one path with the string "*" to match
-     * all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearUpdateMask() { - if (updateMaskBuilder_ == null) { - updateMask_ = null; - onChanged(); - } else { - updateMask_ = null; - updateMaskBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. The list of fields to be updated. Omitted fields will not be updated.
-     * To replace the entire entity, use one path with the string "*" to match
-     * all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - - onChanged(); - return getUpdateMaskFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The list of fields to be updated. Omitted fields will not be updated.
-     * To replace the entire entity, use one path with the string "*" to match
-     * all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - if (updateMaskBuilder_ != null) { - return updateMaskBuilder_.getMessageOrBuilder(); - } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; - } - } - /** - * - * - *
-     * Required. The list of fields to be updated. Omitted fields will not be updated.
-     * To replace the entire entity, use one path with the string "*" to match
-     * all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - getUpdateMaskFieldBuilder() { - if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), getParentForChildren(), isClean()); - updateMask_ = null; - } - return updateMaskBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateDataStreamRequestOrBuilder.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateDataStreamRequestOrBuilder.java deleted file mode 100644 index 1d454c49..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateDataStreamRequestOrBuilder.java +++ /dev/null @@ -1,104 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateGoogleAdsLinkRequest.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateGoogleAdsLinkRequest.java deleted file mode 100644 index dc467c51..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateGoogleAdsLinkRequest.java +++ /dev/null @@ -1,1007 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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 getGoogleAdsLink(); - } - - public static final int UPDATE_MASK_FIELD_NUMBER = 2; - private com.google.protobuf.FieldMask updateMask_; - /** - * - * - *
-   * Required. The list of fields to be updated. Field names must be in snake case
-   * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-   * the entire entity, use one path with the string "*" to match all fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the updateMask field is set. - */ - @java.lang.Override - public boolean hasUpdateMask() { - return updateMask_ != null; - } - /** - * - * - *
-   * Required. The list of fields to be updated. Field names must be in snake case
-   * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-   * the entire entity, use one path with the string "*" to match all fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The updateMask. - */ - @java.lang.Override - public com.google.protobuf.FieldMask getUpdateMask() { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - /** - * - * - *
-   * Required. The list of fields to be updated. Field names must be in snake case
-   * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-   * the entire entity, use one path with the string "*" to match all fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return getUpdateMask(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (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(); - if (googleAdsLinkBuilder_ == null) { - googleAdsLink_ = null; - } else { - googleAdsLink_ = null; - googleAdsLinkBuilder_ = null; - } - if (updateMaskBuilder_ == null) { - updateMask_ = null; - } else { - updateMask_ = null; - updateMaskBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.admin.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 (googleAdsLinkBuilder_ == null) { - result.googleAdsLink_ = googleAdsLink_; - } else { - result.googleAdsLink_ = googleAdsLinkBuilder_.build(); - } - if (updateMaskBuilder_ == null) { - result.updateMask_ = updateMask_; - } else { - result.updateMask_ = updateMaskBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.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); - - break; - } // case 10 - case 18: - { - input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - 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_; - /** - * - * - *
-     * The GoogleAdsLink to update
-     * 
- * - * .google.analytics.admin.v1beta.GoogleAdsLink google_ads_link = 1; - * - * @return Whether the googleAdsLink field is set. - */ - public boolean hasGoogleAdsLink() { - return googleAdsLinkBuilder_ != null || googleAdsLink_ != null; - } - /** - * - * - *
-     * 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; - onChanged(); - } else { - googleAdsLinkBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - googleAdsLinkBuilder_.setMessage(builderForValue.build()); - } - - 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 (googleAdsLink_ != null) { - googleAdsLink_ = - com.google.analytics.admin.v1beta.GoogleAdsLink.newBuilder(googleAdsLink_) - .mergeFrom(value) - .buildPartial(); - } else { - googleAdsLink_ = value; - } - onChanged(); - } else { - googleAdsLinkBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * The GoogleAdsLink to update
-     * 
- * - * .google.analytics.admin.v1beta.GoogleAdsLink google_ads_link = 1; - */ - public Builder clearGoogleAdsLink() { - if (googleAdsLinkBuilder_ == null) { - googleAdsLink_ = null; - onChanged(); - } else { - googleAdsLink_ = null; - googleAdsLinkBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * The GoogleAdsLink to update
-     * 
- * - * .google.analytics.admin.v1beta.GoogleAdsLink google_ads_link = 1; - */ - public com.google.analytics.admin.v1beta.GoogleAdsLink.Builder getGoogleAdsLinkBuilder() { - - 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 updateMaskBuilder_ != null || updateMask_ != null; - } - /** - * - * - *
-     * Required. The list of fields to be updated. Field names must be in snake case
-     * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-     * the entire entity, use one path with the string "*" to match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The updateMask. - */ - public com.google.protobuf.FieldMask getUpdateMask() { - if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; - } else { - return updateMaskBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. The list of fields to be updated. Field names must be in snake case
-     * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-     * the entire entity, use one path with the string "*" to match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateMask_ = value; - onChanged(); - } else { - updateMaskBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. The list of fields to be updated. Field names must be in snake case
-     * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-     * the entire entity, use one path with the string "*" to match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { - if (updateMaskBuilder_ == null) { - updateMask_ = builderForValue.build(); - onChanged(); - } else { - updateMaskBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. The list of fields to be updated. Field names must be in snake case
-     * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-     * the entire entity, use one path with the string "*" to match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (updateMask_ != null) { - updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); - } else { - updateMask_ = value; - } - onChanged(); - } else { - updateMaskBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. The list of fields to be updated. Field names must be in snake case
-     * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-     * the entire entity, use one path with the string "*" to match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearUpdateMask() { - if (updateMaskBuilder_ == null) { - updateMask_ = null; - onChanged(); - } else { - updateMask_ = null; - updateMaskBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. The list of fields to be updated. Field names must be in snake case
-     * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-     * the entire entity, use one path with the string "*" to match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - - onChanged(); - return getUpdateMaskFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The list of fields to be updated. Field names must be in snake case
-     * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-     * the entire entity, use one path with the string "*" to match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - if (updateMaskBuilder_ != null) { - return updateMaskBuilder_.getMessageOrBuilder(); - } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; - } - } - /** - * - * - *
-     * Required. The list of fields to be updated. Field names must be in snake case
-     * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-     * the entire entity, use one path with the string "*" to match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - getUpdateMaskFieldBuilder() { - if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), getParentForChildren(), isClean()); - updateMask_ = null; - } - return updateMaskBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateGoogleAdsLinkRequestOrBuilder.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateGoogleAdsLinkRequestOrBuilder.java deleted file mode 100644 index 81e0014e..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateGoogleAdsLinkRequestOrBuilder.java +++ /dev/null @@ -1,104 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateMeasurementProtocolSecretRequest.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateMeasurementProtocolSecretRequest.java deleted file mode 100644 index 9bfaf1ab..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateMeasurementProtocolSecretRequest.java +++ /dev/null @@ -1,1021 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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 getMeasurementProtocolSecret(); - } - - public static final int UPDATE_MASK_FIELD_NUMBER = 2; - private com.google.protobuf.FieldMask updateMask_; - /** - * - * - *
-   * The list of fields to be updated. Omitted fields will not be updated.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2; - * - * @return Whether the updateMask field is set. - */ - @java.lang.Override - public boolean hasUpdateMask() { - return updateMask_ != null; - } - /** - * - * - *
-   * The list of fields to be updated. Omitted fields will not be updated.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2; - * - * @return The updateMask. - */ - @java.lang.Override - public com.google.protobuf.FieldMask getUpdateMask() { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - /** - * - * - *
-   * The list of fields to be updated. Omitted fields will not be updated.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - @java.lang.Override - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return getUpdateMask(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (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(); - if (measurementProtocolSecretBuilder_ == null) { - measurementProtocolSecret_ = null; - } else { - measurementProtocolSecret_ = null; - measurementProtocolSecretBuilder_ = null; - } - if (updateMaskBuilder_ == null) { - updateMask_ = null; - } else { - updateMask_ = null; - updateMaskBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.admin.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 (measurementProtocolSecretBuilder_ == null) { - result.measurementProtocolSecret_ = measurementProtocolSecret_; - } else { - result.measurementProtocolSecret_ = measurementProtocolSecretBuilder_.build(); - } - if (updateMaskBuilder_ == null) { - result.updateMask_ = updateMask_; - } else { - result.updateMask_ = updateMaskBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof com.google.analytics.admin.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); - - break; - } // case 10 - case 18: - { - input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - 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 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 measurementProtocolSecretBuilder_ != null || 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. - */ - 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; - onChanged(); - } else { - measurementProtocolSecretBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - measurementProtocolSecretBuilder_.setMessage(builderForValue.build()); - } - - 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 (measurementProtocolSecret_ != null) { - measurementProtocolSecret_ = - com.google.analytics.admin.v1beta.MeasurementProtocolSecret.newBuilder( - measurementProtocolSecret_) - .mergeFrom(value) - .buildPartial(); - } else { - measurementProtocolSecret_ = value; - } - onChanged(); - } else { - measurementProtocolSecretBuilder_.mergeFrom(value); - } - - 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() { - if (measurementProtocolSecretBuilder_ == null) { - measurementProtocolSecret_ = null; - onChanged(); - } else { - measurementProtocolSecret_ = null; - measurementProtocolSecretBuilder_ = null; - } - - 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() { - - 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_; - /** - * - * - *
-     * The list of fields to be updated. Omitted fields will not be updated.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - * - * @return Whether the updateMask field is set. - */ - public boolean hasUpdateMask() { - return updateMaskBuilder_ != null || updateMask_ != null; - } - /** - * - * - *
-     * The list of fields to be updated. Omitted fields will not be updated.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - * - * @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(); - } - } - /** - * - * - *
-     * The list of fields to be updated. Omitted fields will not be updated.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateMask_ = value; - onChanged(); - } else { - updateMaskBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * The list of fields to be updated. Omitted fields will not be updated.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { - if (updateMaskBuilder_ == null) { - updateMask_ = builderForValue.build(); - onChanged(); - } else { - updateMaskBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * The list of fields to be updated. Omitted fields will not be updated.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (updateMask_ != null) { - updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); - } else { - updateMask_ = value; - } - onChanged(); - } else { - updateMaskBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * The list of fields to be updated. Omitted fields will not be updated.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - public Builder clearUpdateMask() { - if (updateMaskBuilder_ == null) { - updateMask_ = null; - onChanged(); - } else { - updateMask_ = null; - updateMaskBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * The list of fields to be updated. Omitted fields will not be updated.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - - onChanged(); - return getUpdateMaskFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The list of fields to be updated. Omitted fields will not be updated.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - if (updateMaskBuilder_ != null) { - return updateMaskBuilder_.getMessageOrBuilder(); - } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; - } - } - /** - * - * - *
-     * The list of fields to be updated. Omitted fields will not be updated.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - 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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateMeasurementProtocolSecretRequestOrBuilder.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateMeasurementProtocolSecretRequestOrBuilder.java deleted file mode 100644 index 938c81ba..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateMeasurementProtocolSecretRequestOrBuilder.java +++ /dev/null @@ -1,102 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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(); - - /** - * - * - *
-   * The list of fields to be updated. Omitted fields will not be updated.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2; - * - * @return Whether the updateMask field is set. - */ - boolean hasUpdateMask(); - /** - * - * - *
-   * The list of fields to be updated. Omitted fields will not be updated.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2; - * - * @return The updateMask. - */ - com.google.protobuf.FieldMask getUpdateMask(); - /** - * - * - *
-   * The list of fields to be updated. Omitted fields will not be updated.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); -} diff --git a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdatePropertyRequest.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdatePropertyRequest.java deleted file mode 100644 index 8b5ad5c4..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdatePropertyRequest.java +++ /dev/null @@ -1,1051 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - 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 getProperty(); - } - - public static final int UPDATE_MASK_FIELD_NUMBER = 2; - private com.google.protobuf.FieldMask updateMask_; - /** - * - * - *
-   * Required. The list of fields to be updated. Field names must be in snake case
-   * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-   * the entire entity, use one path with the string "*" to match all fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the updateMask field is set. - */ - @java.lang.Override - public boolean hasUpdateMask() { - return updateMask_ != null; - } - /** - * - * - *
-   * Required. The list of fields to be updated. Field names must be in snake case
-   * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-   * the entire entity, use one path with the string "*" to match all fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The updateMask. - */ - @java.lang.Override - public com.google.protobuf.FieldMask getUpdateMask() { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - /** - * - * - *
-   * Required. The list of fields to be updated. Field names must be in snake case
-   * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-   * the entire entity, use one path with the string "*" to match all fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return getUpdateMask(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (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(); - if (propertyBuilder_ == null) { - property_ = null; - } else { - property_ = null; - propertyBuilder_ = null; - } - if (updateMaskBuilder_ == null) { - updateMask_ = null; - } else { - updateMask_ = null; - updateMaskBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.admin.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 (propertyBuilder_ == null) { - result.property_ = property_; - } else { - result.property_ = propertyBuilder_.build(); - } - if (updateMaskBuilder_ == null) { - result.updateMask_ = updateMask_; - } else { - result.updateMask_ = updateMaskBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.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); - - break; - } // case 10 - case 18: - { - input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - 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 propertyBuilder_ != null || 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. - */ - 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; - onChanged(); - } else { - propertyBuilder_.setMessage(value); - } - - 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(); - onChanged(); - } else { - propertyBuilder_.setMessage(builderForValue.build()); - } - - 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 (property_ != null) { - property_ = - com.google.analytics.admin.v1beta.Property.newBuilder(property_) - .mergeFrom(value) - .buildPartial(); - } else { - property_ = value; - } - onChanged(); - } else { - propertyBuilder_.mergeFrom(value); - } - - 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() { - if (propertyBuilder_ == null) { - property_ = null; - onChanged(); - } else { - property_ = null; - propertyBuilder_ = null; - } - - 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() { - - 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 updateMaskBuilder_ != null || updateMask_ != null; - } - /** - * - * - *
-     * Required. The list of fields to be updated. Field names must be in snake case
-     * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-     * the entire entity, use one path with the string "*" to match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The updateMask. - */ - public com.google.protobuf.FieldMask getUpdateMask() { - if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; - } else { - return updateMaskBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. The list of fields to be updated. Field names must be in snake case
-     * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-     * the entire entity, use one path with the string "*" to match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateMask_ = value; - onChanged(); - } else { - updateMaskBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. The list of fields to be updated. Field names must be in snake case
-     * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-     * the entire entity, use one path with the string "*" to match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { - if (updateMaskBuilder_ == null) { - updateMask_ = builderForValue.build(); - onChanged(); - } else { - updateMaskBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. The list of fields to be updated. Field names must be in snake case
-     * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-     * the entire entity, use one path with the string "*" to match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (updateMask_ != null) { - updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); - } else { - updateMask_ = value; - } - onChanged(); - } else { - updateMaskBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. The list of fields to be updated. Field names must be in snake case
-     * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-     * the entire entity, use one path with the string "*" to match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearUpdateMask() { - if (updateMaskBuilder_ == null) { - updateMask_ = null; - onChanged(); - } else { - updateMask_ = null; - updateMaskBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. The list of fields to be updated. Field names must be in snake case
-     * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-     * the entire entity, use one path with the string "*" to match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - - onChanged(); - return getUpdateMaskFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The list of fields to be updated. Field names must be in snake case
-     * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-     * the entire entity, use one path with the string "*" to match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - if (updateMaskBuilder_ != null) { - return updateMaskBuilder_.getMessageOrBuilder(); - } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; - } - } - /** - * - * - *
-     * Required. The list of fields to be updated. Field names must be in snake case
-     * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-     * the entire entity, use one path with the string "*" to match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - getUpdateMaskFieldBuilder() { - if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), getParentForChildren(), isClean()); - updateMask_ = null; - } - return updateMaskBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.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/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdatePropertyRequestOrBuilder.java b/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdatePropertyRequestOrBuilder.java deleted file mode 100644 index ae3d9529..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdatePropertyRequestOrBuilder.java +++ /dev/null @@ -1,116 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/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/proto-google-analytics-admin-v1beta/src/main/proto/google/analytics/admin/v1beta/analytics_admin.proto b/proto-google-analytics-admin-v1beta/src/main/proto/google/analytics/admin/v1beta/analytics_admin.proto deleted file mode 100644 index 7e80f736..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/proto/google/analytics/admin/v1beta/analytics_admin.proto +++ /dev/null @@ -1,1333 +0,0 @@ -// Copyright 2022 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.analytics.admin.v1beta; - -import "google/analytics/admin/v1beta/resources.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/empty.proto"; -import "google/protobuf/field_mask.proto"; -import "google/protobuf/timestamp.proto"; - -option go_package = "google.golang.org/genproto/googleapis/analytics/admin/v1beta;admin"; -option java_multiple_files = true; -option java_outer_classname = "AnalyticsAdminProto"; -option java_package = "com.google.analytics.admin.v1beta"; - -// Service Interface for the Analytics Admin API (GA4). -service AnalyticsAdminService { - option (google.api.default_host) = "analyticsadmin.googleapis.com"; - option (google.api.oauth_scopes) = - "https://www.googleapis.com/auth/analytics.edit," - "https://www.googleapis.com/auth/analytics.readonly"; - - // Lookup for a single Account. - rpc GetAccount(GetAccountRequest) returns (Account) { - option (google.api.http) = { - get: "/v1beta/{name=accounts/*}" - }; - option (google.api.method_signature) = "name"; - } - - // 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. - rpc ListAccounts(ListAccountsRequest) returns (ListAccountsResponse) { - option (google.api.http) = { - get: "/v1beta/accounts" - }; - } - - // 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. - rpc DeleteAccount(DeleteAccountRequest) returns (google.protobuf.Empty) { - option (google.api.http) = { - delete: "/v1beta/{name=accounts/*}" - }; - option (google.api.method_signature) = "name"; - } - - // Updates an account. - rpc UpdateAccount(UpdateAccountRequest) returns (Account) { - option (google.api.http) = { - patch: "/v1beta/{account.name=accounts/*}" - body: "account" - }; - option (google.api.method_signature) = "account,update_mask"; - } - - // Requests a ticket for creating an account. - rpc ProvisionAccountTicket(ProvisionAccountTicketRequest) returns (ProvisionAccountTicketResponse) { - option (google.api.http) = { - post: "/v1beta/accounts:provisionAccountTicket" - body: "*" - }; - } - - // Returns summaries of all accounts accessible by the caller. - rpc ListAccountSummaries(ListAccountSummariesRequest) returns (ListAccountSummariesResponse) { - option (google.api.http) = { - get: "/v1beta/accountSummaries" - }; - } - - // Lookup for a single "GA4" Property. - rpc GetProperty(GetPropertyRequest) returns (Property) { - option (google.api.http) = { - get: "/v1beta/{name=properties/*}" - }; - option (google.api.method_signature) = "name"; - } - - // 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. - rpc ListProperties(ListPropertiesRequest) returns (ListPropertiesResponse) { - option (google.api.http) = { - get: "/v1beta/properties" - }; - } - - // Creates an "GA4" property with the specified location and attributes. - rpc CreateProperty(CreatePropertyRequest) returns (Property) { - option (google.api.http) = { - post: "/v1beta/properties" - body: "property" - }; - option (google.api.method_signature) = "property"; - } - - // 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 an GA4 Property. - rpc DeleteProperty(DeletePropertyRequest) returns (Property) { - option (google.api.http) = { - delete: "/v1beta/{name=properties/*}" - }; - option (google.api.method_signature) = "name"; - } - - // Updates a property. - rpc UpdateProperty(UpdatePropertyRequest) returns (Property) { - option (google.api.http) = { - patch: "/v1beta/{property.name=properties/*}" - body: "property" - }; - option (google.api.method_signature) = "property,update_mask"; - } - - // Creates a FirebaseLink. - // - // Properties can have at most one FirebaseLink. - rpc CreateFirebaseLink(CreateFirebaseLinkRequest) returns (FirebaseLink) { - option (google.api.http) = { - post: "/v1beta/{parent=properties/*}/firebaseLinks" - body: "firebase_link" - }; - option (google.api.method_signature) = "parent,firebase_link"; - } - - // Deletes a FirebaseLink on a property - rpc DeleteFirebaseLink(DeleteFirebaseLinkRequest) returns (google.protobuf.Empty) { - option (google.api.http) = { - delete: "/v1beta/{name=properties/*/firebaseLinks/*}" - }; - option (google.api.method_signature) = "name"; - } - - // Lists FirebaseLinks on a property. - // Properties can have at most one FirebaseLink. - rpc ListFirebaseLinks(ListFirebaseLinksRequest) returns (ListFirebaseLinksResponse) { - option (google.api.http) = { - get: "/v1beta/{parent=properties/*}/firebaseLinks" - }; - option (google.api.method_signature) = "parent"; - } - - // Creates a GoogleAdsLink. - rpc CreateGoogleAdsLink(CreateGoogleAdsLinkRequest) returns (GoogleAdsLink) { - option (google.api.http) = { - post: "/v1beta/{parent=properties/*}/googleAdsLinks" - body: "google_ads_link" - }; - option (google.api.method_signature) = "parent,google_ads_link"; - } - - // Updates a GoogleAdsLink on a property - rpc UpdateGoogleAdsLink(UpdateGoogleAdsLinkRequest) returns (GoogleAdsLink) { - option (google.api.http) = { - patch: "/v1beta/{google_ads_link.name=properties/*/googleAdsLinks/*}" - body: "google_ads_link" - }; - option (google.api.method_signature) = "google_ads_link,update_mask"; - } - - // Deletes a GoogleAdsLink on a property - rpc DeleteGoogleAdsLink(DeleteGoogleAdsLinkRequest) returns (google.protobuf.Empty) { - option (google.api.http) = { - delete: "/v1beta/{name=properties/*/googleAdsLinks/*}" - }; - option (google.api.method_signature) = "name"; - } - - // Lists GoogleAdsLinks on a property. - rpc ListGoogleAdsLinks(ListGoogleAdsLinksRequest) returns (ListGoogleAdsLinksResponse) { - option (google.api.http) = { - get: "/v1beta/{parent=properties/*}/googleAdsLinks" - }; - option (google.api.method_signature) = "parent"; - } - - // Get data sharing settings on an account. - // Data sharing settings are singletons. - rpc GetDataSharingSettings(GetDataSharingSettingsRequest) returns (DataSharingSettings) { - option (google.api.http) = { - get: "/v1beta/{name=accounts/*/dataSharingSettings}" - }; - option (google.api.method_signature) = "name"; - } - - // Lookup for a single "GA4" MeasurementProtocolSecret. - rpc GetMeasurementProtocolSecret(GetMeasurementProtocolSecretRequest) returns (MeasurementProtocolSecret) { - option (google.api.http) = { - get: "/v1beta/{name=properties/*/dataStreams/*/measurementProtocolSecrets/*}" - }; - option (google.api.method_signature) = "name"; - } - - // Returns child MeasurementProtocolSecrets under the specified parent - // Property. - rpc ListMeasurementProtocolSecrets(ListMeasurementProtocolSecretsRequest) returns (ListMeasurementProtocolSecretsResponse) { - option (google.api.http) = { - get: "/v1beta/{parent=properties/*/dataStreams/*}/measurementProtocolSecrets" - }; - option (google.api.method_signature) = "parent"; - } - - // Creates a measurement protocol secret. - rpc CreateMeasurementProtocolSecret(CreateMeasurementProtocolSecretRequest) returns (MeasurementProtocolSecret) { - option (google.api.http) = { - post: "/v1beta/{parent=properties/*/dataStreams/*}/measurementProtocolSecrets" - body: "measurement_protocol_secret" - }; - option (google.api.method_signature) = "parent,measurement_protocol_secret"; - } - - // Deletes target MeasurementProtocolSecret. - rpc DeleteMeasurementProtocolSecret(DeleteMeasurementProtocolSecretRequest) returns (google.protobuf.Empty) { - option (google.api.http) = { - delete: "/v1beta/{name=properties/*/dataStreams/*/measurementProtocolSecrets/*}" - }; - option (google.api.method_signature) = "name"; - } - - // Updates a measurement protocol secret. - rpc UpdateMeasurementProtocolSecret(UpdateMeasurementProtocolSecretRequest) returns (MeasurementProtocolSecret) { - option (google.api.http) = { - patch: "/v1beta/{measurement_protocol_secret.name=properties/*/dataStreams/*/measurementProtocolSecrets/*}" - body: "measurement_protocol_secret" - }; - option (google.api.method_signature) = "measurement_protocol_secret,update_mask"; - } - - // Acknowledges the terms of user data collection for the specified property. - // - // This acknowledgement must be completed (either in the Google Analytics UI - // or via this API) before MeasurementProtocolSecret resources may be created. - rpc AcknowledgeUserDataCollection(AcknowledgeUserDataCollectionRequest) returns (AcknowledgeUserDataCollectionResponse) { - option (google.api.http) = { - post: "/v1beta/{property=properties/*}:acknowledgeUserDataCollection" - body: "*" - }; - } - - // Searches through all changes to an account or its children given the - // specified set of filters. - rpc SearchChangeHistoryEvents(SearchChangeHistoryEventsRequest) returns (SearchChangeHistoryEventsResponse) { - option (google.api.http) = { - post: "/v1beta/{account=accounts/*}:searchChangeHistoryEvents" - body: "*" - }; - } - - // Creates a conversion event with the specified attributes. - rpc CreateConversionEvent(CreateConversionEventRequest) returns (ConversionEvent) { - option (google.api.http) = { - post: "/v1beta/{parent=properties/*}/conversionEvents" - body: "conversion_event" - }; - option (google.api.method_signature) = "parent,conversion_event"; - } - - // Retrieve a single conversion event. - rpc GetConversionEvent(GetConversionEventRequest) returns (ConversionEvent) { - option (google.api.http) = { - get: "/v1beta/{name=properties/*/conversionEvents/*}" - }; - option (google.api.method_signature) = "name"; - } - - // Deletes a conversion event in a property. - rpc DeleteConversionEvent(DeleteConversionEventRequest) returns (google.protobuf.Empty) { - option (google.api.http) = { - delete: "/v1beta/{name=properties/*/conversionEvents/*}" - }; - option (google.api.method_signature) = "name"; - } - - // Returns a list of conversion events in the specified parent property. - // - // Returns an empty list if no conversion events are found. - rpc ListConversionEvents(ListConversionEventsRequest) returns (ListConversionEventsResponse) { - option (google.api.http) = { - get: "/v1beta/{parent=properties/*}/conversionEvents" - }; - option (google.api.method_signature) = "parent"; - } - - // Creates a CustomDimension. - rpc CreateCustomDimension(CreateCustomDimensionRequest) returns (CustomDimension) { - option (google.api.http) = { - post: "/v1beta/{parent=properties/*}/customDimensions" - body: "custom_dimension" - }; - option (google.api.method_signature) = "parent,custom_dimension"; - } - - // Updates a CustomDimension on a property. - rpc UpdateCustomDimension(UpdateCustomDimensionRequest) returns (CustomDimension) { - option (google.api.http) = { - patch: "/v1beta/{custom_dimension.name=properties/*/customDimensions/*}" - body: "custom_dimension" - }; - option (google.api.method_signature) = "custom_dimension,update_mask"; - } - - // Lists CustomDimensions on a property. - rpc ListCustomDimensions(ListCustomDimensionsRequest) returns (ListCustomDimensionsResponse) { - option (google.api.http) = { - get: "/v1beta/{parent=properties/*}/customDimensions" - }; - option (google.api.method_signature) = "parent"; - } - - // Archives a CustomDimension on a property. - rpc ArchiveCustomDimension(ArchiveCustomDimensionRequest) returns (google.protobuf.Empty) { - option (google.api.http) = { - post: "/v1beta/{name=properties/*/customDimensions/*}:archive" - body: "*" - }; - option (google.api.method_signature) = "name"; - } - - // Lookup for a single CustomDimension. - rpc GetCustomDimension(GetCustomDimensionRequest) returns (CustomDimension) { - option (google.api.http) = { - get: "/v1beta/{name=properties/*/customDimensions/*}" - }; - option (google.api.method_signature) = "name"; - } - - // Creates a CustomMetric. - rpc CreateCustomMetric(CreateCustomMetricRequest) returns (CustomMetric) { - option (google.api.http) = { - post: "/v1beta/{parent=properties/*}/customMetrics" - body: "custom_metric" - }; - option (google.api.method_signature) = "parent,custom_metric"; - } - - // Updates a CustomMetric on a property. - rpc UpdateCustomMetric(UpdateCustomMetricRequest) returns (CustomMetric) { - option (google.api.http) = { - patch: "/v1beta/{custom_metric.name=properties/*/customMetrics/*}" - body: "custom_metric" - }; - option (google.api.method_signature) = "custom_metric,update_mask"; - } - - // Lists CustomMetrics on a property. - rpc ListCustomMetrics(ListCustomMetricsRequest) returns (ListCustomMetricsResponse) { - option (google.api.http) = { - get: "/v1beta/{parent=properties/*}/customMetrics" - }; - option (google.api.method_signature) = "parent"; - } - - // Archives a CustomMetric on a property. - rpc ArchiveCustomMetric(ArchiveCustomMetricRequest) returns (google.protobuf.Empty) { - option (google.api.http) = { - post: "/v1beta/{name=properties/*/customMetrics/*}:archive" - body: "*" - }; - option (google.api.method_signature) = "name"; - } - - // Lookup for a single CustomMetric. - rpc GetCustomMetric(GetCustomMetricRequest) returns (CustomMetric) { - option (google.api.http) = { - get: "/v1beta/{name=properties/*/customMetrics/*}" - }; - option (google.api.method_signature) = "name"; - } - - // Returns the singleton data retention settings for this property. - rpc GetDataRetentionSettings(GetDataRetentionSettingsRequest) returns (DataRetentionSettings) { - option (google.api.http) = { - get: "/v1beta/{name=properties/*/dataRetentionSettings}" - }; - option (google.api.method_signature) = "name"; - } - - // Updates the singleton data retention settings for this property. - rpc UpdateDataRetentionSettings(UpdateDataRetentionSettingsRequest) returns (DataRetentionSettings) { - option (google.api.http) = { - patch: "/v1beta/{data_retention_settings.name=properties/*/dataRetentionSettings}" - body: "data_retention_settings" - }; - option (google.api.method_signature) = "data_retention_settings,update_mask"; - } - - // Creates a DataStream. - rpc CreateDataStream(CreateDataStreamRequest) returns (DataStream) { - option (google.api.http) = { - post: "/v1beta/{parent=properties/*}/dataStreams" - body: "data_stream" - }; - option (google.api.method_signature) = "parent,data_stream"; - } - - // Deletes a DataStream on a property. - rpc DeleteDataStream(DeleteDataStreamRequest) returns (google.protobuf.Empty) { - option (google.api.http) = { - delete: "/v1beta/{name=properties/*/dataStreams/*}" - }; - option (google.api.method_signature) = "name"; - } - - // Updates a DataStream on a property. - rpc UpdateDataStream(UpdateDataStreamRequest) returns (DataStream) { - option (google.api.http) = { - patch: "/v1beta/{data_stream.name=properties/*/dataStreams/*}" - body: "data_stream" - }; - option (google.api.method_signature) = "data_stream,update_mask"; - } - - // Lists DataStreams on a property. - rpc ListDataStreams(ListDataStreamsRequest) returns (ListDataStreamsResponse) { - option (google.api.http) = { - get: "/v1beta/{parent=properties/*}/dataStreams" - }; - option (google.api.method_signature) = "parent"; - } - - // Lookup for a single DataStream. - rpc GetDataStream(GetDataStreamRequest) returns (DataStream) { - option (google.api.http) = { - get: "/v1beta/{name=properties/*/dataStreams/*}" - }; - option (google.api.method_signature) = "name"; - } -} - -// Request message for GetAccount RPC. -message GetAccountRequest { - // 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) = { - type: "analyticsadmin.googleapis.com/Account" - } - ]; -} - -// Request message for ListAccounts RPC. -message ListAccountsRequest { - // 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; - - // 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; - - // 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; -} - -// Request message for ListAccounts RPC. -message ListAccountsResponse { - // Results that were accessible to the caller. - repeated Account accounts = 1; - - // A token, which can be sent as `page_token` to retrieve the next page. - // If this field is omitted, there are no subsequent pages. - string next_page_token = 2; -} - -// Request message for DeleteAccount RPC. -message DeleteAccountRequest { - // 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) = { - type: "analyticsadmin.googleapis.com/Account" - } - ]; -} - -// Request message for UpdateAccount RPC. -message UpdateAccountRequest { - // Required. The account to update. - // The account's `name` field is used to identify the account. - Account account = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The list of fields to be updated. Field names must be in snake case - // (e.g., "field_to_update"). Omitted fields will not be updated. To replace - // the entire entity, use one path with the string "*" to match all fields. - google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; -} - -// Request message for ProvisionAccountTicket RPC. -message ProvisionAccountTicketRequest { - // The account to create. - Account account = 1; - - // Redirect URI where the user will be sent after accepting Terms of Service. - // Must be configured in Developers Console as a Redirect URI - string redirect_uri = 2; -} - -// Response message for ProvisionAccountTicket RPC. -message ProvisionAccountTicketResponse { - // The param to be passed in the ToS link. - string account_ticket_id = 1; -} - -// Request message for GetProperty RPC. -message GetPropertyRequest { - // 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) = { - type: "analyticsadmin.googleapis.com/Property" - } - ]; -} - -// Request message for ListProperties RPC. -message ListPropertiesRequest { - // 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]; - - // 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; - - // 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; - - // 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; -} - -// Response message for ListProperties RPC. -message ListPropertiesResponse { - // Results that matched the filter criteria and were accessible to the caller. - repeated Property properties = 1; - - // A token, which can be sent as `page_token` to retrieve the next page. - // If this field is omitted, there are no subsequent pages. - string next_page_token = 2; -} - -// Request message for UpdateProperty RPC. -message UpdatePropertyRequest { - // Required. The property to update. - // The property's `name` field is used to identify the property to be - // updated. - Property property = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The list of fields to be updated. Field names must be in snake case - // (e.g., "field_to_update"). Omitted fields will not be updated. To replace - // the entire entity, use one path with the string "*" to match all fields. - google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; -} - -// Request message for CreateProperty RPC. -message CreatePropertyRequest { - // Required. The property to create. - // Note: the supplied property must specify its parent. - Property property = 1 [(google.api.field_behavior) = REQUIRED]; -} - -// Request message for DeleteProperty RPC. -message DeletePropertyRequest { - // 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) = { - type: "analyticsadmin.googleapis.com/Property" - } - ]; -} - -// Request message for CreateFirebaseLink RPC -message CreateFirebaseLinkRequest { - // Required. Format: properties/{property_id} - // Example: properties/1234 - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "analyticsadmin.googleapis.com/FirebaseLink" - } - ]; - - // Required. The Firebase link to create. - FirebaseLink firebase_link = 2 [(google.api.field_behavior) = REQUIRED]; -} - -// Request message for DeleteFirebaseLink RPC -message DeleteFirebaseLinkRequest { - // 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) = { - type: "analyticsadmin.googleapis.com/FirebaseLink" - } - ]; -} - -// Request message for ListFirebaseLinks RPC -message ListFirebaseLinksRequest { - // Required. Format: properties/{property_id} - // Example: properties/1234 - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "analyticsadmin.googleapis.com/FirebaseLink" - } - ]; - - // 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; - - // A page token, received from a previous `ListFirebaseLinks` 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; -} - -// Response message for ListFirebaseLinks RPC -message ListFirebaseLinksResponse { - // List of FirebaseLinks. This will have at most one value. - repeated FirebaseLink firebase_links = 1; - - // A token, which can be sent as `page_token` to retrieve the next page. - // If this field is omitted, there are no subsequent pages. - // Currently, Google Analytics supports only one FirebaseLink per property, - // so this will never be populated. - string next_page_token = 2; -} - -// Request message for CreateGoogleAdsLink RPC -message CreateGoogleAdsLinkRequest { - // Required. Example format: properties/1234 - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "analyticsadmin.googleapis.com/GoogleAdsLink" - } - ]; - - // Required. The GoogleAdsLink to create. - GoogleAdsLink google_ads_link = 2 [(google.api.field_behavior) = REQUIRED]; -} - -// Request message for UpdateGoogleAdsLink RPC -message UpdateGoogleAdsLinkRequest { - // The GoogleAdsLink to update - GoogleAdsLink google_ads_link = 1; - - // Required. The list of fields to be updated. Field names must be in snake case - // (e.g., "field_to_update"). Omitted fields will not be updated. To replace - // the entire entity, use one path with the string "*" to match all fields. - google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; -} - -// Request message for DeleteGoogleAdsLink RPC. -message DeleteGoogleAdsLinkRequest { - // Required. Example format: properties/1234/googleAdsLinks/5678 - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "analyticsadmin.googleapis.com/GoogleAdsLink" - } - ]; -} - -// Request message for ListGoogleAdsLinks RPC. -message ListGoogleAdsLinksRequest { - // Required. Example format: properties/1234 - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "analyticsadmin.googleapis.com/GoogleAdsLink" - } - ]; - - // The maximum number of resources to return. - // If unspecified, at most 50 resources will be returned. - // The maximum value is 200 (higher values will be coerced to the maximum). - int32 page_size = 2; - - // A page token, received from a previous `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; -} - -// Response message for ListGoogleAdsLinks RPC. -message ListGoogleAdsLinksResponse { - // List of GoogleAdsLinks. - repeated GoogleAdsLink google_ads_links = 1; - - // A token, which can be sent as `page_token` to retrieve the next page. - // If this field is omitted, there are no subsequent pages. - string next_page_token = 2; -} - -// Request message for GetDataSharingSettings RPC. -message GetDataSharingSettingsRequest { - // 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) = { - type: "analyticsadmin.googleapis.com/DataSharingSettings" - } - ]; -} - -// Request message for ListAccountSummaries RPC. -message ListAccountSummariesRequest { - // 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; - - // 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; -} - -// Response message for ListAccountSummaries RPC. -message ListAccountSummariesResponse { - // Account summaries of all accounts the caller has access to. - repeated AccountSummary account_summaries = 1; - - // A token, which can be sent as `page_token` to retrieve the next page. - // If this field is omitted, there are no subsequent pages. - string next_page_token = 2; -} - -// Request message for AcknowledgeUserDataCollection RPC. -message AcknowledgeUserDataCollectionRequest { - // Required. The property for which to acknowledge user data collection. - string property = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "analyticsadmin.googleapis.com/Property" - } - ]; - - // Required. An acknowledgement that the caller of this method understands the terms - // of user data collection. - // - // This field must contain the exact value: - // "I acknowledge that I have the necessary privacy disclosures and rights - // from my end users for the collection and processing of their data, - // including the association of such data with the visitation information - // Google Analytics collects from my site and/or app property." - string acknowledgement = 2 [(google.api.field_behavior) = REQUIRED]; -} - -// Response message for AcknowledgeUserDataCollection RPC. -message AcknowledgeUserDataCollectionResponse { - -} - -// Request message for SearchChangeHistoryEvents RPC. -message SearchChangeHistoryEventsRequest { - // Required. The account resource for which to return change history resources. - string account = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "analyticsadmin.googleapis.com/Account" - } - ]; - - // 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) = { - type: "analyticsadmin.googleapis.com/Property" - } - ]; - - // Optional. If set, only return changes if they are for a resource that matches at - // least one of these types. - repeated ChangeHistoryResourceType resource_type = 3 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. If set, only return changes that match one or more of these types of - // actions. - repeated ActionType action = 4 [(google.api.field_behavior) = OPTIONAL]; - - // 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]; - - // Optional. If set, only return changes made after this time (inclusive). - google.protobuf.Timestamp earliest_change_time = 6 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. If set, only return changes made before this time (inclusive). - google.protobuf.Timestamp latest_change_time = 7 [(google.api.field_behavior) = OPTIONAL]; - - // 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]; - - // 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]; -} - -// Response message for SearchAccounts RPC. -message SearchChangeHistoryEventsResponse { - // Results that were accessible to the caller. - repeated ChangeHistoryEvent change_history_events = 1; - - // A token, which can be sent as `page_token` to retrieve the next page. - // If this field is omitted, there are no subsequent pages. - string next_page_token = 2; -} - -// Request message for GetMeasurementProtocolSecret RPC. -message GetMeasurementProtocolSecretRequest { - // 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) = { - type: "analyticsadmin.googleapis.com/MeasurementProtocolSecret" - } - ]; -} - -// Request message for CreateMeasurementProtocolSecret RPC -message CreateMeasurementProtocolSecretRequest { - // 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) = { - child_type: "analyticsadmin.googleapis.com/MeasurementProtocolSecret" - } - ]; - - // Required. The measurement protocol secret to create. - MeasurementProtocolSecret measurement_protocol_secret = 2 [(google.api.field_behavior) = REQUIRED]; -} - -// Request message for DeleteMeasurementProtocolSecret RPC -message DeleteMeasurementProtocolSecretRequest { - // 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) = { - type: "analyticsadmin.googleapis.com/MeasurementProtocolSecret" - } - ]; -} - -// Request message for UpdateMeasurementProtocolSecret RPC -message UpdateMeasurementProtocolSecretRequest { - // Required. The measurement protocol secret to update. - MeasurementProtocolSecret measurement_protocol_secret = 1 [(google.api.field_behavior) = REQUIRED]; - - // The list of fields to be updated. Omitted fields will not be updated. - google.protobuf.FieldMask update_mask = 2; -} - -// Request message for ListMeasurementProtocolSecret RPC -message ListMeasurementProtocolSecretsRequest { - // 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) = { - child_type: "analyticsadmin.googleapis.com/MeasurementProtocolSecret" - } - ]; - - // 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; - - // 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; -} - -// Response message for ListMeasurementProtocolSecret RPC -message ListMeasurementProtocolSecretsResponse { - // A list of secrets for the parent stream specified in the request. - repeated MeasurementProtocolSecret measurement_protocol_secrets = 1; - - // A token, which can be sent as `page_token` to retrieve the next page. - // If this field is omitted, there are no subsequent pages. - string next_page_token = 2; -} - -// Request message for CreateConversionEvent RPC -message CreateConversionEventRequest { - // Required. The conversion event to create. - ConversionEvent conversion_event = 1 [(google.api.field_behavior) = REQUIRED]; - - // 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) = { - child_type: "analyticsadmin.googleapis.com/ConversionEvent" - } - ]; -} - -// Request message for GetConversionEvent RPC -message GetConversionEventRequest { - // 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) = { - type: "analyticsadmin.googleapis.com/ConversionEvent" - } - ]; -} - -// Request message for DeleteConversionEvent RPC -message DeleteConversionEventRequest { - // 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) = { - type: "analyticsadmin.googleapis.com/ConversionEvent" - } - ]; -} - -// Request message for ListConversionEvents RPC -message ListConversionEventsRequest { - // Required. The resource name of the parent property. - // Example: 'properties/123' - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "analyticsadmin.googleapis.com/ConversionEvent" - } - ]; - - // The maximum number of resources to return. - // If unspecified, at most 50 resources will be returned. - // The maximum value is 200; (higher values will be coerced to the maximum) - int32 page_size = 2; - - // A page token, received from a previous `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; -} - -// Response message for ListConversionEvents RPC. -message ListConversionEventsResponse { - // The requested conversion events - repeated ConversionEvent conversion_events = 1; - - // A token, which can be sent as `page_token` to retrieve the next page. - // If this field is omitted, there are no subsequent pages. - string next_page_token = 2; -} - -// Request message for CreateCustomDimension RPC. -message CreateCustomDimensionRequest { - // Required. Example format: properties/1234 - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "analyticsadmin.googleapis.com/CustomDimension" - } - ]; - - // Required. The CustomDimension to create. - CustomDimension custom_dimension = 2 [(google.api.field_behavior) = REQUIRED]; -} - -// Request message for UpdateCustomDimension RPC. -message UpdateCustomDimensionRequest { - // The CustomDimension to update - CustomDimension custom_dimension = 1; - - // Required. The list of fields to be updated. Omitted fields will not be updated. - // To replace the entire entity, use one path with the string "*" to match - // all fields. - google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; -} - -// Request message for ListCustomDimensions RPC. -message ListCustomDimensionsRequest { - // Required. Example format: properties/1234 - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "analyticsadmin.googleapis.com/CustomDimension" - } - ]; - - // The maximum number of resources to return. - // If unspecified, at most 50 resources will be returned. - // The maximum value is 200 (higher values will be coerced to the maximum). - int32 page_size = 2; - - // A page token, received from a previous `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; -} - -// Response message for ListCustomDimensions RPC. -message ListCustomDimensionsResponse { - // List of CustomDimensions. - repeated CustomDimension custom_dimensions = 1; - - // A token, which can be sent as `page_token` to retrieve the next page. - // If this field is omitted, there are no subsequent pages. - string next_page_token = 2; -} - -// Request message for ArchiveCustomDimension RPC. -message ArchiveCustomDimensionRequest { - // 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) = { - type: "analyticsadmin.googleapis.com/CustomDimension" - } - ]; -} - -// Request message for GetCustomDimension RPC. -message GetCustomDimensionRequest { - // 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) = { - type: "analyticsadmin.googleapis.com/CustomDimension" - } - ]; -} - -// Request message for CreateCustomMetric RPC. -message CreateCustomMetricRequest { - // Required. Example format: properties/1234 - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "analyticsadmin.googleapis.com/CustomMetric" - } - ]; - - // Required. The CustomMetric to create. - CustomMetric custom_metric = 2 [(google.api.field_behavior) = REQUIRED]; -} - -// Request message for UpdateCustomMetric RPC. -message UpdateCustomMetricRequest { - // The CustomMetric to update - CustomMetric custom_metric = 1; - - // Required. The list of fields to be updated. Omitted fields will not be updated. - // To replace the entire entity, use one path with the string "*" to match - // all fields. - google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; -} - -// Request message for ListCustomMetrics RPC. -message ListCustomMetricsRequest { - // Required. Example format: properties/1234 - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "analyticsadmin.googleapis.com/CustomMetric" - } - ]; - - // The maximum number of resources to return. - // If unspecified, at most 50 resources will be returned. - // The maximum value is 200 (higher values will be coerced to the maximum). - int32 page_size = 2; - - // A page token, received from a previous `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; -} - -// Response message for ListCustomMetrics RPC. -message ListCustomMetricsResponse { - // List of CustomMetrics. - repeated CustomMetric custom_metrics = 1; - - // A token, which can be sent as `page_token` to retrieve the next page. - // If this field is omitted, there are no subsequent pages. - string next_page_token = 2; -} - -// Request message for ArchiveCustomMetric RPC. -message ArchiveCustomMetricRequest { - // 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) = { - type: "analyticsadmin.googleapis.com/CustomMetric" - } - ]; -} - -// Request message for GetCustomMetric RPC. -message GetCustomMetricRequest { - // 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) = { - type: "analyticsadmin.googleapis.com/CustomMetric" - } - ]; -} - -// Request message for GetDataRetentionSettings RPC. -message GetDataRetentionSettingsRequest { - // 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) = { - type: "analyticsadmin.googleapis.com/DataRetentionSettings" - } - ]; -} - -// Request message for UpdateDataRetentionSettings RPC. -message UpdateDataRetentionSettingsRequest { - // Required. The settings to update. - // The `name` field is used to identify the settings to be updated. - DataRetentionSettings data_retention_settings = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The list of fields to be updated. Field names must be in snake case - // (e.g., "field_to_update"). Omitted fields will not be updated. To replace - // the entire entity, use one path with the string "*" to match all fields. - google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; -} - -// Request message for CreateDataStream RPC. -message CreateDataStreamRequest { - // Required. Example format: properties/1234 - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "analyticsadmin.googleapis.com/DataStream" - } - ]; - - // Required. The DataStream to create. - DataStream data_stream = 2 [(google.api.field_behavior) = REQUIRED]; -} - -// Request message for DeleteDataStream RPC. -message DeleteDataStreamRequest { - // Required. The name of the DataStream to delete. - // Example format: properties/1234/dataStreams/5678 - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "analyticsadmin.googleapis.com/DataStream" - } - ]; -} - -// Request message for UpdateDataStream RPC. -message UpdateDataStreamRequest { - // The DataStream to update - DataStream data_stream = 1; - - // Required. The list of fields to be updated. Omitted fields will not be updated. - // To replace the entire entity, use one path with the string "*" to match - // all fields. - google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; -} - -// Request message for ListDataStreams RPC. -message ListDataStreamsRequest { - // Required. Example format: properties/1234 - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "analyticsadmin.googleapis.com/DataStream" - } - ]; - - // The maximum number of resources to return. - // If unspecified, at most 50 resources will be returned. - // The maximum value is 200 (higher values will be coerced to the maximum). - int32 page_size = 2; - - // A page token, received from a previous `ListDataStreams` call. - // Provide this to retrieve the subsequent page. - // - // When paginating, all other parameters provided to `ListDataStreams` must - // match the call that provided the page token. - string page_token = 3; -} - -// Response message for ListDataStreams RPC. -message ListDataStreamsResponse { - // List of DataStreams. - repeated DataStream data_streams = 1; - - // A token, which can be sent as `page_token` to retrieve the next page. - // If this field is omitted, there are no subsequent pages. - string next_page_token = 2; -} - -// Request message for GetDataStream RPC. -message GetDataStreamRequest { - // Required. The name of the DataStream to get. - // Example format: properties/1234/dataStreams/5678 - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "analyticsadmin.googleapis.com/DataStream" - } - ]; -} diff --git a/proto-google-analytics-admin-v1beta/src/main/proto/google/analytics/admin/v1beta/resources.proto b/proto-google-analytics-admin-v1beta/src/main/proto/google/analytics/admin/v1beta/resources.proto deleted file mode 100644 index 2a701030..00000000 --- a/proto-google-analytics-admin-v1beta/src/main/proto/google/analytics/admin/v1beta/resources.proto +++ /dev/null @@ -1,905 +0,0 @@ -// Copyright 2022 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.analytics.admin.v1beta; - -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/timestamp.proto"; -import "google/protobuf/wrappers.proto"; - -option go_package = "google.golang.org/genproto/googleapis/analytics/admin/v1beta;admin"; -option java_multiple_files = true; -option java_outer_classname = "ResourcesProto"; -option java_package = "com.google.analytics.admin.v1beta"; - -// The category selected for this property, used for industry benchmarking. -enum IndustryCategory { - // Industry category unspecified - INDUSTRY_CATEGORY_UNSPECIFIED = 0; - - // Automotive - AUTOMOTIVE = 1; - - // Business and industrial markets - BUSINESS_AND_INDUSTRIAL_MARKETS = 2; - - // Finance - FINANCE = 3; - - // Healthcare - HEALTHCARE = 4; - - // Technology - TECHNOLOGY = 5; - - // Travel - TRAVEL = 6; - - // Other - OTHER = 7; - - // Arts and entertainment - ARTS_AND_ENTERTAINMENT = 8; - - // Beauty and fitness - BEAUTY_AND_FITNESS = 9; - - // Books and literature - BOOKS_AND_LITERATURE = 10; - - // Food and drink - FOOD_AND_DRINK = 11; - - // Games - GAMES = 12; - - // Hobbies and leisure - HOBBIES_AND_LEISURE = 13; - - // Home and garden - HOME_AND_GARDEN = 14; - - // Internet and telecom - INTERNET_AND_TELECOM = 15; - - // Law and government - LAW_AND_GOVERNMENT = 16; - - // News - NEWS = 17; - - // Online communities - ONLINE_COMMUNITIES = 18; - - // People and society - PEOPLE_AND_SOCIETY = 19; - - // Pets and animals - PETS_AND_ANIMALS = 20; - - // Real estate - REAL_ESTATE = 21; - - // Reference - REFERENCE = 22; - - // Science - SCIENCE = 23; - - // Sports - SPORTS = 24; - - // Jobs and education - JOBS_AND_EDUCATION = 25; - - // Shopping - SHOPPING = 26; -} - -// Various levels of service for Google Analytics. -enum ServiceLevel { - // Service level not specified or invalid. - SERVICE_LEVEL_UNSPECIFIED = 0; - - // The standard version of Google Analytics. - GOOGLE_ANALYTICS_STANDARD = 1; - - // The paid, premium version of Google Analytics. - GOOGLE_ANALYTICS_360 = 2; -} - -// Different kinds of actors that can make changes to Google Analytics -// resources. -enum ActorType { - // Unknown or unspecified actor type. - ACTOR_TYPE_UNSPECIFIED = 0; - - // Changes made by the user specified in actor_email. - USER = 1; - - // Changes made by the Google Analytics system. - SYSTEM = 2; - - // Changes made by Google Analytics support team staff. - SUPPORT = 3; -} - -// Types of actions that may change a resource. -enum ActionType { - // Action type unknown or not specified. - ACTION_TYPE_UNSPECIFIED = 0; - - // Resource was created in this change. - CREATED = 1; - - // Resource was updated in this change. - UPDATED = 2; - - // Resource was deleted in this change. - DELETED = 3; -} - -// Types of resources whose changes may be returned from change history. -enum ChangeHistoryResourceType { - // Resource type unknown or not specified. - CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED = 0; - - // Account resource - ACCOUNT = 1; - - // Property resource - PROPERTY = 2; - - // FirebaseLink resource - FIREBASE_LINK = 6; - - // GoogleAdsLink resource - GOOGLE_ADS_LINK = 7; - - // GoogleSignalsSettings resource - GOOGLE_SIGNALS_SETTINGS = 8; - - // ConversionEvent resource - CONVERSION_EVENT = 9; - - // MeasurementProtocolSecret resource - MEASUREMENT_PROTOCOL_SECRET = 10; - - // DataRetentionSettings resource - DATA_RETENTION_SETTINGS = 13; - - // DisplayVideo360AdvertiserLink resource - DISPLAY_VIDEO_360_ADVERTISER_LINK = 14; - - // DisplayVideo360AdvertiserLinkProposal resource - DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL = 15; - - // DataStream resource - DATA_STREAM = 18; - - // AttributionSettings resource - ATTRIBUTION_SETTINGS = 20; -} - -// Types of Property resources. -enum PropertyType { - // Unknown or unspecified property type - PROPERTY_TYPE_UNSPECIFIED = 0; - - // Ordinary GA4 property - PROPERTY_TYPE_ORDINARY = 1; - - // GA4 subproperty - PROPERTY_TYPE_SUBPROPERTY = 2; - - // GA4 rollup property - PROPERTY_TYPE_ROLLUP = 3; -} - -// A resource message representing a Google Analytics account. -message Account { - option (google.api.resource) = { - type: "analyticsadmin.googleapis.com/Account" - pattern: "accounts/{account}" - }; - - // Output only. Resource name of this account. - // Format: accounts/{account} - // Example: "accounts/100" - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Time when this account was originally created. - google.protobuf.Timestamp create_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Time when account payload fields were last updated. - google.protobuf.Timestamp update_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Required. Human-readable display name for this account. - string display_name = 4 [(google.api.field_behavior) = REQUIRED]; - - // Country of business. Must be a Unicode CLDR region code. - string region_code = 5; - - // 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]; -} - -// A resource message representing a Google Analytics GA4 property. -message Property { - option (google.api.resource) = { - type: "analyticsadmin.googleapis.com/Property" - pattern: "properties/{property}" - }; - - // Output only. Resource name of this property. - // Format: properties/{property_id} - // Example: "properties/1000" - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // 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 - // via Google Analytics Admin API. - PropertyType property_type = 14 [(google.api.field_behavior) = IMMUTABLE]; - - // Output only. Time when the entity was originally created. - google.protobuf.Timestamp create_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Time when entity payload fields were last updated. - google.protobuf.Timestamp update_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // 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]; - - // 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]; - - // Industry associated with this property - // Example: AUTOMOTIVE, FOOD_AND_DRINK - IndustryCategory industry_category = 6; - - // 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]; - - // 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; - - // Output only. The Google Analytics service level that applies to this property. - ServiceLevel service_level = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // 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]; - - // 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]; - - // Immutable. The resource name of the parent account - // Format: accounts/{account_id} - // Example: "accounts/123" - string account = 13 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "analyticsadmin.googleapis.com/Account" - } - ]; -} - -// A resource message representing a data stream. -message DataStream { - option (google.api.resource) = { - type: "analyticsadmin.googleapis.com/DataStream" - pattern: "properties/{property}/dataStreams/{data_stream}" - }; - - // Data specific to web streams. - message WebStreamData { - // Output only. Analytics "Measurement ID", without the "G-" prefix. - // Example: "G-1A2BCD345E" would just be "1A2BCD345E" - string measurement_id = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. ID of the corresponding web app in Firebase, if any. - // This ID can change if the web app is deleted and recreated. - string firebase_app_id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Immutable. Domain name of the web app being measured, or empty. - // Example: "http://www.google.com", "https://www.google.com" - string default_uri = 3 [(google.api.field_behavior) = IMMUTABLE]; - } - - // Data specific to Android app streams. - message AndroidAppStreamData { - // Output only. ID of the corresponding Android app in Firebase, if any. - // This ID can change if the Android app is deleted and recreated. - string firebase_app_id = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Immutable. The package name for the app being measured. - // Example: "com.example.myandroidapp" - string package_name = 2 [(google.api.field_behavior) = IMMUTABLE]; - } - - // Data specific to iOS app streams. - message IosAppStreamData { - // Output only. ID of the corresponding iOS app in Firebase, if any. - // This ID can change if the iOS app is deleted and recreated. - string firebase_app_id = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Required. Immutable. The Apple App Store Bundle ID for the app - // Example: "com.example.myiosapp" - string bundle_id = 2 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.field_behavior) = REQUIRED - ]; - } - - // The type of the data stream. - enum DataStreamType { - // Type unknown or not specified. - DATA_STREAM_TYPE_UNSPECIFIED = 0; - - // Web data stream. - WEB_DATA_STREAM = 1; - - // Android app data stream. - ANDROID_APP_DATA_STREAM = 2; - - // iOS app data stream. - IOS_APP_DATA_STREAM = 3; - } - - // Data for specific data stream types. The message that will be - // set corresponds to the type of this stream. - oneof stream_data { - // Data specific to web streams. Must be populated if type is - // WEB_DATA_STREAM. - WebStreamData web_stream_data = 6; - - // Data specific to Android app streams. Must be populated if type is - // ANDROID_APP_DATA_STREAM. - AndroidAppStreamData android_app_stream_data = 7; - - // Data specific to iOS app streams. Must be populated if type is - // IOS_APP_DATA_STREAM. - IosAppStreamData ios_app_stream_data = 8; - } - - // Output only. Resource name of this Data Stream. - // Format: properties/{property_id}/dataStreams/{stream_id} - // Example: "properties/1000/dataStreams/2000" - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Required. Immutable. The type of this DataStream resource. - DataStreamType type = 2 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.field_behavior) = REQUIRED - ]; - - // Human-readable display name for the Data Stream. - // - // Required for web data streams. - // - // The max allowed display name length is 255 UTF-16 code units. - string display_name = 3; - - // Output only. Time when this stream was originally created. - google.protobuf.Timestamp create_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Time when stream payload fields were last updated. - google.protobuf.Timestamp update_time = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -// A link between a GA4 property and a Firebase project. -message FirebaseLink { - option (google.api.resource) = { - type: "analyticsadmin.googleapis.com/FirebaseLink" - pattern: "properties/{property}/firebaseLinks/{firebase_link}" - }; - - // Output only. Example format: properties/1234/firebaseLinks/5678 - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // 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]; - - // Output only. Time when this FirebaseLink was originally created. - google.protobuf.Timestamp create_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -// A link between a GA4 property and a Google Ads account. -message GoogleAdsLink { - option (google.api.resource) = { - type: "analyticsadmin.googleapis.com/GoogleAdsLink" - pattern: "properties/{property}/googleAdsLinks/{google_ads_link}" - }; - - // 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]; - - // Immutable. Google Ads customer ID. - string customer_id = 3 [(google.api.field_behavior) = IMMUTABLE]; - - // Output only. If true, this link is for a Google Ads manager account. - bool can_manage_clients = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // 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; - - // Output only. Time when this link was originally created. - google.protobuf.Timestamp create_time = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Time when this link was last updated. - google.protobuf.Timestamp update_time = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // 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]; -} - -// A resource message representing data sharing settings of a Google Analytics -// account. -message DataSharingSettings { - option (google.api.resource) = { - type: "analyticsadmin.googleapis.com/DataSharingSettings" - pattern: "accounts/{account}/dataSharingSettings" - }; - - // Output only. Resource name. - // Format: accounts/{account}/dataSharingSettings - // Example: "accounts/1000/dataSharingSettings" - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Allows Google support to access the data in order to help troubleshoot - // issues. - bool sharing_with_google_support_enabled = 2; - - // 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; - - // 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; - - // Allows Google to use the data to improve other Google products or services. - bool sharing_with_google_products_enabled = 5; - - // Allows Google to share the data anonymously in aggregate form with others. - bool sharing_with_others_enabled = 6; -} - -// A virtual resource representing an overview of an account and -// all its child GA4 properties. -message AccountSummary { - option (google.api.resource) = { - type: "analyticsadmin.googleapis.com/AccountSummary" - pattern: "accountSummaries/{account_summary}" - }; - - // Resource name for this account summary. - // Format: accountSummaries/{account_id} - // Example: "accountSummaries/1000" - string name = 1; - - // Resource name of account referred to by this account summary - // Format: accounts/{account_id} - // Example: "accounts/1000" - string account = 2 [(google.api.resource_reference) = { - type: "analyticsadmin.googleapis.com/Account" - }]; - - // Display name for the account referred to in this account summary. - string display_name = 3; - - // List of summaries for child accounts of this account. - repeated PropertySummary property_summaries = 4; -} - -// A virtual resource representing metadata for a GA4 property. -message PropertySummary { - // Resource name of property referred to by this property summary - // Format: properties/{property_id} - // Example: "properties/1000" - string property = 1 [(google.api.resource_reference) = { - type: "analyticsadmin.googleapis.com/Property" - }]; - - // Display name for the property referred to in this property summary. - string display_name = 2; - - // The property's property type. - PropertyType property_type = 3; - - // 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; -} - -// A secret value used for sending hits to Measurement Protocol. -message MeasurementProtocolSecret { - option (google.api.resource) = { - type: "analyticsadmin.googleapis.com/MeasurementProtocolSecret" - pattern: "properties/{property}/dataStreams/{data_stream}/measurementProtocolSecrets/{measurement_protocol_secret}" - }; - - // 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]; - - // Required. Human-readable display name for this secret. - string display_name = 2 [(google.api.field_behavior) = REQUIRED]; - - // 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]; -} - -// 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. -message ChangeHistoryEvent { - // ID of this change history event. This ID is unique across Google Analytics. - string id = 1; - - // Time when change was made. - google.protobuf.Timestamp change_time = 2; - - // The type of actor that made this change. - ActorType actor_type = 3; - - // 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; - - // 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; - - // A list of changes made in this change history event that fit the filters - // specified in SearchChangeHistoryEventsRequest. - repeated ChangeHistoryChange changes = 6; -} - -// A description of a change to a single Google Analytics resource. -message ChangeHistoryChange { - // A snapshot of a resource as before or after the result of a change in - // change history. - message ChangeHistoryResource { - oneof resource { - // A snapshot of an Account resource in change history. - Account account = 1; - - // A snapshot of a Property resource in change history. - Property property = 2; - - // A snapshot of a FirebaseLink resource in change history. - FirebaseLink firebase_link = 6; - - // A snapshot of a GoogleAdsLink resource in change history. - GoogleAdsLink google_ads_link = 7; - - // A snapshot of a ConversionEvent resource in change history. - ConversionEvent conversion_event = 11; - - // A snapshot of a MeasurementProtocolSecret resource in change history. - MeasurementProtocolSecret measurement_protocol_secret = 12; - - // A snapshot of a data retention settings resource in change history. - DataRetentionSettings data_retention_settings = 15; - - // A snapshot of a DataStream resource in change history. - DataStream data_stream = 18; - } - } - - // Resource name of the resource whose changes are described by this entry. - string resource = 1; - - // The type of action that changed this resource. - ActionType action = 2; - - // Resource contents from before the change was made. If this resource was - // created in this change, this field will be missing. - ChangeHistoryResource resource_before_change = 3; - - // Resource contents from after the change was made. If this resource was - // deleted in this change, this field will be missing. - ChangeHistoryResource resource_after_change = 4; -} - -// A conversion event in a Google Analytics property. -message ConversionEvent { - option (google.api.resource) = { - type: "analyticsadmin.googleapis.com/ConversionEvent" - pattern: "properties/{property}/conversionEvents/{conversion_event}" - }; - - // Output only. Resource name of this conversion event. - // Format: properties/{property}/conversionEvents/{conversion_event} - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Immutable. The event name for this conversion event. - // Examples: 'click', 'purchase' - string event_name = 2 [(google.api.field_behavior) = IMMUTABLE]; - - // Output only. Time when this conversion event was created in the property. - google.protobuf.Timestamp create_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. If set, this event can currently be deleted via DeleteConversionEvent. - bool deletable = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // 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]; -} - -// A definition for a CustomDimension. -message CustomDimension { - option (google.api.resource) = { - type: "analyticsadmin.googleapis.com/CustomDimension" - pattern: "properties/{property}/customDimensions/{custom_dimension}" - }; - - // Valid values for the scope of this dimension. - enum DimensionScope { - // Scope unknown or not specified. - DIMENSION_SCOPE_UNSPECIFIED = 0; - - // Dimension scoped to an event. - EVENT = 1; - - // Dimension scoped to a user. - USER = 2; - } - - // Output only. Resource name for this CustomDimension resource. - // Format: properties/{property}/customDimensions/{customDimension} - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // 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. - // - // 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 - ]; - - // 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]; - - // Optional. Description for this custom dimension. Max length of 150 characters. - string description = 4 [(google.api.field_behavior) = OPTIONAL]; - - // Required. Immutable. The scope of this dimension. - DimensionScope scope = 5 [ - (google.api.field_behavior) = REQUIRED, - (google.api.field_behavior) = IMMUTABLE - ]; - - // 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]; -} - -// A definition for a custom metric. -message CustomMetric { - option (google.api.resource) = { - type: "analyticsadmin.googleapis.com/CustomMetric" - pattern: "properties/{property}/customMetrics/{custom_metric}" - }; - - // Possible types of representing the custom metric's value. - // - // Currency representation may change in the future, requiring a breaking API - // change. - enum MeasurementUnit { - // MeasurementUnit unspecified or missing. - MEASUREMENT_UNIT_UNSPECIFIED = 0; - - // This metric uses default units. - STANDARD = 1; - - // This metric measures a currency. - CURRENCY = 2; - - // This metric measures feet. - FEET = 3; - - // This metric measures meters. - METERS = 4; - - // This metric measures kilometers. - KILOMETERS = 5; - - // This metric measures miles. - MILES = 6; - - // This metric measures milliseconds. - MILLISECONDS = 7; - - // This metric measures seconds. - SECONDS = 8; - - // This metric measures minutes. - MINUTES = 9; - - // This metric measures hours. - HOURS = 10; - } - - // The scope of this metric. - enum MetricScope { - // Scope unknown or not specified. - METRIC_SCOPE_UNSPECIFIED = 0; - - // Metric scoped to an event. - EVENT = 1; - } - - // Labels that mark the data in this custom metric as data that should be - // restricted to specific users. - enum RestrictedMetricType { - // Type unknown or unspecified. - RESTRICTED_METRIC_TYPE_UNSPECIFIED = 0; - - // Metric reports cost data. - COST_DATA = 1; - - // Metric reports revenue data. - REVENUE_DATA = 2; - } - - // Output only. Resource name for this CustomMetric resource. - // Format: properties/{property}/customMetrics/{customMetric} - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // 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 - ]; - - // 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]; - - // Optional. Description for this custom dimension. - // Max length of 150 characters. - string description = 4 [(google.api.field_behavior) = OPTIONAL]; - - // Required. The type for the custom metric's value. - MeasurementUnit measurement_unit = 5 [(google.api.field_behavior) = REQUIRED]; - - // Required. Immutable. The scope of this custom metric. - MetricScope scope = 6 [ - (google.api.field_behavior) = REQUIRED, - (google.api.field_behavior) = IMMUTABLE - ]; - - // 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 RestrictedMetricType restricted_metric_type = 8 [(google.api.field_behavior) = OPTIONAL]; -} - -// Settings values for data retention. This is a singleton resource. -message DataRetentionSettings { - option (google.api.resource) = { - type: "analyticsadmin.googleapis.com/DataRetentionSettings" - pattern: "properties/{property}/dataRetentionSettings" - }; - - // Valid values for the data retention duration. - enum RetentionDuration { - // Data retention time duration is not specified. - RETENTION_DURATION_UNSPECIFIED = 0; - - // The data retention time duration is 2 months. - TWO_MONTHS = 1; - - // The data retention time duration is 14 months. - FOURTEEN_MONTHS = 3; - - // The data retention time duration is 26 months. - // Available to 360 properties only. - TWENTY_SIX_MONTHS = 4; - - // The data retention time duration is 38 months. - // Available to 360 properties only. - THIRTY_EIGHT_MONTHS = 5; - - // The data retention time duration is 50 months. - // Available to 360 properties only. - FIFTY_MONTHS = 6; - } - - // Output only. Resource name for this DataRetentionSetting resource. - // Format: properties/{property}/dataRetentionSettings - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // The length of time that event-level data is retained. - RetentionDuration event_data_retention = 2; - - // If true, reset the retention period for the user identifier with every - // event from that user. - bool reset_user_data_on_new_activity = 3; -} diff --git a/renovate.json b/renovate.json deleted file mode 100644 index 42ecae41..00000000 --- a/renovate.json +++ /dev/null @@ -1,76 +0,0 @@ -{ - "enabled": false, - "extends": [ - ":separateMajorReleases", - ":combinePatchMinorReleases", - ":ignoreUnstable", - ":prImmediately", - ":updateNotScheduled", - ":automergeDisabled", - ":ignoreModulesAndTests", - ":maintainLockFilesDisabled", - ":autodetectPinVersions" - ], - "ignorePaths": [".kokoro/requirements.txt"], - "packageRules": [ - { - "packagePatterns": [ - "^com.google.guava:" - ], - "versionScheme": "docker" - }, - { - "packagePatterns": [ - "*" - ], - "semanticCommitType": "deps", - "semanticCommitScope": null - }, - { - "packagePatterns": [ - "^org.apache.maven", - "^org.jacoco:", - "^org.codehaus.mojo:", - "^org.sonatype.plugins:", - "^com.coveo:", - "^com.google.cloud:google-cloud-shared-config" - ], - "semanticCommitType": "build", - "semanticCommitScope": "deps" - }, - { - "packagePatterns": [ - "^com.google.analytics:google-analytics-admin", - "^com.google.cloud:libraries-bom", - "^com.google.cloud.samples:shared-configuration" - ], - "semanticCommitType": "chore", - "semanticCommitScope": "deps" - }, - { - "packagePatterns": [ - "^junit:junit", - "^com.google.truth:truth", - "^org.mockito:mockito-core", - "^org.objenesis:objenesis", - "^com.google.cloud:google-cloud-conformance-tests" - ], - "semanticCommitType": "test", - "semanticCommitScope": "deps" - }, - { - "packagePatterns": [ - "^com.google.cloud:google-cloud-" - ], - "ignoreUnstable": false - }, - { - "packagePatterns": [ - "^com.fasterxml.jackson.core" - ], - "groupName": "jackson dependencies" - } - ], - "semanticCommits": true, - "dependencyDashboard": true -} diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml deleted file mode 100644 index 3ec8dc11..00000000 --- a/samples/install-without-bom/pom.xml +++ /dev/null @@ -1,84 +0,0 @@ - - - 4.0.0 - com.google.cloud - analytics-admin-install-without-bom - jar - Google Analytics Admin Install Without Bom - https://github.com/googleapis/java-analytics-admin - - - - com.google.cloud.samples - shared-configuration - 1.2.0 - - - - 1.8 - 1.8 - UTF-8 - - - - - - - com.google.analytics - google-analytics-admin - 0.13.5 - - - - - junit - junit - 4.13.2 - test - - - com.google.truth - truth - 1.1.3 - test - - - - - - - - org.codehaus.mojo - build-helper-maven-plugin - 3.3.0 - - - add-snippets-source - - add-source - - - - ../snippets/src/main/java - - - - - add-snippets-tests - - add-test-source - - - - ../snippets/src/test/java - - - - - - - - diff --git a/samples/pom.xml b/samples/pom.xml deleted file mode 100644 index e65800b6..00000000 --- a/samples/pom.xml +++ /dev/null @@ -1,55 +0,0 @@ - - - 4.0.0 - com.google.analytics - google-analytics-admin-samples - 0.0.1-SNAPSHOT - pom - Google Analytics Admin Samples Parent - https://github.com/googleapis/java-analytics-admin - - Java idiomatic client for Google Cloud Platform services. - - - - - com.google.cloud.samples - shared-configuration - 1.2.0 - - - - 1.8 - 1.8 - UTF-8 - - - - snapshot - snippets - - - - - - org.apache.maven.plugins - maven-deploy-plugin - 3.0.0 - - true - - - - org.sonatype.plugins - nexus-staging-maven-plugin - 1.6.13 - - true - - - - - diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml deleted file mode 100644 index 76be11a9..00000000 --- a/samples/snapshot/pom.xml +++ /dev/null @@ -1,83 +0,0 @@ - - - 4.0.0 - com.google.analytics - analytics-admin-snapshot - jar - Google Analytics Admin Snapshot Samples - https://github.com/googleapis/java-analytics-admin - - - - com.google.cloud.samples - shared-configuration - 1.2.0 - - - - 1.8 - 1.8 - UTF-8 - - - - - - com.google.analytics - google-analytics-admin - 0.13.5 - - - - - junit - junit - 4.13.2 - test - - - com.google.truth - truth - 1.1.3 - test - - - - - - - - org.codehaus.mojo - build-helper-maven-plugin - 3.3.0 - - - add-snippets-source - - add-source - - - - ../snippets/src/main/java - - - - - add-snippets-tests - - add-test-source - - - - ../snippets/src/test/java - - - - - - - - \ No newline at end of file diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml deleted file mode 100644 index 8b5c92be..00000000 --- a/samples/snippets/pom.xml +++ /dev/null @@ -1,46 +0,0 @@ - - - 4.0.0 - com.google.analytics - analytics-admin-snippets - jar - Google Analytics Admin Snippets - https://github.com/googleapis/java-analytics-admin - - - - com.google.cloud.samples - shared-configuration - 1.2.0 - - - - 1.8 - 1.8 - UTF-8 - - - - - com.google.analytics - google-analytics-admin - 0.13.5 - - - - junit - junit - 4.13.2 - test - - - com.google.truth - truth - 1.1.3 - test - - - diff --git a/samples/snippets/src/main/java/com/example/analyticsadmin/QuickstartSample.java b/samples/snippets/src/main/java/com/example/analyticsadmin/QuickstartSample.java deleted file mode 100644 index 740735c8..00000000 --- a/samples/snippets/src/main/java/com/example/analyticsadmin/QuickstartSample.java +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.example.analytics; - -/* This application demonstrates the usage of the Analytics Admin API using -service account credentials. For more information on service accounts, see -https://cloud.google.com/iam/docs/understanding-service-accounts - -The following document provides instructions on setting service account -credentials for your application: -https://cloud.google.com/docs/authentication/production - -In a nutshell, you need to: - -1. Create a service account and download the key JSON file. -https://cloud.google.com/docs/authentication/production#creating_a_service_account - -2. Provide service account credentials using one of the following options: -- set the GOOGLE_APPLICATION_CREDENTIALS environment variable, the API -client will use the value of this variable to find the service account key -JSON file. - -https://cloud.google.com/docs/authentication/production#setting_the_environment_variable - -OR - -- manually pass the path to the service account key JSON file to the API client -by specifying the keyFilename parameter in the constructor. -https://cloud.google.com/docs/authentication/production#passing_the_path_to_the_service_account_key_in_code - -To run this sample using Maven: - cd java-analytics-admin/samples/snippets - mvn install - mvn exec:java -Dexec.mainClass="com.example.analytics.QuickstartSample" -*/ - -// [START analytics_admin_quickstart] - -import com.google.analytics.admin.v1beta.Account; -import com.google.analytics.admin.v1beta.AnalyticsAdminServiceClient; -import com.google.analytics.admin.v1beta.AnalyticsAdminServiceClient.ListAccountsPage; -import com.google.analytics.admin.v1beta.AnalyticsAdminServiceClient.ListAccountsPagedResponse; -import com.google.analytics.admin.v1beta.ListAccountsRequest; - -public class QuickstartSample { - - public static void main(String... args) throws Exception { - listAccounts(); - } - - // This is an example snippet that calls the Google Analytics Admin API and lists all Google - // Analytics accounts available to the authenticated user. - static void listAccounts() throws Exception { - // Instantiates a client using default credentials. - // See https://cloud.google.com/docs/authentication/production for more information - // about managing credentials. - try (AnalyticsAdminServiceClient analyticsAdmin = AnalyticsAdminServiceClient.create()) { - // Calls listAccounts() method of the Google Analytics Admin API and prints - // the response for each account. - ListAccountsPagedResponse response = - analyticsAdmin.listAccounts(ListAccountsRequest.newBuilder().build()); - for (ListAccountsPage page : response.iteratePages()) { - for (Account account : page.iterateAll()) { - System.out.printf("Account name: %s%n", account.getName()); - System.out.printf("Display name: %s%n", account.getDisplayName()); - System.out.printf("Country code: %s%n", account.getRegionCode()); - System.out.printf("Create time: %s%n", account.getCreateTime().getSeconds()); - System.out.printf("Update time: %s%n", account.getUpdateTime().getSeconds()); - System.out.println(); - } - } - } - } -} - -// [END analytics_admin_quickstart] diff --git a/samples/snippets/src/test/java/com/example/analyticsadmin/QuickstartSampleTest.java b/samples/snippets/src/test/java/com/example/analyticsadmin/QuickstartSampleTest.java deleted file mode 100644 index 2455f485..00000000 --- a/samples/snippets/src/test/java/com/example/analyticsadmin/QuickstartSampleTest.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.example.analytics; - -import static com.google.common.truth.Truth.assertThat; - -import java.io.ByteArrayOutputStream; -import java.io.PrintStream; -import org.junit.After; -import org.junit.Before; -import org.junit.Test; -import org.junit.runner.RunWith; -import org.junit.runners.JUnit4; - -/** Tests for quickstart sample. */ -@RunWith(JUnit4.class) -@SuppressWarnings("checkstyle:abbreviationaswordinname") -public class QuickstartSampleTest { - - private ByteArrayOutputStream bout; - private PrintStream out; - - @Before - public void setUp() { - bout = new ByteArrayOutputStream(); - out = new PrintStream(bout); - System.setOut(out); - } - - @After - public void tearDown() { - System.setOut(null); - } - - @Test - public void testQuickstart() throws Exception { - // Act - QuickstartSample.main(); - - // Assert - String got = bout.toString(); - assertThat(got).contains("Account name:"); - } -} diff --git a/synth.metadata b/synth.metadata deleted file mode 100644 index abc9a9d7..00000000 --- a/synth.metadata +++ /dev/null @@ -1,291 +0,0 @@ -{ - "sources": [ - { - "git": { - "name": ".", - "remote": "https://github.com/googleapis/java-analytics-admin.git", - "sha": "439f8060cbaacca56dad0cb8356b6d2efcf4c147" - } - }, - { - "git": { - "name": "googleapis-gen", - "remote": "https://github.com/googleapis/googleapis-gen.git", - "sha": "ee560452477d92572edb133386e7129532db8ba6", - "internalRef": "370749341" - } - }, - { - "git": { - "name": "synthtool", - "remote": "https://github.com/googleapis/synthtool.git", - "sha": "c86c7a60985644eab557949363a38301d40d78d2" - } - } - ], - "generatedFiles": [ - ".github/CODEOWNERS", - ".github/ISSUE_TEMPLATE/bug_report.md", - ".github/ISSUE_TEMPLATE/feature_request.md", - ".github/ISSUE_TEMPLATE/support_request.md", - ".github/PULL_REQUEST_TEMPLATE.md", - ".github/blunderbuss.yml", - ".github/generated-files-bot.yml", - ".github/readme/synth.py", - ".github/release-please.yml", - ".github/snippet-bot.yml", - ".github/sync-repo-settings.yaml", - ".github/trusted-contribution.yml", - ".github/workflows/approve-readme.yaml", - ".github/workflows/auto-release.yaml", - ".github/workflows/ci.yaml", - ".github/workflows/samples.yaml", - ".kokoro/build.bat", - ".kokoro/build.sh", - ".kokoro/coerce_logs.sh", - ".kokoro/common.cfg", - ".kokoro/common.sh", - ".kokoro/continuous/common.cfg", - ".kokoro/continuous/java8.cfg", - ".kokoro/continuous/readme.cfg", - ".kokoro/dependencies.sh", - ".kokoro/nightly/common.cfg", - ".kokoro/nightly/integration.cfg", - ".kokoro/nightly/java11.cfg", - ".kokoro/nightly/java7.cfg", - ".kokoro/nightly/java8-osx.cfg", - ".kokoro/nightly/java8-win.cfg", - ".kokoro/nightly/java8.cfg", - ".kokoro/nightly/samples.cfg", - ".kokoro/populate-secrets.sh", - ".kokoro/presubmit/clirr.cfg", - ".kokoro/presubmit/common.cfg", - ".kokoro/presubmit/dependencies.cfg", - ".kokoro/presubmit/integration.cfg", - ".kokoro/presubmit/java11.cfg", - ".kokoro/presubmit/java7.cfg", - ".kokoro/presubmit/java8-osx.cfg", - ".kokoro/presubmit/java8-win.cfg", - ".kokoro/presubmit/java8.cfg", - ".kokoro/presubmit/linkage-monitor.cfg", - ".kokoro/presubmit/lint.cfg", - ".kokoro/presubmit/samples.cfg", - ".kokoro/readme.sh", - ".kokoro/release/bump_snapshot.cfg", - ".kokoro/release/common.cfg", - ".kokoro/release/common.sh", - ".kokoro/release/drop.cfg", - ".kokoro/release/drop.sh", - ".kokoro/release/promote.cfg", - ".kokoro/release/promote.sh", - ".kokoro/release/publish_javadoc.cfg", - ".kokoro/release/publish_javadoc.sh", - ".kokoro/release/publish_javadoc11.cfg", - ".kokoro/release/publish_javadoc11.sh", - ".kokoro/release/snapshot.cfg", - ".kokoro/release/snapshot.sh", - ".kokoro/release/stage.cfg", - ".kokoro/release/stage.sh", - ".kokoro/trampoline.sh", - "CODE_OF_CONDUCT.md", - "CONTRIBUTING.md", - "LICENSE", - "codecov.yaml", - "google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClient.java", - "google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceSettings.java", - "google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/gapic_metadata.json", - "google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/package-info.java", - "google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStub.java", - "google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStubSettings.java", - "google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/GrpcAnalyticsAdminServiceCallableFactory.java", - "google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/GrpcAnalyticsAdminServiceStub.java", - "google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClientTest.java", - "google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/MockAnalyticsAdminService.java", - "google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/MockAnalyticsAdminServiceImpl.java", - "grpc-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceGrpc.java", - "java.header", - "license-checks.xml", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/Account.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccountName.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccountOrBuilder.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccountSummary.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccountSummaryName.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccountSummaryOrBuilder.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ActionType.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ActorType.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminProto.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AndroidAppDataStream.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AndroidAppDataStreamName.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AndroidAppDataStreamOrBuilder.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AuditUserLink.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AuditUserLinkOrBuilder.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AuditUserLinksRequest.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AuditUserLinksRequestOrBuilder.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AuditUserLinksResponse.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AuditUserLinksResponseOrBuilder.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchCreateUserLinksRequest.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchCreateUserLinksRequestOrBuilder.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchCreateUserLinksResponse.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchCreateUserLinksResponseOrBuilder.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchDeleteUserLinksRequest.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchDeleteUserLinksRequestOrBuilder.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchGetUserLinksRequest.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchGetUserLinksRequestOrBuilder.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchGetUserLinksResponse.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchGetUserLinksResponseOrBuilder.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchUpdateUserLinksRequest.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchUpdateUserLinksRequestOrBuilder.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchUpdateUserLinksResponse.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchUpdateUserLinksResponseOrBuilder.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryChange.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryChangeOrBuilder.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryEvent.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryEventOrBuilder.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryResourceType.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateFirebaseLinkRequest.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateFirebaseLinkRequestOrBuilder.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateGoogleAdsLinkRequest.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateGoogleAdsLinkRequestOrBuilder.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreatePropertyRequest.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreatePropertyRequestOrBuilder.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateUserLinkRequest.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateUserLinkRequestOrBuilder.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateWebDataStreamRequest.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateWebDataStreamRequestOrBuilder.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataSharingSettings.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataSharingSettingsName.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataSharingSettingsOrBuilder.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteAccountRequest.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteAccountRequestOrBuilder.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteAndroidAppDataStreamRequest.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteAndroidAppDataStreamRequestOrBuilder.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteFirebaseLinkRequest.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteFirebaseLinkRequestOrBuilder.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteGoogleAdsLinkRequest.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteGoogleAdsLinkRequestOrBuilder.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteIosAppDataStreamRequest.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteIosAppDataStreamRequestOrBuilder.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeletePropertyRequest.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeletePropertyRequestOrBuilder.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteUserLinkRequest.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteUserLinkRequestOrBuilder.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteWebDataStreamRequest.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteWebDataStreamRequestOrBuilder.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/EnhancedMeasurementSettings.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/EnhancedMeasurementSettingsName.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/EnhancedMeasurementSettingsOrBuilder.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/FirebaseLink.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/FirebaseLinkName.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/FirebaseLinkOrBuilder.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetAccountRequest.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetAccountRequestOrBuilder.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetAndroidAppDataStreamRequest.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetAndroidAppDataStreamRequestOrBuilder.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDataSharingSettingsRequest.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDataSharingSettingsRequestOrBuilder.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetEnhancedMeasurementSettingsRequest.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetEnhancedMeasurementSettingsRequestOrBuilder.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetGlobalSiteTagRequest.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetGlobalSiteTagRequestOrBuilder.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetIosAppDataStreamRequest.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetIosAppDataStreamRequestOrBuilder.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetPropertyRequest.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetPropertyRequestOrBuilder.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetUserLinkRequest.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetUserLinkRequestOrBuilder.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetWebDataStreamRequest.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetWebDataStreamRequestOrBuilder.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GlobalSiteTag.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GlobalSiteTagName.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GlobalSiteTagOrBuilder.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleAdsLink.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleAdsLinkName.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleAdsLinkOrBuilder.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/IndustryCategory.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/IosAppDataStream.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/IosAppDataStreamName.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/IosAppDataStreamOrBuilder.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountSummariesRequest.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountSummariesRequestOrBuilder.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountSummariesResponse.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountSummariesResponseOrBuilder.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountsRequest.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountsRequestOrBuilder.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountsResponse.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountsResponseOrBuilder.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAndroidAppDataStreamsRequest.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAndroidAppDataStreamsRequestOrBuilder.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAndroidAppDataStreamsResponse.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAndroidAppDataStreamsResponseOrBuilder.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListFirebaseLinksRequest.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListFirebaseLinksRequestOrBuilder.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListFirebaseLinksResponse.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListFirebaseLinksResponseOrBuilder.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListGoogleAdsLinksRequest.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListGoogleAdsLinksRequestOrBuilder.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListGoogleAdsLinksResponse.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListGoogleAdsLinksResponseOrBuilder.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListIosAppDataStreamsRequest.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListIosAppDataStreamsRequestOrBuilder.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListIosAppDataStreamsResponse.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListIosAppDataStreamsResponseOrBuilder.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListPropertiesRequest.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListPropertiesRequestOrBuilder.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListPropertiesResponse.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListPropertiesResponseOrBuilder.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListUserLinksRequest.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListUserLinksRequestOrBuilder.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListUserLinksResponse.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListUserLinksResponseOrBuilder.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListWebDataStreamsRequest.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListWebDataStreamsRequestOrBuilder.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListWebDataStreamsResponse.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListWebDataStreamsResponseOrBuilder.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/MaximumUserAccess.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/Property.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PropertyName.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PropertyOrBuilder.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PropertySummary.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PropertySummaryOrBuilder.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ProvisionAccountTicketRequest.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ProvisionAccountTicketRequestOrBuilder.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ProvisionAccountTicketResponse.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ProvisionAccountTicketResponseOrBuilder.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ResourcesProto.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SearchChangeHistoryEventsRequest.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SearchChangeHistoryEventsRequestOrBuilder.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SearchChangeHistoryEventsResponse.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SearchChangeHistoryEventsResponseOrBuilder.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateAccountRequest.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateAccountRequestOrBuilder.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateAndroidAppDataStreamRequest.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateAndroidAppDataStreamRequestOrBuilder.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateEnhancedMeasurementSettingsRequest.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateEnhancedMeasurementSettingsRequestOrBuilder.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateFirebaseLinkRequest.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateFirebaseLinkRequestOrBuilder.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateGoogleAdsLinkRequest.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateGoogleAdsLinkRequestOrBuilder.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateIosAppDataStreamRequest.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateIosAppDataStreamRequestOrBuilder.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdatePropertyRequest.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdatePropertyRequestOrBuilder.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateUserLinkRequest.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateUserLinkRequestOrBuilder.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateWebDataStreamRequest.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateWebDataStreamRequestOrBuilder.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UserLink.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UserLinkName.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UserLinkOrBuilder.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/WebDataStream.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/WebDataStreamName.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/WebDataStreamOrBuilder.java", - "proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/analytics_admin.proto", - "proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/resources.proto", - "renovate.json", - "samples/install-without-bom/pom.xml", - "samples/pom.xml", - "samples/snapshot/pom.xml", - "samples/snippets/pom.xml" - ] -} \ No newline at end of file diff --git a/versions.txt b/versions.txt deleted file mode 100644 index 8610942d..00000000 --- a/versions.txt +++ /dev/null @@ -1,8 +0,0 @@ -# Format: -# module:released-version:current-version - -google-analytics-admin:0.13.5:0.13.5 -grpc-google-analytics-admin-v1alpha:0.13.5:0.13.5 -proto-google-analytics-admin-v1alpha:0.13.5:0.13.5 -proto-google-analytics-admin-v1beta:0.13.5:0.13.5 -grpc-google-analytics-admin-v1beta:0.13.5:0.13.5