From 83cb5b335c3f2d4ad15eeb3d3bef56b6384ab041 Mon Sep 17 00:00:00 2001 From: Jeff Ching Date: Thu, 16 Jul 2020 10:22:14 -0700 Subject: [PATCH] feat: initial generation --- .github/CODEOWNERS | 8 + .github/ISSUE_TEMPLATE/bug_report.md | 51 + .github/ISSUE_TEMPLATE/feature_request.md | 21 + .github/ISSUE_TEMPLATE/support_request.md | 7 + .github/PULL_REQUEST_TEMPLATE.md | 7 + .github/release-please.yml | 2 + .github/trusted-contribution.yml | 2 + .github/workflows/ci.yaml | 79 + .gitignore | 15 + .kokoro/build.bat | 3 + .kokoro/build.sh | 111 + .kokoro/coerce_logs.sh | 38 + .kokoro/common.cfg | 13 + .kokoro/common.sh | 59 + .kokoro/continuous/common.cfg | 25 + .kokoro/continuous/dependencies.cfg | 12 + .kokoro/continuous/integration.cfg | 7 + .kokoro/continuous/java11.cfg | 7 + .kokoro/continuous/java7.cfg | 7 + .kokoro/continuous/java8-osx.cfg | 3 + .kokoro/continuous/java8-win.cfg | 3 + .kokoro/continuous/java8.cfg | 12 + .kokoro/continuous/lint.cfg | 13 + .kokoro/continuous/propose_release.cfg | 53 + .kokoro/continuous/samples.cfg | 31 + .kokoro/dependencies.sh | 88 + .kokoro/linkage-monitor.sh | 46 + .kokoro/nightly/common.cfg | 25 + .kokoro/nightly/dependencies.cfg | 12 + .kokoro/nightly/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/lint.cfg | 13 + .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/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/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 | 19 + .kokoro/release/publish_javadoc.sh | 55 + .kokoro/release/snapshot.cfg | 6 + .kokoro/release/snapshot.sh | 33 + .kokoro/release/stage.cfg | 44 + .kokoro/release/stage.sh | 42 + .kokoro/trampoline.sh | 26 + .repo-metadata.json | 15 + CODE_OF_CONDUCT.md | 93 + CONTRIBUTING.md | 139 + LICENSE | 202 + README.md | 143 + codecov.yaml | 4 + google-analytics-admin-bom/pom.xml | 97 + google-analytics-admin/pom.xml | 110 + .../v1alpha/AnalyticsAdminServiceClient.java | 5330 ++++++++++++++ .../AnalyticsAdminServiceSettings.java | 746 ++ .../analytics/admin/v1alpha/package-info.java | 40 + .../stub/AnalyticsAdminServiceStub.java | 368 + .../AnalyticsAdminServiceStubSettings.java | 2111 ++++++ ...cAnalyticsAdminServiceCallableFactory.java | 115 + .../stub/GrpcAnalyticsAdminServiceStub.java | 1875 +++++ .../AnalyticsAdminServiceClientTest.java | 2341 +++++++ .../v1alpha/MockAnalyticsAdminService.java | 57 + .../MockAnalyticsAdminServiceImpl.java | 774 +++ grpc-google-analytics-admin-v1alpha/pom.xml | 65 + .../v1alpha/AnalyticsAdminServiceGrpc.java | 6164 +++++++++++++++++ java.header | 15 + license-checks.xml | 10 + pom.xml | 186 + proto-google-analytics-admin-v1alpha/pom.xml | 42 + .../analytics/admin/v1alpha/Account.java | 1693 +++++ .../analytics/admin/v1alpha/AccountName.java | 162 + .../admin/v1alpha/AccountOrBuilder.java | 196 + .../admin/v1alpha/AnalyticsAdminProto.java | 1250 ++++ .../admin/v1alpha/AndroidAppDataStream.java | 1795 +++++ .../v1alpha/AndroidAppDataStreamName.java | 189 + .../AndroidAppDataStreamOrBuilder.java | 211 + .../admin/v1alpha/AuditUserLink.java | 1435 ++++ .../admin/v1alpha/AuditUserLinkOrBuilder.java | 197 + .../admin/v1alpha/AuditUserLinksRequest.java | 953 +++ .../AuditUserLinksRequestOrBuilder.java | 101 + .../admin/v1alpha/AuditUserLinksResponse.java | 1165 ++++ .../AuditUserLinksResponseOrBuilder.java | 109 + .../v1alpha/BatchCreateUserLinksRequest.java | 1293 ++++ .../BatchCreateUserLinksRequestOrBuilder.java | 127 + .../v1alpha/BatchCreateUserLinksResponse.java | 959 +++ ...BatchCreateUserLinksResponseOrBuilder.java | 77 + .../v1alpha/BatchDeleteUserLinksRequest.java | 1199 ++++ .../BatchDeleteUserLinksRequestOrBuilder.java | 113 + .../v1alpha/BatchGetUserLinksRequest.java | 1004 +++ .../BatchGetUserLinksRequestOrBuilder.java | 127 + .../v1alpha/BatchGetUserLinksResponse.java | 955 +++ .../BatchGetUserLinksResponseOrBuilder.java | 77 + .../v1alpha/BatchUpdateUserLinksRequest.java | 1199 ++++ .../BatchUpdateUserLinksRequestOrBuilder.java | 113 + .../v1alpha/BatchUpdateUserLinksResponse.java | 959 +++ ...BatchUpdateUserLinksResponseOrBuilder.java | 77 + .../CreateAndroidAppDataStreamRequest.java | 980 +++ ...eAndroidAppDataStreamRequestOrBuilder.java | 98 + .../v1alpha/CreateFirebaseLinkRequest.java | 963 +++ .../CreateFirebaseLinkRequestOrBuilder.java | 97 + .../v1alpha/CreateGoogleAdsLinkRequest.java | 957 +++ .../CreateGoogleAdsLinkRequestOrBuilder.java | 95 + .../CreateIosAppDataStreamRequest.java | 972 +++ ...reateIosAppDataStreamRequestOrBuilder.java | 97 + .../admin/v1alpha/CreatePropertyRequest.java | 771 +++ .../CreatePropertyRequestOrBuilder.java | 69 + .../admin/v1alpha/CreateUserLinkRequest.java | 1059 +++ .../CreateUserLinkRequestOrBuilder.java | 109 + .../v1alpha/CreateWebDataStreamRequest.java | 964 +++ .../CreateWebDataStreamRequestOrBuilder.java | 97 + .../admin/v1alpha/DataSharingSettings.java | 1139 +++ .../v1alpha/DataSharingSettingsName.java | 162 + .../v1alpha/DataSharingSettingsOrBuilder.java | 123 + .../admin/v1alpha/DeleteAccountRequest.java | 665 ++ .../DeleteAccountRequestOrBuilder.java | 58 + .../DeleteAndroidAppDataStreamRequest.java | 677 ++ ...eAndroidAppDataStreamRequestOrBuilder.java | 58 + .../v1alpha/DeleteFirebaseLinkRequest.java | 661 ++ .../DeleteFirebaseLinkRequestOrBuilder.java | 56 + .../v1alpha/DeleteGoogleAdsLinkRequest.java | 655 ++ .../DeleteGoogleAdsLinkRequestOrBuilder.java | 54 + .../DeleteIosAppDataStreamRequest.java | 672 ++ ...eleteIosAppDataStreamRequestOrBuilder.java | 58 + .../admin/v1alpha/DeletePropertyRequest.java | 665 ++ .../DeletePropertyRequestOrBuilder.java | 58 + .../admin/v1alpha/DeleteUserLinkRequest.java | 651 ++ .../DeleteUserLinkRequestOrBuilder.java | 54 + .../v1alpha/DeleteWebDataStreamRequest.java | 669 ++ .../DeleteWebDataStreamRequestOrBuilder.java | 58 + .../v1alpha/EnhancedMeasurementSettings.java | 2542 +++++++ .../EnhancedMeasurementSettingsName.java | 185 + .../EnhancedMeasurementSettingsOrBuilder.java | 332 + .../analytics/admin/v1alpha/FirebaseLink.java | 1308 ++++ .../admin/v1alpha/FirebaseLinkName.java | 182 + .../admin/v1alpha/FirebaseLinkOrBuilder.java | 150 + .../admin/v1alpha/GetAccountRequest.java | 664 ++ .../v1alpha/GetAccountRequestOrBuilder.java | 58 + .../GetAndroidAppDataStreamRequest.java | 675 ++ ...tAndroidAppDataStreamRequestOrBuilder.java | 58 + .../GetDataSharingSettingsRequest.java | 672 ++ ...etDataSharingSettingsRequestOrBuilder.java | 58 + ...GetEnhancedMeasurementSettingsRequest.java | 690 ++ ...edMeasurementSettingsRequestOrBuilder.java | 60 + .../v1alpha/GetGlobalSiteTagRequest.java | 672 ++ .../GetGlobalSiteTagRequestOrBuilder.java | 60 + .../v1alpha/GetIosAppDataStreamRequest.java | 669 ++ .../GetIosAppDataStreamRequestOrBuilder.java | 58 + .../admin/v1alpha/GetPropertyRequest.java | 665 ++ .../v1alpha/GetPropertyRequestOrBuilder.java | 58 + .../admin/v1alpha/GetUserLinkRequest.java | 651 ++ .../v1alpha/GetUserLinkRequestOrBuilder.java | 54 + .../v1alpha/GetWebDataStreamRequest.java | 665 ++ .../GetWebDataStreamRequestOrBuilder.java | 58 + .../admin/v1alpha/GlobalSiteTag.java | 644 ++ .../admin/v1alpha/GlobalSiteTagName.java | 162 + .../admin/v1alpha/GlobalSiteTagOrBuilder.java | 52 + .../admin/v1alpha/GoogleAdsLink.java | 2178 ++++++ .../admin/v1alpha/GoogleAdsLinkName.java | 184 + .../admin/v1alpha/GoogleAdsLinkOrBuilder.java | 262 + .../admin/v1alpha/IndustryCategory.java | 704 ++ .../admin/v1alpha/IosAppDataStream.java | 1808 +++++ .../admin/v1alpha/IosAppDataStreamName.java | 188 + .../v1alpha/IosAppDataStreamOrBuilder.java | 215 + .../admin/v1alpha/ListAccountsRequest.java | 858 +++ .../v1alpha/ListAccountsRequestOrBuilder.java | 87 + .../admin/v1alpha/ListAccountsResponse.java | 1136 +++ .../ListAccountsResponseOrBuilder.java | 104 + .../ListAndroidAppDataStreamsRequest.java | 982 +++ ...AndroidAppDataStreamsRequestOrBuilder.java | 106 + .../ListAndroidAppDataStreamsResponse.java | 1223 ++++ ...ndroidAppDataStreamsResponseOrBuilder.java | 116 + .../v1alpha/ListFirebaseLinksRequest.java | 658 ++ .../ListFirebaseLinksRequestOrBuilder.java | 56 + .../v1alpha/ListFirebaseLinksResponse.java | 966 +++ .../ListFirebaseLinksResponseOrBuilder.java | 77 + .../v1alpha/ListGoogleAdsLinksRequest.java | 952 +++ .../ListGoogleAdsLinksRequestOrBuilder.java | 100 + .../v1alpha/ListGoogleAdsLinksResponse.java | 1155 +++ .../ListGoogleAdsLinksResponseOrBuilder.java | 104 + .../v1alpha/ListIosAppDataStreamsRequest.java | 970 +++ ...ListIosAppDataStreamsRequestOrBuilder.java | 104 + .../ListIosAppDataStreamsResponse.java | 1185 ++++ ...istIosAppDataStreamsResponseOrBuilder.java | 110 + .../admin/v1alpha/ListPropertiesRequest.java | 1100 +++ .../ListPropertiesRequestOrBuilder.java | 130 + .../admin/v1alpha/ListPropertiesResponse.java | 1139 +++ .../ListPropertiesResponseOrBuilder.java | 104 + .../admin/v1alpha/ListUserLinksRequest.java | 953 +++ .../ListUserLinksRequestOrBuilder.java | 101 + .../admin/v1alpha/ListUserLinksResponse.java | 1138 +++ .../ListUserLinksResponseOrBuilder.java | 104 + .../v1alpha/ListWebDataStreamsRequest.java | 966 +++ .../ListWebDataStreamsRequestOrBuilder.java | 104 + .../v1alpha/ListWebDataStreamsResponse.java | 1155 +++ .../ListWebDataStreamsResponseOrBuilder.java | 104 + .../admin/v1alpha/MaximumUserAccess.java | 227 + .../analytics/admin/v1alpha/Property.java | 2293 ++++++ .../analytics/admin/v1alpha/PropertyName.java | 162 + .../admin/v1alpha/PropertyOrBuilder.java | 295 + .../ProvisionAccountTicketRequest.java | 928 +++ ...rovisionAccountTicketRequestOrBuilder.java | 87 + .../ProvisionAccountTicketResponse.java | 647 ++ ...ovisionAccountTicketResponseOrBuilder.java | 50 + .../admin/v1alpha/ResourcesProto.java | 376 + .../admin/v1alpha/UpdateAccountRequest.java | 1042 +++ .../UpdateAccountRequestOrBuilder.java | 104 + .../UpdateAndroidAppDataStreamRequest.java | 1063 +++ ...eAndroidAppDataStreamRequestOrBuilder.java | 105 + ...ateEnhancedMeasurementSettingsRequest.java | 1084 +++ ...edMeasurementSettingsRequestOrBuilder.java | 105 + .../v1alpha/UpdateFirebaseLinkRequest.java | 1034 +++ .../UpdateFirebaseLinkRequestOrBuilder.java | 101 + .../v1alpha/UpdateGoogleAdsLinkRequest.java | 1011 +++ .../UpdateGoogleAdsLinkRequestOrBuilder.java | 95 + .../UpdateIosAppDataStreamRequest.java | 1055 +++ ...pdateIosAppDataStreamRequestOrBuilder.java | 104 + .../admin/v1alpha/UpdatePropertyRequest.java | 1055 +++ .../UpdatePropertyRequestOrBuilder.java | 107 + .../admin/v1alpha/UpdateUserLinkRequest.java | 759 ++ .../UpdateUserLinkRequestOrBuilder.java | 66 + .../v1alpha/UpdateWebDataStreamRequest.java | 1047 +++ .../UpdateWebDataStreamRequestOrBuilder.java | 104 + .../analytics/admin/v1alpha/UserLink.java | 1212 ++++ .../analytics/admin/v1alpha/UserLinkName.java | 293 + .../admin/v1alpha/UserLinkOrBuilder.java | 162 + .../admin/v1alpha/WebDataStream.java | 1979 ++++++ .../admin/v1alpha/WebDataStreamName.java | 184 + .../admin/v1alpha/WebDataStreamOrBuilder.java | 238 + .../admin/v1alpha/analytics_admin.proto | 1344 ++++ .../analytics/admin/v1alpha/resources.proto | 571 ++ renovate.json | 81 + samples/install-without-bom/pom.xml | 84 + samples/pom.xml | 56 + samples/snapshot/pom.xml | 83 + samples/snippets/pom.xml | 60 + synth.metadata | 37 + synth.py | 33 + versions.txt | 6 + 257 files changed, 112175 insertions(+) create mode 100644 .github/CODEOWNERS create mode 100644 .github/ISSUE_TEMPLATE/bug_report.md create mode 100644 .github/ISSUE_TEMPLATE/feature_request.md create mode 100644 .github/ISSUE_TEMPLATE/support_request.md create mode 100644 .github/PULL_REQUEST_TEMPLATE.md create mode 100644 .github/release-please.yml create mode 100644 .github/trusted-contribution.yml create mode 100644 .github/workflows/ci.yaml create mode 100644 .gitignore create mode 100644 .kokoro/build.bat create mode 100755 .kokoro/build.sh create mode 100755 .kokoro/coerce_logs.sh create mode 100644 .kokoro/common.cfg create mode 100644 .kokoro/common.sh create mode 100644 .kokoro/continuous/common.cfg create mode 100644 .kokoro/continuous/dependencies.cfg create mode 100644 .kokoro/continuous/integration.cfg create mode 100644 .kokoro/continuous/java11.cfg create mode 100644 .kokoro/continuous/java7.cfg create mode 100644 .kokoro/continuous/java8-osx.cfg create mode 100644 .kokoro/continuous/java8-win.cfg create mode 100644 .kokoro/continuous/java8.cfg create mode 100644 .kokoro/continuous/lint.cfg create mode 100644 .kokoro/continuous/propose_release.cfg create mode 100644 .kokoro/continuous/samples.cfg create mode 100755 .kokoro/dependencies.sh create mode 100755 .kokoro/linkage-monitor.sh create mode 100644 .kokoro/nightly/common.cfg create mode 100644 .kokoro/nightly/dependencies.cfg create mode 100644 .kokoro/nightly/integration.cfg create mode 100644 .kokoro/nightly/java11.cfg create mode 100644 .kokoro/nightly/java7.cfg create mode 100644 .kokoro/nightly/java8-osx.cfg create mode 100644 .kokoro/nightly/java8-win.cfg create mode 100644 .kokoro/nightly/java8.cfg create mode 100644 .kokoro/nightly/lint.cfg create mode 100644 .kokoro/nightly/samples.cfg create mode 100755 .kokoro/populate-secrets.sh create mode 100644 .kokoro/presubmit/clirr.cfg create mode 100644 .kokoro/presubmit/common.cfg create mode 100644 .kokoro/presubmit/dependencies.cfg create mode 100644 .kokoro/presubmit/integration.cfg create mode 100644 .kokoro/presubmit/java11.cfg create mode 100644 .kokoro/presubmit/java7.cfg create mode 100644 .kokoro/presubmit/java8-osx.cfg create mode 100644 .kokoro/presubmit/java8-win.cfg create mode 100644 .kokoro/presubmit/java8.cfg create mode 100644 .kokoro/presubmit/linkage-monitor.cfg create mode 100644 .kokoro/presubmit/lint.cfg create mode 100644 .kokoro/presubmit/samples.cfg create mode 100644 .kokoro/release/bump_snapshot.cfg create mode 100644 .kokoro/release/common.cfg create mode 100755 .kokoro/release/common.sh create mode 100644 .kokoro/release/drop.cfg create mode 100755 .kokoro/release/drop.sh create mode 100644 .kokoro/release/promote.cfg create mode 100755 .kokoro/release/promote.sh create mode 100644 .kokoro/release/publish_javadoc.cfg create mode 100755 .kokoro/release/publish_javadoc.sh create mode 100644 .kokoro/release/snapshot.cfg create mode 100755 .kokoro/release/snapshot.sh create mode 100644 .kokoro/release/stage.cfg create mode 100755 .kokoro/release/stage.sh create mode 100644 .kokoro/trampoline.sh create mode 100644 .repo-metadata.json create mode 100644 CODE_OF_CONDUCT.md create mode 100644 CONTRIBUTING.md create mode 100644 LICENSE create mode 100644 README.md create mode 100644 codecov.yaml create mode 100644 google-analytics-admin-bom/pom.xml create mode 100644 google-analytics-admin/pom.xml create mode 100644 google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClient.java create mode 100644 google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceSettings.java create mode 100644 google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/package-info.java create mode 100644 google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStub.java create mode 100644 google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStubSettings.java create mode 100644 google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/GrpcAnalyticsAdminServiceCallableFactory.java create mode 100644 google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/GrpcAnalyticsAdminServiceStub.java create mode 100644 google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClientTest.java create mode 100644 google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/MockAnalyticsAdminService.java create mode 100644 google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/MockAnalyticsAdminServiceImpl.java create mode 100644 grpc-google-analytics-admin-v1alpha/pom.xml create mode 100644 grpc-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceGrpc.java create mode 100644 java.header create mode 100644 license-checks.xml create mode 100644 pom.xml create mode 100644 proto-google-analytics-admin-v1alpha/pom.xml create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/Account.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccountName.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccountOrBuilder.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminProto.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AndroidAppDataStream.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AndroidAppDataStreamName.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AndroidAppDataStreamOrBuilder.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AuditUserLink.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AuditUserLinkOrBuilder.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AuditUserLinksRequest.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AuditUserLinksRequestOrBuilder.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AuditUserLinksResponse.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AuditUserLinksResponseOrBuilder.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchCreateUserLinksRequest.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchCreateUserLinksRequestOrBuilder.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchCreateUserLinksResponse.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchCreateUserLinksResponseOrBuilder.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchDeleteUserLinksRequest.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchDeleteUserLinksRequestOrBuilder.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchGetUserLinksRequest.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchGetUserLinksRequestOrBuilder.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchGetUserLinksResponse.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchGetUserLinksResponseOrBuilder.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchUpdateUserLinksRequest.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchUpdateUserLinksRequestOrBuilder.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchUpdateUserLinksResponse.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchUpdateUserLinksResponseOrBuilder.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateAndroidAppDataStreamRequest.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateAndroidAppDataStreamRequestOrBuilder.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateFirebaseLinkRequest.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateFirebaseLinkRequestOrBuilder.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateGoogleAdsLinkRequest.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateGoogleAdsLinkRequestOrBuilder.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateIosAppDataStreamRequest.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateIosAppDataStreamRequestOrBuilder.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreatePropertyRequest.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreatePropertyRequestOrBuilder.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateUserLinkRequest.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateUserLinkRequestOrBuilder.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateWebDataStreamRequest.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateWebDataStreamRequestOrBuilder.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataSharingSettings.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataSharingSettingsName.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataSharingSettingsOrBuilder.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteAccountRequest.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteAccountRequestOrBuilder.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteAndroidAppDataStreamRequest.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteAndroidAppDataStreamRequestOrBuilder.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteFirebaseLinkRequest.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteFirebaseLinkRequestOrBuilder.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteGoogleAdsLinkRequest.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteGoogleAdsLinkRequestOrBuilder.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteIosAppDataStreamRequest.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteIosAppDataStreamRequestOrBuilder.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeletePropertyRequest.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeletePropertyRequestOrBuilder.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteUserLinkRequest.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteUserLinkRequestOrBuilder.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteWebDataStreamRequest.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteWebDataStreamRequestOrBuilder.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/EnhancedMeasurementSettings.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/EnhancedMeasurementSettingsName.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/EnhancedMeasurementSettingsOrBuilder.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/FirebaseLink.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/FirebaseLinkName.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/FirebaseLinkOrBuilder.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetAccountRequest.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetAccountRequestOrBuilder.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetAndroidAppDataStreamRequest.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetAndroidAppDataStreamRequestOrBuilder.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDataSharingSettingsRequest.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDataSharingSettingsRequestOrBuilder.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetEnhancedMeasurementSettingsRequest.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetEnhancedMeasurementSettingsRequestOrBuilder.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetGlobalSiteTagRequest.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetGlobalSiteTagRequestOrBuilder.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetIosAppDataStreamRequest.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetIosAppDataStreamRequestOrBuilder.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetPropertyRequest.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetPropertyRequestOrBuilder.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetUserLinkRequest.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetUserLinkRequestOrBuilder.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetWebDataStreamRequest.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetWebDataStreamRequestOrBuilder.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GlobalSiteTag.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GlobalSiteTagName.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GlobalSiteTagOrBuilder.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleAdsLink.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleAdsLinkName.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleAdsLinkOrBuilder.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/IndustryCategory.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/IosAppDataStream.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/IosAppDataStreamName.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/IosAppDataStreamOrBuilder.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountsRequest.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountsRequestOrBuilder.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountsResponse.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountsResponseOrBuilder.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAndroidAppDataStreamsRequest.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAndroidAppDataStreamsRequestOrBuilder.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAndroidAppDataStreamsResponse.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAndroidAppDataStreamsResponseOrBuilder.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListFirebaseLinksRequest.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListFirebaseLinksRequestOrBuilder.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListFirebaseLinksResponse.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListFirebaseLinksResponseOrBuilder.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListGoogleAdsLinksRequest.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListGoogleAdsLinksRequestOrBuilder.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListGoogleAdsLinksResponse.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListGoogleAdsLinksResponseOrBuilder.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListIosAppDataStreamsRequest.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListIosAppDataStreamsRequestOrBuilder.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListIosAppDataStreamsResponse.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListIosAppDataStreamsResponseOrBuilder.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListPropertiesRequest.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListPropertiesRequestOrBuilder.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListPropertiesResponse.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListPropertiesResponseOrBuilder.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListUserLinksRequest.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListUserLinksRequestOrBuilder.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListUserLinksResponse.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListUserLinksResponseOrBuilder.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListWebDataStreamsRequest.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListWebDataStreamsRequestOrBuilder.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListWebDataStreamsResponse.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListWebDataStreamsResponseOrBuilder.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/MaximumUserAccess.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/Property.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PropertyName.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PropertyOrBuilder.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ProvisionAccountTicketRequest.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ProvisionAccountTicketRequestOrBuilder.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ProvisionAccountTicketResponse.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ProvisionAccountTicketResponseOrBuilder.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ResourcesProto.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateAccountRequest.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateAccountRequestOrBuilder.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateAndroidAppDataStreamRequest.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateAndroidAppDataStreamRequestOrBuilder.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateEnhancedMeasurementSettingsRequest.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateEnhancedMeasurementSettingsRequestOrBuilder.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateFirebaseLinkRequest.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateFirebaseLinkRequestOrBuilder.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateGoogleAdsLinkRequest.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateGoogleAdsLinkRequestOrBuilder.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateIosAppDataStreamRequest.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateIosAppDataStreamRequestOrBuilder.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdatePropertyRequest.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdatePropertyRequestOrBuilder.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateUserLinkRequest.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateUserLinkRequestOrBuilder.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateWebDataStreamRequest.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateWebDataStreamRequestOrBuilder.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UserLink.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UserLinkName.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UserLinkOrBuilder.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/WebDataStream.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/WebDataStreamName.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/WebDataStreamOrBuilder.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/analytics_admin.proto create mode 100644 proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/resources.proto create mode 100644 renovate.json create mode 100644 samples/install-without-bom/pom.xml create mode 100644 samples/pom.xml create mode 100644 samples/snapshot/pom.xml create mode 100644 samples/snippets/pom.xml create mode 100644 synth.metadata create mode 100644 synth.py create mode 100644 versions.txt diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 00000000..6137bef2 --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1,8 @@ +# 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 java-samples-reviewers team is the default owner for samples changes +samples/**/*.java @googleapis/java-samples-reviewers diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md new file mode 100644 index 00000000..f5455798 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -0,0 +1,51 @@ +--- +name: Bug report +about: Create a report to help us improve + +--- + +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. analytics-admin 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 new file mode 100644 index 00000000..754e30c6 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -0,0 +1,21 @@ +--- +name: Feature request +about: Suggest an idea for this library + +--- + +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 new file mode 100644 index 00000000..99586903 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/support_request.md @@ -0,0 +1,7 @@ +--- +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 new file mode 100644 index 00000000..45427ae6 --- /dev/null +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -0,0 +1,7 @@ +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 # ☕️ diff --git a/.github/release-please.yml b/.github/release-please.yml new file mode 100644 index 00000000..dce2c845 --- /dev/null +++ b/.github/release-please.yml @@ -0,0 +1,2 @@ +releaseType: java-yoshi +bumpMinorPreMajor: true \ No newline at end of file diff --git a/.github/trusted-contribution.yml b/.github/trusted-contribution.yml new file mode 100644 index 00000000..f247d5c7 --- /dev/null +++ b/.github/trusted-contribution.yml @@ -0,0 +1,2 @@ +trustedContributors: +- renovate-bot \ No newline at end of file diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 00000000..68302207 --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,79 @@ +on: + push: + branches: + - master + pull_request: +name: ci +jobs: + units: + runs-on: ubuntu-latest + strategy: + matrix: + java: [7, 8, 11] + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-java@v1 + with: + java-version: ${{matrix.java}} + - run: java -version + - run: .kokoro/build.sh + env: + JOB_TYPE: test + - name: coverage + uses: codecov/codecov-action@v1 + with: + name: actions ${{matrix.java}} + windows: + runs-on: windows-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-java@v1 + with: + java-version: 8 + - run: java -version + - run: .kokoro/build.bat + env: + JOB_TYPE: test + dependencies: + runs-on: ubuntu-latest + strategy: + matrix: + java: [8, 11] + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-java@v1 + with: + java-version: ${{matrix.java}} + - run: java -version + - run: .kokoro/dependencies.sh + linkage-monitor: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-java@v1 + with: + java-version: 8 + - run: java -version + - run: .kokoro/linkage-monitor.sh + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-java@v1 + with: + java-version: 8 + - run: java -version + - run: .kokoro/build.sh + env: + JOB_TYPE: lint + clirr: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-java@v1 + with: + java-version: 8 + - run: java -version + - run: .kokoro/build.sh + env: + JOB_TYPE: clirr \ No newline at end of file diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..bbec058d --- /dev/null +++ b/.gitignore @@ -0,0 +1,15 @@ +# Maven +target/ + +# Eclipse +.classpath +.project +.settings + +# Intellij +*.iml +.idea/ + +# python utilities +*.pyc +__pycache__ \ No newline at end of file diff --git a/.kokoro/build.bat b/.kokoro/build.bat new file mode 100644 index 00000000..05826ad9 --- /dev/null +++ b/.kokoro/build.bat @@ -0,0 +1,3 @@ +:: 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 new file mode 100755 index 00000000..530a4f22 --- /dev/null +++ b/.kokoro/build.sh @@ -0,0 +1,111 @@ +#!/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 Java version +java -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 \ + -DskipTests=true \ + -Dclirr.skip=true \ + -Denforcer.skip=true \ + -Dmaven.javadoc.skip=true \ + -Dgcloud.download.skip=true \ + -T 1C + +# if GOOGLE_APPLICATION_CREDIENTIALS 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 -Dclirr.skip=true -Denforcer.skip=true + RETURN_CODE=$? + ;; +lint) + mvn com.coveo:fmt-maven-plugin:check + RETURN_CODE=$? + ;; +javadoc) + mvn javadoc:javadoc javadoc:test-javadoc + RETURN_CODE=$? + ;; +integration) + mvn -B ${INTEGRATION_TEST_ARGS} \ + -Penable-integration-tests \ + -DtrimStackTrace=false \ + -Dclirr.skip=true \ + -Denforcer.skip=true \ + -fae \ + verify + RETURN_CODE=$? + ;; +samples) + if [[ -f samples/pom.xml ]] + then + pushd samples + mvn -B \ + -Penable-samples \ + -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 -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_BUILD_COP}" == "true" ]] +then + chmod +x ${KOKORO_GFILE_DIR}/linux_amd64/buildcop + ${KOKORO_GFILE_DIR}/linux_amd64/buildcop -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 new file mode 100755 index 00000000..5cf7ba49 --- /dev/null +++ b/.kokoro/coerce_logs.sh @@ -0,0 +1,38 @@ +#!/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 + echo "processing ${xml}" + 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 new file mode 100644 index 00000000..e4222865 --- /dev/null +++ b/.kokoro/common.cfg @@ -0,0 +1,13 @@ +# 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 new file mode 100644 index 00000000..a8d0ea04 --- /dev/null +++ b/.kokoro/common.sh @@ -0,0 +1,59 @@ +#!/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 + echo "${command}" + ${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) $*"; } \ No newline at end of file diff --git a/.kokoro/continuous/common.cfg b/.kokoro/continuous/common.cfg new file mode 100644 index 00000000..08654fec --- /dev/null +++ b/.kokoro/continuous/common.cfg @@ -0,0 +1,25 @@ +# 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/dependencies.cfg b/.kokoro/continuous/dependencies.cfg new file mode 100644 index 00000000..e203a4cf --- /dev/null +++ b/.kokoro/continuous/dependencies.cfg @@ -0,0 +1,12 @@ +# 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/continuous/integration.cfg b/.kokoro/continuous/integration.cfg new file mode 100644 index 00000000..3b017fc8 --- /dev/null +++ b/.kokoro/continuous/integration.cfg @@ -0,0 +1,7 @@ +# 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" +} diff --git a/.kokoro/continuous/java11.cfg b/.kokoro/continuous/java11.cfg new file mode 100644 index 00000000..709f2b4c --- /dev/null +++ b/.kokoro/continuous/java11.cfg @@ -0,0 +1,7 @@ +# 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/continuous/java7.cfg b/.kokoro/continuous/java7.cfg new file mode 100644 index 00000000..cb24f44e --- /dev/null +++ b/.kokoro/continuous/java7.cfg @@ -0,0 +1,7 @@ +# 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/continuous/java8-osx.cfg b/.kokoro/continuous/java8-osx.cfg new file mode 100644 index 00000000..8adc9e78 --- /dev/null +++ b/.kokoro/continuous/java8-osx.cfg @@ -0,0 +1,3 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +build_file: "java-analytics-admin/.kokoro/build.sh" diff --git a/.kokoro/continuous/java8-win.cfg b/.kokoro/continuous/java8-win.cfg new file mode 100644 index 00000000..35288db3 --- /dev/null +++ b/.kokoro/continuous/java8-win.cfg @@ -0,0 +1,3 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +build_file: "java-analytics-admin/.kokoro/build.bat" diff --git a/.kokoro/continuous/java8.cfg b/.kokoro/continuous/java8.cfg new file mode 100644 index 00000000..495cc7ba --- /dev/null +++ b/.kokoro/continuous/java8.cfg @@ -0,0 +1,12 @@ +# 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/continuous/lint.cfg b/.kokoro/continuous/lint.cfg new file mode 100644 index 00000000..6d323c8a --- /dev/null +++ b/.kokoro/continuous/lint.cfg @@ -0,0 +1,13 @@ +# 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/continuous/propose_release.cfg b/.kokoro/continuous/propose_release.cfg new file mode 100644 index 00000000..cef3ebbf --- /dev/null +++ b/.kokoro/continuous/propose_release.cfg @@ -0,0 +1,53 @@ +# 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/continuous/propose_release.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/continuous/samples.cfg b/.kokoro/continuous/samples.cfg new file mode 100644 index 00000000..fa7b493d --- /dev/null +++ b/.kokoro/continuous/samples.cfg @@ -0,0 +1,31 @@ +# 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" +} + +env_vars: { + key: "GCLOUD_PROJECT" + value: "gcloud-devel" +} + +env_vars: { + key: "GOOGLE_APPLICATION_CREDENTIALS" + value: "keystore/73713_java_it_service_account" +} + +before_action { + fetch_keystore { + keystore_resource { + keystore_config_id: 73713 + keyname: "java_it_service_account" + } + } +} diff --git a/.kokoro/dependencies.sh b/.kokoro/dependencies.sh new file mode 100755 index 00000000..cee4f11e --- /dev/null +++ b/.kokoro/dependencies.sh @@ -0,0 +1,88 @@ +#!/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 Java +java -version +echo $JOB_TYPE + +export MAVEN_OPTS="-Xmx1024m -XX:MaxPermSize=128m" + +# this should run maven enforcer +retry_with_backoff 3 10 \ + mvn install -B -V \ + -DskipTests=true \ + -Dclirr.skip=true + +mvn -B dependency:analyze -DfailOnWarning=true + +echo "****************** DEPENDENCY LIST COMPLETENESS CHECK *******************" +## Run dependency list completeness check +function completenessCheck() { + # Output dep list with compile scope generated using the original pom + # Running mvn dependency:list on Java versions that support modules will also include the module of the dependency. + # This is stripped from the output as it is not present in the flattened pom. + msg "Generating dependency list using original pom..." + mvn dependency:list -f pom.xml -Dsort=true | grep '\[INFO] .*:.*:.*:.*:.*' | sed -e s/\\s--\\smodule.*// | grep -v ':test$' >.org-list.txt + + # Output dep list generated using the flattened pom (test scope deps are ommitted) + msg "Generating dependency list using flattened pom..." + mvn dependency:list -f .flattened-pom.xml -Dsort=true | grep '\[INFO] .*:.*:.*:.*:.*' >.new-list.txt + + # Compare two dependency lists + msg "Comparing dependency lists..." + diff .org-list.txt .new-list.txt >.diff.txt + if [[ $? == 0 ]] + then + msg "Success. No diff!" + else + msg "Diff found. See below: " + msg "You can also check .diff.txt file located in $1." + cat .diff.txt + return 1 + fi +} + +# Allow failures to continue running the script +set +e + +error_count=0 +for path in $(find -name ".flattened-pom.xml") +do + # Check flattened pom in each dir that contains it for completeness + dir=$(dirname "$path") + pushd "$dir" + completenessCheck "$dir" + error_count=$(($error_count + $?)) + popd +done + +if [[ $error_count == 0 ]] +then + msg "All checks passed." + exit 0 +else + msg "Errors found. See log statements above." + exit 1 +fi diff --git a/.kokoro/linkage-monitor.sh b/.kokoro/linkage-monitor.sh new file mode 100755 index 00000000..759ab4e2 --- /dev/null +++ b/.kokoro/linkage-monitor.sh @@ -0,0 +1,46 @@ +#!/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 +# Display commands being run. +set -x + +## 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 version +java -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 \ + -DskipTests=true \ + -Dclirr.skip=true \ + -Denforcer.skip=true \ + -Dmaven.javadoc.skip=true \ + -Dgcloud.download.skip=true + +# Kokoro job cloud-opensource-java/ubuntu/linkage-monitor-gcs creates this JAR +JAR=linkage-monitor-latest-all-deps.jar +curl -v -O "https://storage.googleapis.com/cloud-opensource-java-linkage-monitor/${JAR}" + +# Fails if there's new linkage errors compared with baseline +java -jar ${JAR} com.google.cloud:libraries-bom diff --git a/.kokoro/nightly/common.cfg b/.kokoro/nightly/common.cfg new file mode 100644 index 00000000..08654fec --- /dev/null +++ b/.kokoro/nightly/common.cfg @@ -0,0 +1,25 @@ +# 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/dependencies.cfg b/.kokoro/nightly/dependencies.cfg new file mode 100644 index 00000000..e203a4cf --- /dev/null +++ b/.kokoro/nightly/dependencies.cfg @@ -0,0 +1,12 @@ +# 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/nightly/integration.cfg b/.kokoro/nightly/integration.cfg new file mode 100644 index 00000000..0048c8ec --- /dev/null +++ b/.kokoro/nightly/integration.cfg @@ -0,0 +1,37 @@ +# 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: "ENABLE_BUILD_COP" + value: "true" +} + +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 new file mode 100644 index 00000000..709f2b4c --- /dev/null +++ b/.kokoro/nightly/java11.cfg @@ -0,0 +1,7 @@ +# 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 new file mode 100644 index 00000000..cb24f44e --- /dev/null +++ b/.kokoro/nightly/java7.cfg @@ -0,0 +1,7 @@ +# 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 new file mode 100644 index 00000000..8adc9e78 --- /dev/null +++ b/.kokoro/nightly/java8-osx.cfg @@ -0,0 +1,3 @@ +# 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 new file mode 100644 index 00000000..35288db3 --- /dev/null +++ b/.kokoro/nightly/java8-win.cfg @@ -0,0 +1,3 @@ +# 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 new file mode 100644 index 00000000..495cc7ba --- /dev/null +++ b/.kokoro/nightly/java8.cfg @@ -0,0 +1,12 @@ +# 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/lint.cfg b/.kokoro/nightly/lint.cfg new file mode 100644 index 00000000..6d323c8a --- /dev/null +++ b/.kokoro/nightly/lint.cfg @@ -0,0 +1,13 @@ +# 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/nightly/samples.cfg b/.kokoro/nightly/samples.cfg new file mode 100644 index 00000000..f2542931 --- /dev/null +++ b/.kokoro/nightly/samples.cfg @@ -0,0 +1,38 @@ +# 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_BUILD_COP" + value: "true" +} diff --git a/.kokoro/populate-secrets.sh b/.kokoro/populate-secrets.sh new file mode 100755 index 00000000..f5251425 --- /dev/null +++ b/.kokoro/populate-secrets.sh @@ -0,0 +1,43 @@ +#!/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 new file mode 100644 index 00000000..ec572442 --- /dev/null +++ b/.kokoro/presubmit/clirr.cfg @@ -0,0 +1,13 @@ +# 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 new file mode 100644 index 00000000..ce8f24ea --- /dev/null +++ b/.kokoro/presubmit/common.cfg @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 00000000..e203a4cf --- /dev/null +++ b/.kokoro/presubmit/dependencies.cfg @@ -0,0 +1,12 @@ +# 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/integration.cfg b/.kokoro/presubmit/integration.cfg new file mode 100644 index 00000000..dded67a9 --- /dev/null +++ b/.kokoro/presubmit/integration.cfg @@ -0,0 +1,33 @@ +# 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 new file mode 100644 index 00000000..709f2b4c --- /dev/null +++ b/.kokoro/presubmit/java11.cfg @@ -0,0 +1,7 @@ +# 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 new file mode 100644 index 00000000..cb24f44e --- /dev/null +++ b/.kokoro/presubmit/java7.cfg @@ -0,0 +1,7 @@ +# 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 new file mode 100644 index 00000000..8adc9e78 --- /dev/null +++ b/.kokoro/presubmit/java8-osx.cfg @@ -0,0 +1,3 @@ +# 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 new file mode 100644 index 00000000..35288db3 --- /dev/null +++ b/.kokoro/presubmit/java8-win.cfg @@ -0,0 +1,3 @@ +# 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 new file mode 100644 index 00000000..495cc7ba --- /dev/null +++ b/.kokoro/presubmit/java8.cfg @@ -0,0 +1,12 @@ +# 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 new file mode 100644 index 00000000..7b7b6459 --- /dev/null +++ b/.kokoro/presubmit/linkage-monitor.cfg @@ -0,0 +1,12 @@ +# 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 new file mode 100644 index 00000000..6d323c8a --- /dev/null +++ b/.kokoro/presubmit/lint.cfg @@ -0,0 +1,13 @@ +# 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 new file mode 100644 index 00000000..01e09600 --- /dev/null +++ b/.kokoro/presubmit/samples.cfg @@ -0,0 +1,33 @@ +# 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/release/bump_snapshot.cfg b/.kokoro/release/bump_snapshot.cfg new file mode 100644 index 00000000..a65b73b0 --- /dev/null +++ b/.kokoro/release/bump_snapshot.cfg @@ -0,0 +1,53 @@ +# 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 new file mode 100644 index 00000000..70ff7163 --- /dev/null +++ b/.kokoro/release/common.cfg @@ -0,0 +1,49 @@ +# 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 new file mode 100755 index 00000000..6e3f6599 --- /dev/null +++ b/.kokoro/release/common.sh @@ -0,0 +1,50 @@ +#!/bin/bash +# Copyright 2018 Google Inc. +# +# Licensed under the Apache License, Version 2.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 new file mode 100644 index 00000000..5e92c341 --- /dev/null +++ b/.kokoro/release/drop.cfg @@ -0,0 +1,6 @@ +# 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 new file mode 100755 index 00000000..5c4551ef --- /dev/null +++ b/.kokoro/release/drop.sh @@ -0,0 +1,32 @@ +#!/bin/bash +# Copyright 2018 Google Inc. +# +# Licensed under the Apache License, Version 2.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 new file mode 100644 index 00000000..44d8048b --- /dev/null +++ b/.kokoro/release/promote.cfg @@ -0,0 +1,6 @@ +# 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 new file mode 100755 index 00000000..1fa95fa5 --- /dev/null +++ b/.kokoro/release/promote.sh @@ -0,0 +1,34 @@ +#!/bin/bash +# Copyright 2018 Google Inc. +# +# Licensed under the Apache License, Version 2.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 new file mode 100644 index 00000000..762d5764 --- /dev/null +++ b/.kokoro/release/publish_javadoc.cfg @@ -0,0 +1,19 @@ +# Format: //devtools/kokoro/config/proto/build.proto +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 new file mode 100755 index 00000000..9e92937d --- /dev/null +++ b/.kokoro/release/publish_javadoc.sh @@ -0,0 +1,55 @@ +#!/bin/bash +# Copyright 2019 Google Inc. +# +# Licensed under the Apache License, Version 2.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 gcp-docuploader + +# compile all packages +mvn clean install -B -DskipTests=true + +NAME=google-analytics-admin +VERSION=$(grep ${NAME}: versions.txt | cut -d: -f3) + +# build the docs +mvn site -B + +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} + +popd diff --git a/.kokoro/release/snapshot.cfg b/.kokoro/release/snapshot.cfg new file mode 100644 index 00000000..275a8355 --- /dev/null +++ b/.kokoro/release/snapshot.cfg @@ -0,0 +1,6 @@ +# 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 new file mode 100755 index 00000000..098168a7 --- /dev/null +++ b/.kokoro/release/snapshot.sh @@ -0,0 +1,33 @@ +#!/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 install 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 new file mode 100644 index 00000000..d4d9ca18 --- /dev/null +++ b/.kokoro/release/stage.cfg @@ -0,0 +1,44 @@ +# 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" + } +} + +# Fetch the token needed for reporting release status to GitHub +before_action { + fetch_keystore { + keystore_resource { + keystore_config_id: 73713 + keyname: "yoshi-automation-github-key" + } + } +} + +# Fetch magictoken to use with Magic Github Proxy +before_action { + fetch_keystore { + keystore_resource { + keystore_config_id: 73713 + keyname: "releasetool-magictoken" + } + } +} + +# Fetch api key to use with Magic Github Proxy +before_action { + fetch_keystore { + keystore_resource { + keystore_config_id: 73713 + keyname: "magic-github-proxy-api-key" + } + } +} diff --git a/.kokoro/release/stage.sh b/.kokoro/release/stage.sh new file mode 100755 index 00000000..3c482cbc --- /dev/null +++ b/.kokoro/release/stage.sh @@ -0,0 +1,42 @@ +#!/bin/bash +# Copyright 2018 Google Inc. +# +# Licensed under the Apache License, Version 2.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 +python3 -m pip install gcp-releasetool +python3 -m releasetool publish-reporter-script > /tmp/publisher-script; source /tmp/publisher-script + +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" + +mvn clean install deploy -B \ + --settings ${MAVEN_SETTINGS_FILE} \ + -DskipTests=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 \ No newline at end of file diff --git a/.kokoro/trampoline.sh b/.kokoro/trampoline.sh new file mode 100644 index 00000000..9da0f839 --- /dev/null +++ b/.kokoro/trampoline.sh @@ -0,0 +1,26 @@ +#!/bin/bash +# Copyright 2018 Google Inc. +# +# Licensed under the Apache License, Version 2.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 new file mode 100644 index 00000000..7b4b049a --- /dev/null +++ b/.repo-metadata.json @@ -0,0 +1,15 @@ +{ + "name": "analytics-admin", + "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": "alpha", + "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 +} \ No newline at end of file diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md new file mode 100644 index 00000000..6b2238bb --- /dev/null +++ b/CODE_OF_CONDUCT.md @@ -0,0 +1,93 @@ +# Code of Conduct + +## Our Pledge + +In the interest of fostering an open and welcoming environment, we as +contributors and maintainers pledge to making participation in our project and +our community a harassment-free experience for everyone, regardless of age, body +size, disability, ethnicity, gender identity and expression, level of +experience, education, socio-economic status, nationality, personal appearance, +race, religion, or sexual identity and orientation. + +## Our Standards + +Examples of behavior that contributes to creating a positive environment +include: + +* Using welcoming and inclusive language +* Being respectful of differing viewpoints and experiences +* Gracefully accepting constructive criticism +* Focusing on what is best for the community +* Showing empathy towards other community members + +Examples of unacceptable behavior by participants include: + +* The use of sexualized language or imagery and unwelcome sexual attention or + advances +* Trolling, insulting/derogatory comments, and personal or political attacks +* Public or private harassment +* Publishing others' private information, such as a physical or electronic + address, without explicit permission +* Other conduct which could reasonably be considered inappropriate in a + professional setting + +## Our Responsibilities + +Project maintainers are responsible for clarifying the standards of acceptable +behavior and are expected to take appropriate and fair corrective action in +response to any instances of unacceptable behavior. + +Project maintainers have the right and responsibility to remove, edit, or reject +comments, commits, code, wiki edits, issues, and other contributions that are +not aligned to this Code of Conduct, or to ban temporarily or permanently any +contributor for other behaviors that they deem inappropriate, threatening, +offensive, or harmful. + +## Scope + +This Code of Conduct applies both within project spaces and in public spaces +when an individual is representing the project or its community. Examples of +representing a project or community include using an official project e-mail +address, posting via an official social media account, or acting as an appointed +representative at an online or offline event. Representation of a project may be +further defined and clarified by project maintainers. + +This Code of Conduct also applies outside the project spaces when the Project +Steward has a reasonable belief that an individual's behavior may have a +negative impact on the project or its community. + +## Conflict Resolution + +We do not believe that all conflict is bad; healthy debate and disagreement +often yield positive results. However, it is never okay to be disrespectful or +to engage in behavior that violates the project’s code of conduct. + +If you see someone violating the code of conduct, you are encouraged to address +the behavior directly with those involved. Many issues can be resolved quickly +and easily, and this gives people more control over the outcome of their +dispute. If you are unable to resolve the matter for any reason, or if the +behavior is threatening or harassing, report it. We are dedicated to providing +an environment where participants feel welcome and safe. + +Reports should be directed to *[PROJECT STEWARD NAME(s) AND EMAIL(s)]*, the +Project Steward(s) for *[PROJECT NAME]*. It is the Project Steward’s duty to +receive and address reported violations of the code of conduct. They will then +work with a committee consisting of representatives from the Open Source +Programs Office and the Google Open Source Strategy team. If for any reason you +are uncomfortable reaching out the Project Steward, please email +opensource@google.com. + +We will investigate every complaint, but you may not receive a direct response. +We will use our discretion in determining when and how to follow up on reported +incidents, which may range from not taking action to permanent expulsion from +the project and project-sponsored spaces. We will notify the accused of the +report and provide them an opportunity to discuss it before any action is taken. +The identity of the reporter will be omitted from the details of the report +supplied to the accused. In potentially harmful situations, such as ongoing +harassment or threats to anyone's safety, we may take action without notice. + +## Attribution + +This Code of Conduct is adapted from the Contributor Covenant, version 1.4, +available at +https://www.contributor-covenant.org/version/1/4/code-of-conduct.html \ No newline at end of file diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 00000000..f2dbdee0 --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,139 @@ +# How to Contribute + +We'd love to accept your patches and contributions to this project. There are +just a few small guidelines you need to follow. + +## Contributor License Agreement + +Contributions to this project must be accompanied by a Contributor License +Agreement. You (or your employer) retain the copyright to your contribution; +this simply gives us permission to use and redistribute your contributions as +part of the project. Head over to to see +your current agreements on file or to sign a new one. + +You generally only need to submit a CLA once, so if you've already submitted one +(even if it was for a different project), you probably don't need to do it +again. + +## Code reviews + +All submissions, including submissions by project members, require review. We +use GitHub pull requests for this purpose. Consult +[GitHub Help](https://help.github.com/articles/about-pull-requests/) for more +information on using pull requests. + +## Community Guidelines + +This project follows +[Google's Open Source Community Guidelines](https://opensource.google.com/conduct/). + +## Building the project + +To build, package, and run all unit tests run the command + +``` +mvn clean verify +``` + +### Running Integration tests + +To include integration tests when building the project, you need access to +a GCP Project with a valid service account. + +For instructions on how to generate a service account and corresponding +credentials JSON see: [Creating a Service Account][1]. + +Then run the following to build, package, run all unit tests and run all +integration tests. + +```bash +export GOOGLE_APPLICATION_CREDENTIALS=/path/to/service/account.json +mvn -Penable-integration-tests clean verify +``` + +## Code Samples + +Code Samples must be bundled in separate Maven modules, and guarded by a +Maven profile with the name `enable-samples`. + +The samples must be separate from the primary project for a few reasons: +1. Primary projects have a minimum Java version of Java 7 whereas samples have + a minimum Java version of Java 8. Due to this we need the ability to + selectively exclude samples from a build run. +2. Many code samples depend on external GCP services and need + credentials to access the service. +3. Code samples are not released as Maven artifacts and must be excluded from + release builds. + +### Building + +```bash +mvn -Penable-samples clean verify +``` + +Some samples require access to GCP services and require a service account: + +```bash +export GOOGLE_APPLICATION_CREDENTIALS=/path/to/service/account.json +mvn -Penable-samples clean verify +``` + +### Profile Config + +1. To add samples in a profile to your Maven project, add the following to your +`pom.xml` + + ```xml + + [...] + + + enable-samples + + sample + + + + [...] + + ``` + +2. [Activate](#profile-activation) the profile. +3. Define your samples in a normal Maven project in the `samples/` directory. + +### Code Formatting + +Code in this repo is formatted with +[google-java-format](https://github.com/google/google-java-format). +To run formatting on your project, you can run: +``` +mvn com.coveo:fmt-maven-plugin:format +``` + +### Profile Activation + +To include code samples when building and testing the project, enable the +`enable-samples` Maven profile. + +#### Command line + +To activate the Maven profile on the command line add `-Penable-samples` to your +Maven command. + +#### Maven `settings.xml` + +To activate the Maven profile in your `~/.m2/settings.xml` add an entry of +`enable-samples` following the instructions in [Active Profiles][2]. + +This method has the benefit of applying to all projects you build (and is +respected by IntelliJ IDEA) and is recommended if you are going to be +contributing samples to several projects. + +#### IntelliJ IDEA + +To activate the Maven Profile inside IntelliJ IDEA, follow the instructions in +[Activate Maven profiles][3] to activate `enable-samples`. + +[1]: https://cloud.google.com/docs/authentication/getting-started#creating_a_service_account +[2]: https://maven.apache.org/settings.html#Active_Profiles +[3]: https://www.jetbrains.com/help/idea/work-with-maven-profiles.html#activate_maven_profiles diff --git a/LICENSE b/LICENSE new file mode 100644 index 00000000..d6456956 --- /dev/null +++ b/LICENSE @@ -0,0 +1,202 @@ + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.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. diff --git a/README.md b/README.md new file mode 100644 index 00000000..ba33c162 --- /dev/null +++ b/README.md @@ -0,0 +1,143 @@ +# Google Analytics Admin Client for Java + +Java idiomatic client for [Analytics Admin][product-docs]. + +[![Maven][maven-version-image]][maven-version-link] +![Stability][stability-image] + +- [Product Documentation][product-docs] +- [Client Library Documentation][javadocs] + +> Note: This client is a work-in-progress, and may occasionally +> make backwards-incompatible changes. + +## Quickstart + + +If you are using Maven, add this to your pom.xml file: + +```xml + + com.google.analytics + google-analytics-admin + 0.0.0 + +``` + +[//]: # ({x-version-update-start:google-analytics-admin:released}) + +If you are using Gradle, add this to your dependencies +```Groovy +compile 'com.google.analytics:google-analytics-admin:0.0.0' +``` +If you are using SBT, add this to your dependencies +```Scala +libraryDependencies += "com.google.analytics" % "google-analytics-admin" % "0.0.0" +``` +[//]: # ({x-version-update-end}) + +## Authentication + +See the [Authentication][authentication] section in the base directory's README. + +## Getting Started + +### Prerequisites + +You will need a [Google Cloud Platform Console][developer-console] project with the Analytics Admin [API enabled][enable-api]. +You will need to [enable billing][enable-billing] to use Google Analytics Admin. +[Follow these instructions][create-project] to get your project set up. You will also need to set up the local development environment by +[installing the Google Cloud SDK][cloud-sdk] and running the following commands in command line: +`gcloud auth login` and `gcloud config set project [YOUR PROJECT ID]`. + +### Installation and setup + +You'll need to obtain the `google-analytics-admin` library. See the [Quickstart](#quickstart) section +to add `google-analytics-admin` as a dependency in your code. + +## About Analytics Admin + + +[Analytics Admin][product-docs] allows you to manage Google Analytics accounts and properties. + +See the [Analytics Admin client library docs][javadocs] to learn how to +use this Analytics Admin Client Library. + + + + + + +## Troubleshooting + +To get help, follow the instructions in the [shared Troubleshooting document][troubleshooting]. + +## Transport + +Analytics Admin uses gRPC for the transport layer. + +## Java Versions + +Java 7 or above is required for using this client. + +## Versioning + + +This library follows [Semantic Versioning](http://semver.org/). + + +It is currently in major version zero (``0.y.z``), which means that anything may change at any time +and the public API should not be considered stable. + +## Contributing + + +Contributions to this library are always welcome and highly encouraged. + +See [CONTRIBUTING][contributing] for more information how to get started. + +Please note that this project is released with a Contributor Code of Conduct. By participating in +this project you agree to abide by its terms. See [Code of Conduct][code-of-conduct] for more +information. + +## License + +Apache 2.0 - See [LICENSE][license] for more information. + +## CI Status + +Java Version | Status +------------ | ------ +Java 7 | [![Kokoro CI][kokoro-badge-image-1]][kokoro-badge-link-1] +Java 8 | [![Kokoro CI][kokoro-badge-image-2]][kokoro-badge-link-2] +Java 8 OSX | [![Kokoro CI][kokoro-badge-image-3]][kokoro-badge-link-3] +Java 8 Windows | [![Kokoro CI][kokoro-badge-image-4]][kokoro-badge-link-4] +Java 11 | [![Kokoro CI][kokoro-badge-image-5]][kokoro-badge-link-5] + +[product-docs]: https://developers.google.com/analytics +[javadocs]: https://googleapis.dev/java/google-analytics-admin/latest/index.html +[kokoro-badge-image-1]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-analytics-admin/java7.svg +[kokoro-badge-link-1]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-analytics-admin/java7.html +[kokoro-badge-image-2]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-analytics-admin/java8.svg +[kokoro-badge-link-2]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-analytics-admin/java8.html +[kokoro-badge-image-3]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-analytics-admin/java8-osx.svg +[kokoro-badge-link-3]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-analytics-admin/java8-osx.html +[kokoro-badge-image-4]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-analytics-admin/java8-win.svg +[kokoro-badge-link-4]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-analytics-admin/java8-win.html +[kokoro-badge-image-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-analytics-admin/java11.svg +[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-analytics-admin/java11.html +[stability-image]: https://img.shields.io/badge/stability-alpha-orange +[maven-version-image]: https://img.shields.io/maven-central/v/com.google.analytics/google-analytics-admin.svg +[maven-version-link]: https://search.maven.org/search?q=g:com.google.analytics%20AND%20a:google-analytics-admin&core=gav +[authentication]: https://github.com/googleapis/google-cloud-java#authentication +[developer-console]: https://console.developers.google.com/ +[create-project]: https://cloud.google.com/resource-manager/docs/creating-managing-projects +[cloud-sdk]: https://cloud.google.com/sdk/ +[troubleshooting]: https://github.com/googleapis/google-cloud-common/blob/master/troubleshooting/readme.md#troubleshooting +[contributing]: https://github.com/googleapis/java-analytics-admin/blob/master/CONTRIBUTING.md +[code-of-conduct]: https://github.com/googleapis/java-analytics-admin/blob/master/CODE_OF_CONDUCT.md#contributor-code-of-conduct +[license]: https://github.com/googleapis/java-analytics-admin/blob/master/LICENSE +[enable-billing]: https://cloud.google.com/apis/docs/getting-started#enabling_billing +[enable-api]: https://console.cloud.google.com/flows/enableapi?apiid=analyticsadmin.googleapis.com +[libraries-bom]: https://github.com/GoogleCloudPlatform/cloud-opensource-java/wiki/The-Google-Cloud-Platform-Libraries-BOM +[shell_img]: https://gstatic.com/cloudssh/images/open-btn.png diff --git a/codecov.yaml b/codecov.yaml new file mode 100644 index 00000000..5724ea94 --- /dev/null +++ b/codecov.yaml @@ -0,0 +1,4 @@ +--- +codecov: + ci: + - source.cloud.google.com diff --git a/google-analytics-admin-bom/pom.xml b/google-analytics-admin-bom/pom.xml new file mode 100644 index 00000000..22d25578 --- /dev/null +++ b/google-analytics-admin-bom/pom.xml @@ -0,0 +1,97 @@ + + + 4.0.0 + com.google.cloud + google-cloud-analytics-admin-bom + 0.0.1-SNAPSHOT + pom + + com.google.cloud + google-cloud-shared-config + 0.5.0 + + + 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 + + + + + sonatype-nexus-snapshots + https://oss.sonatype.org/content/repositories/snapshots + + + sonatype-nexus-staging + https://oss.sonatype.org/service/local/staging/deploy/maven2/ + + + + + + The Apache Software License, Version 2.0 + http://www.apache.org/licenses/LICENSE-2.0.txt + repo + + + + + + + + com.google.analytics + google-analytics-admin + 0.0.1-SNAPSHOT + + + com.google.api.grpc + proto-google-analytics-admin-v1alpha + 0.0.1-SNAPSHOT + + + com.google.api.grpc + grpc-google-analytics-admin-v1alpha + 0.0.1-SNAPSHOT + + + + + + + + org.apache.maven.plugins + maven-checkstyle-plugin + + true + + + + + \ No newline at end of file diff --git a/google-analytics-admin/pom.xml b/google-analytics-admin/pom.xml new file mode 100644 index 00000000..a1d4d00d --- /dev/null +++ b/google-analytics-admin/pom.xml @@ -0,0 +1,110 @@ + + + 4.0.0 + com.google.cloud + google-analytics-admin + 0.0.1-SNAPSHOT + jar + Google Analytics Admin + https://github.com/googleapis/java-analytics-admin + allows you to manage Google Analytics accounts and properties. + + com.google.cloud + google-cloud-analytics-admin-parent + 0.0.1-SNAPSHOT + + + 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-v1alpha + + + com.google.guava + guava + + + com.google.api + gax + + + com.google.api + gax-grpc + + + org.threeten + threetenbp + + + + + junit + junit + test + + + + com.google.api.grpc + grpc-google-analytics-admin-v1alpha + test + + + + com.google.api + gax-grpc + testlib + test + + + + + + java9 + + [9,) + + + + javax.annotation + javax.annotation-api + + + + + + + + + org.codehaus.mojo + flatten-maven-plugin + + + + \ No newline at end of file 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 new file mode 100644 index 00000000..ed6e5f70 --- /dev/null +++ b/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClient.java @@ -0,0 +1,5330 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.ApiFunction; +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 SERVICE +/** + * Service Description: Service Interface for the Analytics Admin API (App+Web). + * + *

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: + * + *

+ * 
+ * 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: + * + *

+ * 
+ * AnalyticsAdminServiceSettings analyticsAdminServiceSettings =
+ *     AnalyticsAdminServiceSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * AnalyticsAdminServiceClient analyticsAdminServiceClient =
+ *     AnalyticsAdminServiceClient.create(analyticsAdminServiceSettings);
+ * 
+ * 
+ * + * To customize the endpoint: + * + *
+ * 
+ * AnalyticsAdminServiceSettings analyticsAdminServiceSettings =
+ *     AnalyticsAdminServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * AnalyticsAdminServiceClient analyticsAdminServiceClient =
+ *     AnalyticsAdminServiceClient.create(analyticsAdminServiceSettings);
+ * 
+ * 
+ */ +@Generated("by gapic-generator") +@BetaApi +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 to use AnalyticsAdminServiceSettings}. + */ + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + 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(); + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + protected AnalyticsAdminServiceClient(AnalyticsAdminServiceStub stub) { + this.settings = null; + this.stub = stub; + } + + public final AnalyticsAdminServiceSettings getSettings() { + return settings; + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public AnalyticsAdminServiceStub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lookup for a single Account. Throws "Target not found" if no such account found, or if caller + * does not have permissions to access it. + * + *

Sample code: + * + *


+   * 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. Throws "Target not found" if no such account found, or if caller + * does not have permissions to access it. + * + *

Sample code: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   AccountName name = AccountName.of("[ACCOUNT]");
+   *   Account response = analyticsAdminServiceClient.getAccount(name.toString());
+   * }
+   * 
+ * + * @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. Throws "Target not found" if no such account found, or if caller + * does not have permissions to access it. + * + *

Sample code: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   AccountName name = AccountName.of("[ACCOUNT]");
+   *   GetAccountRequest request = GetAccountRequest.newBuilder()
+   *     .setName(name.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. Throws "Target not found" if no such account found, or if caller + * does not have permissions to access it. + * + *

Sample code: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   AccountName name = AccountName.of("[ACCOUNT]");
+   *   GetAccountRequest request = GetAccountRequest.newBuilder()
+   *     .setName(name.toString())
+   *     .build();
+   *   ApiFuture<Account> 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 App+Web properties. Soft-deleted (ie: + * "trashed") accounts are excluded by default. Returns an empty list if no relevant accounts are + * found. + * + *

Sample code: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   ListAccountsRequest request = ListAccountsRequest.newBuilder().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 App+Web properties. Soft-deleted (ie: + * "trashed") accounts are excluded by default. Returns an empty list if no relevant accounts are + * found. + * + *

Sample code: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   ListAccountsRequest request = ListAccountsRequest.newBuilder().build();
+   *   ApiFuture<ListAccountsPagedResponse> 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 App+Web properties. Soft-deleted (ie: + * "trashed") accounts are excluded by default. Returns an empty list if no relevant accounts are + * found. + * + *

Sample code: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   ListAccountsRequest request = ListAccountsRequest.newBuilder().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: + * + *


+   * 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: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   AccountName name = AccountName.of("[ACCOUNT]");
+   *   analyticsAdminServiceClient.deleteAccount(name.toString());
+   * }
+   * 
+ * + * @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: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   AccountName name = AccountName.of("[ACCOUNT]");
+   *   DeleteAccountRequest request = DeleteAccountRequest.newBuilder()
+   *     .setName(name.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: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   AccountName name = AccountName.of("[ACCOUNT]");
+   *   DeleteAccountRequest request = DeleteAccountRequest.newBuilder()
+   *     .setName(name.toString())
+   *     .build();
+   *   ApiFuture<Void> 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: + * + *


+   * 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 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 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: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   Account account = Account.newBuilder().build();
+   *   UpdateAccountRequest request = UpdateAccountRequest.newBuilder()
+   *     .setAccount(account)
+   *     .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: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   Account account = Account.newBuilder().build();
+   *   UpdateAccountRequest request = UpdateAccountRequest.newBuilder()
+   *     .setAccount(account)
+   *     .build();
+   *   ApiFuture<Account> 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: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   ProvisionAccountTicketRequest request = ProvisionAccountTicketRequest.newBuilder().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: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   ProvisionAccountTicketRequest request = ProvisionAccountTicketRequest.newBuilder().build();
+   *   ApiFuture<ProvisionAccountTicketResponse> future = analyticsAdminServiceClient.provisionAccountTicketCallable().futureCall(request);
+   *   // Do something
+   *   ProvisionAccountTicketResponse response = future.get();
+   * }
+   * 
+ */ + public final UnaryCallable + provisionAccountTicketCallable() { + return stub.provisionAccountTicketCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lookup for a single "App+Web" Property. + * + *

Throws "Target not found" if no such property found, if property is not of the type + * "App+Web", or if caller does not have permissions to access it. + * + *

Sample code: + * + *


+   * 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 "App+Web" Property. + * + *

Throws "Target not found" if no such property found, if property is not of the type + * "App+Web", or if caller does not have permissions to access it. + * + *

Sample code: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   PropertyName name = PropertyName.of("[PROPERTY]");
+   *   Property response = analyticsAdminServiceClient.getProperty(name.toString());
+   * }
+   * 
+ * + * @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 "App+Web" Property. + * + *

Throws "Target not found" if no such property found, if property is not of the type + * "App+Web", or if caller does not have permissions to access it. + * + *

Sample code: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   PropertyName name = PropertyName.of("[PROPERTY]");
+   *   GetPropertyRequest request = GetPropertyRequest.newBuilder()
+   *     .setName(name.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 "App+Web" Property. + * + *

Throws "Target not found" if no such property found, if property is not of the type + * "App+Web", or if caller does not have permissions to access it. + * + *

Sample code: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   PropertyName name = PropertyName.of("[PROPERTY]");
+   *   GetPropertyRequest request = GetPropertyRequest.newBuilder()
+   *     .setName(name.toString())
+   *     .build();
+   *   ApiFuture<Property> 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 "App+Web" 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: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   String filter = "";
+   *   ListPropertiesRequest request = ListPropertiesRequest.newBuilder()
+   *     .setFilter(filter)
+   *     .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 "App+Web" 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: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   String filter = "";
+   *   ListPropertiesRequest request = ListPropertiesRequest.newBuilder()
+   *     .setFilter(filter)
+   *     .build();
+   *   ApiFuture<ListPropertiesPagedResponse> 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 "App+Web" 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: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   String filter = "";
+   *   ListPropertiesRequest request = ListPropertiesRequest.newBuilder()
+   *     .setFilter(filter)
+   *     .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 "App+Web" property with the specified location and attributes. + * + *

Sample code: + * + *


+   * 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 "App+Web" property with the specified location and attributes. + * + *

Sample code: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   Property property = Property.newBuilder().build();
+   *   CreatePropertyRequest request = CreatePropertyRequest.newBuilder()
+   *     .setProperty(property)
+   *     .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 "App+Web" property with the specified location and attributes. + * + *

Sample code: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   Property property = Property.newBuilder().build();
+   *   CreatePropertyRequest request = CreatePropertyRequest.newBuilder()
+   *     .setProperty(property)
+   *     .build();
+   *   ApiFuture<Property> 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 App+Web Property. + * + *

Sample code: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   PropertyName name = PropertyName.of("[PROPERTY]");
+   *   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 void deleteProperty(PropertyName name) { + DeletePropertyRequest request = + DeletePropertyRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + 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 App+Web Property. + * + *

Sample code: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   PropertyName name = PropertyName.of("[PROPERTY]");
+   *   analyticsAdminServiceClient.deleteProperty(name.toString());
+   * }
+   * 
+ * + * @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 void deleteProperty(String name) { + DeletePropertyRequest request = DeletePropertyRequest.newBuilder().setName(name).build(); + 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 App+Web Property. + * + *

Sample code: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   PropertyName name = PropertyName.of("[PROPERTY]");
+   *   DeletePropertyRequest request = DeletePropertyRequest.newBuilder()
+   *     .setName(name.toString())
+   *     .build();
+   *   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 void deleteProperty(DeletePropertyRequest request) { + 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 App+Web Property. + * + *

Sample code: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   PropertyName name = PropertyName.of("[PROPERTY]");
+   *   DeletePropertyRequest request = DeletePropertyRequest.newBuilder()
+   *     .setName(name.toString())
+   *     .build();
+   *   ApiFuture<Void> future = analyticsAdminServiceClient.deletePropertyCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + public final UnaryCallable deletePropertyCallable() { + return stub.deletePropertyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Updates a property. + * + *

Sample code: + * + *


+   * 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 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 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: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   Property property = Property.newBuilder().build();
+   *   UpdatePropertyRequest request = UpdatePropertyRequest.newBuilder()
+   *     .setProperty(property)
+   *     .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: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   Property property = Property.newBuilder().build();
+   *   UpdatePropertyRequest request = UpdatePropertyRequest.newBuilder()
+   *     .setProperty(property)
+   *     .build();
+   *   ApiFuture<Property> 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: + * + *


+   * 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: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   UserLinkName name = UserLinkName.ofAccountUserLinkName("[ACCOUNT]", "[USER_LINK]");
+   *   UserLink response = analyticsAdminServiceClient.getUserLink(name.toString());
+   * }
+   * 
+ * + * @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: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   UserLinkName name = UserLinkName.ofAccountUserLinkName("[ACCOUNT]", "[USER_LINK]");
+   *   GetUserLinkRequest request = GetUserLinkRequest.newBuilder()
+   *     .setName(name.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: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   UserLinkName name = UserLinkName.ofAccountUserLinkName("[ACCOUNT]", "[USER_LINK]");
+   *   GetUserLinkRequest request = GetUserLinkRequest.newBuilder()
+   *     .setName(name.toString())
+   *     .build();
+   *   ApiFuture<UserLink> 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: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   AccountName parent = AccountName.of("[ACCOUNT]");
+   *   List<UserLinkName> names = new ArrayList<>();
+   *   BatchGetUserLinksRequest request = BatchGetUserLinksRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .addAllNames(UserLinkName.toStringList(names))
+   *     .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: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   AccountName parent = AccountName.of("[ACCOUNT]");
+   *   List<UserLinkName> names = new ArrayList<>();
+   *   BatchGetUserLinksRequest request = BatchGetUserLinksRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .addAllNames(UserLinkName.toStringList(names))
+   *     .build();
+   *   ApiFuture<BatchGetUserLinksResponse> 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: + * + *


+   * 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: + * + *


+   * 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: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   AccountName parent = AccountName.of("[ACCOUNT]");
+   *   for (UserLink element : analyticsAdminServiceClient.listUserLinks(parent.toString()).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: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   AccountName parent = AccountName.of("[ACCOUNT]");
+   *   ListUserLinksRequest request = ListUserLinksRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .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: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   AccountName parent = AccountName.of("[ACCOUNT]");
+   *   ListUserLinksRequest request = ListUserLinksRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .build();
+   *   ApiFuture<ListUserLinksPagedResponse> 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: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   AccountName parent = AccountName.of("[ACCOUNT]");
+   *   ListUserLinksRequest request = ListUserLinksRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .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: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   AccountName parent = AccountName.of("[ACCOUNT]");
+   *   AuditUserLinksRequest request = AuditUserLinksRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .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: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   AccountName parent = AccountName.of("[ACCOUNT]");
+   *   AuditUserLinksRequest request = AuditUserLinksRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .build();
+   *   ApiFuture<AuditUserLinksPagedResponse> 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: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   AccountName parent = AccountName.of("[ACCOUNT]");
+   *   AuditUserLinksRequest request = AuditUserLinksRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .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: + * + *


+   * 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: + * + *


+   * 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: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   AccountName parent = AccountName.of("[ACCOUNT]");
+   *   UserLink userLink = UserLink.newBuilder().build();
+   *   UserLink response = analyticsAdminServiceClient.createUserLink(parent.toString(), 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: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   AccountName parent = AccountName.of("[ACCOUNT]");
+   *   UserLink userLink = UserLink.newBuilder().build();
+   *   CreateUserLinkRequest request = CreateUserLinkRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .setUserLink(userLink)
+   *     .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: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   AccountName parent = AccountName.of("[ACCOUNT]");
+   *   UserLink userLink = UserLink.newBuilder().build();
+   *   CreateUserLinkRequest request = CreateUserLinkRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .setUserLink(userLink)
+   *     .build();
+   *   ApiFuture<UserLink> 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: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   String parent = "";
+   *   BatchCreateUserLinksRequest request = BatchCreateUserLinksRequest.newBuilder()
+   *     .setParent(parent)
+   *     .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: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   String parent = "";
+   *   BatchCreateUserLinksRequest request = BatchCreateUserLinksRequest.newBuilder()
+   *     .setParent(parent)
+   *     .build();
+   *   ApiFuture<BatchCreateUserLinksResponse> 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: + * + *


+   * 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: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   UserLink userLink = UserLink.newBuilder().build();
+   *   UpdateUserLinkRequest request = UpdateUserLinkRequest.newBuilder()
+   *     .setUserLink(userLink)
+   *     .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: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   UserLink userLink = UserLink.newBuilder().build();
+   *   UpdateUserLinkRequest request = UpdateUserLinkRequest.newBuilder()
+   *     .setUserLink(userLink)
+   *     .build();
+   *   ApiFuture<UserLink> 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: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   String parent = "";
+   *   BatchUpdateUserLinksRequest request = BatchUpdateUserLinksRequest.newBuilder()
+   *     .setParent(parent)
+   *     .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: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   String parent = "";
+   *   BatchUpdateUserLinksRequest request = BatchUpdateUserLinksRequest.newBuilder()
+   *     .setParent(parent)
+   *     .build();
+   *   ApiFuture<BatchUpdateUserLinksResponse> 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: + * + *


+   * 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: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   UserLinkName name = UserLinkName.ofAccountUserLinkName("[ACCOUNT]", "[USER_LINK]");
+   *   analyticsAdminServiceClient.deleteUserLink(name.toString());
+   * }
+   * 
+ * + * @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: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   UserLinkName name = UserLinkName.ofAccountUserLinkName("[ACCOUNT]", "[USER_LINK]");
+   *   DeleteUserLinkRequest request = DeleteUserLinkRequest.newBuilder()
+   *     .setName(name.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: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   UserLinkName name = UserLinkName.ofAccountUserLinkName("[ACCOUNT]", "[USER_LINK]");
+   *   DeleteUserLinkRequest request = DeleteUserLinkRequest.newBuilder()
+   *     .setName(name.toString())
+   *     .build();
+   *   ApiFuture<Void> 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: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   String parent = "";
+   *   BatchDeleteUserLinksRequest request = BatchDeleteUserLinksRequest.newBuilder()
+   *     .setParent(parent)
+   *     .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: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   String parent = "";
+   *   BatchDeleteUserLinksRequest request = BatchDeleteUserLinksRequest.newBuilder()
+   *     .setParent(parent)
+   *     .build();
+   *   ApiFuture<Void> future = analyticsAdminServiceClient.batchDeleteUserLinksCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + public final UnaryCallable batchDeleteUserLinksCallable() { + return stub.batchDeleteUserLinksCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lookup for a single WebDataStream + * + *

Throws "Target not found" if no such web data stream found, or if the caller does not have + * permissions to access it. + * + *

Sample code: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   WebDataStreamName name = WebDataStreamName.of("[PROPERTY]", "[WEB_DATA_STREAM]");
+   *   WebDataStream response = analyticsAdminServiceClient.getWebDataStream(name);
+   * }
+   * 
+ * + * @param name Required. The name of the web data stream to lookup. Format: + * properties/{property_id}/webDataStreams/{stream_id} Example: + * "properties/123/webDataStreams/456" + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final WebDataStream getWebDataStream(WebDataStreamName name) { + GetWebDataStreamRequest request = + GetWebDataStreamRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getWebDataStream(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lookup for a single WebDataStream + * + *

Throws "Target not found" if no such web data stream found, or if the caller does not have + * permissions to access it. + * + *

Sample code: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   WebDataStreamName name = WebDataStreamName.of("[PROPERTY]", "[WEB_DATA_STREAM]");
+   *   WebDataStream response = analyticsAdminServiceClient.getWebDataStream(name.toString());
+   * }
+   * 
+ * + * @param name Required. The name of the web data stream to lookup. Format: + * properties/{property_id}/webDataStreams/{stream_id} Example: + * "properties/123/webDataStreams/456" + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final WebDataStream getWebDataStream(String name) { + GetWebDataStreamRequest request = GetWebDataStreamRequest.newBuilder().setName(name).build(); + return getWebDataStream(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lookup for a single WebDataStream + * + *

Throws "Target not found" if no such web data stream found, or if the caller does not have + * permissions to access it. + * + *

Sample code: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   WebDataStreamName name = WebDataStreamName.of("[PROPERTY]", "[WEB_DATA_STREAM]");
+   *   GetWebDataStreamRequest request = GetWebDataStreamRequest.newBuilder()
+   *     .setName(name.toString())
+   *     .build();
+   *   WebDataStream response = analyticsAdminServiceClient.getWebDataStream(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 WebDataStream getWebDataStream(GetWebDataStreamRequest request) { + return getWebDataStreamCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lookup for a single WebDataStream + * + *

Throws "Target not found" if no such web data stream found, or if the caller does not have + * permissions to access it. + * + *

Sample code: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   WebDataStreamName name = WebDataStreamName.of("[PROPERTY]", "[WEB_DATA_STREAM]");
+   *   GetWebDataStreamRequest request = GetWebDataStreamRequest.newBuilder()
+   *     .setName(name.toString())
+   *     .build();
+   *   ApiFuture<WebDataStream> future = analyticsAdminServiceClient.getWebDataStreamCallable().futureCall(request);
+   *   // Do something
+   *   WebDataStream response = future.get();
+   * }
+   * 
+ */ + public final UnaryCallable getWebDataStreamCallable() { + return stub.getWebDataStreamCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes a web stream on a property. + * + *

Sample code: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   WebDataStreamName name = WebDataStreamName.of("[PROPERTY]", "[WEB_DATA_STREAM]");
+   *   analyticsAdminServiceClient.deleteWebDataStream(name);
+   * }
+   * 
+ * + * @param name Required. The name of the web data stream to delete. Format: + * properties/{property_id}/webDataStreams/{stream_id} Example: + * "properties/123/webDataStreams/456" + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteWebDataStream(WebDataStreamName name) { + DeleteWebDataStreamRequest request = + DeleteWebDataStreamRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + deleteWebDataStream(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes a web stream on a property. + * + *

Sample code: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   WebDataStreamName name = WebDataStreamName.of("[PROPERTY]", "[WEB_DATA_STREAM]");
+   *   analyticsAdminServiceClient.deleteWebDataStream(name.toString());
+   * }
+   * 
+ * + * @param name Required. The name of the web data stream to delete. Format: + * properties/{property_id}/webDataStreams/{stream_id} Example: + * "properties/123/webDataStreams/456" + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteWebDataStream(String name) { + DeleteWebDataStreamRequest request = + DeleteWebDataStreamRequest.newBuilder().setName(name).build(); + deleteWebDataStream(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes a web stream on a property. + * + *

Sample code: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   WebDataStreamName name = WebDataStreamName.of("[PROPERTY]", "[WEB_DATA_STREAM]");
+   *   DeleteWebDataStreamRequest request = DeleteWebDataStreamRequest.newBuilder()
+   *     .setName(name.toString())
+   *     .build();
+   *   analyticsAdminServiceClient.deleteWebDataStream(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 deleteWebDataStream(DeleteWebDataStreamRequest request) { + deleteWebDataStreamCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes a web stream on a property. + * + *

Sample code: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   WebDataStreamName name = WebDataStreamName.of("[PROPERTY]", "[WEB_DATA_STREAM]");
+   *   DeleteWebDataStreamRequest request = DeleteWebDataStreamRequest.newBuilder()
+   *     .setName(name.toString())
+   *     .build();
+   *   ApiFuture<Void> future = analyticsAdminServiceClient.deleteWebDataStreamCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + public final UnaryCallable deleteWebDataStreamCallable() { + return stub.deleteWebDataStreamCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Updates a web stream on a property. + * + *

Sample code: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   WebDataStream webDataStream = WebDataStream.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   WebDataStream response = analyticsAdminServiceClient.updateWebDataStream(webDataStream, updateMask);
+   * }
+   * 
+ * + * @param webDataStream Required. The web stream to update. The `name` field is used to identify + * the web stream to be updated. + * @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 WebDataStream updateWebDataStream( + WebDataStream webDataStream, FieldMask updateMask) { + UpdateWebDataStreamRequest request = + UpdateWebDataStreamRequest.newBuilder() + .setWebDataStream(webDataStream) + .setUpdateMask(updateMask) + .build(); + return updateWebDataStream(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Updates a web stream on a property. + * + *

Sample code: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   WebDataStream webDataStream = WebDataStream.newBuilder().build();
+   *   UpdateWebDataStreamRequest request = UpdateWebDataStreamRequest.newBuilder()
+   *     .setWebDataStream(webDataStream)
+   *     .build();
+   *   WebDataStream response = analyticsAdminServiceClient.updateWebDataStream(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 WebDataStream updateWebDataStream(UpdateWebDataStreamRequest request) { + return updateWebDataStreamCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Updates a web stream on a property. + * + *

Sample code: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   WebDataStream webDataStream = WebDataStream.newBuilder().build();
+   *   UpdateWebDataStreamRequest request = UpdateWebDataStreamRequest.newBuilder()
+   *     .setWebDataStream(webDataStream)
+   *     .build();
+   *   ApiFuture<WebDataStream> future = analyticsAdminServiceClient.updateWebDataStreamCallable().futureCall(request);
+   *   // Do something
+   *   WebDataStream response = future.get();
+   * }
+   * 
+ */ + public final UnaryCallable + updateWebDataStreamCallable() { + return stub.updateWebDataStreamCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates a web stream with the specified location and attributes. + * + *

Sample code: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   PropertyName parent = PropertyName.of("[PROPERTY]");
+   *   WebDataStream webDataStream = WebDataStream.newBuilder().build();
+   *   WebDataStream response = analyticsAdminServiceClient.createWebDataStream(parent, webDataStream);
+   * }
+   * 
+ * + * @param parent Required. The parent resource where this web data stream will be created. Format: + * properties/123 + * @param webDataStream Required. The web stream to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final WebDataStream createWebDataStream(PropertyName parent, WebDataStream webDataStream) { + CreateWebDataStreamRequest request = + CreateWebDataStreamRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setWebDataStream(webDataStream) + .build(); + return createWebDataStream(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates a web stream with the specified location and attributes. + * + *

Sample code: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   PropertyName parent = PropertyName.of("[PROPERTY]");
+   *   WebDataStream webDataStream = WebDataStream.newBuilder().build();
+   *   WebDataStream response = analyticsAdminServiceClient.createWebDataStream(parent.toString(), webDataStream);
+   * }
+   * 
+ * + * @param parent Required. The parent resource where this web data stream will be created. Format: + * properties/123 + * @param webDataStream Required. The web stream to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final WebDataStream createWebDataStream(String parent, WebDataStream webDataStream) { + CreateWebDataStreamRequest request = + CreateWebDataStreamRequest.newBuilder() + .setParent(parent) + .setWebDataStream(webDataStream) + .build(); + return createWebDataStream(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates a web stream with the specified location and attributes. + * + *

Sample code: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   WebDataStream webDataStream = WebDataStream.newBuilder().build();
+   *   PropertyName parent = PropertyName.of("[PROPERTY]");
+   *   CreateWebDataStreamRequest request = CreateWebDataStreamRequest.newBuilder()
+   *     .setWebDataStream(webDataStream)
+   *     .setParent(parent.toString())
+   *     .build();
+   *   WebDataStream response = analyticsAdminServiceClient.createWebDataStream(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 WebDataStream createWebDataStream(CreateWebDataStreamRequest request) { + return createWebDataStreamCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates a web stream with the specified location and attributes. + * + *

Sample code: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   WebDataStream webDataStream = WebDataStream.newBuilder().build();
+   *   PropertyName parent = PropertyName.of("[PROPERTY]");
+   *   CreateWebDataStreamRequest request = CreateWebDataStreamRequest.newBuilder()
+   *     .setWebDataStream(webDataStream)
+   *     .setParent(parent.toString())
+   *     .build();
+   *   ApiFuture<WebDataStream> future = analyticsAdminServiceClient.createWebDataStreamCallable().futureCall(request);
+   *   // Do something
+   *   WebDataStream response = future.get();
+   * }
+   * 
+ */ + public final UnaryCallable + createWebDataStreamCallable() { + return stub.createWebDataStreamCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Returns child web data streams under the specified parent property. + * + *

Web data streams will be excluded if the caller does not have access. Returns an empty list + * if no relevant web data streams are found. + * + *

Sample code: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   PropertyName parent = PropertyName.of("[PROPERTY]");
+   *   for (WebDataStream element : analyticsAdminServiceClient.listWebDataStreams(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ * + * @param parent Required. The name of the parent property. For example, to list results of web + * streams under the property with Id 123: "properties/123" + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListWebDataStreamsPagedResponse listWebDataStreams(PropertyName parent) { + ListWebDataStreamsRequest request = + ListWebDataStreamsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listWebDataStreams(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Returns child web data streams under the specified parent property. + * + *

Web data streams will be excluded if the caller does not have access. Returns an empty list + * if no relevant web data streams are found. + * + *

Sample code: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   PropertyName parent = PropertyName.of("[PROPERTY]");
+   *   for (WebDataStream element : analyticsAdminServiceClient.listWebDataStreams(parent.toString()).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ * + * @param parent Required. The name of the parent property. For example, to list results of web + * streams under the property with Id 123: "properties/123" + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListWebDataStreamsPagedResponse listWebDataStreams(String parent) { + ListWebDataStreamsRequest request = + ListWebDataStreamsRequest.newBuilder().setParent(parent).build(); + return listWebDataStreams(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Returns child web data streams under the specified parent property. + * + *

Web data streams will be excluded if the caller does not have access. Returns an empty list + * if no relevant web data streams are found. + * + *

Sample code: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   PropertyName parent = PropertyName.of("[PROPERTY]");
+   *   ListWebDataStreamsRequest request = ListWebDataStreamsRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .build();
+   *   for (WebDataStream element : analyticsAdminServiceClient.listWebDataStreams(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 ListWebDataStreamsPagedResponse listWebDataStreams( + ListWebDataStreamsRequest request) { + return listWebDataStreamsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Returns child web data streams under the specified parent property. + * + *

Web data streams will be excluded if the caller does not have access. Returns an empty list + * if no relevant web data streams are found. + * + *

Sample code: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   PropertyName parent = PropertyName.of("[PROPERTY]");
+   *   ListWebDataStreamsRequest request = ListWebDataStreamsRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .build();
+   *   ApiFuture<ListWebDataStreamsPagedResponse> future = analyticsAdminServiceClient.listWebDataStreamsPagedCallable().futureCall(request);
+   *   // Do something
+   *   for (WebDataStream element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ */ + public final UnaryCallable + listWebDataStreamsPagedCallable() { + return stub.listWebDataStreamsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Returns child web data streams under the specified parent property. + * + *

Web data streams will be excluded if the caller does not have access. Returns an empty list + * if no relevant web data streams are found. + * + *

Sample code: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   PropertyName parent = PropertyName.of("[PROPERTY]");
+   *   ListWebDataStreamsRequest request = ListWebDataStreamsRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .build();
+   *   while (true) {
+   *     ListWebDataStreamsResponse response = analyticsAdminServiceClient.listWebDataStreamsCallable().call(request);
+   *     for (WebDataStream element : response.getWebDataStreamsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * 
+ */ + public final UnaryCallable + listWebDataStreamsCallable() { + return stub.listWebDataStreamsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lookup for a single IosAppDataStream + * + *

Throws "Target not found" if no such iOS app data stream found, or if the caller does not + * have permissions to access it. + * + *

Sample code: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   IosAppDataStreamName name = IosAppDataStreamName.of("[PROPERTY]", "[IOS_APP_DATA_STREAM]");
+   *   IosAppDataStream response = analyticsAdminServiceClient.getIosAppDataStream(name);
+   * }
+   * 
+ * + * @param name Required. The name of the iOS app data stream to lookup. Format: + * properties/{property_id}/iosAppDataStreams/{stream_id} Example: + * "properties/123/iosAppDataStreams/456" + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final IosAppDataStream getIosAppDataStream(IosAppDataStreamName name) { + GetIosAppDataStreamRequest request = + GetIosAppDataStreamRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getIosAppDataStream(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lookup for a single IosAppDataStream + * + *

Throws "Target not found" if no such iOS app data stream found, or if the caller does not + * have permissions to access it. + * + *

Sample code: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   IosAppDataStreamName name = IosAppDataStreamName.of("[PROPERTY]", "[IOS_APP_DATA_STREAM]");
+   *   IosAppDataStream response = analyticsAdminServiceClient.getIosAppDataStream(name.toString());
+   * }
+   * 
+ * + * @param name Required. The name of the iOS app data stream to lookup. Format: + * properties/{property_id}/iosAppDataStreams/{stream_id} Example: + * "properties/123/iosAppDataStreams/456" + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final IosAppDataStream getIosAppDataStream(String name) { + GetIosAppDataStreamRequest request = + GetIosAppDataStreamRequest.newBuilder().setName(name).build(); + return getIosAppDataStream(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lookup for a single IosAppDataStream + * + *

Throws "Target not found" if no such iOS app data stream found, or if the caller does not + * have permissions to access it. + * + *

Sample code: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   IosAppDataStreamName name = IosAppDataStreamName.of("[PROPERTY]", "[IOS_APP_DATA_STREAM]");
+   *   GetIosAppDataStreamRequest request = GetIosAppDataStreamRequest.newBuilder()
+   *     .setName(name.toString())
+   *     .build();
+   *   IosAppDataStream response = analyticsAdminServiceClient.getIosAppDataStream(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 IosAppDataStream getIosAppDataStream(GetIosAppDataStreamRequest request) { + return getIosAppDataStreamCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lookup for a single IosAppDataStream + * + *

Throws "Target not found" if no such iOS app data stream found, or if the caller does not + * have permissions to access it. + * + *

Sample code: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   IosAppDataStreamName name = IosAppDataStreamName.of("[PROPERTY]", "[IOS_APP_DATA_STREAM]");
+   *   GetIosAppDataStreamRequest request = GetIosAppDataStreamRequest.newBuilder()
+   *     .setName(name.toString())
+   *     .build();
+   *   ApiFuture<IosAppDataStream> future = analyticsAdminServiceClient.getIosAppDataStreamCallable().futureCall(request);
+   *   // Do something
+   *   IosAppDataStream response = future.get();
+   * }
+   * 
+ */ + public final UnaryCallable + getIosAppDataStreamCallable() { + return stub.getIosAppDataStreamCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes an iOS app stream on a property. + * + *

Sample code: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   IosAppDataStreamName name = IosAppDataStreamName.of("[PROPERTY]", "[IOS_APP_DATA_STREAM]");
+   *   analyticsAdminServiceClient.deleteIosAppDataStream(name);
+   * }
+   * 
+ * + * @param name Required. The name of the iOS app data stream to delete. Format: + * properties/{property_id}/iosAppDataStreams/{stream_id} Example: + * "properties/123/iosAppDataStreams/456" + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteIosAppDataStream(IosAppDataStreamName name) { + DeleteIosAppDataStreamRequest request = + DeleteIosAppDataStreamRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + deleteIosAppDataStream(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes an iOS app stream on a property. + * + *

Sample code: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   IosAppDataStreamName name = IosAppDataStreamName.of("[PROPERTY]", "[IOS_APP_DATA_STREAM]");
+   *   analyticsAdminServiceClient.deleteIosAppDataStream(name.toString());
+   * }
+   * 
+ * + * @param name Required. The name of the iOS app data stream to delete. Format: + * properties/{property_id}/iosAppDataStreams/{stream_id} Example: + * "properties/123/iosAppDataStreams/456" + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteIosAppDataStream(String name) { + DeleteIosAppDataStreamRequest request = + DeleteIosAppDataStreamRequest.newBuilder().setName(name).build(); + deleteIosAppDataStream(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes an iOS app stream on a property. + * + *

Sample code: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   IosAppDataStreamName name = IosAppDataStreamName.of("[PROPERTY]", "[IOS_APP_DATA_STREAM]");
+   *   DeleteIosAppDataStreamRequest request = DeleteIosAppDataStreamRequest.newBuilder()
+   *     .setName(name.toString())
+   *     .build();
+   *   analyticsAdminServiceClient.deleteIosAppDataStream(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 deleteIosAppDataStream(DeleteIosAppDataStreamRequest request) { + deleteIosAppDataStreamCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes an iOS app stream on a property. + * + *

Sample code: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   IosAppDataStreamName name = IosAppDataStreamName.of("[PROPERTY]", "[IOS_APP_DATA_STREAM]");
+   *   DeleteIosAppDataStreamRequest request = DeleteIosAppDataStreamRequest.newBuilder()
+   *     .setName(name.toString())
+   *     .build();
+   *   ApiFuture<Void> future = analyticsAdminServiceClient.deleteIosAppDataStreamCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + public final UnaryCallable + deleteIosAppDataStreamCallable() { + return stub.deleteIosAppDataStreamCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Updates an iOS app stream on a property. + * + *

Sample code: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   IosAppDataStream iosAppDataStream = IosAppDataStream.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   IosAppDataStream response = analyticsAdminServiceClient.updateIosAppDataStream(iosAppDataStream, updateMask);
+   * }
+   * 
+ * + * @param iosAppDataStream Required. The iOS app stream to update. The `name` field is used to + * identify the iOS app stream to be updated. + * @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 IosAppDataStream updateIosAppDataStream( + IosAppDataStream iosAppDataStream, FieldMask updateMask) { + UpdateIosAppDataStreamRequest request = + UpdateIosAppDataStreamRequest.newBuilder() + .setIosAppDataStream(iosAppDataStream) + .setUpdateMask(updateMask) + .build(); + return updateIosAppDataStream(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Updates an iOS app stream on a property. + * + *

Sample code: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   IosAppDataStream iosAppDataStream = IosAppDataStream.newBuilder().build();
+   *   UpdateIosAppDataStreamRequest request = UpdateIosAppDataStreamRequest.newBuilder()
+   *     .setIosAppDataStream(iosAppDataStream)
+   *     .build();
+   *   IosAppDataStream response = analyticsAdminServiceClient.updateIosAppDataStream(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 IosAppDataStream updateIosAppDataStream(UpdateIosAppDataStreamRequest request) { + return updateIosAppDataStreamCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Updates an iOS app stream on a property. + * + *

Sample code: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   IosAppDataStream iosAppDataStream = IosAppDataStream.newBuilder().build();
+   *   UpdateIosAppDataStreamRequest request = UpdateIosAppDataStreamRequest.newBuilder()
+   *     .setIosAppDataStream(iosAppDataStream)
+   *     .build();
+   *   ApiFuture<IosAppDataStream> future = analyticsAdminServiceClient.updateIosAppDataStreamCallable().futureCall(request);
+   *   // Do something
+   *   IosAppDataStream response = future.get();
+   * }
+   * 
+ */ + public final UnaryCallable + updateIosAppDataStreamCallable() { + return stub.updateIosAppDataStreamCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates an iOS app data stream with the specified location and attributes. + * + *

Sample code: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   PropertyName parent = PropertyName.of("[PROPERTY]");
+   *   IosAppDataStream iosAppDataStream = IosAppDataStream.newBuilder().build();
+   *   IosAppDataStream response = analyticsAdminServiceClient.createIosAppDataStream(parent, iosAppDataStream);
+   * }
+   * 
+ * + * @param parent Required. The parent resource where this ios app data stream will be created. + * Format: properties/123 + * @param iosAppDataStream Required. The iOS app data stream to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final IosAppDataStream createIosAppDataStream( + PropertyName parent, IosAppDataStream iosAppDataStream) { + CreateIosAppDataStreamRequest request = + CreateIosAppDataStreamRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setIosAppDataStream(iosAppDataStream) + .build(); + return createIosAppDataStream(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates an iOS app data stream with the specified location and attributes. + * + *

Sample code: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   PropertyName parent = PropertyName.of("[PROPERTY]");
+   *   IosAppDataStream iosAppDataStream = IosAppDataStream.newBuilder().build();
+   *   IosAppDataStream response = analyticsAdminServiceClient.createIosAppDataStream(parent.toString(), iosAppDataStream);
+   * }
+   * 
+ * + * @param parent Required. The parent resource where this ios app data stream will be created. + * Format: properties/123 + * @param iosAppDataStream Required. The iOS app data stream to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final IosAppDataStream createIosAppDataStream( + String parent, IosAppDataStream iosAppDataStream) { + CreateIosAppDataStreamRequest request = + CreateIosAppDataStreamRequest.newBuilder() + .setParent(parent) + .setIosAppDataStream(iosAppDataStream) + .build(); + return createIosAppDataStream(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates an iOS app data stream with the specified location and attributes. + * + *

Sample code: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   IosAppDataStream iosAppDataStream = IosAppDataStream.newBuilder().build();
+   *   PropertyName parent = PropertyName.of("[PROPERTY]");
+   *   CreateIosAppDataStreamRequest request = CreateIosAppDataStreamRequest.newBuilder()
+   *     .setIosAppDataStream(iosAppDataStream)
+   *     .setParent(parent.toString())
+   *     .build();
+   *   IosAppDataStream response = analyticsAdminServiceClient.createIosAppDataStream(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 IosAppDataStream createIosAppDataStream(CreateIosAppDataStreamRequest request) { + return createIosAppDataStreamCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates an iOS app data stream with the specified location and attributes. + * + *

Sample code: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   IosAppDataStream iosAppDataStream = IosAppDataStream.newBuilder().build();
+   *   PropertyName parent = PropertyName.of("[PROPERTY]");
+   *   CreateIosAppDataStreamRequest request = CreateIosAppDataStreamRequest.newBuilder()
+   *     .setIosAppDataStream(iosAppDataStream)
+   *     .setParent(parent.toString())
+   *     .build();
+   *   ApiFuture<IosAppDataStream> future = analyticsAdminServiceClient.createIosAppDataStreamCallable().futureCall(request);
+   *   // Do something
+   *   IosAppDataStream response = future.get();
+   * }
+   * 
+ */ + public final UnaryCallable + createIosAppDataStreamCallable() { + return stub.createIosAppDataStreamCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Returns child iOS app data streams under the specified parent property. + * + *

iOS app data streams will be excluded if the caller does not have access. Returns an empty + * list if no relevant iOS app data streams are found. + * + *

Sample code: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   PropertyName parent = PropertyName.of("[PROPERTY]");
+   *   for (IosAppDataStream element : analyticsAdminServiceClient.listIosAppDataStreams(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ * + * @param parent Required. The name of the parent property. For example, to list results of app + * streams under the property with Id 123: "properties/123" + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListIosAppDataStreamsPagedResponse listIosAppDataStreams(PropertyName parent) { + ListIosAppDataStreamsRequest request = + ListIosAppDataStreamsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listIosAppDataStreams(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Returns child iOS app data streams under the specified parent property. + * + *

iOS app data streams will be excluded if the caller does not have access. Returns an empty + * list if no relevant iOS app data streams are found. + * + *

Sample code: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   PropertyName parent = PropertyName.of("[PROPERTY]");
+   *   for (IosAppDataStream element : analyticsAdminServiceClient.listIosAppDataStreams(parent.toString()).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ * + * @param parent Required. The name of the parent property. For example, to list results of app + * streams under the property with Id 123: "properties/123" + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListIosAppDataStreamsPagedResponse listIosAppDataStreams(String parent) { + ListIosAppDataStreamsRequest request = + ListIosAppDataStreamsRequest.newBuilder().setParent(parent).build(); + return listIosAppDataStreams(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Returns child iOS app data streams under the specified parent property. + * + *

iOS app data streams will be excluded if the caller does not have access. Returns an empty + * list if no relevant iOS app data streams are found. + * + *

Sample code: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   PropertyName parent = PropertyName.of("[PROPERTY]");
+   *   ListIosAppDataStreamsRequest request = ListIosAppDataStreamsRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .build();
+   *   for (IosAppDataStream element : analyticsAdminServiceClient.listIosAppDataStreams(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 ListIosAppDataStreamsPagedResponse listIosAppDataStreams( + ListIosAppDataStreamsRequest request) { + return listIosAppDataStreamsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Returns child iOS app data streams under the specified parent property. + * + *

iOS app data streams will be excluded if the caller does not have access. Returns an empty + * list if no relevant iOS app data streams are found. + * + *

Sample code: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   PropertyName parent = PropertyName.of("[PROPERTY]");
+   *   ListIosAppDataStreamsRequest request = ListIosAppDataStreamsRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .build();
+   *   ApiFuture<ListIosAppDataStreamsPagedResponse> future = analyticsAdminServiceClient.listIosAppDataStreamsPagedCallable().futureCall(request);
+   *   // Do something
+   *   for (IosAppDataStream element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ */ + public final UnaryCallable + listIosAppDataStreamsPagedCallable() { + return stub.listIosAppDataStreamsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Returns child iOS app data streams under the specified parent property. + * + *

iOS app data streams will be excluded if the caller does not have access. Returns an empty + * list if no relevant iOS app data streams are found. + * + *

Sample code: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   PropertyName parent = PropertyName.of("[PROPERTY]");
+   *   ListIosAppDataStreamsRequest request = ListIosAppDataStreamsRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .build();
+   *   while (true) {
+   *     ListIosAppDataStreamsResponse response = analyticsAdminServiceClient.listIosAppDataStreamsCallable().call(request);
+   *     for (IosAppDataStream element : response.getIosAppDataStreamsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * 
+ */ + public final UnaryCallable + listIosAppDataStreamsCallable() { + return stub.listIosAppDataStreamsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lookup for a single AndroidAppDataStream + * + *

Throws "Target not found" if no such android app data stream found, or if the caller does + * not have permissions to access it. + * + *

Sample code: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   AndroidAppDataStreamName name = AndroidAppDataStreamName.of("[PROPERTY]", "[ANDROID_APP_DATA_STREAM]");
+   *   AndroidAppDataStream response = analyticsAdminServiceClient.getAndroidAppDataStream(name);
+   * }
+   * 
+ * + * @param name Required. The name of the android app data stream to lookup. Format: + * properties/{property_id}/androidAppDataStreams/{stream_id} Example: + * "properties/123/androidAppDataStreams/456" + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AndroidAppDataStream getAndroidAppDataStream(AndroidAppDataStreamName name) { + GetAndroidAppDataStreamRequest request = + GetAndroidAppDataStreamRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getAndroidAppDataStream(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lookup for a single AndroidAppDataStream + * + *

Throws "Target not found" if no such android app data stream found, or if the caller does + * not have permissions to access it. + * + *

Sample code: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   AndroidAppDataStreamName name = AndroidAppDataStreamName.of("[PROPERTY]", "[ANDROID_APP_DATA_STREAM]");
+   *   AndroidAppDataStream response = analyticsAdminServiceClient.getAndroidAppDataStream(name.toString());
+   * }
+   * 
+ * + * @param name Required. The name of the android app data stream to lookup. Format: + * properties/{property_id}/androidAppDataStreams/{stream_id} Example: + * "properties/123/androidAppDataStreams/456" + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AndroidAppDataStream getAndroidAppDataStream(String name) { + GetAndroidAppDataStreamRequest request = + GetAndroidAppDataStreamRequest.newBuilder().setName(name).build(); + return getAndroidAppDataStream(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lookup for a single AndroidAppDataStream + * + *

Throws "Target not found" if no such android app data stream found, or if the caller does + * not have permissions to access it. + * + *

Sample code: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   AndroidAppDataStreamName name = AndroidAppDataStreamName.of("[PROPERTY]", "[ANDROID_APP_DATA_STREAM]");
+   *   GetAndroidAppDataStreamRequest request = GetAndroidAppDataStreamRequest.newBuilder()
+   *     .setName(name.toString())
+   *     .build();
+   *   AndroidAppDataStream response = analyticsAdminServiceClient.getAndroidAppDataStream(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 AndroidAppDataStream getAndroidAppDataStream( + GetAndroidAppDataStreamRequest request) { + return getAndroidAppDataStreamCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lookup for a single AndroidAppDataStream + * + *

Throws "Target not found" if no such android app data stream found, or if the caller does + * not have permissions to access it. + * + *

Sample code: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   AndroidAppDataStreamName name = AndroidAppDataStreamName.of("[PROPERTY]", "[ANDROID_APP_DATA_STREAM]");
+   *   GetAndroidAppDataStreamRequest request = GetAndroidAppDataStreamRequest.newBuilder()
+   *     .setName(name.toString())
+   *     .build();
+   *   ApiFuture<AndroidAppDataStream> future = analyticsAdminServiceClient.getAndroidAppDataStreamCallable().futureCall(request);
+   *   // Do something
+   *   AndroidAppDataStream response = future.get();
+   * }
+   * 
+ */ + public final UnaryCallable + getAndroidAppDataStreamCallable() { + return stub.getAndroidAppDataStreamCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes an android app stream on a property. + * + *

Sample code: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   AndroidAppDataStreamName name = AndroidAppDataStreamName.of("[PROPERTY]", "[ANDROID_APP_DATA_STREAM]");
+   *   analyticsAdminServiceClient.deleteAndroidAppDataStream(name);
+   * }
+   * 
+ * + * @param name Required. The name of the android app data stream to delete. Format: + * properties/{property_id}/androidAppDataStreams/{stream_id} Example: + * "properties/123/androidAppDataStreams/456" + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteAndroidAppDataStream(AndroidAppDataStreamName name) { + DeleteAndroidAppDataStreamRequest request = + DeleteAndroidAppDataStreamRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + deleteAndroidAppDataStream(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes an android app stream on a property. + * + *

Sample code: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   AndroidAppDataStreamName name = AndroidAppDataStreamName.of("[PROPERTY]", "[ANDROID_APP_DATA_STREAM]");
+   *   analyticsAdminServiceClient.deleteAndroidAppDataStream(name.toString());
+   * }
+   * 
+ * + * @param name Required. The name of the android app data stream to delete. Format: + * properties/{property_id}/androidAppDataStreams/{stream_id} Example: + * "properties/123/androidAppDataStreams/456" + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteAndroidAppDataStream(String name) { + DeleteAndroidAppDataStreamRequest request = + DeleteAndroidAppDataStreamRequest.newBuilder().setName(name).build(); + deleteAndroidAppDataStream(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes an android app stream on a property. + * + *

Sample code: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   AndroidAppDataStreamName name = AndroidAppDataStreamName.of("[PROPERTY]", "[ANDROID_APP_DATA_STREAM]");
+   *   DeleteAndroidAppDataStreamRequest request = DeleteAndroidAppDataStreamRequest.newBuilder()
+   *     .setName(name.toString())
+   *     .build();
+   *   analyticsAdminServiceClient.deleteAndroidAppDataStream(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 deleteAndroidAppDataStream(DeleteAndroidAppDataStreamRequest request) { + deleteAndroidAppDataStreamCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes an android app stream on a property. + * + *

Sample code: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   AndroidAppDataStreamName name = AndroidAppDataStreamName.of("[PROPERTY]", "[ANDROID_APP_DATA_STREAM]");
+   *   DeleteAndroidAppDataStreamRequest request = DeleteAndroidAppDataStreamRequest.newBuilder()
+   *     .setName(name.toString())
+   *     .build();
+   *   ApiFuture<Void> future = analyticsAdminServiceClient.deleteAndroidAppDataStreamCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + public final UnaryCallable + deleteAndroidAppDataStreamCallable() { + return stub.deleteAndroidAppDataStreamCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Updates an android app stream on a property. + * + *

Sample code: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   AndroidAppDataStream androidAppDataStream = AndroidAppDataStream.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   AndroidAppDataStream response = analyticsAdminServiceClient.updateAndroidAppDataStream(androidAppDataStream, updateMask);
+   * }
+   * 
+ * + * @param androidAppDataStream Required. The android app stream to update. The `name` field is + * used to identify the android app stream to be updated. + * @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 AndroidAppDataStream updateAndroidAppDataStream( + AndroidAppDataStream androidAppDataStream, FieldMask updateMask) { + UpdateAndroidAppDataStreamRequest request = + UpdateAndroidAppDataStreamRequest.newBuilder() + .setAndroidAppDataStream(androidAppDataStream) + .setUpdateMask(updateMask) + .build(); + return updateAndroidAppDataStream(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Updates an android app stream on a property. + * + *

Sample code: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   AndroidAppDataStream androidAppDataStream = AndroidAppDataStream.newBuilder().build();
+   *   UpdateAndroidAppDataStreamRequest request = UpdateAndroidAppDataStreamRequest.newBuilder()
+   *     .setAndroidAppDataStream(androidAppDataStream)
+   *     .build();
+   *   AndroidAppDataStream response = analyticsAdminServiceClient.updateAndroidAppDataStream(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 AndroidAppDataStream updateAndroidAppDataStream( + UpdateAndroidAppDataStreamRequest request) { + return updateAndroidAppDataStreamCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Updates an android app stream on a property. + * + *

Sample code: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   AndroidAppDataStream androidAppDataStream = AndroidAppDataStream.newBuilder().build();
+   *   UpdateAndroidAppDataStreamRequest request = UpdateAndroidAppDataStreamRequest.newBuilder()
+   *     .setAndroidAppDataStream(androidAppDataStream)
+   *     .build();
+   *   ApiFuture<AndroidAppDataStream> future = analyticsAdminServiceClient.updateAndroidAppDataStreamCallable().futureCall(request);
+   *   // Do something
+   *   AndroidAppDataStream response = future.get();
+   * }
+   * 
+ */ + public final UnaryCallable + updateAndroidAppDataStreamCallable() { + return stub.updateAndroidAppDataStreamCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates an android app stream with the specified location and attributes. + * + *

Sample code: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   PropertyName parent = PropertyName.of("[PROPERTY]");
+   *   AndroidAppDataStream androidAppDataStream = AndroidAppDataStream.newBuilder().build();
+   *   AndroidAppDataStream response = analyticsAdminServiceClient.createAndroidAppDataStream(parent, androidAppDataStream);
+   * }
+   * 
+ * + * @param parent Required. The parent resource where this android app data stream will be created. + * Format: properties/123 + * @param androidAppDataStream Required. The android app stream to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AndroidAppDataStream createAndroidAppDataStream( + PropertyName parent, AndroidAppDataStream androidAppDataStream) { + CreateAndroidAppDataStreamRequest request = + CreateAndroidAppDataStreamRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setAndroidAppDataStream(androidAppDataStream) + .build(); + return createAndroidAppDataStream(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates an android app stream with the specified location and attributes. + * + *

Sample code: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   PropertyName parent = PropertyName.of("[PROPERTY]");
+   *   AndroidAppDataStream androidAppDataStream = AndroidAppDataStream.newBuilder().build();
+   *   AndroidAppDataStream response = analyticsAdminServiceClient.createAndroidAppDataStream(parent.toString(), androidAppDataStream);
+   * }
+   * 
+ * + * @param parent Required. The parent resource where this android app data stream will be created. + * Format: properties/123 + * @param androidAppDataStream Required. The android app stream to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AndroidAppDataStream createAndroidAppDataStream( + String parent, AndroidAppDataStream androidAppDataStream) { + CreateAndroidAppDataStreamRequest request = + CreateAndroidAppDataStreamRequest.newBuilder() + .setParent(parent) + .setAndroidAppDataStream(androidAppDataStream) + .build(); + return createAndroidAppDataStream(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates an android app stream with the specified location and attributes. + * + *

Sample code: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   AndroidAppDataStream androidAppDataStream = AndroidAppDataStream.newBuilder().build();
+   *   PropertyName parent = PropertyName.of("[PROPERTY]");
+   *   CreateAndroidAppDataStreamRequest request = CreateAndroidAppDataStreamRequest.newBuilder()
+   *     .setAndroidAppDataStream(androidAppDataStream)
+   *     .setParent(parent.toString())
+   *     .build();
+   *   AndroidAppDataStream response = analyticsAdminServiceClient.createAndroidAppDataStream(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 AndroidAppDataStream createAndroidAppDataStream( + CreateAndroidAppDataStreamRequest request) { + return createAndroidAppDataStreamCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates an android app stream with the specified location and attributes. + * + *

Sample code: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   AndroidAppDataStream androidAppDataStream = AndroidAppDataStream.newBuilder().build();
+   *   PropertyName parent = PropertyName.of("[PROPERTY]");
+   *   CreateAndroidAppDataStreamRequest request = CreateAndroidAppDataStreamRequest.newBuilder()
+   *     .setAndroidAppDataStream(androidAppDataStream)
+   *     .setParent(parent.toString())
+   *     .build();
+   *   ApiFuture<AndroidAppDataStream> future = analyticsAdminServiceClient.createAndroidAppDataStreamCallable().futureCall(request);
+   *   // Do something
+   *   AndroidAppDataStream response = future.get();
+   * }
+   * 
+ */ + public final UnaryCallable + createAndroidAppDataStreamCallable() { + return stub.createAndroidAppDataStreamCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Returns child android app streams under the specified parent property. + * + *

Android app streams will be excluded if the caller does not have access. Returns an empty + * list if no relevant android app streams are found. + * + *

Sample code: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   PropertyName parent = PropertyName.of("[PROPERTY]");
+   *   for (AndroidAppDataStream element : analyticsAdminServiceClient.listAndroidAppDataStreams(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ * + * @param parent Required. The name of the parent property. For example, to limit results to app + * streams under the property with Id 123: "properties/123" + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListAndroidAppDataStreamsPagedResponse listAndroidAppDataStreams( + PropertyName parent) { + ListAndroidAppDataStreamsRequest request = + ListAndroidAppDataStreamsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listAndroidAppDataStreams(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Returns child android app streams under the specified parent property. + * + *

Android app streams will be excluded if the caller does not have access. Returns an empty + * list if no relevant android app streams are found. + * + *

Sample code: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   PropertyName parent = PropertyName.of("[PROPERTY]");
+   *   for (AndroidAppDataStream element : analyticsAdminServiceClient.listAndroidAppDataStreams(parent.toString()).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ * + * @param parent Required. The name of the parent property. For example, to limit results to app + * streams under the property with Id 123: "properties/123" + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListAndroidAppDataStreamsPagedResponse listAndroidAppDataStreams(String parent) { + ListAndroidAppDataStreamsRequest request = + ListAndroidAppDataStreamsRequest.newBuilder().setParent(parent).build(); + return listAndroidAppDataStreams(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Returns child android app streams under the specified parent property. + * + *

Android app streams will be excluded if the caller does not have access. Returns an empty + * list if no relevant android app streams are found. + * + *

Sample code: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   PropertyName parent = PropertyName.of("[PROPERTY]");
+   *   ListAndroidAppDataStreamsRequest request = ListAndroidAppDataStreamsRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .build();
+   *   for (AndroidAppDataStream element : analyticsAdminServiceClient.listAndroidAppDataStreams(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 ListAndroidAppDataStreamsPagedResponse listAndroidAppDataStreams( + ListAndroidAppDataStreamsRequest request) { + return listAndroidAppDataStreamsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Returns child android app streams under the specified parent property. + * + *

Android app streams will be excluded if the caller does not have access. Returns an empty + * list if no relevant android app streams are found. + * + *

Sample code: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   PropertyName parent = PropertyName.of("[PROPERTY]");
+   *   ListAndroidAppDataStreamsRequest request = ListAndroidAppDataStreamsRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .build();
+   *   ApiFuture<ListAndroidAppDataStreamsPagedResponse> future = analyticsAdminServiceClient.listAndroidAppDataStreamsPagedCallable().futureCall(request);
+   *   // Do something
+   *   for (AndroidAppDataStream element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ */ + public final UnaryCallable< + ListAndroidAppDataStreamsRequest, ListAndroidAppDataStreamsPagedResponse> + listAndroidAppDataStreamsPagedCallable() { + return stub.listAndroidAppDataStreamsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Returns child android app streams under the specified parent property. + * + *

Android app streams will be excluded if the caller does not have access. Returns an empty + * list if no relevant android app streams are found. + * + *

Sample code: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   PropertyName parent = PropertyName.of("[PROPERTY]");
+   *   ListAndroidAppDataStreamsRequest request = ListAndroidAppDataStreamsRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .build();
+   *   while (true) {
+   *     ListAndroidAppDataStreamsResponse response = analyticsAdminServiceClient.listAndroidAppDataStreamsCallable().call(request);
+   *     for (AndroidAppDataStream element : response.getAndroidAppDataStreamsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * 
+ */ + public final UnaryCallable + listAndroidAppDataStreamsCallable() { + return stub.listAndroidAppDataStreamsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Returns the singleton enhanced measurement settings for this web stream. Note that the stream + * must enable enhanced measurement for these settings to take effect. + * + *

Sample code: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   EnhancedMeasurementSettingsName name = EnhancedMeasurementSettingsName.of("[PROPERTY]", "[WEB_DATA_STREAM]");
+   *   EnhancedMeasurementSettings response = analyticsAdminServiceClient.getEnhancedMeasurementSettings(name);
+   * }
+   * 
+ * + * @param name Required. The name of the settings to lookup. Format: + * properties/{property_id}/webDataStreams/{stream_id}/enhancedMeasurementSettings Example: + * "properties/1000/webDataStreams/2000/enhancedMeasurementSettings" + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final EnhancedMeasurementSettings getEnhancedMeasurementSettings( + EnhancedMeasurementSettingsName name) { + GetEnhancedMeasurementSettingsRequest request = + GetEnhancedMeasurementSettingsRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getEnhancedMeasurementSettings(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Returns the singleton enhanced measurement settings for this web stream. Note that the stream + * must enable enhanced measurement for these settings to take effect. + * + *

Sample code: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   EnhancedMeasurementSettingsName name = EnhancedMeasurementSettingsName.of("[PROPERTY]", "[WEB_DATA_STREAM]");
+   *   EnhancedMeasurementSettings response = analyticsAdminServiceClient.getEnhancedMeasurementSettings(name.toString());
+   * }
+   * 
+ * + * @param name Required. The name of the settings to lookup. Format: + * properties/{property_id}/webDataStreams/{stream_id}/enhancedMeasurementSettings Example: + * "properties/1000/webDataStreams/2000/enhancedMeasurementSettings" + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final EnhancedMeasurementSettings getEnhancedMeasurementSettings(String name) { + GetEnhancedMeasurementSettingsRequest request = + GetEnhancedMeasurementSettingsRequest.newBuilder().setName(name).build(); + return getEnhancedMeasurementSettings(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Returns the singleton enhanced measurement settings for this web stream. Note that the stream + * must enable enhanced measurement for these settings to take effect. + * + *

Sample code: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   EnhancedMeasurementSettingsName name = EnhancedMeasurementSettingsName.of("[PROPERTY]", "[WEB_DATA_STREAM]");
+   *   GetEnhancedMeasurementSettingsRequest request = GetEnhancedMeasurementSettingsRequest.newBuilder()
+   *     .setName(name.toString())
+   *     .build();
+   *   EnhancedMeasurementSettings response = analyticsAdminServiceClient.getEnhancedMeasurementSettings(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final EnhancedMeasurementSettings getEnhancedMeasurementSettings( + GetEnhancedMeasurementSettingsRequest request) { + return getEnhancedMeasurementSettingsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Returns the singleton enhanced measurement settings for this web stream. Note that the stream + * must enable enhanced measurement for these settings to take effect. + * + *

Sample code: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   EnhancedMeasurementSettingsName name = EnhancedMeasurementSettingsName.of("[PROPERTY]", "[WEB_DATA_STREAM]");
+   *   GetEnhancedMeasurementSettingsRequest request = GetEnhancedMeasurementSettingsRequest.newBuilder()
+   *     .setName(name.toString())
+   *     .build();
+   *   ApiFuture<EnhancedMeasurementSettings> future = analyticsAdminServiceClient.getEnhancedMeasurementSettingsCallable().futureCall(request);
+   *   // Do something
+   *   EnhancedMeasurementSettings response = future.get();
+   * }
+   * 
+ */ + public final UnaryCallable + getEnhancedMeasurementSettingsCallable() { + return stub.getEnhancedMeasurementSettingsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Updates the singleton enhanced measurement settings for this web stream. Note that the stream + * must enable enhanced measurement for these settings to take effect. + * + *

Sample code: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   EnhancedMeasurementSettings enhancedMeasurementSettings = EnhancedMeasurementSettings.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   EnhancedMeasurementSettings response = analyticsAdminServiceClient.updateEnhancedMeasurementSettings(enhancedMeasurementSettings, updateMask);
+   * }
+   * 
+ * + * @param enhancedMeasurementSettings Required. The settings to update. The `name` field is used + * to identify the settings to be updated. + * @param updateMask 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 EnhancedMeasurementSettings updateEnhancedMeasurementSettings( + EnhancedMeasurementSettings enhancedMeasurementSettings, FieldMask updateMask) { + UpdateEnhancedMeasurementSettingsRequest request = + UpdateEnhancedMeasurementSettingsRequest.newBuilder() + .setEnhancedMeasurementSettings(enhancedMeasurementSettings) + .setUpdateMask(updateMask) + .build(); + return updateEnhancedMeasurementSettings(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Updates the singleton enhanced measurement settings for this web stream. Note that the stream + * must enable enhanced measurement for these settings to take effect. + * + *

Sample code: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   EnhancedMeasurementSettings enhancedMeasurementSettings = EnhancedMeasurementSettings.newBuilder().build();
+   *   UpdateEnhancedMeasurementSettingsRequest request = UpdateEnhancedMeasurementSettingsRequest.newBuilder()
+   *     .setEnhancedMeasurementSettings(enhancedMeasurementSettings)
+   *     .build();
+   *   EnhancedMeasurementSettings response = analyticsAdminServiceClient.updateEnhancedMeasurementSettings(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final EnhancedMeasurementSettings updateEnhancedMeasurementSettings( + UpdateEnhancedMeasurementSettingsRequest request) { + return updateEnhancedMeasurementSettingsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Updates the singleton enhanced measurement settings for this web stream. Note that the stream + * must enable enhanced measurement for these settings to take effect. + * + *

Sample code: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   EnhancedMeasurementSettings enhancedMeasurementSettings = EnhancedMeasurementSettings.newBuilder().build();
+   *   UpdateEnhancedMeasurementSettingsRequest request = UpdateEnhancedMeasurementSettingsRequest.newBuilder()
+   *     .setEnhancedMeasurementSettings(enhancedMeasurementSettings)
+   *     .build();
+   *   ApiFuture<EnhancedMeasurementSettings> future = analyticsAdminServiceClient.updateEnhancedMeasurementSettingsCallable().futureCall(request);
+   *   // Do something
+   *   EnhancedMeasurementSettings response = future.get();
+   * }
+   * 
+ */ + public final UnaryCallable + updateEnhancedMeasurementSettingsCallable() { + return stub.updateEnhancedMeasurementSettingsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates a FirebaseLink. + * + *

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

Sample code: + * + *


+   * 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: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   PropertyName parent = PropertyName.of("[PROPERTY]");
+   *   FirebaseLink firebaseLink = FirebaseLink.newBuilder().build();
+   *   FirebaseLink response = analyticsAdminServiceClient.createFirebaseLink(parent.toString(), 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: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   PropertyName parent = PropertyName.of("[PROPERTY]");
+   *   FirebaseLink firebaseLink = FirebaseLink.newBuilder().build();
+   *   CreateFirebaseLinkRequest request = CreateFirebaseLinkRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .setFirebaseLink(firebaseLink)
+   *     .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: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   PropertyName parent = PropertyName.of("[PROPERTY]");
+   *   FirebaseLink firebaseLink = FirebaseLink.newBuilder().build();
+   *   CreateFirebaseLinkRequest request = CreateFirebaseLinkRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .setFirebaseLink(firebaseLink)
+   *     .build();
+   *   ApiFuture<FirebaseLink> future = analyticsAdminServiceClient.createFirebaseLinkCallable().futureCall(request);
+   *   // Do something
+   *   FirebaseLink response = future.get();
+   * }
+   * 
+ */ + public final UnaryCallable createFirebaseLinkCallable() { + return stub.createFirebaseLinkCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Updates a FirebaseLink on a property + * + *

Sample code: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   FirebaseLink firebaseLink = FirebaseLink.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   FirebaseLink response = analyticsAdminServiceClient.updateFirebaseLink(firebaseLink, updateMask);
+   * }
+   * 
+ * + * @param firebaseLink Required. The Firebase link 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 FirebaseLink updateFirebaseLink(FirebaseLink firebaseLink, FieldMask updateMask) { + UpdateFirebaseLinkRequest request = + UpdateFirebaseLinkRequest.newBuilder() + .setFirebaseLink(firebaseLink) + .setUpdateMask(updateMask) + .build(); + return updateFirebaseLink(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Updates a FirebaseLink on a property + * + *

Sample code: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   FirebaseLink firebaseLink = FirebaseLink.newBuilder().build();
+   *   UpdateFirebaseLinkRequest request = UpdateFirebaseLinkRequest.newBuilder()
+   *     .setFirebaseLink(firebaseLink)
+   *     .build();
+   *   FirebaseLink response = analyticsAdminServiceClient.updateFirebaseLink(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 updateFirebaseLink(UpdateFirebaseLinkRequest request) { + return updateFirebaseLinkCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Updates a FirebaseLink on a property + * + *

Sample code: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   FirebaseLink firebaseLink = FirebaseLink.newBuilder().build();
+   *   UpdateFirebaseLinkRequest request = UpdateFirebaseLinkRequest.newBuilder()
+   *     .setFirebaseLink(firebaseLink)
+   *     .build();
+   *   ApiFuture<FirebaseLink> future = analyticsAdminServiceClient.updateFirebaseLinkCallable().futureCall(request);
+   *   // Do something
+   *   FirebaseLink response = future.get();
+   * }
+   * 
+ */ + public final UnaryCallable updateFirebaseLinkCallable() { + return stub.updateFirebaseLinkCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes a FirebaseLink on a property + * + *

Sample code: + * + *


+   * 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: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   FirebaseLinkName name = FirebaseLinkName.of("[PROPERTY]", "[FIREBASE_LINK]");
+   *   analyticsAdminServiceClient.deleteFirebaseLink(name.toString());
+   * }
+   * 
+ * + * @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: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   FirebaseLinkName name = FirebaseLinkName.of("[PROPERTY]", "[FIREBASE_LINK]");
+   *   DeleteFirebaseLinkRequest request = DeleteFirebaseLinkRequest.newBuilder()
+   *     .setName(name.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: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   FirebaseLinkName name = FirebaseLinkName.of("[PROPERTY]", "[FIREBASE_LINK]");
+   *   DeleteFirebaseLinkRequest request = DeleteFirebaseLinkRequest.newBuilder()
+   *     .setName(name.toString())
+   *     .build();
+   *   ApiFuture<Void> 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: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   PropertyName parent = PropertyName.of("[PROPERTY]");
+   *   ListFirebaseLinksResponse response = analyticsAdminServiceClient.listFirebaseLinks(parent);
+   * }
+   * 
+ * + * @param parent Required. Format: properties/{property_id} Example: properties/1234 + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListFirebaseLinksResponse 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: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   PropertyName parent = PropertyName.of("[PROPERTY]");
+   *   ListFirebaseLinksResponse response = analyticsAdminServiceClient.listFirebaseLinks(parent.toString());
+   * }
+   * 
+ * + * @param parent Required. Format: properties/{property_id} Example: properties/1234 + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListFirebaseLinksResponse 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: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   PropertyName parent = PropertyName.of("[PROPERTY]");
+   *   ListFirebaseLinksRequest request = ListFirebaseLinksRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .build();
+   *   ListFirebaseLinksResponse response = analyticsAdminServiceClient.listFirebaseLinks(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 ListFirebaseLinksResponse listFirebaseLinks(ListFirebaseLinksRequest request) { + return listFirebaseLinksCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists FirebaseLinks on a property. Properties can have at most one FirebaseLink. + * + *

Sample code: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   PropertyName parent = PropertyName.of("[PROPERTY]");
+   *   ListFirebaseLinksRequest request = ListFirebaseLinksRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .build();
+   *   ApiFuture<ListFirebaseLinksResponse> future = analyticsAdminServiceClient.listFirebaseLinksCallable().futureCall(request);
+   *   // Do something
+   *   ListFirebaseLinksResponse response = future.get();
+   * }
+   * 
+ */ + 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: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   GlobalSiteTagName name = GlobalSiteTagName.of("[PROPERTY]");
+   *   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}/webDataStreams/{stream_id}/globalSiteTag Example: + * "properties/123/webDataStreams/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: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   GlobalSiteTagName name = GlobalSiteTagName.of("[PROPERTY]");
+   *   GlobalSiteTag response = analyticsAdminServiceClient.getGlobalSiteTag(name.toString());
+   * }
+   * 
+ * + * @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}/webDataStreams/{stream_id}/globalSiteTag Example: + * "properties/123/webDataStreams/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: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   GlobalSiteTagName name = GlobalSiteTagName.of("[PROPERTY]");
+   *   GetGlobalSiteTagRequest request = GetGlobalSiteTagRequest.newBuilder()
+   *     .setName(name.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: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   GlobalSiteTagName name = GlobalSiteTagName.of("[PROPERTY]");
+   *   GetGlobalSiteTagRequest request = GetGlobalSiteTagRequest.newBuilder()
+   *     .setName(name.toString())
+   *     .build();
+   *   ApiFuture<GlobalSiteTag> 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: + * + *


+   * 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: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   PropertyName parent = PropertyName.of("[PROPERTY]");
+   *   GoogleAdsLink googleAdsLink = GoogleAdsLink.newBuilder().build();
+   *   GoogleAdsLink response = analyticsAdminServiceClient.createGoogleAdsLink(parent.toString(), 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: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   PropertyName parent = PropertyName.of("[PROPERTY]");
+   *   GoogleAdsLink googleAdsLink = GoogleAdsLink.newBuilder().build();
+   *   CreateGoogleAdsLinkRequest request = CreateGoogleAdsLinkRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .setGoogleAdsLink(googleAdsLink)
+   *     .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: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   PropertyName parent = PropertyName.of("[PROPERTY]");
+   *   GoogleAdsLink googleAdsLink = GoogleAdsLink.newBuilder().build();
+   *   CreateGoogleAdsLinkRequest request = CreateGoogleAdsLinkRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .setGoogleAdsLink(googleAdsLink)
+   *     .build();
+   *   ApiFuture<GoogleAdsLink> 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: + * + *


+   * 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 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 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: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   UpdateGoogleAdsLinkRequest request = UpdateGoogleAdsLinkRequest.newBuilder().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: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   UpdateGoogleAdsLinkRequest request = UpdateGoogleAdsLinkRequest.newBuilder().build();
+   *   ApiFuture<GoogleAdsLink> 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: + * + *


+   * 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: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   GoogleAdsLinkName name = GoogleAdsLinkName.of("[PROPERTY]", "[GOOGLE_ADS_LINK]");
+   *   analyticsAdminServiceClient.deleteGoogleAdsLink(name.toString());
+   * }
+   * 
+ * + * @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: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   GoogleAdsLinkName name = GoogleAdsLinkName.of("[PROPERTY]", "[GOOGLE_ADS_LINK]");
+   *   DeleteGoogleAdsLinkRequest request = DeleteGoogleAdsLinkRequest.newBuilder()
+   *     .setName(name.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: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   GoogleAdsLinkName name = GoogleAdsLinkName.of("[PROPERTY]", "[GOOGLE_ADS_LINK]");
+   *   DeleteGoogleAdsLinkRequest request = DeleteGoogleAdsLinkRequest.newBuilder()
+   *     .setName(name.toString())
+   *     .build();
+   *   ApiFuture<Void> 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: + * + *


+   * 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: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   PropertyName parent = PropertyName.of("[PROPERTY]");
+   *   for (GoogleAdsLink element : analyticsAdminServiceClient.listGoogleAdsLinks(parent.toString()).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: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   PropertyName parent = PropertyName.of("[PROPERTY]");
+   *   ListGoogleAdsLinksRequest request = ListGoogleAdsLinksRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .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: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   PropertyName parent = PropertyName.of("[PROPERTY]");
+   *   ListGoogleAdsLinksRequest request = ListGoogleAdsLinksRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .build();
+   *   ApiFuture<ListGoogleAdsLinksPagedResponse> 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: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   PropertyName parent = PropertyName.of("[PROPERTY]");
+   *   ListGoogleAdsLinksRequest request = ListGoogleAdsLinksRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .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: + * + *


+   * 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: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   DataSharingSettingsName name = DataSharingSettingsName.of("[ACCOUNT]");
+   *   DataSharingSettings response = analyticsAdminServiceClient.getDataSharingSettings(name.toString());
+   * }
+   * 
+ * + * @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: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   DataSharingSettingsName name = DataSharingSettingsName.of("[ACCOUNT]");
+   *   GetDataSharingSettingsRequest request = GetDataSharingSettingsRequest.newBuilder()
+   *     .setName(name.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: + * + *


+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+   *   DataSharingSettingsName name = DataSharingSettingsName.of("[ACCOUNT]");
+   *   GetDataSharingSettingsRequest request = GetDataSharingSettingsRequest.newBuilder()
+   *     .setName(name.toString())
+   *     .build();
+   *   ApiFuture<DataSharingSettings> future = analyticsAdminServiceClient.getDataSharingSettingsCallable().futureCall(request);
+   *   // Do something
+   *   DataSharingSettings response = future.get();
+   * }
+   * 
+ */ + public final UnaryCallable + getDataSharingSettingsCallable() { + return stub.getDataSharingSettingsCallable(); + } + + @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, + new ApiFunction() { + @Override + public ListAccountsPagedResponse apply(ListAccountsPage input) { + return 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 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, + new ApiFunction() { + @Override + public ListPropertiesPagedResponse apply(ListPropertiesPage input) { + return 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, + new ApiFunction() { + @Override + public ListUserLinksPagedResponse apply(ListUserLinksPage input) { + return 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, + new ApiFunction() { + @Override + public AuditUserLinksPagedResponse apply(AuditUserLinksPage input) { + return 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 ListWebDataStreamsPagedResponse + extends AbstractPagedListResponse< + ListWebDataStreamsRequest, + ListWebDataStreamsResponse, + WebDataStream, + ListWebDataStreamsPage, + ListWebDataStreamsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListWebDataStreamsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + new ApiFunction() { + @Override + public ListWebDataStreamsPagedResponse apply(ListWebDataStreamsPage input) { + return new ListWebDataStreamsPagedResponse(input); + } + }, + MoreExecutors.directExecutor()); + } + + private ListWebDataStreamsPagedResponse(ListWebDataStreamsPage page) { + super(page, ListWebDataStreamsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListWebDataStreamsPage + extends AbstractPage< + ListWebDataStreamsRequest, + ListWebDataStreamsResponse, + WebDataStream, + ListWebDataStreamsPage> { + + private ListWebDataStreamsPage( + PageContext context, + ListWebDataStreamsResponse response) { + super(context, response); + } + + private static ListWebDataStreamsPage createEmptyPage() { + return new ListWebDataStreamsPage(null, null); + } + + @Override + protected ListWebDataStreamsPage createPage( + PageContext context, + ListWebDataStreamsResponse response) { + return new ListWebDataStreamsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListWebDataStreamsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListWebDataStreamsRequest, + ListWebDataStreamsResponse, + WebDataStream, + ListWebDataStreamsPage, + ListWebDataStreamsFixedSizeCollection> { + + private ListWebDataStreamsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListWebDataStreamsFixedSizeCollection createEmptyCollection() { + return new ListWebDataStreamsFixedSizeCollection(null, 0); + } + + @Override + protected ListWebDataStreamsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListWebDataStreamsFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListIosAppDataStreamsPagedResponse + extends AbstractPagedListResponse< + ListIosAppDataStreamsRequest, + ListIosAppDataStreamsResponse, + IosAppDataStream, + ListIosAppDataStreamsPage, + ListIosAppDataStreamsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListIosAppDataStreamsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + new ApiFunction() { + @Override + public ListIosAppDataStreamsPagedResponse apply(ListIosAppDataStreamsPage input) { + return new ListIosAppDataStreamsPagedResponse(input); + } + }, + MoreExecutors.directExecutor()); + } + + private ListIosAppDataStreamsPagedResponse(ListIosAppDataStreamsPage page) { + super(page, ListIosAppDataStreamsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListIosAppDataStreamsPage + extends AbstractPage< + ListIosAppDataStreamsRequest, + ListIosAppDataStreamsResponse, + IosAppDataStream, + ListIosAppDataStreamsPage> { + + private ListIosAppDataStreamsPage( + PageContext + context, + ListIosAppDataStreamsResponse response) { + super(context, response); + } + + private static ListIosAppDataStreamsPage createEmptyPage() { + return new ListIosAppDataStreamsPage(null, null); + } + + @Override + protected ListIosAppDataStreamsPage createPage( + PageContext + context, + ListIosAppDataStreamsResponse response) { + return new ListIosAppDataStreamsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListIosAppDataStreamsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListIosAppDataStreamsRequest, + ListIosAppDataStreamsResponse, + IosAppDataStream, + ListIosAppDataStreamsPage, + ListIosAppDataStreamsFixedSizeCollection> { + + private ListIosAppDataStreamsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListIosAppDataStreamsFixedSizeCollection createEmptyCollection() { + return new ListIosAppDataStreamsFixedSizeCollection(null, 0); + } + + @Override + protected ListIosAppDataStreamsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListIosAppDataStreamsFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListAndroidAppDataStreamsPagedResponse + extends AbstractPagedListResponse< + ListAndroidAppDataStreamsRequest, + ListAndroidAppDataStreamsResponse, + AndroidAppDataStream, + ListAndroidAppDataStreamsPage, + ListAndroidAppDataStreamsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext< + ListAndroidAppDataStreamsRequest, + ListAndroidAppDataStreamsResponse, + AndroidAppDataStream> + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListAndroidAppDataStreamsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + new ApiFunction() { + @Override + public ListAndroidAppDataStreamsPagedResponse apply( + ListAndroidAppDataStreamsPage input) { + return new ListAndroidAppDataStreamsPagedResponse(input); + } + }, + MoreExecutors.directExecutor()); + } + + private ListAndroidAppDataStreamsPagedResponse(ListAndroidAppDataStreamsPage page) { + super(page, ListAndroidAppDataStreamsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListAndroidAppDataStreamsPage + extends AbstractPage< + ListAndroidAppDataStreamsRequest, + ListAndroidAppDataStreamsResponse, + AndroidAppDataStream, + ListAndroidAppDataStreamsPage> { + + private ListAndroidAppDataStreamsPage( + PageContext< + ListAndroidAppDataStreamsRequest, + ListAndroidAppDataStreamsResponse, + AndroidAppDataStream> + context, + ListAndroidAppDataStreamsResponse response) { + super(context, response); + } + + private static ListAndroidAppDataStreamsPage createEmptyPage() { + return new ListAndroidAppDataStreamsPage(null, null); + } + + @Override + protected ListAndroidAppDataStreamsPage createPage( + PageContext< + ListAndroidAppDataStreamsRequest, + ListAndroidAppDataStreamsResponse, + AndroidAppDataStream> + context, + ListAndroidAppDataStreamsResponse response) { + return new ListAndroidAppDataStreamsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext< + ListAndroidAppDataStreamsRequest, + ListAndroidAppDataStreamsResponse, + AndroidAppDataStream> + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListAndroidAppDataStreamsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListAndroidAppDataStreamsRequest, + ListAndroidAppDataStreamsResponse, + AndroidAppDataStream, + ListAndroidAppDataStreamsPage, + ListAndroidAppDataStreamsFixedSizeCollection> { + + private ListAndroidAppDataStreamsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListAndroidAppDataStreamsFixedSizeCollection createEmptyCollection() { + return new ListAndroidAppDataStreamsFixedSizeCollection(null, 0); + } + + @Override + protected ListAndroidAppDataStreamsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListAndroidAppDataStreamsFixedSizeCollection(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, + new ApiFunction() { + @Override + public ListGoogleAdsLinksPagedResponse apply(ListGoogleAdsLinksPage input) { + return 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); + } + } +} 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 new file mode 100644 index 00000000..f958780b --- /dev/null +++ b/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceSettings.java @@ -0,0 +1,746 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.ListAccountsPagedResponse; +import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListAndroidAppDataStreamsPagedResponse; +import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListGoogleAdsLinksPagedResponse; +import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListIosAppDataStreamsPagedResponse; +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.ListWebDataStreamsPagedResponse; + +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.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: + * + *

+ * 
+ * AnalyticsAdminServiceSettings.Builder analyticsAdminServiceSettingsBuilder =
+ *     AnalyticsAdminServiceSettings.newBuilder();
+ * analyticsAdminServiceSettingsBuilder
+ *     .getAccountSettings()
+ *     .setRetrySettings(
+ *         analyticsAdminServiceSettingsBuilder.getAccountSettings().getRetrySettings().toBuilder()
+ *             .setTotalTimeout(Duration.ofSeconds(30))
+ *             .build());
+ * AnalyticsAdminServiceSettings analyticsAdminServiceSettings = analyticsAdminServiceSettingsBuilder.build();
+ * 
+ * 
+ */ +@Generated("by gapic-generator") +@BetaApi +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 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 getWebDataStream. */ + public UnaryCallSettings getWebDataStreamSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).getWebDataStreamSettings(); + } + + /** Returns the object with the settings used for calls to deleteWebDataStream. */ + public UnaryCallSettings deleteWebDataStreamSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).deleteWebDataStreamSettings(); + } + + /** Returns the object with the settings used for calls to updateWebDataStream. */ + public UnaryCallSettings + updateWebDataStreamSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).updateWebDataStreamSettings(); + } + + /** Returns the object with the settings used for calls to createWebDataStream. */ + public UnaryCallSettings + createWebDataStreamSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).createWebDataStreamSettings(); + } + + /** Returns the object with the settings used for calls to listWebDataStreams. */ + public PagedCallSettings< + ListWebDataStreamsRequest, ListWebDataStreamsResponse, ListWebDataStreamsPagedResponse> + listWebDataStreamsSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).listWebDataStreamsSettings(); + } + + /** Returns the object with the settings used for calls to getIosAppDataStream. */ + public UnaryCallSettings + getIosAppDataStreamSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).getIosAppDataStreamSettings(); + } + + /** Returns the object with the settings used for calls to deleteIosAppDataStream. */ + public UnaryCallSettings deleteIosAppDataStreamSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).deleteIosAppDataStreamSettings(); + } + + /** Returns the object with the settings used for calls to updateIosAppDataStream. */ + public UnaryCallSettings + updateIosAppDataStreamSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).updateIosAppDataStreamSettings(); + } + + /** Returns the object with the settings used for calls to createIosAppDataStream. */ + public UnaryCallSettings + createIosAppDataStreamSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).createIosAppDataStreamSettings(); + } + + /** Returns the object with the settings used for calls to listIosAppDataStreams. */ + public PagedCallSettings< + ListIosAppDataStreamsRequest, + ListIosAppDataStreamsResponse, + ListIosAppDataStreamsPagedResponse> + listIosAppDataStreamsSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).listIosAppDataStreamsSettings(); + } + + /** Returns the object with the settings used for calls to getAndroidAppDataStream. */ + public UnaryCallSettings + getAndroidAppDataStreamSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()) + .getAndroidAppDataStreamSettings(); + } + + /** Returns the object with the settings used for calls to deleteAndroidAppDataStream. */ + public UnaryCallSettings + deleteAndroidAppDataStreamSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()) + .deleteAndroidAppDataStreamSettings(); + } + + /** Returns the object with the settings used for calls to updateAndroidAppDataStream. */ + public UnaryCallSettings + updateAndroidAppDataStreamSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()) + .updateAndroidAppDataStreamSettings(); + } + + /** Returns the object with the settings used for calls to createAndroidAppDataStream. */ + public UnaryCallSettings + createAndroidAppDataStreamSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()) + .createAndroidAppDataStreamSettings(); + } + + /** Returns the object with the settings used for calls to listAndroidAppDataStreams. */ + public PagedCallSettings< + ListAndroidAppDataStreamsRequest, + ListAndroidAppDataStreamsResponse, + ListAndroidAppDataStreamsPagedResponse> + listAndroidAppDataStreamsSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()) + .listAndroidAppDataStreamsSettings(); + } + + /** Returns the object with the settings used for calls to getEnhancedMeasurementSettings. */ + public UnaryCallSettings + getEnhancedMeasurementSettingsSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()) + .getEnhancedMeasurementSettingsSettings(); + } + + /** Returns the object with the settings used for calls to updateEnhancedMeasurementSettings. */ + public UnaryCallSettings + updateEnhancedMeasurementSettingsSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()) + .updateEnhancedMeasurementSettingsSettings(); + } + + /** Returns the object with the settings used for calls to createFirebaseLink. */ + public UnaryCallSettings createFirebaseLinkSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).createFirebaseLinkSettings(); + } + + /** Returns the object with the settings used for calls to updateFirebaseLink. */ + public UnaryCallSettings updateFirebaseLinkSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).updateFirebaseLinkSettings(); + } + + /** 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 UnaryCallSettings + 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(); + } + + 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 ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return AnalyticsAdminServiceStubSettings.defaultGrpcTransportProviderBuilder(); + } + + 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 builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** 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)); + } + + private static Builder createDefault() { + return new Builder(AnalyticsAdminServiceStubSettings.newBuilder()); + } + + protected Builder(AnalyticsAdminServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(AnalyticsAdminServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + public AnalyticsAdminServiceStubSettings.Builder getStubSettingsBuilder() { + return ((AnalyticsAdminServiceStubSettings.Builder) getStubSettings()); + } + + // NEXT_MAJOR_VER: remove 'throws Exception' + /** + * 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) throws Exception { + 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 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 getWebDataStream. */ + public UnaryCallSettings.Builder + getWebDataStreamSettings() { + return getStubSettingsBuilder().getWebDataStreamSettings(); + } + + /** Returns the builder for the settings used for calls to deleteWebDataStream. */ + public UnaryCallSettings.Builder + deleteWebDataStreamSettings() { + return getStubSettingsBuilder().deleteWebDataStreamSettings(); + } + + /** Returns the builder for the settings used for calls to updateWebDataStream. */ + public UnaryCallSettings.Builder + updateWebDataStreamSettings() { + return getStubSettingsBuilder().updateWebDataStreamSettings(); + } + + /** Returns the builder for the settings used for calls to createWebDataStream. */ + public UnaryCallSettings.Builder + createWebDataStreamSettings() { + return getStubSettingsBuilder().createWebDataStreamSettings(); + } + + /** Returns the builder for the settings used for calls to listWebDataStreams. */ + public PagedCallSettings.Builder< + ListWebDataStreamsRequest, ListWebDataStreamsResponse, ListWebDataStreamsPagedResponse> + listWebDataStreamsSettings() { + return getStubSettingsBuilder().listWebDataStreamsSettings(); + } + + /** Returns the builder for the settings used for calls to getIosAppDataStream. */ + public UnaryCallSettings.Builder + getIosAppDataStreamSettings() { + return getStubSettingsBuilder().getIosAppDataStreamSettings(); + } + + /** Returns the builder for the settings used for calls to deleteIosAppDataStream. */ + public UnaryCallSettings.Builder + deleteIosAppDataStreamSettings() { + return getStubSettingsBuilder().deleteIosAppDataStreamSettings(); + } + + /** Returns the builder for the settings used for calls to updateIosAppDataStream. */ + public UnaryCallSettings.Builder + updateIosAppDataStreamSettings() { + return getStubSettingsBuilder().updateIosAppDataStreamSettings(); + } + + /** Returns the builder for the settings used for calls to createIosAppDataStream. */ + public UnaryCallSettings.Builder + createIosAppDataStreamSettings() { + return getStubSettingsBuilder().createIosAppDataStreamSettings(); + } + + /** Returns the builder for the settings used for calls to listIosAppDataStreams. */ + public PagedCallSettings.Builder< + ListIosAppDataStreamsRequest, + ListIosAppDataStreamsResponse, + ListIosAppDataStreamsPagedResponse> + listIosAppDataStreamsSettings() { + return getStubSettingsBuilder().listIosAppDataStreamsSettings(); + } + + /** Returns the builder for the settings used for calls to getAndroidAppDataStream. */ + public UnaryCallSettings.Builder + getAndroidAppDataStreamSettings() { + return getStubSettingsBuilder().getAndroidAppDataStreamSettings(); + } + + /** Returns the builder for the settings used for calls to deleteAndroidAppDataStream. */ + public UnaryCallSettings.Builder + deleteAndroidAppDataStreamSettings() { + return getStubSettingsBuilder().deleteAndroidAppDataStreamSettings(); + } + + /** Returns the builder for the settings used for calls to updateAndroidAppDataStream. */ + public UnaryCallSettings.Builder + updateAndroidAppDataStreamSettings() { + return getStubSettingsBuilder().updateAndroidAppDataStreamSettings(); + } + + /** Returns the builder for the settings used for calls to createAndroidAppDataStream. */ + public UnaryCallSettings.Builder + createAndroidAppDataStreamSettings() { + return getStubSettingsBuilder().createAndroidAppDataStreamSettings(); + } + + /** Returns the builder for the settings used for calls to listAndroidAppDataStreams. */ + public PagedCallSettings.Builder< + ListAndroidAppDataStreamsRequest, + ListAndroidAppDataStreamsResponse, + ListAndroidAppDataStreamsPagedResponse> + listAndroidAppDataStreamsSettings() { + return getStubSettingsBuilder().listAndroidAppDataStreamsSettings(); + } + + /** Returns the builder for the settings used for calls to getEnhancedMeasurementSettings. */ + public UnaryCallSettings.Builder< + GetEnhancedMeasurementSettingsRequest, EnhancedMeasurementSettings> + getEnhancedMeasurementSettingsSettings() { + return getStubSettingsBuilder().getEnhancedMeasurementSettingsSettings(); + } + + /** Returns the builder for the settings used for calls to updateEnhancedMeasurementSettings. */ + public UnaryCallSettings.Builder< + UpdateEnhancedMeasurementSettingsRequest, EnhancedMeasurementSettings> + updateEnhancedMeasurementSettingsSettings() { + return getStubSettingsBuilder().updateEnhancedMeasurementSettingsSettings(); + } + + /** Returns the builder for the settings used for calls to createFirebaseLink. */ + public UnaryCallSettings.Builder + createFirebaseLinkSettings() { + return getStubSettingsBuilder().createFirebaseLinkSettings(); + } + + /** Returns the builder for the settings used for calls to updateFirebaseLink. */ + public UnaryCallSettings.Builder + updateFirebaseLinkSettings() { + return getStubSettingsBuilder().updateFirebaseLinkSettings(); + } + + /** 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 UnaryCallSettings.Builder + 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(); + } + + @Override + public AnalyticsAdminServiceSettings build() throws IOException { + return new AnalyticsAdminServiceSettings(this); + } + } +} 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 new file mode 100644 index 00000000..56bbff90 --- /dev/null +++ b/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/package-info.java @@ -0,0 +1,40 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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 Analytics Admin API. + * + *

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

=========================== AnalyticsAdminServiceClient =========================== + * + *

Service Description: Service Interface for the Analytics Admin API (App+Web). + * + *

Sample for AnalyticsAdminServiceClient: + * + *

+ * 
+ * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) {
+ *   AccountName name = AccountName.of("[ACCOUNT]");
+ *   Account response = analyticsAdminServiceClient.getAccount(name);
+ * }
+ * 
+ * 
+ */ +@Generated("by gapic-generator") +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 new file mode 100644 index 00000000..af5f81e4 --- /dev/null +++ b/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStub.java @@ -0,0 +1,368 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.ListAccountsPagedResponse; +import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListAndroidAppDataStreamsPagedResponse; +import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListGoogleAdsLinksPagedResponse; +import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListIosAppDataStreamsPagedResponse; +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.ListWebDataStreamsPagedResponse; + +import com.google.analytics.admin.v1alpha.Account; +import com.google.analytics.admin.v1alpha.AndroidAppDataStream; +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.CreateAndroidAppDataStreamRequest; +import com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest; +import com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest; +import com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest; +import com.google.analytics.admin.v1alpha.CreatePropertyRequest; +import com.google.analytics.admin.v1alpha.CreateUserLinkRequest; +import com.google.analytics.admin.v1alpha.CreateWebDataStreamRequest; +import com.google.analytics.admin.v1alpha.DataSharingSettings; +import com.google.analytics.admin.v1alpha.DeleteAccountRequest; +import com.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest; +import com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest; +import com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest; +import com.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest; +import com.google.analytics.admin.v1alpha.DeletePropertyRequest; +import com.google.analytics.admin.v1alpha.DeleteUserLinkRequest; +import com.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest; +import com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings; +import com.google.analytics.admin.v1alpha.FirebaseLink; +import com.google.analytics.admin.v1alpha.GetAccountRequest; +import com.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest; +import com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest; +import com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest; +import com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest; +import com.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest; +import com.google.analytics.admin.v1alpha.GetPropertyRequest; +import com.google.analytics.admin.v1alpha.GetUserLinkRequest; +import com.google.analytics.admin.v1alpha.GetWebDataStreamRequest; +import com.google.analytics.admin.v1alpha.GlobalSiteTag; +import com.google.analytics.admin.v1alpha.GoogleAdsLink; +import com.google.analytics.admin.v1alpha.IosAppDataStream; +import com.google.analytics.admin.v1alpha.ListAccountsRequest; +import com.google.analytics.admin.v1alpha.ListAccountsResponse; +import com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest; +import com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse; +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.ListIosAppDataStreamsRequest; +import com.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse; +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.ListWebDataStreamsRequest; +import com.google.analytics.admin.v1alpha.ListWebDataStreamsResponse; +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.UpdateAccountRequest; +import com.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest; +import com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest; +import com.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest; +import com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest; +import com.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest; +import com.google.analytics.admin.v1alpha.UpdatePropertyRequest; +import com.google.analytics.admin.v1alpha.UpdateUserLinkRequest; +import com.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest; +import com.google.analytics.admin.v1alpha.UserLink; +import com.google.analytics.admin.v1alpha.WebDataStream; +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 Analytics Admin API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator") +@BetaApi("A restructuring of stub classes is planned, so this may break in the future") +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 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 getWebDataStreamCallable() { + throw new UnsupportedOperationException("Not implemented: getWebDataStreamCallable()"); + } + + public UnaryCallable deleteWebDataStreamCallable() { + throw new UnsupportedOperationException("Not implemented: deleteWebDataStreamCallable()"); + } + + public UnaryCallable updateWebDataStreamCallable() { + throw new UnsupportedOperationException("Not implemented: updateWebDataStreamCallable()"); + } + + public UnaryCallable createWebDataStreamCallable() { + throw new UnsupportedOperationException("Not implemented: createWebDataStreamCallable()"); + } + + public UnaryCallable + listWebDataStreamsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listWebDataStreamsPagedCallable()"); + } + + public UnaryCallable + listWebDataStreamsCallable() { + throw new UnsupportedOperationException("Not implemented: listWebDataStreamsCallable()"); + } + + public UnaryCallable getIosAppDataStreamCallable() { + throw new UnsupportedOperationException("Not implemented: getIosAppDataStreamCallable()"); + } + + public UnaryCallable deleteIosAppDataStreamCallable() { + throw new UnsupportedOperationException("Not implemented: deleteIosAppDataStreamCallable()"); + } + + public UnaryCallable + updateIosAppDataStreamCallable() { + throw new UnsupportedOperationException("Not implemented: updateIosAppDataStreamCallable()"); + } + + public UnaryCallable + createIosAppDataStreamCallable() { + throw new UnsupportedOperationException("Not implemented: createIosAppDataStreamCallable()"); + } + + public UnaryCallable + listIosAppDataStreamsPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: listIosAppDataStreamsPagedCallable()"); + } + + public UnaryCallable + listIosAppDataStreamsCallable() { + throw new UnsupportedOperationException("Not implemented: listIosAppDataStreamsCallable()"); + } + + public UnaryCallable + getAndroidAppDataStreamCallable() { + throw new UnsupportedOperationException("Not implemented: getAndroidAppDataStreamCallable()"); + } + + public UnaryCallable + deleteAndroidAppDataStreamCallable() { + throw new UnsupportedOperationException( + "Not implemented: deleteAndroidAppDataStreamCallable()"); + } + + public UnaryCallable + updateAndroidAppDataStreamCallable() { + throw new UnsupportedOperationException( + "Not implemented: updateAndroidAppDataStreamCallable()"); + } + + public UnaryCallable + createAndroidAppDataStreamCallable() { + throw new UnsupportedOperationException( + "Not implemented: createAndroidAppDataStreamCallable()"); + } + + public UnaryCallable + listAndroidAppDataStreamsPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: listAndroidAppDataStreamsPagedCallable()"); + } + + public UnaryCallable + listAndroidAppDataStreamsCallable() { + throw new UnsupportedOperationException("Not implemented: listAndroidAppDataStreamsCallable()"); + } + + public UnaryCallable + getEnhancedMeasurementSettingsCallable() { + throw new UnsupportedOperationException( + "Not implemented: getEnhancedMeasurementSettingsCallable()"); + } + + public UnaryCallable + updateEnhancedMeasurementSettingsCallable() { + throw new UnsupportedOperationException( + "Not implemented: updateEnhancedMeasurementSettingsCallable()"); + } + + public UnaryCallable createFirebaseLinkCallable() { + throw new UnsupportedOperationException("Not implemented: createFirebaseLinkCallable()"); + } + + public UnaryCallable updateFirebaseLinkCallable() { + throw new UnsupportedOperationException("Not implemented: updateFirebaseLinkCallable()"); + } + + public UnaryCallable deleteFirebaseLinkCallable() { + throw new UnsupportedOperationException("Not implemented: deleteFirebaseLinkCallable()"); + } + + 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()"); + } + + @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 new file mode 100644 index 00000000..ce955324 --- /dev/null +++ b/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStubSettings.java @@ -0,0 +1,2111 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.ListAccountsPagedResponse; +import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListAndroidAppDataStreamsPagedResponse; +import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListGoogleAdsLinksPagedResponse; +import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListIosAppDataStreamsPagedResponse; +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.ListWebDataStreamsPagedResponse; + +import com.google.analytics.admin.v1alpha.Account; +import com.google.analytics.admin.v1alpha.AndroidAppDataStream; +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.CreateAndroidAppDataStreamRequest; +import com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest; +import com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest; +import com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest; +import com.google.analytics.admin.v1alpha.CreatePropertyRequest; +import com.google.analytics.admin.v1alpha.CreateUserLinkRequest; +import com.google.analytics.admin.v1alpha.CreateWebDataStreamRequest; +import com.google.analytics.admin.v1alpha.DataSharingSettings; +import com.google.analytics.admin.v1alpha.DeleteAccountRequest; +import com.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest; +import com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest; +import com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest; +import com.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest; +import com.google.analytics.admin.v1alpha.DeletePropertyRequest; +import com.google.analytics.admin.v1alpha.DeleteUserLinkRequest; +import com.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest; +import com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings; +import com.google.analytics.admin.v1alpha.FirebaseLink; +import com.google.analytics.admin.v1alpha.GetAccountRequest; +import com.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest; +import com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest; +import com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest; +import com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest; +import com.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest; +import com.google.analytics.admin.v1alpha.GetPropertyRequest; +import com.google.analytics.admin.v1alpha.GetUserLinkRequest; +import com.google.analytics.admin.v1alpha.GetWebDataStreamRequest; +import com.google.analytics.admin.v1alpha.GlobalSiteTag; +import com.google.analytics.admin.v1alpha.GoogleAdsLink; +import com.google.analytics.admin.v1alpha.IosAppDataStream; +import com.google.analytics.admin.v1alpha.ListAccountsRequest; +import com.google.analytics.admin.v1alpha.ListAccountsResponse; +import com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest; +import com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse; +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.ListIosAppDataStreamsRequest; +import com.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse; +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.ListWebDataStreamsRequest; +import com.google.analytics.admin.v1alpha.ListWebDataStreamsResponse; +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.UpdateAccountRequest; +import com.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest; +import com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest; +import com.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest; +import com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest; +import com.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest; +import com.google.analytics.admin.v1alpha.UpdatePropertyRequest; +import com.google.analytics.admin.v1alpha.UpdateUserLinkRequest; +import com.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest; +import com.google.analytics.admin.v1alpha.UserLink; +import com.google.analytics.admin.v1alpha.WebDataStream; +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.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: + * + *

+ * 
+ * AnalyticsAdminServiceStubSettings.Builder analyticsAdminServiceSettingsBuilder =
+ *     AnalyticsAdminServiceStubSettings.newBuilder();
+ * analyticsAdminServiceSettingsBuilder
+ *     .getAccountSettings()
+ *     .setRetrySettings(
+ *         analyticsAdminServiceSettingsBuilder.getAccountSettings().getRetrySettings().toBuilder()
+ *             .setTotalTimeout(Duration.ofSeconds(30))
+ *             .build());
+ * AnalyticsAdminServiceStubSettings analyticsAdminServiceSettings = analyticsAdminServiceSettingsBuilder.build();
+ * 
+ * 
+ */ +@Generated("by gapic-generator") +@BetaApi +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 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 getWebDataStreamSettings; + private final UnaryCallSettings deleteWebDataStreamSettings; + private final UnaryCallSettings + updateWebDataStreamSettings; + private final UnaryCallSettings + createWebDataStreamSettings; + private final PagedCallSettings< + ListWebDataStreamsRequest, ListWebDataStreamsResponse, ListWebDataStreamsPagedResponse> + listWebDataStreamsSettings; + private final UnaryCallSettings + getIosAppDataStreamSettings; + private final UnaryCallSettings + deleteIosAppDataStreamSettings; + private final UnaryCallSettings + updateIosAppDataStreamSettings; + private final UnaryCallSettings + createIosAppDataStreamSettings; + private final PagedCallSettings< + ListIosAppDataStreamsRequest, + ListIosAppDataStreamsResponse, + ListIosAppDataStreamsPagedResponse> + listIosAppDataStreamsSettings; + private final UnaryCallSettings + getAndroidAppDataStreamSettings; + private final UnaryCallSettings + deleteAndroidAppDataStreamSettings; + private final UnaryCallSettings + updateAndroidAppDataStreamSettings; + private final UnaryCallSettings + createAndroidAppDataStreamSettings; + private final PagedCallSettings< + ListAndroidAppDataStreamsRequest, + ListAndroidAppDataStreamsResponse, + ListAndroidAppDataStreamsPagedResponse> + listAndroidAppDataStreamsSettings; + private final UnaryCallSettings< + GetEnhancedMeasurementSettingsRequest, EnhancedMeasurementSettings> + getEnhancedMeasurementSettingsSettings; + private final UnaryCallSettings< + UpdateEnhancedMeasurementSettingsRequest, EnhancedMeasurementSettings> + updateEnhancedMeasurementSettingsSettings; + private final UnaryCallSettings + createFirebaseLinkSettings; + private final UnaryCallSettings + updateFirebaseLinkSettings; + private final UnaryCallSettings deleteFirebaseLinkSettings; + private final UnaryCallSettings + 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; + + /** 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 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 getWebDataStream. */ + public UnaryCallSettings getWebDataStreamSettings() { + return getWebDataStreamSettings; + } + + /** Returns the object with the settings used for calls to deleteWebDataStream. */ + public UnaryCallSettings deleteWebDataStreamSettings() { + return deleteWebDataStreamSettings; + } + + /** Returns the object with the settings used for calls to updateWebDataStream. */ + public UnaryCallSettings + updateWebDataStreamSettings() { + return updateWebDataStreamSettings; + } + + /** Returns the object with the settings used for calls to createWebDataStream. */ + public UnaryCallSettings + createWebDataStreamSettings() { + return createWebDataStreamSettings; + } + + /** Returns the object with the settings used for calls to listWebDataStreams. */ + public PagedCallSettings< + ListWebDataStreamsRequest, ListWebDataStreamsResponse, ListWebDataStreamsPagedResponse> + listWebDataStreamsSettings() { + return listWebDataStreamsSettings; + } + + /** Returns the object with the settings used for calls to getIosAppDataStream. */ + public UnaryCallSettings + getIosAppDataStreamSettings() { + return getIosAppDataStreamSettings; + } + + /** Returns the object with the settings used for calls to deleteIosAppDataStream. */ + public UnaryCallSettings deleteIosAppDataStreamSettings() { + return deleteIosAppDataStreamSettings; + } + + /** Returns the object with the settings used for calls to updateIosAppDataStream. */ + public UnaryCallSettings + updateIosAppDataStreamSettings() { + return updateIosAppDataStreamSettings; + } + + /** Returns the object with the settings used for calls to createIosAppDataStream. */ + public UnaryCallSettings + createIosAppDataStreamSettings() { + return createIosAppDataStreamSettings; + } + + /** Returns the object with the settings used for calls to listIosAppDataStreams. */ + public PagedCallSettings< + ListIosAppDataStreamsRequest, + ListIosAppDataStreamsResponse, + ListIosAppDataStreamsPagedResponse> + listIosAppDataStreamsSettings() { + return listIosAppDataStreamsSettings; + } + + /** Returns the object with the settings used for calls to getAndroidAppDataStream. */ + public UnaryCallSettings + getAndroidAppDataStreamSettings() { + return getAndroidAppDataStreamSettings; + } + + /** Returns the object with the settings used for calls to deleteAndroidAppDataStream. */ + public UnaryCallSettings + deleteAndroidAppDataStreamSettings() { + return deleteAndroidAppDataStreamSettings; + } + + /** Returns the object with the settings used for calls to updateAndroidAppDataStream. */ + public UnaryCallSettings + updateAndroidAppDataStreamSettings() { + return updateAndroidAppDataStreamSettings; + } + + /** Returns the object with the settings used for calls to createAndroidAppDataStream. */ + public UnaryCallSettings + createAndroidAppDataStreamSettings() { + return createAndroidAppDataStreamSettings; + } + + /** Returns the object with the settings used for calls to listAndroidAppDataStreams. */ + public PagedCallSettings< + ListAndroidAppDataStreamsRequest, + ListAndroidAppDataStreamsResponse, + ListAndroidAppDataStreamsPagedResponse> + listAndroidAppDataStreamsSettings() { + return listAndroidAppDataStreamsSettings; + } + + /** Returns the object with the settings used for calls to getEnhancedMeasurementSettings. */ + public UnaryCallSettings + getEnhancedMeasurementSettingsSettings() { + return getEnhancedMeasurementSettingsSettings; + } + + /** Returns the object with the settings used for calls to updateEnhancedMeasurementSettings. */ + public UnaryCallSettings + updateEnhancedMeasurementSettingsSettings() { + return updateEnhancedMeasurementSettingsSettings; + } + + /** 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 updateFirebaseLink. */ + public UnaryCallSettings updateFirebaseLinkSettings() { + return updateFirebaseLinkSettings; + } + + /** 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 UnaryCallSettings + 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; + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public AnalyticsAdminServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcAnalyticsAdminServiceStub.create(this); + } else { + throw new UnsupportedOperationException( + "Transport not supported: " + 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 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); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder() + .setMaxInboundMessageSize(Integer.MAX_VALUE); + } + + 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 defaultApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(AnalyticsAdminServiceStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** 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(); + 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(); + getWebDataStreamSettings = settingsBuilder.getWebDataStreamSettings().build(); + deleteWebDataStreamSettings = settingsBuilder.deleteWebDataStreamSettings().build(); + updateWebDataStreamSettings = settingsBuilder.updateWebDataStreamSettings().build(); + createWebDataStreamSettings = settingsBuilder.createWebDataStreamSettings().build(); + listWebDataStreamsSettings = settingsBuilder.listWebDataStreamsSettings().build(); + getIosAppDataStreamSettings = settingsBuilder.getIosAppDataStreamSettings().build(); + deleteIosAppDataStreamSettings = settingsBuilder.deleteIosAppDataStreamSettings().build(); + updateIosAppDataStreamSettings = settingsBuilder.updateIosAppDataStreamSettings().build(); + createIosAppDataStreamSettings = settingsBuilder.createIosAppDataStreamSettings().build(); + listIosAppDataStreamsSettings = settingsBuilder.listIosAppDataStreamsSettings().build(); + getAndroidAppDataStreamSettings = settingsBuilder.getAndroidAppDataStreamSettings().build(); + deleteAndroidAppDataStreamSettings = + settingsBuilder.deleteAndroidAppDataStreamSettings().build(); + updateAndroidAppDataStreamSettings = + settingsBuilder.updateAndroidAppDataStreamSettings().build(); + createAndroidAppDataStreamSettings = + settingsBuilder.createAndroidAppDataStreamSettings().build(); + listAndroidAppDataStreamsSettings = settingsBuilder.listAndroidAppDataStreamsSettings().build(); + getEnhancedMeasurementSettingsSettings = + settingsBuilder.getEnhancedMeasurementSettingsSettings().build(); + updateEnhancedMeasurementSettingsSettings = + settingsBuilder.updateEnhancedMeasurementSettingsSettings().build(); + createFirebaseLinkSettings = settingsBuilder.createFirebaseLinkSettings().build(); + updateFirebaseLinkSettings = settingsBuilder.updateFirebaseLinkSettings().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(); + } + + 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 + ? payload.getAccountsList() + : ImmutableList.of(); + } + }; + + 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 + ? payload.getPropertiesList() + : ImmutableList.of(); + } + }; + + 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 + ? payload.getUserLinksList() + : ImmutableList.of(); + } + }; + + 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 + ? payload.getUserLinksList() + : ImmutableList.of(); + } + }; + + private static final PagedListDescriptor< + ListWebDataStreamsRequest, ListWebDataStreamsResponse, WebDataStream> + LIST_WEB_DATA_STREAMS_PAGE_STR_DESC = + new PagedListDescriptor< + ListWebDataStreamsRequest, ListWebDataStreamsResponse, WebDataStream>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListWebDataStreamsRequest injectToken( + ListWebDataStreamsRequest payload, String token) { + return ListWebDataStreamsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListWebDataStreamsRequest injectPageSize( + ListWebDataStreamsRequest payload, int pageSize) { + return ListWebDataStreamsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListWebDataStreamsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListWebDataStreamsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListWebDataStreamsResponse payload) { + return payload.getWebDataStreamsList() != null + ? payload.getWebDataStreamsList() + : ImmutableList.of(); + } + }; + + private static final PagedListDescriptor< + ListIosAppDataStreamsRequest, ListIosAppDataStreamsResponse, IosAppDataStream> + LIST_IOS_APP_DATA_STREAMS_PAGE_STR_DESC = + new PagedListDescriptor< + ListIosAppDataStreamsRequest, ListIosAppDataStreamsResponse, IosAppDataStream>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListIosAppDataStreamsRequest injectToken( + ListIosAppDataStreamsRequest payload, String token) { + return ListIosAppDataStreamsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListIosAppDataStreamsRequest injectPageSize( + ListIosAppDataStreamsRequest payload, int pageSize) { + return ListIosAppDataStreamsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListIosAppDataStreamsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListIosAppDataStreamsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListIosAppDataStreamsResponse payload) { + return payload.getIosAppDataStreamsList() != null + ? payload.getIosAppDataStreamsList() + : ImmutableList.of(); + } + }; + + private static final PagedListDescriptor< + ListAndroidAppDataStreamsRequest, ListAndroidAppDataStreamsResponse, AndroidAppDataStream> + LIST_ANDROID_APP_DATA_STREAMS_PAGE_STR_DESC = + new PagedListDescriptor< + ListAndroidAppDataStreamsRequest, + ListAndroidAppDataStreamsResponse, + AndroidAppDataStream>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListAndroidAppDataStreamsRequest injectToken( + ListAndroidAppDataStreamsRequest payload, String token) { + return ListAndroidAppDataStreamsRequest.newBuilder(payload) + .setPageToken(token) + .build(); + } + + @Override + public ListAndroidAppDataStreamsRequest injectPageSize( + ListAndroidAppDataStreamsRequest payload, int pageSize) { + return ListAndroidAppDataStreamsRequest.newBuilder(payload) + .setPageSize(pageSize) + .build(); + } + + @Override + public Integer extractPageSize(ListAndroidAppDataStreamsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListAndroidAppDataStreamsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListAndroidAppDataStreamsResponse payload) { + return payload.getAndroidAppDataStreamsList() != null + ? payload.getAndroidAppDataStreamsList() + : ImmutableList.of(); + } + }; + + 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 + ? payload.getGoogleAdsLinksList() + : ImmutableList.of(); + } + }; + + 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< + 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< + ListWebDataStreamsRequest, ListWebDataStreamsResponse, ListWebDataStreamsPagedResponse> + LIST_WEB_DATA_STREAMS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListWebDataStreamsRequest, + ListWebDataStreamsResponse, + ListWebDataStreamsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListWebDataStreamsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext + pageContext = + PageContext.create( + callable, LIST_WEB_DATA_STREAMS_PAGE_STR_DESC, request, context); + return ListWebDataStreamsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListIosAppDataStreamsRequest, + ListIosAppDataStreamsResponse, + ListIosAppDataStreamsPagedResponse> + LIST_IOS_APP_DATA_STREAMS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListIosAppDataStreamsRequest, + ListIosAppDataStreamsResponse, + ListIosAppDataStreamsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListIosAppDataStreamsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListIosAppDataStreamsRequest, ListIosAppDataStreamsResponse, IosAppDataStream> + pageContext = + PageContext.create( + callable, LIST_IOS_APP_DATA_STREAMS_PAGE_STR_DESC, request, context); + return ListIosAppDataStreamsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListAndroidAppDataStreamsRequest, + ListAndroidAppDataStreamsResponse, + ListAndroidAppDataStreamsPagedResponse> + LIST_ANDROID_APP_DATA_STREAMS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListAndroidAppDataStreamsRequest, + ListAndroidAppDataStreamsResponse, + ListAndroidAppDataStreamsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable + callable, + ListAndroidAppDataStreamsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListAndroidAppDataStreamsRequest, + ListAndroidAppDataStreamsResponse, + AndroidAppDataStream> + pageContext = + PageContext.create( + callable, LIST_ANDROID_APP_DATA_STREAMS_PAGE_STR_DESC, request, context); + return ListAndroidAppDataStreamsPagedResponse.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); + } + }; + + /** 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 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 + getWebDataStreamSettings; + private final UnaryCallSettings.Builder + deleteWebDataStreamSettings; + private final UnaryCallSettings.Builder + updateWebDataStreamSettings; + private final UnaryCallSettings.Builder + createWebDataStreamSettings; + private final PagedCallSettings.Builder< + ListWebDataStreamsRequest, ListWebDataStreamsResponse, ListWebDataStreamsPagedResponse> + listWebDataStreamsSettings; + private final UnaryCallSettings.Builder + getIosAppDataStreamSettings; + private final UnaryCallSettings.Builder + deleteIosAppDataStreamSettings; + private final UnaryCallSettings.Builder + updateIosAppDataStreamSettings; + private final UnaryCallSettings.Builder + createIosAppDataStreamSettings; + private final PagedCallSettings.Builder< + ListIosAppDataStreamsRequest, + ListIosAppDataStreamsResponse, + ListIosAppDataStreamsPagedResponse> + listIosAppDataStreamsSettings; + private final UnaryCallSettings.Builder + getAndroidAppDataStreamSettings; + private final UnaryCallSettings.Builder + deleteAndroidAppDataStreamSettings; + private final UnaryCallSettings.Builder + updateAndroidAppDataStreamSettings; + private final UnaryCallSettings.Builder + createAndroidAppDataStreamSettings; + private final PagedCallSettings.Builder< + ListAndroidAppDataStreamsRequest, + ListAndroidAppDataStreamsResponse, + ListAndroidAppDataStreamsPagedResponse> + listAndroidAppDataStreamsSettings; + private final UnaryCallSettings.Builder< + GetEnhancedMeasurementSettingsRequest, EnhancedMeasurementSettings> + getEnhancedMeasurementSettingsSettings; + private final UnaryCallSettings.Builder< + UpdateEnhancedMeasurementSettingsRequest, EnhancedMeasurementSettings> + updateEnhancedMeasurementSettingsSettings; + private final UnaryCallSettings.Builder + createFirebaseLinkSettings; + private final UnaryCallSettings.Builder + updateFirebaseLinkSettings; + private final UnaryCallSettings.Builder + deleteFirebaseLinkSettings; + private final UnaryCallSettings.Builder + 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 static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put( + "retry_policy_1_codes", + ImmutableSet.copyOf( + Lists.newArrayList( + StatusCode.Code.UNAVAILABLE, StatusCode.Code.UNKNOWN))); + definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); + definitions.put( + "no_retry_1_codes", ImmutableSet.copyOf(Lists.newArrayList())); + 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_1_params", settings); + settings = RetrySettings.newBuilder().setRpcTimeoutMultiplier(1.0).build(); + definitions.put("no_retry_params", settings); + 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); + 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(); + + 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(); + + getWebDataStreamSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + deleteWebDataStreamSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + updateWebDataStreamSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + createWebDataStreamSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + listWebDataStreamsSettings = + PagedCallSettings.newBuilder(LIST_WEB_DATA_STREAMS_PAGE_STR_FACT); + + getIosAppDataStreamSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + deleteIosAppDataStreamSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + updateIosAppDataStreamSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + createIosAppDataStreamSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + listIosAppDataStreamsSettings = + PagedCallSettings.newBuilder(LIST_IOS_APP_DATA_STREAMS_PAGE_STR_FACT); + + getAndroidAppDataStreamSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + deleteAndroidAppDataStreamSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + updateAndroidAppDataStreamSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + createAndroidAppDataStreamSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + listAndroidAppDataStreamsSettings = + PagedCallSettings.newBuilder(LIST_ANDROID_APP_DATA_STREAMS_PAGE_STR_FACT); + + getEnhancedMeasurementSettingsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + updateEnhancedMeasurementSettingsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + createFirebaseLinkSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + updateFirebaseLinkSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + deleteFirebaseLinkSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + listFirebaseLinksSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + 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(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + getAccountSettings, + listAccountsSettings, + deleteAccountSettings, + updateAccountSettings, + provisionAccountTicketSettings, + getPropertySettings, + listPropertiesSettings, + createPropertySettings, + deletePropertySettings, + updatePropertySettings, + getUserLinkSettings, + batchGetUserLinksSettings, + listUserLinksSettings, + auditUserLinksSettings, + createUserLinkSettings, + batchCreateUserLinksSettings, + updateUserLinkSettings, + batchUpdateUserLinksSettings, + deleteUserLinkSettings, + batchDeleteUserLinksSettings, + getWebDataStreamSettings, + deleteWebDataStreamSettings, + updateWebDataStreamSettings, + createWebDataStreamSettings, + listWebDataStreamsSettings, + getIosAppDataStreamSettings, + deleteIosAppDataStreamSettings, + updateIosAppDataStreamSettings, + createIosAppDataStreamSettings, + listIosAppDataStreamsSettings, + getAndroidAppDataStreamSettings, + deleteAndroidAppDataStreamSettings, + updateAndroidAppDataStreamSettings, + createAndroidAppDataStreamSettings, + listAndroidAppDataStreamsSettings, + getEnhancedMeasurementSettingsSettings, + updateEnhancedMeasurementSettingsSettings, + createFirebaseLinkSettings, + updateFirebaseLinkSettings, + deleteFirebaseLinkSettings, + listFirebaseLinksSettings, + getGlobalSiteTagSettings, + createGoogleAdsLinkSettings, + updateGoogleAdsLinkSettings, + deleteGoogleAdsLinkSettings, + listGoogleAdsLinksSettings, + getDataSharingSettingsSettings); + + initDefaults(this); + } + + private static Builder createDefault() { + Builder builder = new Builder((ClientContext) null); + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + 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 + .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 + .getUserLinkSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .batchGetUserLinksSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .listUserLinksSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .auditUserLinksSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .createUserLinkSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .batchCreateUserLinksSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .updateUserLinkSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .batchUpdateUserLinksSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .deleteUserLinkSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .batchDeleteUserLinksSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .getWebDataStreamSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .deleteWebDataStreamSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); + + builder + .updateWebDataStreamSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .createWebDataStreamSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .listWebDataStreamsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .getIosAppDataStreamSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .deleteIosAppDataStreamSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .updateIosAppDataStreamSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .createIosAppDataStreamSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .listIosAppDataStreamsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .getAndroidAppDataStreamSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .deleteAndroidAppDataStreamSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .updateAndroidAppDataStreamSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .createAndroidAppDataStreamSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .listAndroidAppDataStreamsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .getEnhancedMeasurementSettingsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .updateEnhancedMeasurementSettingsSettings() + .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 + .updateFirebaseLinkSettings() + .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 + .getGlobalSiteTagSettings() + .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_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); + + return builder; + } + + 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(); + 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(); + getWebDataStreamSettings = settings.getWebDataStreamSettings.toBuilder(); + deleteWebDataStreamSettings = settings.deleteWebDataStreamSettings.toBuilder(); + updateWebDataStreamSettings = settings.updateWebDataStreamSettings.toBuilder(); + createWebDataStreamSettings = settings.createWebDataStreamSettings.toBuilder(); + listWebDataStreamsSettings = settings.listWebDataStreamsSettings.toBuilder(); + getIosAppDataStreamSettings = settings.getIosAppDataStreamSettings.toBuilder(); + deleteIosAppDataStreamSettings = settings.deleteIosAppDataStreamSettings.toBuilder(); + updateIosAppDataStreamSettings = settings.updateIosAppDataStreamSettings.toBuilder(); + createIosAppDataStreamSettings = settings.createIosAppDataStreamSettings.toBuilder(); + listIosAppDataStreamsSettings = settings.listIosAppDataStreamsSettings.toBuilder(); + getAndroidAppDataStreamSettings = settings.getAndroidAppDataStreamSettings.toBuilder(); + deleteAndroidAppDataStreamSettings = settings.deleteAndroidAppDataStreamSettings.toBuilder(); + updateAndroidAppDataStreamSettings = settings.updateAndroidAppDataStreamSettings.toBuilder(); + createAndroidAppDataStreamSettings = settings.createAndroidAppDataStreamSettings.toBuilder(); + listAndroidAppDataStreamsSettings = settings.listAndroidAppDataStreamsSettings.toBuilder(); + getEnhancedMeasurementSettingsSettings = + settings.getEnhancedMeasurementSettingsSettings.toBuilder(); + updateEnhancedMeasurementSettingsSettings = + settings.updateEnhancedMeasurementSettingsSettings.toBuilder(); + createFirebaseLinkSettings = settings.createFirebaseLinkSettings.toBuilder(); + updateFirebaseLinkSettings = settings.updateFirebaseLinkSettings.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(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + getAccountSettings, + listAccountsSettings, + deleteAccountSettings, + updateAccountSettings, + provisionAccountTicketSettings, + getPropertySettings, + listPropertiesSettings, + createPropertySettings, + deletePropertySettings, + updatePropertySettings, + getUserLinkSettings, + batchGetUserLinksSettings, + listUserLinksSettings, + auditUserLinksSettings, + createUserLinkSettings, + batchCreateUserLinksSettings, + updateUserLinkSettings, + batchUpdateUserLinksSettings, + deleteUserLinkSettings, + batchDeleteUserLinksSettings, + getWebDataStreamSettings, + deleteWebDataStreamSettings, + updateWebDataStreamSettings, + createWebDataStreamSettings, + listWebDataStreamsSettings, + getIosAppDataStreamSettings, + deleteIosAppDataStreamSettings, + updateIosAppDataStreamSettings, + createIosAppDataStreamSettings, + listIosAppDataStreamsSettings, + getAndroidAppDataStreamSettings, + deleteAndroidAppDataStreamSettings, + updateAndroidAppDataStreamSettings, + createAndroidAppDataStreamSettings, + listAndroidAppDataStreamsSettings, + getEnhancedMeasurementSettingsSettings, + updateEnhancedMeasurementSettingsSettings, + createFirebaseLinkSettings, + updateFirebaseLinkSettings, + deleteFirebaseLinkSettings, + listFirebaseLinksSettings, + getGlobalSiteTagSettings, + createGoogleAdsLinkSettings, + updateGoogleAdsLinkSettings, + deleteGoogleAdsLinkSettings, + listGoogleAdsLinksSettings, + getDataSharingSettingsSettings); + } + + // NEXT_MAJOR_VER: remove 'throws Exception' + /** + * 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) throws Exception { + 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 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 getWebDataStream. */ + public UnaryCallSettings.Builder + getWebDataStreamSettings() { + return getWebDataStreamSettings; + } + + /** Returns the builder for the settings used for calls to deleteWebDataStream. */ + public UnaryCallSettings.Builder + deleteWebDataStreamSettings() { + return deleteWebDataStreamSettings; + } + + /** Returns the builder for the settings used for calls to updateWebDataStream. */ + public UnaryCallSettings.Builder + updateWebDataStreamSettings() { + return updateWebDataStreamSettings; + } + + /** Returns the builder for the settings used for calls to createWebDataStream. */ + public UnaryCallSettings.Builder + createWebDataStreamSettings() { + return createWebDataStreamSettings; + } + + /** Returns the builder for the settings used for calls to listWebDataStreams. */ + public PagedCallSettings.Builder< + ListWebDataStreamsRequest, ListWebDataStreamsResponse, ListWebDataStreamsPagedResponse> + listWebDataStreamsSettings() { + return listWebDataStreamsSettings; + } + + /** Returns the builder for the settings used for calls to getIosAppDataStream. */ + public UnaryCallSettings.Builder + getIosAppDataStreamSettings() { + return getIosAppDataStreamSettings; + } + + /** Returns the builder for the settings used for calls to deleteIosAppDataStream. */ + public UnaryCallSettings.Builder + deleteIosAppDataStreamSettings() { + return deleteIosAppDataStreamSettings; + } + + /** Returns the builder for the settings used for calls to updateIosAppDataStream. */ + public UnaryCallSettings.Builder + updateIosAppDataStreamSettings() { + return updateIosAppDataStreamSettings; + } + + /** Returns the builder for the settings used for calls to createIosAppDataStream. */ + public UnaryCallSettings.Builder + createIosAppDataStreamSettings() { + return createIosAppDataStreamSettings; + } + + /** Returns the builder for the settings used for calls to listIosAppDataStreams. */ + public PagedCallSettings.Builder< + ListIosAppDataStreamsRequest, + ListIosAppDataStreamsResponse, + ListIosAppDataStreamsPagedResponse> + listIosAppDataStreamsSettings() { + return listIosAppDataStreamsSettings; + } + + /** Returns the builder for the settings used for calls to getAndroidAppDataStream. */ + public UnaryCallSettings.Builder + getAndroidAppDataStreamSettings() { + return getAndroidAppDataStreamSettings; + } + + /** Returns the builder for the settings used for calls to deleteAndroidAppDataStream. */ + public UnaryCallSettings.Builder + deleteAndroidAppDataStreamSettings() { + return deleteAndroidAppDataStreamSettings; + } + + /** Returns the builder for the settings used for calls to updateAndroidAppDataStream. */ + public UnaryCallSettings.Builder + updateAndroidAppDataStreamSettings() { + return updateAndroidAppDataStreamSettings; + } + + /** Returns the builder for the settings used for calls to createAndroidAppDataStream. */ + public UnaryCallSettings.Builder + createAndroidAppDataStreamSettings() { + return createAndroidAppDataStreamSettings; + } + + /** Returns the builder for the settings used for calls to listAndroidAppDataStreams. */ + public PagedCallSettings.Builder< + ListAndroidAppDataStreamsRequest, + ListAndroidAppDataStreamsResponse, + ListAndroidAppDataStreamsPagedResponse> + listAndroidAppDataStreamsSettings() { + return listAndroidAppDataStreamsSettings; + } + + /** Returns the builder for the settings used for calls to getEnhancedMeasurementSettings. */ + public UnaryCallSettings.Builder< + GetEnhancedMeasurementSettingsRequest, EnhancedMeasurementSettings> + getEnhancedMeasurementSettingsSettings() { + return getEnhancedMeasurementSettingsSettings; + } + + /** Returns the builder for the settings used for calls to updateEnhancedMeasurementSettings. */ + public UnaryCallSettings.Builder< + UpdateEnhancedMeasurementSettingsRequest, EnhancedMeasurementSettings> + updateEnhancedMeasurementSettingsSettings() { + return updateEnhancedMeasurementSettingsSettings; + } + + /** 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 updateFirebaseLink. */ + public UnaryCallSettings.Builder + updateFirebaseLinkSettings() { + return updateFirebaseLinkSettings; + } + + /** 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 UnaryCallSettings.Builder + 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; + } + + @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 new file mode 100644 index 00000000..47820663 --- /dev/null +++ b/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/GrpcAnalyticsAdminServiceCallableFactory.java @@ -0,0 +1,115 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * gRPC callable factory implementation for Analytics Admin API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator") +@BetaApi("The surface for use by generated code is not stable yet and may change in the future.") +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 pagedCallSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createPagedCallable( + grpcCallSettings, pagedCallSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + GrpcCallSettings grpcCallSettings, + BatchingCallSettings batchingCallSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBatchingCallable( + grpcCallSettings, batchingCallSettings, clientContext); + } + + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + public + OperationCallable createOperationCallable( + GrpcCallSettings grpcCallSettings, + OperationCallSettings operationCallSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + return GrpcCallableFactory.createOperationCallable( + grpcCallSettings, operationCallSettings, clientContext, operationsStub); + } + + @Override + public + BidiStreamingCallable createBidiStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings streamingCallSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBidiStreamingCallable( + grpcCallSettings, streamingCallSettings, clientContext); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + GrpcCallSettings grpcCallSettings, + ServerStreamingCallSettings streamingCallSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createServerStreamingCallable( + grpcCallSettings, streamingCallSettings, clientContext); + } + + @Override + public + ClientStreamingCallable createClientStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings streamingCallSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createClientStreamingCallable( + grpcCallSettings, streamingCallSettings, 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 new file mode 100644 index 00000000..59f84385 --- /dev/null +++ b/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/GrpcAnalyticsAdminServiceStub.java @@ -0,0 +1,1875 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.ListAccountsPagedResponse; +import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListAndroidAppDataStreamsPagedResponse; +import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListGoogleAdsLinksPagedResponse; +import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListIosAppDataStreamsPagedResponse; +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.ListWebDataStreamsPagedResponse; + +import com.google.analytics.admin.v1alpha.Account; +import com.google.analytics.admin.v1alpha.AndroidAppDataStream; +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.CreateAndroidAppDataStreamRequest; +import com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest; +import com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest; +import com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest; +import com.google.analytics.admin.v1alpha.CreatePropertyRequest; +import com.google.analytics.admin.v1alpha.CreateUserLinkRequest; +import com.google.analytics.admin.v1alpha.CreateWebDataStreamRequest; +import com.google.analytics.admin.v1alpha.DataSharingSettings; +import com.google.analytics.admin.v1alpha.DeleteAccountRequest; +import com.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest; +import com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest; +import com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest; +import com.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest; +import com.google.analytics.admin.v1alpha.DeletePropertyRequest; +import com.google.analytics.admin.v1alpha.DeleteUserLinkRequest; +import com.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest; +import com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings; +import com.google.analytics.admin.v1alpha.FirebaseLink; +import com.google.analytics.admin.v1alpha.GetAccountRequest; +import com.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest; +import com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest; +import com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest; +import com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest; +import com.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest; +import com.google.analytics.admin.v1alpha.GetPropertyRequest; +import com.google.analytics.admin.v1alpha.GetUserLinkRequest; +import com.google.analytics.admin.v1alpha.GetWebDataStreamRequest; +import com.google.analytics.admin.v1alpha.GlobalSiteTag; +import com.google.analytics.admin.v1alpha.GoogleAdsLink; +import com.google.analytics.admin.v1alpha.IosAppDataStream; +import com.google.analytics.admin.v1alpha.ListAccountsRequest; +import com.google.analytics.admin.v1alpha.ListAccountsResponse; +import com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest; +import com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse; +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.ListIosAppDataStreamsRequest; +import com.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse; +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.ListWebDataStreamsRequest; +import com.google.analytics.admin.v1alpha.ListWebDataStreamsResponse; +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.UpdateAccountRequest; +import com.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest; +import com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest; +import com.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest; +import com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest; +import com.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest; +import com.google.analytics.admin.v1alpha.UpdatePropertyRequest; +import com.google.analytics.admin.v1alpha.UpdateUserLinkRequest; +import com.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest; +import com.google.analytics.admin.v1alpha.UserLink; +import com.google.analytics.admin.v1alpha.WebDataStream; +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.RequestParamsExtractor; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.common.collect.ImmutableMap; +import com.google.protobuf.Empty; +import io.grpc.MethodDescriptor; +import io.grpc.protobuf.ProtoUtils; +import java.io.IOException; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * gRPC stub implementation for Analytics Admin API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator") +@BetaApi("A restructuring of stub classes is planned, so this may break in the future") +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 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(Empty.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 + getWebDataStreamMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/GetWebDataStream") + .setRequestMarshaller( + ProtoUtils.marshaller(GetWebDataStreamRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(WebDataStream.getDefaultInstance())) + .build(); + private static final MethodDescriptor + deleteWebDataStreamMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteWebDataStream") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteWebDataStreamRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .build(); + private static final MethodDescriptor + updateWebDataStreamMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateWebDataStream") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateWebDataStreamRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(WebDataStream.getDefaultInstance())) + .build(); + private static final MethodDescriptor + createWebDataStreamMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/CreateWebDataStream") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateWebDataStreamRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(WebDataStream.getDefaultInstance())) + .build(); + private static final MethodDescriptor + listWebDataStreamsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/ListWebDataStreams") + .setRequestMarshaller( + ProtoUtils.marshaller(ListWebDataStreamsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListWebDataStreamsResponse.getDefaultInstance())) + .build(); + private static final MethodDescriptor + getIosAppDataStreamMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/GetIosAppDataStream") + .setRequestMarshaller( + ProtoUtils.marshaller(GetIosAppDataStreamRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(IosAppDataStream.getDefaultInstance())) + .build(); + private static final MethodDescriptor + deleteIosAppDataStreamMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteIosAppDataStream") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteIosAppDataStreamRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .build(); + private static final MethodDescriptor + updateIosAppDataStreamMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateIosAppDataStream") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateIosAppDataStreamRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(IosAppDataStream.getDefaultInstance())) + .build(); + private static final MethodDescriptor + createIosAppDataStreamMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/CreateIosAppDataStream") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateIosAppDataStreamRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(IosAppDataStream.getDefaultInstance())) + .build(); + private static final MethodDescriptor + listIosAppDataStreamsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/ListIosAppDataStreams") + .setRequestMarshaller( + ProtoUtils.marshaller(ListIosAppDataStreamsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListIosAppDataStreamsResponse.getDefaultInstance())) + .build(); + private static final MethodDescriptor + getAndroidAppDataStreamMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/GetAndroidAppDataStream") + .setRequestMarshaller( + ProtoUtils.marshaller(GetAndroidAppDataStreamRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(AndroidAppDataStream.getDefaultInstance())) + .build(); + private static final MethodDescriptor + deleteAndroidAppDataStreamMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteAndroidAppDataStream") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteAndroidAppDataStreamRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .build(); + private static final MethodDescriptor + updateAndroidAppDataStreamMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateAndroidAppDataStream") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateAndroidAppDataStreamRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(AndroidAppDataStream.getDefaultInstance())) + .build(); + private static final MethodDescriptor + createAndroidAppDataStreamMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/CreateAndroidAppDataStream") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateAndroidAppDataStreamRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(AndroidAppDataStream.getDefaultInstance())) + .build(); + private static final MethodDescriptor< + ListAndroidAppDataStreamsRequest, ListAndroidAppDataStreamsResponse> + listAndroidAppDataStreamsMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/ListAndroidAppDataStreams") + .setRequestMarshaller( + ProtoUtils.marshaller(ListAndroidAppDataStreamsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListAndroidAppDataStreamsResponse.getDefaultInstance())) + .build(); + private static final MethodDescriptor< + GetEnhancedMeasurementSettingsRequest, EnhancedMeasurementSettings> + getEnhancedMeasurementSettingsMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/GetEnhancedMeasurementSettings") + .setRequestMarshaller( + ProtoUtils.marshaller(GetEnhancedMeasurementSettingsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(EnhancedMeasurementSettings.getDefaultInstance())) + .build(); + private static final MethodDescriptor< + UpdateEnhancedMeasurementSettingsRequest, EnhancedMeasurementSettings> + updateEnhancedMeasurementSettingsMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateEnhancedMeasurementSettings") + .setRequestMarshaller( + ProtoUtils.marshaller( + UpdateEnhancedMeasurementSettingsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(EnhancedMeasurementSettings.getDefaultInstance())) + .build(); + private static final MethodDescriptor + 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 + updateFirebaseLinkMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateFirebaseLink") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateFirebaseLinkRequest.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 final BackgroundResource backgroundResources; + + 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 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 getWebDataStreamCallable; + private final UnaryCallable deleteWebDataStreamCallable; + private final UnaryCallable + updateWebDataStreamCallable; + private final UnaryCallable + createWebDataStreamCallable; + private final UnaryCallable + listWebDataStreamsCallable; + private final UnaryCallable + listWebDataStreamsPagedCallable; + private final UnaryCallable + getIosAppDataStreamCallable; + private final UnaryCallable deleteIosAppDataStreamCallable; + private final UnaryCallable + updateIosAppDataStreamCallable; + private final UnaryCallable + createIosAppDataStreamCallable; + private final UnaryCallable + listIosAppDataStreamsCallable; + private final UnaryCallable + listIosAppDataStreamsPagedCallable; + private final UnaryCallable + getAndroidAppDataStreamCallable; + private final UnaryCallable + deleteAndroidAppDataStreamCallable; + private final UnaryCallable + updateAndroidAppDataStreamCallable; + private final UnaryCallable + createAndroidAppDataStreamCallable; + private final UnaryCallable + listAndroidAppDataStreamsCallable; + private final UnaryCallable< + ListAndroidAppDataStreamsRequest, ListAndroidAppDataStreamsPagedResponse> + listAndroidAppDataStreamsPagedCallable; + private final UnaryCallable + getEnhancedMeasurementSettingsCallable; + private final UnaryCallable + updateEnhancedMeasurementSettingsCallable; + private final UnaryCallable createFirebaseLinkCallable; + private final UnaryCallable updateFirebaseLinkCallable; + private final UnaryCallable deleteFirebaseLinkCallable; + private final UnaryCallable + listFirebaseLinksCallable; + 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 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; + + GrpcCallSettings getAccountTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getAccountMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(GetAccountRequest 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( + new RequestParamsExtractor() { + @Override + public Map extract(DeleteAccountRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + } + }) + .build(); + GrpcCallSettings updateAccountTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateAccountMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(UpdateAccountRequest 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 getPropertyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getPropertyMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(GetPropertyRequest 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( + new RequestParamsExtractor() { + @Override + public Map extract(DeletePropertyRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + } + }) + .build(); + GrpcCallSettings updatePropertyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updatePropertyMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(UpdatePropertyRequest 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( + new RequestParamsExtractor() { + @Override + public Map extract(GetUserLinkRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + } + }) + .build(); + GrpcCallSettings + batchGetUserLinksTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(batchGetUserLinksMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(BatchGetUserLinksRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + } + }) + .build(); + GrpcCallSettings listUserLinksTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listUserLinksMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(ListUserLinksRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + } + }) + .build(); + GrpcCallSettings + auditUserLinksTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(auditUserLinksMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(AuditUserLinksRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + } + }) + .build(); + GrpcCallSettings createUserLinkTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createUserLinkMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(CreateUserLinkRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + } + }) + .build(); + GrpcCallSettings + batchCreateUserLinksTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(batchCreateUserLinksMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(BatchCreateUserLinksRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + } + }) + .build(); + GrpcCallSettings updateUserLinkTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateUserLinkMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(UpdateUserLinkRequest 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( + new RequestParamsExtractor() { + @Override + public Map extract(BatchUpdateUserLinksRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + } + }) + .build(); + GrpcCallSettings deleteUserLinkTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteUserLinkMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(DeleteUserLinkRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + } + }) + .build(); + GrpcCallSettings batchDeleteUserLinksTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(batchDeleteUserLinksMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(BatchDeleteUserLinksRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + } + }) + .build(); + GrpcCallSettings getWebDataStreamTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getWebDataStreamMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(GetWebDataStreamRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + } + }) + .build(); + GrpcCallSettings deleteWebDataStreamTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteWebDataStreamMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(DeleteWebDataStreamRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + } + }) + .build(); + GrpcCallSettings + updateWebDataStreamTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateWebDataStreamMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(UpdateWebDataStreamRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put( + "web_data_stream.name", + String.valueOf(request.getWebDataStream().getName())); + return params.build(); + } + }) + .build(); + GrpcCallSettings + createWebDataStreamTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createWebDataStreamMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(CreateWebDataStreamRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + } + }) + .build(); + GrpcCallSettings + listWebDataStreamsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listWebDataStreamsMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(ListWebDataStreamsRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + } + }) + .build(); + GrpcCallSettings + getIosAppDataStreamTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getIosAppDataStreamMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(GetIosAppDataStreamRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + } + }) + .build(); + GrpcCallSettings deleteIosAppDataStreamTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteIosAppDataStreamMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(DeleteIosAppDataStreamRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + } + }) + .build(); + GrpcCallSettings + updateIosAppDataStreamTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateIosAppDataStreamMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(UpdateIosAppDataStreamRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put( + "ios_app_data_stream.name", + String.valueOf(request.getIosAppDataStream().getName())); + return params.build(); + } + }) + .build(); + GrpcCallSettings + createIosAppDataStreamTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createIosAppDataStreamMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(CreateIosAppDataStreamRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + } + }) + .build(); + GrpcCallSettings + listIosAppDataStreamsTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(listIosAppDataStreamsMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(ListIosAppDataStreamsRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + } + }) + .build(); + GrpcCallSettings + getAndroidAppDataStreamTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getAndroidAppDataStreamMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(GetAndroidAppDataStreamRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + } + }) + .build(); + GrpcCallSettings + deleteAndroidAppDataStreamTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteAndroidAppDataStreamMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract( + DeleteAndroidAppDataStreamRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + } + }) + .build(); + GrpcCallSettings + updateAndroidAppDataStreamTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateAndroidAppDataStreamMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract( + UpdateAndroidAppDataStreamRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put( + "android_app_data_stream.name", + String.valueOf(request.getAndroidAppDataStream().getName())); + return params.build(); + } + }) + .build(); + GrpcCallSettings + createAndroidAppDataStreamTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createAndroidAppDataStreamMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract( + CreateAndroidAppDataStreamRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + } + }) + .build(); + GrpcCallSettings + listAndroidAppDataStreamsTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(listAndroidAppDataStreamsMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(ListAndroidAppDataStreamsRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + } + }) + .build(); + GrpcCallSettings + getEnhancedMeasurementSettingsTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(getEnhancedMeasurementSettingsMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract( + GetEnhancedMeasurementSettingsRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + } + }) + .build(); + GrpcCallSettings + updateEnhancedMeasurementSettingsTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(updateEnhancedMeasurementSettingsMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract( + UpdateEnhancedMeasurementSettingsRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put( + "enhanced_measurement_settings.name", + String.valueOf(request.getEnhancedMeasurementSettings().getName())); + return params.build(); + } + }) + .build(); + GrpcCallSettings createFirebaseLinkTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createFirebaseLinkMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(CreateFirebaseLinkRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + } + }) + .build(); + GrpcCallSettings updateFirebaseLinkTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateFirebaseLinkMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(UpdateFirebaseLinkRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put( + "firebase_link.name", String.valueOf(request.getFirebaseLink().getName())); + return params.build(); + } + }) + .build(); + GrpcCallSettings deleteFirebaseLinkTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteFirebaseLinkMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(DeleteFirebaseLinkRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + } + }) + .build(); + GrpcCallSettings + listFirebaseLinksTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listFirebaseLinksMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(ListFirebaseLinksRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + } + }) + .build(); + GrpcCallSettings getGlobalSiteTagTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getGlobalSiteTagMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(GetGlobalSiteTagRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + } + }) + .build(); + GrpcCallSettings + createGoogleAdsLinkTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createGoogleAdsLinkMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(CreateGoogleAdsLinkRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + } + }) + .build(); + GrpcCallSettings + updateGoogleAdsLinkTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateGoogleAdsLinkMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(UpdateGoogleAdsLinkRequest 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( + new RequestParamsExtractor() { + @Override + public Map extract(DeleteGoogleAdsLinkRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + } + }) + .build(); + GrpcCallSettings + listGoogleAdsLinksTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listGoogleAdsLinksMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(ListGoogleAdsLinksRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + } + }) + .build(); + GrpcCallSettings + getDataSharingSettingsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getDataSharingSettingsMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(GetDataSharingSettingsRequest 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.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.getWebDataStreamCallable = + callableFactory.createUnaryCallable( + getWebDataStreamTransportSettings, settings.getWebDataStreamSettings(), clientContext); + this.deleteWebDataStreamCallable = + callableFactory.createUnaryCallable( + deleteWebDataStreamTransportSettings, + settings.deleteWebDataStreamSettings(), + clientContext); + this.updateWebDataStreamCallable = + callableFactory.createUnaryCallable( + updateWebDataStreamTransportSettings, + settings.updateWebDataStreamSettings(), + clientContext); + this.createWebDataStreamCallable = + callableFactory.createUnaryCallable( + createWebDataStreamTransportSettings, + settings.createWebDataStreamSettings(), + clientContext); + this.listWebDataStreamsCallable = + callableFactory.createUnaryCallable( + listWebDataStreamsTransportSettings, + settings.listWebDataStreamsSettings(), + clientContext); + this.listWebDataStreamsPagedCallable = + callableFactory.createPagedCallable( + listWebDataStreamsTransportSettings, + settings.listWebDataStreamsSettings(), + clientContext); + this.getIosAppDataStreamCallable = + callableFactory.createUnaryCallable( + getIosAppDataStreamTransportSettings, + settings.getIosAppDataStreamSettings(), + clientContext); + this.deleteIosAppDataStreamCallable = + callableFactory.createUnaryCallable( + deleteIosAppDataStreamTransportSettings, + settings.deleteIosAppDataStreamSettings(), + clientContext); + this.updateIosAppDataStreamCallable = + callableFactory.createUnaryCallable( + updateIosAppDataStreamTransportSettings, + settings.updateIosAppDataStreamSettings(), + clientContext); + this.createIosAppDataStreamCallable = + callableFactory.createUnaryCallable( + createIosAppDataStreamTransportSettings, + settings.createIosAppDataStreamSettings(), + clientContext); + this.listIosAppDataStreamsCallable = + callableFactory.createUnaryCallable( + listIosAppDataStreamsTransportSettings, + settings.listIosAppDataStreamsSettings(), + clientContext); + this.listIosAppDataStreamsPagedCallable = + callableFactory.createPagedCallable( + listIosAppDataStreamsTransportSettings, + settings.listIosAppDataStreamsSettings(), + clientContext); + this.getAndroidAppDataStreamCallable = + callableFactory.createUnaryCallable( + getAndroidAppDataStreamTransportSettings, + settings.getAndroidAppDataStreamSettings(), + clientContext); + this.deleteAndroidAppDataStreamCallable = + callableFactory.createUnaryCallable( + deleteAndroidAppDataStreamTransportSettings, + settings.deleteAndroidAppDataStreamSettings(), + clientContext); + this.updateAndroidAppDataStreamCallable = + callableFactory.createUnaryCallable( + updateAndroidAppDataStreamTransportSettings, + settings.updateAndroidAppDataStreamSettings(), + clientContext); + this.createAndroidAppDataStreamCallable = + callableFactory.createUnaryCallable( + createAndroidAppDataStreamTransportSettings, + settings.createAndroidAppDataStreamSettings(), + clientContext); + this.listAndroidAppDataStreamsCallable = + callableFactory.createUnaryCallable( + listAndroidAppDataStreamsTransportSettings, + settings.listAndroidAppDataStreamsSettings(), + clientContext); + this.listAndroidAppDataStreamsPagedCallable = + callableFactory.createPagedCallable( + listAndroidAppDataStreamsTransportSettings, + settings.listAndroidAppDataStreamsSettings(), + clientContext); + this.getEnhancedMeasurementSettingsCallable = + callableFactory.createUnaryCallable( + getEnhancedMeasurementSettingsTransportSettings, + settings.getEnhancedMeasurementSettingsSettings(), + clientContext); + this.updateEnhancedMeasurementSettingsCallable = + callableFactory.createUnaryCallable( + updateEnhancedMeasurementSettingsTransportSettings, + settings.updateEnhancedMeasurementSettingsSettings(), + clientContext); + this.createFirebaseLinkCallable = + callableFactory.createUnaryCallable( + createFirebaseLinkTransportSettings, + settings.createFirebaseLinkSettings(), + clientContext); + this.updateFirebaseLinkCallable = + callableFactory.createUnaryCallable( + updateFirebaseLinkTransportSettings, + settings.updateFirebaseLinkSettings(), + clientContext); + this.deleteFirebaseLinkCallable = + callableFactory.createUnaryCallable( + deleteFirebaseLinkTransportSettings, + settings.deleteFirebaseLinkSettings(), + clientContext); + this.listFirebaseLinksCallable = + callableFactory.createUnaryCallable( + 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); + + backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public UnaryCallable getAccountCallable() { + return getAccountCallable; + } + + public UnaryCallable listAccountsPagedCallable() { + return listAccountsPagedCallable; + } + + public UnaryCallable listAccountsCallable() { + return listAccountsCallable; + } + + public UnaryCallable deleteAccountCallable() { + return deleteAccountCallable; + } + + public UnaryCallable updateAccountCallable() { + return updateAccountCallable; + } + + public UnaryCallable + provisionAccountTicketCallable() { + return provisionAccountTicketCallable; + } + + public UnaryCallable getPropertyCallable() { + return getPropertyCallable; + } + + public UnaryCallable + listPropertiesPagedCallable() { + return listPropertiesPagedCallable; + } + + public UnaryCallable listPropertiesCallable() { + return listPropertiesCallable; + } + + public UnaryCallable createPropertyCallable() { + return createPropertyCallable; + } + + public UnaryCallable deletePropertyCallable() { + return deletePropertyCallable; + } + + public UnaryCallable updatePropertyCallable() { + return updatePropertyCallable; + } + + public UnaryCallable getUserLinkCallable() { + return getUserLinkCallable; + } + + public UnaryCallable + batchGetUserLinksCallable() { + return batchGetUserLinksCallable; + } + + public UnaryCallable + listUserLinksPagedCallable() { + return listUserLinksPagedCallable; + } + + public UnaryCallable listUserLinksCallable() { + return listUserLinksCallable; + } + + public UnaryCallable + auditUserLinksPagedCallable() { + return auditUserLinksPagedCallable; + } + + public UnaryCallable auditUserLinksCallable() { + return auditUserLinksCallable; + } + + public UnaryCallable createUserLinkCallable() { + return createUserLinkCallable; + } + + public UnaryCallable + batchCreateUserLinksCallable() { + return batchCreateUserLinksCallable; + } + + public UnaryCallable updateUserLinkCallable() { + return updateUserLinkCallable; + } + + public UnaryCallable + batchUpdateUserLinksCallable() { + return batchUpdateUserLinksCallable; + } + + public UnaryCallable deleteUserLinkCallable() { + return deleteUserLinkCallable; + } + + public UnaryCallable batchDeleteUserLinksCallable() { + return batchDeleteUserLinksCallable; + } + + public UnaryCallable getWebDataStreamCallable() { + return getWebDataStreamCallable; + } + + public UnaryCallable deleteWebDataStreamCallable() { + return deleteWebDataStreamCallable; + } + + public UnaryCallable updateWebDataStreamCallable() { + return updateWebDataStreamCallable; + } + + public UnaryCallable createWebDataStreamCallable() { + return createWebDataStreamCallable; + } + + public UnaryCallable + listWebDataStreamsPagedCallable() { + return listWebDataStreamsPagedCallable; + } + + public UnaryCallable + listWebDataStreamsCallable() { + return listWebDataStreamsCallable; + } + + public UnaryCallable getIosAppDataStreamCallable() { + return getIosAppDataStreamCallable; + } + + public UnaryCallable deleteIosAppDataStreamCallable() { + return deleteIosAppDataStreamCallable; + } + + public UnaryCallable + updateIosAppDataStreamCallable() { + return updateIosAppDataStreamCallable; + } + + public UnaryCallable + createIosAppDataStreamCallable() { + return createIosAppDataStreamCallable; + } + + public UnaryCallable + listIosAppDataStreamsPagedCallable() { + return listIosAppDataStreamsPagedCallable; + } + + public UnaryCallable + listIosAppDataStreamsCallable() { + return listIosAppDataStreamsCallable; + } + + public UnaryCallable + getAndroidAppDataStreamCallable() { + return getAndroidAppDataStreamCallable; + } + + public UnaryCallable + deleteAndroidAppDataStreamCallable() { + return deleteAndroidAppDataStreamCallable; + } + + public UnaryCallable + updateAndroidAppDataStreamCallable() { + return updateAndroidAppDataStreamCallable; + } + + public UnaryCallable + createAndroidAppDataStreamCallable() { + return createAndroidAppDataStreamCallable; + } + + public UnaryCallable + listAndroidAppDataStreamsPagedCallable() { + return listAndroidAppDataStreamsPagedCallable; + } + + public UnaryCallable + listAndroidAppDataStreamsCallable() { + return listAndroidAppDataStreamsCallable; + } + + public UnaryCallable + getEnhancedMeasurementSettingsCallable() { + return getEnhancedMeasurementSettingsCallable; + } + + public UnaryCallable + updateEnhancedMeasurementSettingsCallable() { + return updateEnhancedMeasurementSettingsCallable; + } + + public UnaryCallable createFirebaseLinkCallable() { + return createFirebaseLinkCallable; + } + + public UnaryCallable updateFirebaseLinkCallable() { + return updateFirebaseLinkCallable; + } + + public UnaryCallable deleteFirebaseLinkCallable() { + return deleteFirebaseLinkCallable; + } + + public UnaryCallable + listFirebaseLinksCallable() { + return listFirebaseLinksCallable; + } + + public UnaryCallable getGlobalSiteTagCallable() { + return getGlobalSiteTagCallable; + } + + public UnaryCallable createGoogleAdsLinkCallable() { + return createGoogleAdsLinkCallable; + } + + public UnaryCallable updateGoogleAdsLinkCallable() { + return updateGoogleAdsLinkCallable; + } + + public UnaryCallable deleteGoogleAdsLinkCallable() { + return deleteGoogleAdsLinkCallable; + } + + public UnaryCallable + listGoogleAdsLinksPagedCallable() { + return listGoogleAdsLinksPagedCallable; + } + + public UnaryCallable + listGoogleAdsLinksCallable() { + return listGoogleAdsLinksCallable; + } + + public UnaryCallable + getDataSharingSettingsCallable() { + return getDataSharingSettingsCallable; + } + + @Override + public final void close() { + shutdown(); + } + + @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/AnalyticsAdminServiceClientTest.java b/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClientTest.java new file mode 100644 index 00000000..a8bbab31 --- /dev/null +++ b/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClientTest.java @@ -0,0 +1,2341 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.ListAccountsPagedResponse; +import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListAndroidAppDataStreamsPagedResponse; +import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListGoogleAdsLinksPagedResponse; +import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListIosAppDataStreamsPagedResponse; +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.ListWebDataStreamsPagedResponse; + +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.Empty; +import com.google.protobuf.FieldMask; +import io.grpc.Status; +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 org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@javax.annotation.Generated("by GAPIC") +public class AnalyticsAdminServiceClientTest { + private static MockAnalyticsAdminService mockAnalyticsAdminService; + private static MockServiceHelper serviceHelper; + private AnalyticsAdminServiceClient client; + private LocalChannelProvider channelProvider; + + @BeforeClass + public static void startStaticServer() { + mockAnalyticsAdminService = new MockAnalyticsAdminService(); + serviceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), + Arrays.asList(mockAnalyticsAdminService)); + serviceHelper.start(); + } + + @AfterClass + public static void stopServer() { + serviceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + serviceHelper.reset(); + channelProvider = serviceHelper.createChannelProvider(); + AnalyticsAdminServiceSettings settings = + AnalyticsAdminServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = AnalyticsAdminServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + @SuppressWarnings("all") + public void getAccountTest() { + AccountName name2 = AccountName.of("[ACCOUNT]"); + String displayName = "displayName1615086568"; + String countryCode = "countryCode1481071862"; + boolean deleted = false; + Account expectedResponse = + Account.newBuilder() + .setName(name2.toString()) + .setDisplayName(displayName) + .setCountryCode(countryCode) + .setDeleted(deleted) + .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, AccountName.parse(actualRequest.getName())); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void getAccountExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(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 + @SuppressWarnings("all") + public void listAccountsTest() { + String nextPageToken = ""; + Account accountsElement = Account.newBuilder().build(); + List accounts = Arrays.asList(accountsElement); + ListAccountsResponse expectedResponse = + ListAccountsResponse.newBuilder() + .setNextPageToken(nextPageToken) + .addAllAccounts(accounts) + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + ListAccountsRequest request = ListAccountsRequest.newBuilder().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.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void listAccountsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + ListAccountsRequest request = ListAccountsRequest.newBuilder().build(); + + client.listAccounts(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void deleteAccountTest() { + 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, AccountName.parse(actualRequest.getName())); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void deleteAccountExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(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 + @SuppressWarnings("all") + public void updateAccountTest() { + AccountName name = AccountName.of("[ACCOUNT]"); + String displayName = "displayName1615086568"; + String countryCode = "countryCode1481071862"; + boolean deleted = false; + Account expectedResponse = + Account.newBuilder() + .setName(name.toString()) + .setDisplayName(displayName) + .setCountryCode(countryCode) + .setDeleted(deleted) + .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 + @SuppressWarnings("all") + public void updateAccountExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(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 + @SuppressWarnings("all") + public void provisionAccountTicketTest() { + String accountTicketId = "accountTicketId-442102884"; + ProvisionAccountTicketResponse expectedResponse = + ProvisionAccountTicketResponse.newBuilder().setAccountTicketId(accountTicketId).build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + ProvisionAccountTicketRequest request = ProvisionAccountTicketRequest.newBuilder().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.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void provisionAccountTicketExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + ProvisionAccountTicketRequest request = ProvisionAccountTicketRequest.newBuilder().build(); + + client.provisionAccountTicket(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void getPropertyTest() { + PropertyName name2 = PropertyName.of("[PROPERTY]"); + String parent = "parent-995424086"; + String displayName = "displayName1615086568"; + String timeZone = "timeZone36848094"; + String currencyCode = "currencyCode1108728155"; + boolean deleted = false; + Property expectedResponse = + Property.newBuilder() + .setName(name2.toString()) + .setParent(parent) + .setDisplayName(displayName) + .setTimeZone(timeZone) + .setCurrencyCode(currencyCode) + .setDeleted(deleted) + .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, PropertyName.parse(actualRequest.getName())); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void getPropertyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(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 + @SuppressWarnings("all") + public void listPropertiesTest() { + String nextPageToken = ""; + Property propertiesElement = Property.newBuilder().build(); + List properties = Arrays.asList(propertiesElement); + ListPropertiesResponse expectedResponse = + ListPropertiesResponse.newBuilder() + .setNextPageToken(nextPageToken) + .addAllProperties(properties) + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + String filter = "filter-1274492040"; + ListPropertiesRequest request = ListPropertiesRequest.newBuilder().setFilter(filter).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(filter, actualRequest.getFilter()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void listPropertiesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + String filter = "filter-1274492040"; + ListPropertiesRequest request = ListPropertiesRequest.newBuilder().setFilter(filter).build(); + + client.listProperties(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void createPropertyTest() { + PropertyName name = PropertyName.of("[PROPERTY]"); + String parent = "parent-995424086"; + String displayName = "displayName1615086568"; + String timeZone = "timeZone36848094"; + String currencyCode = "currencyCode1108728155"; + boolean deleted = false; + Property expectedResponse = + Property.newBuilder() + .setName(name.toString()) + .setParent(parent) + .setDisplayName(displayName) + .setTimeZone(timeZone) + .setCurrencyCode(currencyCode) + .setDeleted(deleted) + .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 + @SuppressWarnings("all") + public void createPropertyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(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 + @SuppressWarnings("all") + public void deletePropertyTest() { + Empty expectedResponse = Empty.newBuilder().build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + PropertyName name = PropertyName.of("[PROPERTY]"); + + client.deleteProperty(name); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeletePropertyRequest actualRequest = (DeletePropertyRequest) actualRequests.get(0); + + Assert.assertEquals(name, PropertyName.parse(actualRequest.getName())); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void deletePropertyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(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 + @SuppressWarnings("all") + public void updatePropertyTest() { + PropertyName name = PropertyName.of("[PROPERTY]"); + String parent = "parent-995424086"; + String displayName = "displayName1615086568"; + String timeZone = "timeZone36848094"; + String currencyCode = "currencyCode1108728155"; + boolean deleted = false; + Property expectedResponse = + Property.newBuilder() + .setName(name.toString()) + .setParent(parent) + .setDisplayName(displayName) + .setTimeZone(timeZone) + .setCurrencyCode(currencyCode) + .setDeleted(deleted) + .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 + @SuppressWarnings("all") + public void updatePropertyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(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 + @SuppressWarnings("all") + public void getUserLinkTest() { + UserLinkName name2 = UserLinkName.ofAccountUserLinkName("[ACCOUNT]", "[USER_LINK]"); + String emailAddress = "emailAddress-769510831"; + UserLink expectedResponse = + UserLink.newBuilder().setName(name2.toString()).setEmailAddress(emailAddress).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, UserLinkName.parse(actualRequest.getName())); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void getUserLinkExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(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 + @SuppressWarnings("all") + public void batchGetUserLinksTest() { + BatchGetUserLinksResponse expectedResponse = BatchGetUserLinksResponse.newBuilder().build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + AccountName parent = AccountName.of("[ACCOUNT]"); + List names = new ArrayList<>(); + BatchGetUserLinksRequest request = + BatchGetUserLinksRequest.newBuilder() + .setParent(parent.toString()) + .addAllNames(UserLinkName.toStringList(names)) + .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(parent, AccountName.parse(actualRequest.getParent())); + Assert.assertEquals(names, UserLinkName.parseList(actualRequest.getNamesList())); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void batchGetUserLinksExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + AccountName parent = AccountName.of("[ACCOUNT]"); + List names = new ArrayList<>(); + BatchGetUserLinksRequest request = + BatchGetUserLinksRequest.newBuilder() + .setParent(parent.toString()) + .addAllNames(UserLinkName.toStringList(names)) + .build(); + + client.batchGetUserLinks(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void listUserLinksTest() { + String nextPageToken = ""; + UserLink userLinksElement = UserLink.newBuilder().build(); + List userLinks = Arrays.asList(userLinksElement); + ListUserLinksResponse expectedResponse = + ListUserLinksResponse.newBuilder() + .setNextPageToken(nextPageToken) + .addAllUserLinks(userLinks) + .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, AccountName.parse(actualRequest.getParent())); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void listUserLinksExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(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 + @SuppressWarnings("all") + public void auditUserLinksTest() { + String nextPageToken = ""; + AuditUserLink userLinksElement = AuditUserLink.newBuilder().build(); + List userLinks = Arrays.asList(userLinksElement); + AuditUserLinksResponse expectedResponse = + AuditUserLinksResponse.newBuilder() + .setNextPageToken(nextPageToken) + .addAllUserLinks(userLinks) + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + AccountName parent = AccountName.of("[ACCOUNT]"); + AuditUserLinksRequest request = + AuditUserLinksRequest.newBuilder().setParent(parent.toString()).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(parent, AccountName.parse(actualRequest.getParent())); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void auditUserLinksExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + AccountName parent = AccountName.of("[ACCOUNT]"); + AuditUserLinksRequest request = + AuditUserLinksRequest.newBuilder().setParent(parent.toString()).build(); + + client.auditUserLinks(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void createUserLinkTest() { + UserLinkName name = UserLinkName.ofAccountUserLinkName("[ACCOUNT]", "[USER_LINK]"); + String emailAddress = "emailAddress-769510831"; + UserLink expectedResponse = + UserLink.newBuilder().setName(name.toString()).setEmailAddress(emailAddress).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, AccountName.parse(actualRequest.getParent())); + Assert.assertEquals(userLink, actualRequest.getUserLink()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void createUserLinkExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(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 + @SuppressWarnings("all") + public void batchCreateUserLinksTest() { + BatchCreateUserLinksResponse expectedResponse = + BatchCreateUserLinksResponse.newBuilder().build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + BatchCreateUserLinksRequest request = + BatchCreateUserLinksRequest.newBuilder().setParent(parent).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(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void batchCreateUserLinksExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + String parent = "parent-995424086"; + BatchCreateUserLinksRequest request = + BatchCreateUserLinksRequest.newBuilder().setParent(parent).build(); + + client.batchCreateUserLinks(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void updateUserLinkTest() { + UserLinkName name = UserLinkName.ofAccountUserLinkName("[ACCOUNT]", "[USER_LINK]"); + String emailAddress = "emailAddress-769510831"; + UserLink expectedResponse = + UserLink.newBuilder().setName(name.toString()).setEmailAddress(emailAddress).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 + @SuppressWarnings("all") + public void updateUserLinkExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(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 + @SuppressWarnings("all") + public void batchUpdateUserLinksTest() { + BatchUpdateUserLinksResponse expectedResponse = + BatchUpdateUserLinksResponse.newBuilder().build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + BatchUpdateUserLinksRequest request = + BatchUpdateUserLinksRequest.newBuilder().setParent(parent).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(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void batchUpdateUserLinksExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + String parent = "parent-995424086"; + BatchUpdateUserLinksRequest request = + BatchUpdateUserLinksRequest.newBuilder().setParent(parent).build(); + + client.batchUpdateUserLinks(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void deleteUserLinkTest() { + 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, UserLinkName.parse(actualRequest.getName())); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void deleteUserLinkExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(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 + @SuppressWarnings("all") + public void batchDeleteUserLinksTest() { + Empty expectedResponse = Empty.newBuilder().build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + BatchDeleteUserLinksRequest request = + BatchDeleteUserLinksRequest.newBuilder().setParent(parent).build(); + + client.batchDeleteUserLinks(request); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + BatchDeleteUserLinksRequest actualRequest = (BatchDeleteUserLinksRequest) actualRequests.get(0); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void batchDeleteUserLinksExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + String parent = "parent-995424086"; + BatchDeleteUserLinksRequest request = + BatchDeleteUserLinksRequest.newBuilder().setParent(parent).build(); + + client.batchDeleteUserLinks(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void getWebDataStreamTest() { + WebDataStreamName name2 = WebDataStreamName.of("[PROPERTY]", "[WEB_DATA_STREAM]"); + String measurementId = "measurementId-223204226"; + String firebaseAppId = "firebaseAppId605863217"; + String defaultUri = "defaultUri-436616594"; + String displayName = "displayName1615086568"; + WebDataStream expectedResponse = + WebDataStream.newBuilder() + .setName(name2.toString()) + .setMeasurementId(measurementId) + .setFirebaseAppId(firebaseAppId) + .setDefaultUri(defaultUri) + .setDisplayName(displayName) + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + WebDataStreamName name = WebDataStreamName.of("[PROPERTY]", "[WEB_DATA_STREAM]"); + + WebDataStream actualResponse = client.getWebDataStream(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetWebDataStreamRequest actualRequest = (GetWebDataStreamRequest) actualRequests.get(0); + + Assert.assertEquals(name, WebDataStreamName.parse(actualRequest.getName())); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void getWebDataStreamExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + WebDataStreamName name = WebDataStreamName.of("[PROPERTY]", "[WEB_DATA_STREAM]"); + + client.getWebDataStream(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void deleteWebDataStreamTest() { + Empty expectedResponse = Empty.newBuilder().build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + WebDataStreamName name = WebDataStreamName.of("[PROPERTY]", "[WEB_DATA_STREAM]"); + + client.deleteWebDataStream(name); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteWebDataStreamRequest actualRequest = (DeleteWebDataStreamRequest) actualRequests.get(0); + + Assert.assertEquals(name, WebDataStreamName.parse(actualRequest.getName())); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void deleteWebDataStreamExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + WebDataStreamName name = WebDataStreamName.of("[PROPERTY]", "[WEB_DATA_STREAM]"); + + client.deleteWebDataStream(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void updateWebDataStreamTest() { + WebDataStreamName name = WebDataStreamName.of("[PROPERTY]", "[WEB_DATA_STREAM]"); + String measurementId = "measurementId-223204226"; + String firebaseAppId = "firebaseAppId605863217"; + String defaultUri = "defaultUri-436616594"; + String displayName = "displayName1615086568"; + WebDataStream expectedResponse = + WebDataStream.newBuilder() + .setName(name.toString()) + .setMeasurementId(measurementId) + .setFirebaseAppId(firebaseAppId) + .setDefaultUri(defaultUri) + .setDisplayName(displayName) + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + WebDataStream webDataStream = WebDataStream.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + WebDataStream actualResponse = client.updateWebDataStream(webDataStream, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateWebDataStreamRequest actualRequest = (UpdateWebDataStreamRequest) actualRequests.get(0); + + Assert.assertEquals(webDataStream, actualRequest.getWebDataStream()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void updateWebDataStreamExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + WebDataStream webDataStream = WebDataStream.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + client.updateWebDataStream(webDataStream, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void createWebDataStreamTest() { + WebDataStreamName name = WebDataStreamName.of("[PROPERTY]", "[WEB_DATA_STREAM]"); + String measurementId = "measurementId-223204226"; + String firebaseAppId = "firebaseAppId605863217"; + String defaultUri = "defaultUri-436616594"; + String displayName = "displayName1615086568"; + WebDataStream expectedResponse = + WebDataStream.newBuilder() + .setName(name.toString()) + .setMeasurementId(measurementId) + .setFirebaseAppId(firebaseAppId) + .setDefaultUri(defaultUri) + .setDisplayName(displayName) + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + PropertyName parent = PropertyName.of("[PROPERTY]"); + WebDataStream webDataStream = WebDataStream.newBuilder().build(); + + WebDataStream actualResponse = client.createWebDataStream(parent, webDataStream); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateWebDataStreamRequest actualRequest = (CreateWebDataStreamRequest) actualRequests.get(0); + + Assert.assertEquals(parent, PropertyName.parse(actualRequest.getParent())); + Assert.assertEquals(webDataStream, actualRequest.getWebDataStream()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void createWebDataStreamExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + PropertyName parent = PropertyName.of("[PROPERTY]"); + WebDataStream webDataStream = WebDataStream.newBuilder().build(); + + client.createWebDataStream(parent, webDataStream); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void listWebDataStreamsTest() { + String nextPageToken = ""; + WebDataStream webDataStreamsElement = WebDataStream.newBuilder().build(); + List webDataStreams = Arrays.asList(webDataStreamsElement); + ListWebDataStreamsResponse expectedResponse = + ListWebDataStreamsResponse.newBuilder() + .setNextPageToken(nextPageToken) + .addAllWebDataStreams(webDataStreams) + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + PropertyName parent = PropertyName.of("[PROPERTY]"); + + ListWebDataStreamsPagedResponse pagedListResponse = client.listWebDataStreams(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getWebDataStreamsList().get(0), resources.get(0)); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListWebDataStreamsRequest actualRequest = (ListWebDataStreamsRequest) actualRequests.get(0); + + Assert.assertEquals(parent, PropertyName.parse(actualRequest.getParent())); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void listWebDataStreamsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + PropertyName parent = PropertyName.of("[PROPERTY]"); + + client.listWebDataStreams(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void getIosAppDataStreamTest() { + IosAppDataStreamName name2 = IosAppDataStreamName.of("[PROPERTY]", "[IOS_APP_DATA_STREAM]"); + String firebaseAppId = "firebaseAppId605863217"; + String bundleId = "bundleId-1479583240"; + String displayName = "displayName1615086568"; + IosAppDataStream expectedResponse = + IosAppDataStream.newBuilder() + .setName(name2.toString()) + .setFirebaseAppId(firebaseAppId) + .setBundleId(bundleId) + .setDisplayName(displayName) + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + IosAppDataStreamName name = IosAppDataStreamName.of("[PROPERTY]", "[IOS_APP_DATA_STREAM]"); + + IosAppDataStream actualResponse = client.getIosAppDataStream(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetIosAppDataStreamRequest actualRequest = (GetIosAppDataStreamRequest) actualRequests.get(0); + + Assert.assertEquals(name, IosAppDataStreamName.parse(actualRequest.getName())); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void getIosAppDataStreamExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + IosAppDataStreamName name = IosAppDataStreamName.of("[PROPERTY]", "[IOS_APP_DATA_STREAM]"); + + client.getIosAppDataStream(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void deleteIosAppDataStreamTest() { + Empty expectedResponse = Empty.newBuilder().build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + IosAppDataStreamName name = IosAppDataStreamName.of("[PROPERTY]", "[IOS_APP_DATA_STREAM]"); + + client.deleteIosAppDataStream(name); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteIosAppDataStreamRequest actualRequest = + (DeleteIosAppDataStreamRequest) actualRequests.get(0); + + Assert.assertEquals(name, IosAppDataStreamName.parse(actualRequest.getName())); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void deleteIosAppDataStreamExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + IosAppDataStreamName name = IosAppDataStreamName.of("[PROPERTY]", "[IOS_APP_DATA_STREAM]"); + + client.deleteIosAppDataStream(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void updateIosAppDataStreamTest() { + IosAppDataStreamName name = IosAppDataStreamName.of("[PROPERTY]", "[IOS_APP_DATA_STREAM]"); + String firebaseAppId = "firebaseAppId605863217"; + String bundleId = "bundleId-1479583240"; + String displayName = "displayName1615086568"; + IosAppDataStream expectedResponse = + IosAppDataStream.newBuilder() + .setName(name.toString()) + .setFirebaseAppId(firebaseAppId) + .setBundleId(bundleId) + .setDisplayName(displayName) + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + IosAppDataStream iosAppDataStream = IosAppDataStream.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + IosAppDataStream actualResponse = client.updateIosAppDataStream(iosAppDataStream, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateIosAppDataStreamRequest actualRequest = + (UpdateIosAppDataStreamRequest) actualRequests.get(0); + + Assert.assertEquals(iosAppDataStream, actualRequest.getIosAppDataStream()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void updateIosAppDataStreamExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + IosAppDataStream iosAppDataStream = IosAppDataStream.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + client.updateIosAppDataStream(iosAppDataStream, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void createIosAppDataStreamTest() { + IosAppDataStreamName name = IosAppDataStreamName.of("[PROPERTY]", "[IOS_APP_DATA_STREAM]"); + String firebaseAppId = "firebaseAppId605863217"; + String bundleId = "bundleId-1479583240"; + String displayName = "displayName1615086568"; + IosAppDataStream expectedResponse = + IosAppDataStream.newBuilder() + .setName(name.toString()) + .setFirebaseAppId(firebaseAppId) + .setBundleId(bundleId) + .setDisplayName(displayName) + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + PropertyName parent = PropertyName.of("[PROPERTY]"); + IosAppDataStream iosAppDataStream = IosAppDataStream.newBuilder().build(); + + IosAppDataStream actualResponse = client.createIosAppDataStream(parent, iosAppDataStream); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateIosAppDataStreamRequest actualRequest = + (CreateIosAppDataStreamRequest) actualRequests.get(0); + + Assert.assertEquals(parent, PropertyName.parse(actualRequest.getParent())); + Assert.assertEquals(iosAppDataStream, actualRequest.getIosAppDataStream()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void createIosAppDataStreamExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + PropertyName parent = PropertyName.of("[PROPERTY]"); + IosAppDataStream iosAppDataStream = IosAppDataStream.newBuilder().build(); + + client.createIosAppDataStream(parent, iosAppDataStream); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void listIosAppDataStreamsTest() { + String nextPageToken = ""; + IosAppDataStream iosAppDataStreamsElement = IosAppDataStream.newBuilder().build(); + List iosAppDataStreams = Arrays.asList(iosAppDataStreamsElement); + ListIosAppDataStreamsResponse expectedResponse = + ListIosAppDataStreamsResponse.newBuilder() + .setNextPageToken(nextPageToken) + .addAllIosAppDataStreams(iosAppDataStreams) + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + PropertyName parent = PropertyName.of("[PROPERTY]"); + + ListIosAppDataStreamsPagedResponse pagedListResponse = client.listIosAppDataStreams(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getIosAppDataStreamsList().get(0), resources.get(0)); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListIosAppDataStreamsRequest actualRequest = + (ListIosAppDataStreamsRequest) actualRequests.get(0); + + Assert.assertEquals(parent, PropertyName.parse(actualRequest.getParent())); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void listIosAppDataStreamsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + PropertyName parent = PropertyName.of("[PROPERTY]"); + + client.listIosAppDataStreams(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void getAndroidAppDataStreamTest() { + AndroidAppDataStreamName name2 = + AndroidAppDataStreamName.of("[PROPERTY]", "[ANDROID_APP_DATA_STREAM]"); + String firebaseAppId = "firebaseAppId605863217"; + String packageName = "packageName-1877165340"; + String displayName = "displayName1615086568"; + AndroidAppDataStream expectedResponse = + AndroidAppDataStream.newBuilder() + .setName(name2.toString()) + .setFirebaseAppId(firebaseAppId) + .setPackageName(packageName) + .setDisplayName(displayName) + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + AndroidAppDataStreamName name = + AndroidAppDataStreamName.of("[PROPERTY]", "[ANDROID_APP_DATA_STREAM]"); + + AndroidAppDataStream actualResponse = client.getAndroidAppDataStream(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetAndroidAppDataStreamRequest actualRequest = + (GetAndroidAppDataStreamRequest) actualRequests.get(0); + + Assert.assertEquals(name, AndroidAppDataStreamName.parse(actualRequest.getName())); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void getAndroidAppDataStreamExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + AndroidAppDataStreamName name = + AndroidAppDataStreamName.of("[PROPERTY]", "[ANDROID_APP_DATA_STREAM]"); + + client.getAndroidAppDataStream(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void deleteAndroidAppDataStreamTest() { + Empty expectedResponse = Empty.newBuilder().build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + AndroidAppDataStreamName name = + AndroidAppDataStreamName.of("[PROPERTY]", "[ANDROID_APP_DATA_STREAM]"); + + client.deleteAndroidAppDataStream(name); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteAndroidAppDataStreamRequest actualRequest = + (DeleteAndroidAppDataStreamRequest) actualRequests.get(0); + + Assert.assertEquals(name, AndroidAppDataStreamName.parse(actualRequest.getName())); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void deleteAndroidAppDataStreamExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + AndroidAppDataStreamName name = + AndroidAppDataStreamName.of("[PROPERTY]", "[ANDROID_APP_DATA_STREAM]"); + + client.deleteAndroidAppDataStream(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void updateAndroidAppDataStreamTest() { + AndroidAppDataStreamName name = + AndroidAppDataStreamName.of("[PROPERTY]", "[ANDROID_APP_DATA_STREAM]"); + String firebaseAppId = "firebaseAppId605863217"; + String packageName = "packageName-1877165340"; + String displayName = "displayName1615086568"; + AndroidAppDataStream expectedResponse = + AndroidAppDataStream.newBuilder() + .setName(name.toString()) + .setFirebaseAppId(firebaseAppId) + .setPackageName(packageName) + .setDisplayName(displayName) + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + AndroidAppDataStream androidAppDataStream = AndroidAppDataStream.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + AndroidAppDataStream actualResponse = + client.updateAndroidAppDataStream(androidAppDataStream, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateAndroidAppDataStreamRequest actualRequest = + (UpdateAndroidAppDataStreamRequest) actualRequests.get(0); + + Assert.assertEquals(androidAppDataStream, actualRequest.getAndroidAppDataStream()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void updateAndroidAppDataStreamExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + AndroidAppDataStream androidAppDataStream = AndroidAppDataStream.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + client.updateAndroidAppDataStream(androidAppDataStream, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void createAndroidAppDataStreamTest() { + AndroidAppDataStreamName name = + AndroidAppDataStreamName.of("[PROPERTY]", "[ANDROID_APP_DATA_STREAM]"); + String firebaseAppId = "firebaseAppId605863217"; + String packageName = "packageName-1877165340"; + String displayName = "displayName1615086568"; + AndroidAppDataStream expectedResponse = + AndroidAppDataStream.newBuilder() + .setName(name.toString()) + .setFirebaseAppId(firebaseAppId) + .setPackageName(packageName) + .setDisplayName(displayName) + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + PropertyName parent = PropertyName.of("[PROPERTY]"); + AndroidAppDataStream androidAppDataStream = AndroidAppDataStream.newBuilder().build(); + + AndroidAppDataStream actualResponse = + client.createAndroidAppDataStream(parent, androidAppDataStream); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateAndroidAppDataStreamRequest actualRequest = + (CreateAndroidAppDataStreamRequest) actualRequests.get(0); + + Assert.assertEquals(parent, PropertyName.parse(actualRequest.getParent())); + Assert.assertEquals(androidAppDataStream, actualRequest.getAndroidAppDataStream()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void createAndroidAppDataStreamExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + PropertyName parent = PropertyName.of("[PROPERTY]"); + AndroidAppDataStream androidAppDataStream = AndroidAppDataStream.newBuilder().build(); + + client.createAndroidAppDataStream(parent, androidAppDataStream); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void listAndroidAppDataStreamsTest() { + String nextPageToken = ""; + AndroidAppDataStream androidAppDataStreamsElement = AndroidAppDataStream.newBuilder().build(); + List androidAppDataStreams = Arrays.asList(androidAppDataStreamsElement); + ListAndroidAppDataStreamsResponse expectedResponse = + ListAndroidAppDataStreamsResponse.newBuilder() + .setNextPageToken(nextPageToken) + .addAllAndroidAppDataStreams(androidAppDataStreams) + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + PropertyName parent = PropertyName.of("[PROPERTY]"); + + ListAndroidAppDataStreamsPagedResponse pagedListResponse = + client.listAndroidAppDataStreams(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAndroidAppDataStreamsList().get(0), resources.get(0)); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListAndroidAppDataStreamsRequest actualRequest = + (ListAndroidAppDataStreamsRequest) actualRequests.get(0); + + Assert.assertEquals(parent, PropertyName.parse(actualRequest.getParent())); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void listAndroidAppDataStreamsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + PropertyName parent = PropertyName.of("[PROPERTY]"); + + client.listAndroidAppDataStreams(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void getEnhancedMeasurementSettingsTest() { + EnhancedMeasurementSettingsName name2 = + EnhancedMeasurementSettingsName.of("[PROPERTY]", "[WEB_DATA_STREAM]"); + boolean streamEnabled = true; + boolean pageViewsEnabled = true; + boolean scrollsEnabled = true; + boolean outboundClicksEnabled = true; + boolean contentViewsEnabled = true; + boolean siteSearchEnabled = true; + boolean formInteractionsEnabled = true; + boolean videoEngagementEnabled = false; + boolean fileDownloadsEnabled = true; + boolean dataTaggedElementClicksEnabled = true; + boolean pageLoadsEnabled = false; + boolean pageChangesEnabled = false; + boolean articlesAndBlogsEnabled = false; + boolean productsAndEcommerceEnabled = false; + String searchQueryParameter = "searchQueryParameter638048347"; + String urlQueryParameter = "urlQueryParameter729598498"; + String excludedDomains = "excludedDomains147054266"; + EnhancedMeasurementSettings expectedResponse = + EnhancedMeasurementSettings.newBuilder() + .setName(name2.toString()) + .setStreamEnabled(streamEnabled) + .setPageViewsEnabled(pageViewsEnabled) + .setScrollsEnabled(scrollsEnabled) + .setOutboundClicksEnabled(outboundClicksEnabled) + .setContentViewsEnabled(contentViewsEnabled) + .setSiteSearchEnabled(siteSearchEnabled) + .setFormInteractionsEnabled(formInteractionsEnabled) + .setVideoEngagementEnabled(videoEngagementEnabled) + .setFileDownloadsEnabled(fileDownloadsEnabled) + .setDataTaggedElementClicksEnabled(dataTaggedElementClicksEnabled) + .setPageLoadsEnabled(pageLoadsEnabled) + .setPageChangesEnabled(pageChangesEnabled) + .setArticlesAndBlogsEnabled(articlesAndBlogsEnabled) + .setProductsAndEcommerceEnabled(productsAndEcommerceEnabled) + .setSearchQueryParameter(searchQueryParameter) + .setUrlQueryParameter(urlQueryParameter) + .setExcludedDomains(excludedDomains) + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + EnhancedMeasurementSettingsName name = + EnhancedMeasurementSettingsName.of("[PROPERTY]", "[WEB_DATA_STREAM]"); + + EnhancedMeasurementSettings actualResponse = client.getEnhancedMeasurementSettings(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetEnhancedMeasurementSettingsRequest actualRequest = + (GetEnhancedMeasurementSettingsRequest) actualRequests.get(0); + + Assert.assertEquals(name, EnhancedMeasurementSettingsName.parse(actualRequest.getName())); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void getEnhancedMeasurementSettingsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + EnhancedMeasurementSettingsName name = + EnhancedMeasurementSettingsName.of("[PROPERTY]", "[WEB_DATA_STREAM]"); + + client.getEnhancedMeasurementSettings(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void updateEnhancedMeasurementSettingsTest() { + EnhancedMeasurementSettingsName name = + EnhancedMeasurementSettingsName.of("[PROPERTY]", "[WEB_DATA_STREAM]"); + boolean streamEnabled = true; + boolean pageViewsEnabled = true; + boolean scrollsEnabled = true; + boolean outboundClicksEnabled = true; + boolean contentViewsEnabled = true; + boolean siteSearchEnabled = true; + boolean formInteractionsEnabled = true; + boolean videoEngagementEnabled = false; + boolean fileDownloadsEnabled = true; + boolean dataTaggedElementClicksEnabled = true; + boolean pageLoadsEnabled = false; + boolean pageChangesEnabled = false; + boolean articlesAndBlogsEnabled = false; + boolean productsAndEcommerceEnabled = false; + String searchQueryParameter = "searchQueryParameter638048347"; + String urlQueryParameter = "urlQueryParameter729598498"; + String excludedDomains = "excludedDomains147054266"; + EnhancedMeasurementSettings expectedResponse = + EnhancedMeasurementSettings.newBuilder() + .setName(name.toString()) + .setStreamEnabled(streamEnabled) + .setPageViewsEnabled(pageViewsEnabled) + .setScrollsEnabled(scrollsEnabled) + .setOutboundClicksEnabled(outboundClicksEnabled) + .setContentViewsEnabled(contentViewsEnabled) + .setSiteSearchEnabled(siteSearchEnabled) + .setFormInteractionsEnabled(formInteractionsEnabled) + .setVideoEngagementEnabled(videoEngagementEnabled) + .setFileDownloadsEnabled(fileDownloadsEnabled) + .setDataTaggedElementClicksEnabled(dataTaggedElementClicksEnabled) + .setPageLoadsEnabled(pageLoadsEnabled) + .setPageChangesEnabled(pageChangesEnabled) + .setArticlesAndBlogsEnabled(articlesAndBlogsEnabled) + .setProductsAndEcommerceEnabled(productsAndEcommerceEnabled) + .setSearchQueryParameter(searchQueryParameter) + .setUrlQueryParameter(urlQueryParameter) + .setExcludedDomains(excludedDomains) + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + EnhancedMeasurementSettings enhancedMeasurementSettings = + EnhancedMeasurementSettings.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + EnhancedMeasurementSettings actualResponse = + client.updateEnhancedMeasurementSettings(enhancedMeasurementSettings, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateEnhancedMeasurementSettingsRequest actualRequest = + (UpdateEnhancedMeasurementSettingsRequest) actualRequests.get(0); + + Assert.assertEquals( + enhancedMeasurementSettings, actualRequest.getEnhancedMeasurementSettings()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void updateEnhancedMeasurementSettingsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + EnhancedMeasurementSettings enhancedMeasurementSettings = + EnhancedMeasurementSettings.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + client.updateEnhancedMeasurementSettings(enhancedMeasurementSettings, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void createFirebaseLinkTest() { + FirebaseLinkName name = FirebaseLinkName.of("[PROPERTY]", "[FIREBASE_LINK]"); + String project = "project-309310695"; + FirebaseLink expectedResponse = + FirebaseLink.newBuilder().setName(name.toString()).setProject(project).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, PropertyName.parse(actualRequest.getParent())); + Assert.assertEquals(firebaseLink, actualRequest.getFirebaseLink()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void createFirebaseLinkExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(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 + @SuppressWarnings("all") + public void updateFirebaseLinkTest() { + FirebaseLinkName name = FirebaseLinkName.of("[PROPERTY]", "[FIREBASE_LINK]"); + String project = "project-309310695"; + FirebaseLink expectedResponse = + FirebaseLink.newBuilder().setName(name.toString()).setProject(project).build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + FirebaseLink firebaseLink = FirebaseLink.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + FirebaseLink actualResponse = client.updateFirebaseLink(firebaseLink, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateFirebaseLinkRequest actualRequest = (UpdateFirebaseLinkRequest) actualRequests.get(0); + + Assert.assertEquals(firebaseLink, actualRequest.getFirebaseLink()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void updateFirebaseLinkExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + FirebaseLink firebaseLink = FirebaseLink.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + client.updateFirebaseLink(firebaseLink, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void deleteFirebaseLinkTest() { + 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, FirebaseLinkName.parse(actualRequest.getName())); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void deleteFirebaseLinkExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(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 + @SuppressWarnings("all") + public void listFirebaseLinksTest() { + ListFirebaseLinksResponse expectedResponse = ListFirebaseLinksResponse.newBuilder().build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + PropertyName parent = PropertyName.of("[PROPERTY]"); + + ListFirebaseLinksResponse actualResponse = client.listFirebaseLinks(parent); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListFirebaseLinksRequest actualRequest = (ListFirebaseLinksRequest) actualRequests.get(0); + + Assert.assertEquals(parent, PropertyName.parse(actualRequest.getParent())); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void listFirebaseLinksExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(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 + @SuppressWarnings("all") + public void getGlobalSiteTagTest() { + String snippet = "snippet-2061635299"; + GlobalSiteTag expectedResponse = GlobalSiteTag.newBuilder().setSnippet(snippet).build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + GlobalSiteTagName name = GlobalSiteTagName.of("[PROPERTY]"); + + 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, GlobalSiteTagName.parse(actualRequest.getName())); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void getGlobalSiteTagExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + GlobalSiteTagName name = GlobalSiteTagName.of("[PROPERTY]"); + + client.getGlobalSiteTag(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void createGoogleAdsLinkTest() { + GoogleAdsLinkName name = GoogleAdsLinkName.of("[PROPERTY]", "[GOOGLE_ADS_LINK]"); + String parent2 = "parent21175163357"; + String customerId = "customerId-1772061412"; + boolean canManageClients = false; + String emailAddress = "emailAddress-769510831"; + GoogleAdsLink expectedResponse = + GoogleAdsLink.newBuilder() + .setName(name.toString()) + .setParent(parent2) + .setCustomerId(customerId) + .setCanManageClients(canManageClients) + .setEmailAddress(emailAddress) + .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, PropertyName.parse(actualRequest.getParent())); + Assert.assertEquals(googleAdsLink, actualRequest.getGoogleAdsLink()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void createGoogleAdsLinkExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(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 + @SuppressWarnings("all") + public void updateGoogleAdsLinkTest() { + GoogleAdsLinkName name = GoogleAdsLinkName.of("[PROPERTY]", "[GOOGLE_ADS_LINK]"); + String parent = "parent-995424086"; + String customerId = "customerId-1772061412"; + boolean canManageClients = false; + String emailAddress = "emailAddress-769510831"; + GoogleAdsLink expectedResponse = + GoogleAdsLink.newBuilder() + .setName(name.toString()) + .setParent(parent) + .setCustomerId(customerId) + .setCanManageClients(canManageClients) + .setEmailAddress(emailAddress) + .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 + @SuppressWarnings("all") + public void updateGoogleAdsLinkExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(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 + @SuppressWarnings("all") + public void deleteGoogleAdsLinkTest() { + 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, GoogleAdsLinkName.parse(actualRequest.getName())); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void deleteGoogleAdsLinkExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(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 + @SuppressWarnings("all") + public void listGoogleAdsLinksTest() { + String nextPageToken = ""; + GoogleAdsLink googleAdsLinksElement = GoogleAdsLink.newBuilder().build(); + List googleAdsLinks = Arrays.asList(googleAdsLinksElement); + ListGoogleAdsLinksResponse expectedResponse = + ListGoogleAdsLinksResponse.newBuilder() + .setNextPageToken(nextPageToken) + .addAllGoogleAdsLinks(googleAdsLinks) + .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, PropertyName.parse(actualRequest.getParent())); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void listGoogleAdsLinksExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(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 + @SuppressWarnings("all") + public void getDataSharingSettingsTest() { + DataSharingSettingsName name2 = DataSharingSettingsName.of("[ACCOUNT]"); + boolean sharingWithGoogleSupportEnabled = false; + boolean sharingWithGoogleAssignedSalesEnabled = false; + boolean sharingWithGoogleAnySalesEnabled = false; + boolean sharingWithGoogleProductsEnabled = true; + boolean sharingWithOthersEnabled = false; + DataSharingSettings expectedResponse = + DataSharingSettings.newBuilder() + .setName(name2.toString()) + .setSharingWithGoogleSupportEnabled(sharingWithGoogleSupportEnabled) + .setSharingWithGoogleAssignedSalesEnabled(sharingWithGoogleAssignedSalesEnabled) + .setSharingWithGoogleAnySalesEnabled(sharingWithGoogleAnySalesEnabled) + .setSharingWithGoogleProductsEnabled(sharingWithGoogleProductsEnabled) + .setSharingWithOthersEnabled(sharingWithOthersEnabled) + .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, DataSharingSettingsName.parse(actualRequest.getName())); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void getDataSharingSettingsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(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 + } + } +} 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 new file mode 100644 index 00000000..3e48974a --- /dev/null +++ b/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/MockAnalyticsAdminService.java @@ -0,0 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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; + +@javax.annotation.Generated("by GAPIC") +@BetaApi +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 new file mode 100644 index 00000000..00eb8989 --- /dev/null +++ b/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/MockAnalyticsAdminServiceImpl.java @@ -0,0 +1,774 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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; + +@javax.annotation.Generated("by GAPIC") +@BetaApi +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.remove(); + 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("Unrecognized response type")); + } + } + + @Override + public void listAccounts( + ListAccountsRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + 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("Unrecognized response type")); + } + } + + @Override + public void deleteAccount(DeleteAccountRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + 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("Unrecognized response type")); + } + } + + @Override + public void updateAccount( + UpdateAccountRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + 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("Unrecognized response type")); + } + } + + @Override + public void provisionAccountTicket( + ProvisionAccountTicketRequest request, + StreamObserver responseObserver) { + Object response = responses.remove(); + 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("Unrecognized response type")); + } + } + + @Override + public void getProperty(GetPropertyRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + 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("Unrecognized response type")); + } + } + + @Override + public void listProperties( + ListPropertiesRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + 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("Unrecognized response type")); + } + } + + @Override + public void createProperty( + CreatePropertyRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + 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("Unrecognized response type")); + } + } + + @Override + public void deleteProperty( + DeletePropertyRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + 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("Unrecognized response type")); + } + } + + @Override + public void updateProperty( + UpdatePropertyRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + 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("Unrecognized response type")); + } + } + + @Override + public void getUserLink(GetUserLinkRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + 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("Unrecognized response type")); + } + } + + @Override + public void batchGetUserLinks( + BatchGetUserLinksRequest request, + StreamObserver responseObserver) { + Object response = responses.remove(); + 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("Unrecognized response type")); + } + } + + @Override + public void listUserLinks( + ListUserLinksRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + 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("Unrecognized response type")); + } + } + + @Override + public void auditUserLinks( + AuditUserLinksRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + 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("Unrecognized response type")); + } + } + + @Override + public void createUserLink( + CreateUserLinkRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + 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("Unrecognized response type")); + } + } + + @Override + public void batchCreateUserLinks( + BatchCreateUserLinksRequest request, + StreamObserver responseObserver) { + Object response = responses.remove(); + 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("Unrecognized response type")); + } + } + + @Override + public void updateUserLink( + UpdateUserLinkRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + 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("Unrecognized response type")); + } + } + + @Override + public void batchUpdateUserLinks( + BatchUpdateUserLinksRequest request, + StreamObserver responseObserver) { + Object response = responses.remove(); + 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("Unrecognized response type")); + } + } + + @Override + public void deleteUserLink( + DeleteUserLinkRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + 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("Unrecognized response type")); + } + } + + @Override + public void batchDeleteUserLinks( + BatchDeleteUserLinksRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + 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("Unrecognized response type")); + } + } + + @Override + public void getWebDataStream( + GetWebDataStreamRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof WebDataStream) { + requests.add(request); + responseObserver.onNext((WebDataStream) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void deleteWebDataStream( + DeleteWebDataStreamRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + 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("Unrecognized response type")); + } + } + + @Override + public void updateWebDataStream( + UpdateWebDataStreamRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof WebDataStream) { + requests.add(request); + responseObserver.onNext((WebDataStream) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void createWebDataStream( + CreateWebDataStreamRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof WebDataStream) { + requests.add(request); + responseObserver.onNext((WebDataStream) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void listWebDataStreams( + ListWebDataStreamsRequest request, + StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof ListWebDataStreamsResponse) { + requests.add(request); + responseObserver.onNext((ListWebDataStreamsResponse) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void getIosAppDataStream( + GetIosAppDataStreamRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof IosAppDataStream) { + requests.add(request); + responseObserver.onNext((IosAppDataStream) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void deleteIosAppDataStream( + DeleteIosAppDataStreamRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + 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("Unrecognized response type")); + } + } + + @Override + public void updateIosAppDataStream( + UpdateIosAppDataStreamRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof IosAppDataStream) { + requests.add(request); + responseObserver.onNext((IosAppDataStream) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void createIosAppDataStream( + CreateIosAppDataStreamRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof IosAppDataStream) { + requests.add(request); + responseObserver.onNext((IosAppDataStream) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void listIosAppDataStreams( + ListIosAppDataStreamsRequest request, + StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof ListIosAppDataStreamsResponse) { + requests.add(request); + responseObserver.onNext((ListIosAppDataStreamsResponse) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void getAndroidAppDataStream( + GetAndroidAppDataStreamRequest request, + StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof AndroidAppDataStream) { + requests.add(request); + responseObserver.onNext((AndroidAppDataStream) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void deleteAndroidAppDataStream( + DeleteAndroidAppDataStreamRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + 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("Unrecognized response type")); + } + } + + @Override + public void updateAndroidAppDataStream( + UpdateAndroidAppDataStreamRequest request, + StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof AndroidAppDataStream) { + requests.add(request); + responseObserver.onNext((AndroidAppDataStream) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void createAndroidAppDataStream( + CreateAndroidAppDataStreamRequest request, + StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof AndroidAppDataStream) { + requests.add(request); + responseObserver.onNext((AndroidAppDataStream) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void listAndroidAppDataStreams( + ListAndroidAppDataStreamsRequest request, + StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof ListAndroidAppDataStreamsResponse) { + requests.add(request); + responseObserver.onNext((ListAndroidAppDataStreamsResponse) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void getEnhancedMeasurementSettings( + GetEnhancedMeasurementSettingsRequest request, + StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof EnhancedMeasurementSettings) { + requests.add(request); + responseObserver.onNext((EnhancedMeasurementSettings) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void updateEnhancedMeasurementSettings( + UpdateEnhancedMeasurementSettingsRequest request, + StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof EnhancedMeasurementSettings) { + requests.add(request); + responseObserver.onNext((EnhancedMeasurementSettings) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void createFirebaseLink( + CreateFirebaseLinkRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + 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("Unrecognized response type")); + } + } + + @Override + public void updateFirebaseLink( + UpdateFirebaseLinkRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + 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("Unrecognized response type")); + } + } + + @Override + public void deleteFirebaseLink( + DeleteFirebaseLinkRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + 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("Unrecognized response type")); + } + } + + @Override + public void listFirebaseLinks( + ListFirebaseLinksRequest request, + StreamObserver responseObserver) { + Object response = responses.remove(); + 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("Unrecognized response type")); + } + } + + @Override + public void getGlobalSiteTag( + GetGlobalSiteTagRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + 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("Unrecognized response type")); + } + } + + @Override + public void createGoogleAdsLink( + CreateGoogleAdsLinkRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + 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("Unrecognized response type")); + } + } + + @Override + public void updateGoogleAdsLink( + UpdateGoogleAdsLinkRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + 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("Unrecognized response type")); + } + } + + @Override + public void deleteGoogleAdsLink( + DeleteGoogleAdsLinkRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + 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("Unrecognized response type")); + } + } + + @Override + public void listGoogleAdsLinks( + ListGoogleAdsLinksRequest request, + StreamObserver responseObserver) { + Object response = responses.remove(); + 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("Unrecognized response type")); + } + } + + @Override + public void getDataSharingSettings( + GetDataSharingSettingsRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + 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("Unrecognized response type")); + } + } +} diff --git a/grpc-google-analytics-admin-v1alpha/pom.xml b/grpc-google-analytics-admin-v1alpha/pom.xml new file mode 100644 index 00000000..907279ad --- /dev/null +++ b/grpc-google-analytics-admin-v1alpha/pom.xml @@ -0,0 +1,65 @@ + + 4.0.0 + com.google.api.grpc + grpc-google-analytics-admin-v1alpha + 0.0.1-SNAPSHOT + grpc-google-analytics-admin-v1alpha + GRPC library for grpc-google-analytics-admin-v1alpha + + com.google.cloud + google-cloud-analytics-admin-parent + 0.0.1-SNAPSHOT + + + + io.grpc + grpc-api + + + io.grpc + grpc-stub + + + io.grpc + grpc-protobuf + + + com.google.protobuf + protobuf-java + + + com.google.api.grpc + proto-google-cloud-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 new file mode 100644 index 00000000..e9d79141 --- /dev/null +++ b/grpc-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceGrpc.java @@ -0,0 +1,6164 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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; +import static io.grpc.stub.ClientCalls.asyncUnaryCall; +import static io.grpc.stub.ClientCalls.blockingUnaryCall; +import static io.grpc.stub.ClientCalls.futureUnaryCall; +import static io.grpc.stub.ServerCalls.asyncUnaryCall; +import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; + +/** + * + * + *
+ * Service Interface for the Analytics Admin API (App+Web).
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/analytics/admin/v1alpha/analytics_admin.proto") +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.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.protobuf.Empty> + getDeletePropertyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteProperty", + requestType = com.google.analytics.admin.v1alpha.DeletePropertyRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.DeletePropertyRequest, com.google.protobuf.Empty> + getDeletePropertyMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.DeletePropertyRequest, com.google.protobuf.Empty> + 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.protobuf.Empty.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.GetWebDataStreamRequest, + com.google.analytics.admin.v1alpha.WebDataStream> + getGetWebDataStreamMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetWebDataStream", + requestType = com.google.analytics.admin.v1alpha.GetWebDataStreamRequest.class, + responseType = com.google.analytics.admin.v1alpha.WebDataStream.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetWebDataStreamRequest, + com.google.analytics.admin.v1alpha.WebDataStream> + getGetWebDataStreamMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetWebDataStreamRequest, + com.google.analytics.admin.v1alpha.WebDataStream> + getGetWebDataStreamMethod; + if ((getGetWebDataStreamMethod = AnalyticsAdminServiceGrpc.getGetWebDataStreamMethod) == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getGetWebDataStreamMethod = AnalyticsAdminServiceGrpc.getGetWebDataStreamMethod) + == null) { + AnalyticsAdminServiceGrpc.getGetWebDataStreamMethod = + getGetWebDataStreamMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetWebDataStream")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.GetWebDataStreamRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.WebDataStream + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier("GetWebDataStream")) + .build(); + } + } + } + return getGetWebDataStreamMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest, com.google.protobuf.Empty> + getDeleteWebDataStreamMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteWebDataStream", + requestType = com.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest, com.google.protobuf.Empty> + getDeleteWebDataStreamMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest, + com.google.protobuf.Empty> + getDeleteWebDataStreamMethod; + if ((getDeleteWebDataStreamMethod = AnalyticsAdminServiceGrpc.getDeleteWebDataStreamMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getDeleteWebDataStreamMethod = AnalyticsAdminServiceGrpc.getDeleteWebDataStreamMethod) + == null) { + AnalyticsAdminServiceGrpc.getDeleteWebDataStreamMethod = + getDeleteWebDataStreamMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteWebDataStream")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier("DeleteWebDataStream")) + .build(); + } + } + } + return getDeleteWebDataStreamMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest, + com.google.analytics.admin.v1alpha.WebDataStream> + getUpdateWebDataStreamMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateWebDataStream", + requestType = com.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest.class, + responseType = com.google.analytics.admin.v1alpha.WebDataStream.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest, + com.google.analytics.admin.v1alpha.WebDataStream> + getUpdateWebDataStreamMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest, + com.google.analytics.admin.v1alpha.WebDataStream> + getUpdateWebDataStreamMethod; + if ((getUpdateWebDataStreamMethod = AnalyticsAdminServiceGrpc.getUpdateWebDataStreamMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getUpdateWebDataStreamMethod = AnalyticsAdminServiceGrpc.getUpdateWebDataStreamMethod) + == null) { + AnalyticsAdminServiceGrpc.getUpdateWebDataStreamMethod = + getUpdateWebDataStreamMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateWebDataStream")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.WebDataStream + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier("UpdateWebDataStream")) + .build(); + } + } + } + return getUpdateWebDataStreamMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.CreateWebDataStreamRequest, + com.google.analytics.admin.v1alpha.WebDataStream> + getCreateWebDataStreamMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateWebDataStream", + requestType = com.google.analytics.admin.v1alpha.CreateWebDataStreamRequest.class, + responseType = com.google.analytics.admin.v1alpha.WebDataStream.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.CreateWebDataStreamRequest, + com.google.analytics.admin.v1alpha.WebDataStream> + getCreateWebDataStreamMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.CreateWebDataStreamRequest, + com.google.analytics.admin.v1alpha.WebDataStream> + getCreateWebDataStreamMethod; + if ((getCreateWebDataStreamMethod = AnalyticsAdminServiceGrpc.getCreateWebDataStreamMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getCreateWebDataStreamMethod = AnalyticsAdminServiceGrpc.getCreateWebDataStreamMethod) + == null) { + AnalyticsAdminServiceGrpc.getCreateWebDataStreamMethod = + getCreateWebDataStreamMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateWebDataStream")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.CreateWebDataStreamRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.WebDataStream + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier("CreateWebDataStream")) + .build(); + } + } + } + return getCreateWebDataStreamMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ListWebDataStreamsRequest, + com.google.analytics.admin.v1alpha.ListWebDataStreamsResponse> + getListWebDataStreamsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListWebDataStreams", + requestType = com.google.analytics.admin.v1alpha.ListWebDataStreamsRequest.class, + responseType = com.google.analytics.admin.v1alpha.ListWebDataStreamsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ListWebDataStreamsRequest, + com.google.analytics.admin.v1alpha.ListWebDataStreamsResponse> + getListWebDataStreamsMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ListWebDataStreamsRequest, + com.google.analytics.admin.v1alpha.ListWebDataStreamsResponse> + getListWebDataStreamsMethod; + if ((getListWebDataStreamsMethod = AnalyticsAdminServiceGrpc.getListWebDataStreamsMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getListWebDataStreamsMethod = AnalyticsAdminServiceGrpc.getListWebDataStreamsMethod) + == null) { + AnalyticsAdminServiceGrpc.getListWebDataStreamsMethod = + getListWebDataStreamsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListWebDataStreams")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.ListWebDataStreamsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.ListWebDataStreamsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier("ListWebDataStreams")) + .build(); + } + } + } + return getListWebDataStreamsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest, + com.google.analytics.admin.v1alpha.IosAppDataStream> + getGetIosAppDataStreamMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetIosAppDataStream", + requestType = com.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest.class, + responseType = com.google.analytics.admin.v1alpha.IosAppDataStream.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest, + com.google.analytics.admin.v1alpha.IosAppDataStream> + getGetIosAppDataStreamMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest, + com.google.analytics.admin.v1alpha.IosAppDataStream> + getGetIosAppDataStreamMethod; + if ((getGetIosAppDataStreamMethod = AnalyticsAdminServiceGrpc.getGetIosAppDataStreamMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getGetIosAppDataStreamMethod = AnalyticsAdminServiceGrpc.getGetIosAppDataStreamMethod) + == null) { + AnalyticsAdminServiceGrpc.getGetIosAppDataStreamMethod = + getGetIosAppDataStreamMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetIosAppDataStream")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.IosAppDataStream + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier("GetIosAppDataStream")) + .build(); + } + } + } + return getGetIosAppDataStreamMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest, + com.google.protobuf.Empty> + getDeleteIosAppDataStreamMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteIosAppDataStream", + requestType = com.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest, + com.google.protobuf.Empty> + getDeleteIosAppDataStreamMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest, + com.google.protobuf.Empty> + getDeleteIosAppDataStreamMethod; + if ((getDeleteIosAppDataStreamMethod = + AnalyticsAdminServiceGrpc.getDeleteIosAppDataStreamMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getDeleteIosAppDataStreamMethod = + AnalyticsAdminServiceGrpc.getDeleteIosAppDataStreamMethod) + == null) { + AnalyticsAdminServiceGrpc.getDeleteIosAppDataStreamMethod = + getDeleteIosAppDataStreamMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteIosAppDataStream")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "DeleteIosAppDataStream")) + .build(); + } + } + } + return getDeleteIosAppDataStreamMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest, + com.google.analytics.admin.v1alpha.IosAppDataStream> + getUpdateIosAppDataStreamMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateIosAppDataStream", + requestType = com.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest.class, + responseType = com.google.analytics.admin.v1alpha.IosAppDataStream.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest, + com.google.analytics.admin.v1alpha.IosAppDataStream> + getUpdateIosAppDataStreamMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest, + com.google.analytics.admin.v1alpha.IosAppDataStream> + getUpdateIosAppDataStreamMethod; + if ((getUpdateIosAppDataStreamMethod = + AnalyticsAdminServiceGrpc.getUpdateIosAppDataStreamMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getUpdateIosAppDataStreamMethod = + AnalyticsAdminServiceGrpc.getUpdateIosAppDataStreamMethod) + == null) { + AnalyticsAdminServiceGrpc.getUpdateIosAppDataStreamMethod = + getUpdateIosAppDataStreamMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateIosAppDataStream")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.IosAppDataStream + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "UpdateIosAppDataStream")) + .build(); + } + } + } + return getUpdateIosAppDataStreamMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest, + com.google.analytics.admin.v1alpha.IosAppDataStream> + getCreateIosAppDataStreamMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateIosAppDataStream", + requestType = com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest.class, + responseType = com.google.analytics.admin.v1alpha.IosAppDataStream.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest, + com.google.analytics.admin.v1alpha.IosAppDataStream> + getCreateIosAppDataStreamMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest, + com.google.analytics.admin.v1alpha.IosAppDataStream> + getCreateIosAppDataStreamMethod; + if ((getCreateIosAppDataStreamMethod = + AnalyticsAdminServiceGrpc.getCreateIosAppDataStreamMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getCreateIosAppDataStreamMethod = + AnalyticsAdminServiceGrpc.getCreateIosAppDataStreamMethod) + == null) { + AnalyticsAdminServiceGrpc.getCreateIosAppDataStreamMethod = + getCreateIosAppDataStreamMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateIosAppDataStream")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.IosAppDataStream + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "CreateIosAppDataStream")) + .build(); + } + } + } + return getCreateIosAppDataStreamMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest, + com.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse> + getListIosAppDataStreamsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListIosAppDataStreams", + requestType = com.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest.class, + responseType = com.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest, + com.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse> + getListIosAppDataStreamsMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest, + com.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse> + getListIosAppDataStreamsMethod; + if ((getListIosAppDataStreamsMethod = AnalyticsAdminServiceGrpc.getListIosAppDataStreamsMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getListIosAppDataStreamsMethod = + AnalyticsAdminServiceGrpc.getListIosAppDataStreamsMethod) + == null) { + AnalyticsAdminServiceGrpc.getListIosAppDataStreamsMethod = + getListIosAppDataStreamsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListIosAppDataStreams")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "ListIosAppDataStreams")) + .build(); + } + } + } + return getListIosAppDataStreamsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest, + com.google.analytics.admin.v1alpha.AndroidAppDataStream> + getGetAndroidAppDataStreamMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetAndroidAppDataStream", + requestType = com.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest.class, + responseType = com.google.analytics.admin.v1alpha.AndroidAppDataStream.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest, + com.google.analytics.admin.v1alpha.AndroidAppDataStream> + getGetAndroidAppDataStreamMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest, + com.google.analytics.admin.v1alpha.AndroidAppDataStream> + getGetAndroidAppDataStreamMethod; + if ((getGetAndroidAppDataStreamMethod = + AnalyticsAdminServiceGrpc.getGetAndroidAppDataStreamMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getGetAndroidAppDataStreamMethod = + AnalyticsAdminServiceGrpc.getGetAndroidAppDataStreamMethod) + == null) { + AnalyticsAdminServiceGrpc.getGetAndroidAppDataStreamMethod = + getGetAndroidAppDataStreamMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetAndroidAppDataStream")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.AndroidAppDataStream + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "GetAndroidAppDataStream")) + .build(); + } + } + } + return getGetAndroidAppDataStreamMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest, + com.google.protobuf.Empty> + getDeleteAndroidAppDataStreamMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteAndroidAppDataStream", + requestType = com.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest, + com.google.protobuf.Empty> + getDeleteAndroidAppDataStreamMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest, + com.google.protobuf.Empty> + getDeleteAndroidAppDataStreamMethod; + if ((getDeleteAndroidAppDataStreamMethod = + AnalyticsAdminServiceGrpc.getDeleteAndroidAppDataStreamMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getDeleteAndroidAppDataStreamMethod = + AnalyticsAdminServiceGrpc.getDeleteAndroidAppDataStreamMethod) + == null) { + AnalyticsAdminServiceGrpc.getDeleteAndroidAppDataStreamMethod = + getDeleteAndroidAppDataStreamMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteAndroidAppDataStream")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "DeleteAndroidAppDataStream")) + .build(); + } + } + } + return getDeleteAndroidAppDataStreamMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest, + com.google.analytics.admin.v1alpha.AndroidAppDataStream> + getUpdateAndroidAppDataStreamMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateAndroidAppDataStream", + requestType = com.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest.class, + responseType = com.google.analytics.admin.v1alpha.AndroidAppDataStream.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest, + com.google.analytics.admin.v1alpha.AndroidAppDataStream> + getUpdateAndroidAppDataStreamMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest, + com.google.analytics.admin.v1alpha.AndroidAppDataStream> + getUpdateAndroidAppDataStreamMethod; + if ((getUpdateAndroidAppDataStreamMethod = + AnalyticsAdminServiceGrpc.getUpdateAndroidAppDataStreamMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getUpdateAndroidAppDataStreamMethod = + AnalyticsAdminServiceGrpc.getUpdateAndroidAppDataStreamMethod) + == null) { + AnalyticsAdminServiceGrpc.getUpdateAndroidAppDataStreamMethod = + getUpdateAndroidAppDataStreamMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateAndroidAppDataStream")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.AndroidAppDataStream + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "UpdateAndroidAppDataStream")) + .build(); + } + } + } + return getUpdateAndroidAppDataStreamMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest, + com.google.analytics.admin.v1alpha.AndroidAppDataStream> + getCreateAndroidAppDataStreamMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateAndroidAppDataStream", + requestType = com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest.class, + responseType = com.google.analytics.admin.v1alpha.AndroidAppDataStream.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest, + com.google.analytics.admin.v1alpha.AndroidAppDataStream> + getCreateAndroidAppDataStreamMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest, + com.google.analytics.admin.v1alpha.AndroidAppDataStream> + getCreateAndroidAppDataStreamMethod; + if ((getCreateAndroidAppDataStreamMethod = + AnalyticsAdminServiceGrpc.getCreateAndroidAppDataStreamMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getCreateAndroidAppDataStreamMethod = + AnalyticsAdminServiceGrpc.getCreateAndroidAppDataStreamMethod) + == null) { + AnalyticsAdminServiceGrpc.getCreateAndroidAppDataStreamMethod = + getCreateAndroidAppDataStreamMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateAndroidAppDataStream")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.AndroidAppDataStream + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "CreateAndroidAppDataStream")) + .build(); + } + } + } + return getCreateAndroidAppDataStreamMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest, + com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse> + getListAndroidAppDataStreamsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListAndroidAppDataStreams", + requestType = com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest.class, + responseType = com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest, + com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse> + getListAndroidAppDataStreamsMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest, + com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse> + getListAndroidAppDataStreamsMethod; + if ((getListAndroidAppDataStreamsMethod = + AnalyticsAdminServiceGrpc.getListAndroidAppDataStreamsMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getListAndroidAppDataStreamsMethod = + AnalyticsAdminServiceGrpc.getListAndroidAppDataStreamsMethod) + == null) { + AnalyticsAdminServiceGrpc.getListAndroidAppDataStreamsMethod = + getListAndroidAppDataStreamsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListAndroidAppDataStreams")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "ListAndroidAppDataStreams")) + .build(); + } + } + } + return getListAndroidAppDataStreamsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest, + com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings> + getGetEnhancedMeasurementSettingsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetEnhancedMeasurementSettings", + requestType = com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest.class, + responseType = com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest, + com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings> + getGetEnhancedMeasurementSettingsMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest, + com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings> + getGetEnhancedMeasurementSettingsMethod; + if ((getGetEnhancedMeasurementSettingsMethod = + AnalyticsAdminServiceGrpc.getGetEnhancedMeasurementSettingsMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getGetEnhancedMeasurementSettingsMethod = + AnalyticsAdminServiceGrpc.getGetEnhancedMeasurementSettingsMethod) + == null) { + AnalyticsAdminServiceGrpc.getGetEnhancedMeasurementSettingsMethod = + getGetEnhancedMeasurementSettingsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetEnhancedMeasurementSettings")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha + .GetEnhancedMeasurementSettingsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "GetEnhancedMeasurementSettings")) + .build(); + } + } + } + return getGetEnhancedMeasurementSettingsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest, + com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings> + getUpdateEnhancedMeasurementSettingsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateEnhancedMeasurementSettings", + requestType = + com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest.class, + responseType = com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest, + com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings> + getUpdateEnhancedMeasurementSettingsMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest, + com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings> + getUpdateEnhancedMeasurementSettingsMethod; + if ((getUpdateEnhancedMeasurementSettingsMethod = + AnalyticsAdminServiceGrpc.getUpdateEnhancedMeasurementSettingsMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getUpdateEnhancedMeasurementSettingsMethod = + AnalyticsAdminServiceGrpc.getUpdateEnhancedMeasurementSettingsMethod) + == null) { + AnalyticsAdminServiceGrpc.getUpdateEnhancedMeasurementSettingsMethod = + getUpdateEnhancedMeasurementSettingsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateEnhancedMeasurementSettings")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha + .UpdateEnhancedMeasurementSettingsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "UpdateEnhancedMeasurementSettings")) + .build(); + } + } + } + return getUpdateEnhancedMeasurementSettingsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.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.UpdateFirebaseLinkRequest, + com.google.analytics.admin.v1alpha.FirebaseLink> + getUpdateFirebaseLinkMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateFirebaseLink", + requestType = com.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest.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.UpdateFirebaseLinkRequest, + com.google.analytics.admin.v1alpha.FirebaseLink> + getUpdateFirebaseLinkMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest, + com.google.analytics.admin.v1alpha.FirebaseLink> + getUpdateFirebaseLinkMethod; + if ((getUpdateFirebaseLinkMethod = AnalyticsAdminServiceGrpc.getUpdateFirebaseLinkMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getUpdateFirebaseLinkMethod = AnalyticsAdminServiceGrpc.getUpdateFirebaseLinkMethod) + == null) { + AnalyticsAdminServiceGrpc.getUpdateFirebaseLinkMethod = + getUpdateFirebaseLinkMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateFirebaseLink")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.FirebaseLink.getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier("UpdateFirebaseLink")) + .build(); + } + } + } + return getUpdateFirebaseLinkMethod; + } + + 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; + } + + /** 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 (App+Web).
+   * 
+ */ + public abstract static class AnalyticsAdminServiceImplBase implements io.grpc.BindableService { + + /** + * + * + *
+     * Lookup for a single Account.
+     * Throws "Target not found" if no such account found, or if caller does not
+     * have permissions to access it.
+     * 
+ */ + public void getAccount( + com.google.analytics.admin.v1alpha.GetAccountRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getGetAccountMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns all accounts accessible by the caller.
+     * Note that these accounts might not currently have App+Web 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) { + 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) { + asyncUnimplementedUnaryCall(getDeleteAccountMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates an account.
+     * 
+ */ + public void updateAccount( + com.google.analytics.admin.v1alpha.UpdateAccountRequest request, + io.grpc.stub.StreamObserver responseObserver) { + 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) { + asyncUnimplementedUnaryCall(getProvisionAccountTicketMethod(), responseObserver); + } + + /** + * + * + *
+     * Lookup for a single "App+Web" Property.
+     * Throws "Target not found" if no such property found, if property is not
+     * of the type "App+Web", or if caller does not have permissions to access it.
+     * 
+ */ + public void getProperty( + com.google.analytics.admin.v1alpha.GetPropertyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getGetPropertyMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns child Properties under the specified parent Account.
+     * Only "App+Web" 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) { + asyncUnimplementedUnaryCall(getListPropertiesMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates an "App+Web" property with the specified location and attributes.
+     * 
+ */ + public void createProperty( + com.google.analytics.admin.v1alpha.CreatePropertyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + 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 App+Web Property.
+     * 
+ */ + public void deleteProperty( + com.google.analytics.admin.v1alpha.DeletePropertyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getDeletePropertyMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates a property.
+     * 
+ */ + public void updateProperty( + com.google.analytics.admin.v1alpha.UpdatePropertyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + 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) { + 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) { + 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) { + 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) { + 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) { + 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) { + 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) { + 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) { + 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) { + 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) { + asyncUnimplementedUnaryCall(getBatchDeleteUserLinksMethod(), responseObserver); + } + + /** + * + * + *
+     * Lookup for a single WebDataStream
+     * Throws "Target not found" if no such web data stream found, or if the
+     * caller does not have permissions to access it.
+     * 
+ */ + public void getWebDataStream( + com.google.analytics.admin.v1alpha.GetWebDataStreamRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + asyncUnimplementedUnaryCall(getGetWebDataStreamMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a web stream on a property.
+     * 
+ */ + public void deleteWebDataStream( + com.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getDeleteWebDataStreamMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates a web stream on a property.
+     * 
+ */ + public void updateWebDataStream( + com.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + asyncUnimplementedUnaryCall(getUpdateWebDataStreamMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a web stream with the specified location and attributes.
+     * 
+ */ + public void createWebDataStream( + com.google.analytics.admin.v1alpha.CreateWebDataStreamRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + asyncUnimplementedUnaryCall(getCreateWebDataStreamMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns child web data streams under the specified parent property.
+     * Web data streams will be excluded if the caller does not have access.
+     * Returns an empty list if no relevant web data streams are found.
+     * 
+ */ + public void listWebDataStreams( + com.google.analytics.admin.v1alpha.ListWebDataStreamsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + asyncUnimplementedUnaryCall(getListWebDataStreamsMethod(), responseObserver); + } + + /** + * + * + *
+     * Lookup for a single IosAppDataStream
+     * Throws "Target not found" if no such iOS app data stream found, or if the
+     * caller does not have permissions to access it.
+     * 
+ */ + public void getIosAppDataStream( + com.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + asyncUnimplementedUnaryCall(getGetIosAppDataStreamMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes an iOS app stream on a property.
+     * 
+ */ + public void deleteIosAppDataStream( + com.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getDeleteIosAppDataStreamMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates an iOS app stream on a property.
+     * 
+ */ + public void updateIosAppDataStream( + com.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + asyncUnimplementedUnaryCall(getUpdateIosAppDataStreamMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates an iOS app data stream with the specified location and attributes.
+     * 
+ */ + public void createIosAppDataStream( + com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + asyncUnimplementedUnaryCall(getCreateIosAppDataStreamMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns child iOS app data streams under the specified parent property.
+     * iOS app data streams will be excluded if the caller does not have access.
+     * Returns an empty list if no relevant iOS app data streams are found.
+     * 
+ */ + public void listIosAppDataStreams( + com.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest request, + io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse> + responseObserver) { + asyncUnimplementedUnaryCall(getListIosAppDataStreamsMethod(), responseObserver); + } + + /** + * + * + *
+     * Lookup for a single AndroidAppDataStream
+     * Throws "Target not found" if no such android app data stream found, or if
+     * the caller does not have permissions to access it.
+     * 
+ */ + public void getAndroidAppDataStream( + com.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + asyncUnimplementedUnaryCall(getGetAndroidAppDataStreamMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes an android app stream on a property.
+     * 
+ */ + public void deleteAndroidAppDataStream( + com.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getDeleteAndroidAppDataStreamMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates an android app stream on a property.
+     * 
+ */ + public void updateAndroidAppDataStream( + com.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + asyncUnimplementedUnaryCall(getUpdateAndroidAppDataStreamMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates an android app stream with the specified location and attributes.
+     * 
+ */ + public void createAndroidAppDataStream( + com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + asyncUnimplementedUnaryCall(getCreateAndroidAppDataStreamMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns child android app streams under the specified parent property.
+     * Android app streams will be excluded if the caller does not have access.
+     * Returns an empty list if no relevant android app streams are found.
+     * 
+ */ + public void listAndroidAppDataStreams( + com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest request, + io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse> + responseObserver) { + asyncUnimplementedUnaryCall(getListAndroidAppDataStreamsMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns the singleton enhanced measurement settings for this web stream.
+     * Note that the stream must enable enhanced measurement for these settings to
+     * take effect.
+     * 
+ */ + public void getEnhancedMeasurementSettings( + com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + asyncUnimplementedUnaryCall(getGetEnhancedMeasurementSettingsMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates the singleton enhanced measurement settings for this web stream.
+     * Note that the stream must enable enhanced measurement for these settings to
+     * take effect.
+     * 
+ */ + public void updateEnhancedMeasurementSettings( + com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + asyncUnimplementedUnaryCall(getUpdateEnhancedMeasurementSettingsMethod(), 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) { + asyncUnimplementedUnaryCall(getCreateFirebaseLinkMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates a FirebaseLink on a property
+     * 
+ */ + public void updateFirebaseLink( + com.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + asyncUnimplementedUnaryCall(getUpdateFirebaseLinkMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a FirebaseLink on a property
+     * 
+ */ + public void deleteFirebaseLink( + com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest request, + io.grpc.stub.StreamObserver responseObserver) { + 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) { + 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) { + asyncUnimplementedUnaryCall(getGetGlobalSiteTagMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a GoogleAdsLink.
+     * 
+ */ + public void createGoogleAdsLink( + com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + asyncUnimplementedUnaryCall(getCreateGoogleAdsLinkMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates a GoogleAdsLink on a property
+     * 
+ */ + public void updateGoogleAdsLink( + com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + asyncUnimplementedUnaryCall(getUpdateGoogleAdsLinkMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a GoogleAdsLink on a property
+     * 
+ */ + public void deleteGoogleAdsLink( + com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getDeleteGoogleAdsLinkMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists GoogleAdsLinks on a property.
+     * 
+ */ + public void listGoogleAdsLinks( + com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + 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) { + asyncUnimplementedUnaryCall(getGetDataSharingSettingsMethod(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getGetAccountMethod(), + asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.GetAccountRequest, + com.google.analytics.admin.v1alpha.Account>(this, METHODID_GET_ACCOUNT))) + .addMethod( + getListAccountsMethod(), + asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.ListAccountsRequest, + com.google.analytics.admin.v1alpha.ListAccountsResponse>( + this, METHODID_LIST_ACCOUNTS))) + .addMethod( + getDeleteAccountMethod(), + asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.DeleteAccountRequest, + com.google.protobuf.Empty>(this, METHODID_DELETE_ACCOUNT))) + .addMethod( + getUpdateAccountMethod(), + asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.UpdateAccountRequest, + com.google.analytics.admin.v1alpha.Account>(this, METHODID_UPDATE_ACCOUNT))) + .addMethod( + getProvisionAccountTicketMethod(), + asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest, + com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse>( + this, METHODID_PROVISION_ACCOUNT_TICKET))) + .addMethod( + getGetPropertyMethod(), + asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.GetPropertyRequest, + com.google.analytics.admin.v1alpha.Property>(this, METHODID_GET_PROPERTY))) + .addMethod( + getListPropertiesMethod(), + asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.ListPropertiesRequest, + com.google.analytics.admin.v1alpha.ListPropertiesResponse>( + this, METHODID_LIST_PROPERTIES))) + .addMethod( + getCreatePropertyMethod(), + asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.CreatePropertyRequest, + com.google.analytics.admin.v1alpha.Property>(this, METHODID_CREATE_PROPERTY))) + .addMethod( + getDeletePropertyMethod(), + asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.DeletePropertyRequest, + com.google.protobuf.Empty>(this, METHODID_DELETE_PROPERTY))) + .addMethod( + getUpdatePropertyMethod(), + asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.UpdatePropertyRequest, + com.google.analytics.admin.v1alpha.Property>(this, METHODID_UPDATE_PROPERTY))) + .addMethod( + getGetUserLinkMethod(), + asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.GetUserLinkRequest, + com.google.analytics.admin.v1alpha.UserLink>(this, METHODID_GET_USER_LINK))) + .addMethod( + getBatchGetUserLinksMethod(), + asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.BatchGetUserLinksRequest, + com.google.analytics.admin.v1alpha.BatchGetUserLinksResponse>( + this, METHODID_BATCH_GET_USER_LINKS))) + .addMethod( + getListUserLinksMethod(), + asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.ListUserLinksRequest, + com.google.analytics.admin.v1alpha.ListUserLinksResponse>( + this, METHODID_LIST_USER_LINKS))) + .addMethod( + getAuditUserLinksMethod(), + asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.AuditUserLinksRequest, + com.google.analytics.admin.v1alpha.AuditUserLinksResponse>( + this, METHODID_AUDIT_USER_LINKS))) + .addMethod( + getCreateUserLinkMethod(), + asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.CreateUserLinkRequest, + com.google.analytics.admin.v1alpha.UserLink>( + this, METHODID_CREATE_USER_LINK))) + .addMethod( + getBatchCreateUserLinksMethod(), + asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest, + com.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse>( + this, METHODID_BATCH_CREATE_USER_LINKS))) + .addMethod( + getUpdateUserLinkMethod(), + asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.UpdateUserLinkRequest, + com.google.analytics.admin.v1alpha.UserLink>( + this, METHODID_UPDATE_USER_LINK))) + .addMethod( + getBatchUpdateUserLinksMethod(), + asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest, + com.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse>( + this, METHODID_BATCH_UPDATE_USER_LINKS))) + .addMethod( + getDeleteUserLinkMethod(), + asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.DeleteUserLinkRequest, + com.google.protobuf.Empty>(this, METHODID_DELETE_USER_LINK))) + .addMethod( + getBatchDeleteUserLinksMethod(), + asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest, + com.google.protobuf.Empty>(this, METHODID_BATCH_DELETE_USER_LINKS))) + .addMethod( + getGetWebDataStreamMethod(), + asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.GetWebDataStreamRequest, + com.google.analytics.admin.v1alpha.WebDataStream>( + this, METHODID_GET_WEB_DATA_STREAM))) + .addMethod( + getDeleteWebDataStreamMethod(), + asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest, + com.google.protobuf.Empty>(this, METHODID_DELETE_WEB_DATA_STREAM))) + .addMethod( + getUpdateWebDataStreamMethod(), + asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest, + com.google.analytics.admin.v1alpha.WebDataStream>( + this, METHODID_UPDATE_WEB_DATA_STREAM))) + .addMethod( + getCreateWebDataStreamMethod(), + asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.CreateWebDataStreamRequest, + com.google.analytics.admin.v1alpha.WebDataStream>( + this, METHODID_CREATE_WEB_DATA_STREAM))) + .addMethod( + getListWebDataStreamsMethod(), + asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.ListWebDataStreamsRequest, + com.google.analytics.admin.v1alpha.ListWebDataStreamsResponse>( + this, METHODID_LIST_WEB_DATA_STREAMS))) + .addMethod( + getGetIosAppDataStreamMethod(), + asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest, + com.google.analytics.admin.v1alpha.IosAppDataStream>( + this, METHODID_GET_IOS_APP_DATA_STREAM))) + .addMethod( + getDeleteIosAppDataStreamMethod(), + asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest, + com.google.protobuf.Empty>(this, METHODID_DELETE_IOS_APP_DATA_STREAM))) + .addMethod( + getUpdateIosAppDataStreamMethod(), + asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest, + com.google.analytics.admin.v1alpha.IosAppDataStream>( + this, METHODID_UPDATE_IOS_APP_DATA_STREAM))) + .addMethod( + getCreateIosAppDataStreamMethod(), + asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest, + com.google.analytics.admin.v1alpha.IosAppDataStream>( + this, METHODID_CREATE_IOS_APP_DATA_STREAM))) + .addMethod( + getListIosAppDataStreamsMethod(), + asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest, + com.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse>( + this, METHODID_LIST_IOS_APP_DATA_STREAMS))) + .addMethod( + getGetAndroidAppDataStreamMethod(), + asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest, + com.google.analytics.admin.v1alpha.AndroidAppDataStream>( + this, METHODID_GET_ANDROID_APP_DATA_STREAM))) + .addMethod( + getDeleteAndroidAppDataStreamMethod(), + asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest, + com.google.protobuf.Empty>(this, METHODID_DELETE_ANDROID_APP_DATA_STREAM))) + .addMethod( + getUpdateAndroidAppDataStreamMethod(), + asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest, + com.google.analytics.admin.v1alpha.AndroidAppDataStream>( + this, METHODID_UPDATE_ANDROID_APP_DATA_STREAM))) + .addMethod( + getCreateAndroidAppDataStreamMethod(), + asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest, + com.google.analytics.admin.v1alpha.AndroidAppDataStream>( + this, METHODID_CREATE_ANDROID_APP_DATA_STREAM))) + .addMethod( + getListAndroidAppDataStreamsMethod(), + asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest, + com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse>( + this, METHODID_LIST_ANDROID_APP_DATA_STREAMS))) + .addMethod( + getGetEnhancedMeasurementSettingsMethod(), + asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest, + com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings>( + this, METHODID_GET_ENHANCED_MEASUREMENT_SETTINGS))) + .addMethod( + getUpdateEnhancedMeasurementSettingsMethod(), + asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest, + com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings>( + this, METHODID_UPDATE_ENHANCED_MEASUREMENT_SETTINGS))) + .addMethod( + getCreateFirebaseLinkMethod(), + asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest, + com.google.analytics.admin.v1alpha.FirebaseLink>( + this, METHODID_CREATE_FIREBASE_LINK))) + .addMethod( + getUpdateFirebaseLinkMethod(), + asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest, + com.google.analytics.admin.v1alpha.FirebaseLink>( + this, METHODID_UPDATE_FIREBASE_LINK))) + .addMethod( + getDeleteFirebaseLinkMethod(), + asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest, + com.google.protobuf.Empty>(this, METHODID_DELETE_FIREBASE_LINK))) + .addMethod( + getListFirebaseLinksMethod(), + asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.ListFirebaseLinksRequest, + com.google.analytics.admin.v1alpha.ListFirebaseLinksResponse>( + this, METHODID_LIST_FIREBASE_LINKS))) + .addMethod( + getGetGlobalSiteTagMethod(), + asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest, + com.google.analytics.admin.v1alpha.GlobalSiteTag>( + this, METHODID_GET_GLOBAL_SITE_TAG))) + .addMethod( + getCreateGoogleAdsLinkMethod(), + asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest, + com.google.analytics.admin.v1alpha.GoogleAdsLink>( + this, METHODID_CREATE_GOOGLE_ADS_LINK))) + .addMethod( + getUpdateGoogleAdsLinkMethod(), + asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest, + com.google.analytics.admin.v1alpha.GoogleAdsLink>( + this, METHODID_UPDATE_GOOGLE_ADS_LINK))) + .addMethod( + getDeleteGoogleAdsLinkMethod(), + asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest, + com.google.protobuf.Empty>(this, METHODID_DELETE_GOOGLE_ADS_LINK))) + .addMethod( + getListGoogleAdsLinksMethod(), + asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest, + com.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse>( + this, METHODID_LIST_GOOGLE_ADS_LINKS))) + .addMethod( + getGetDataSharingSettingsMethod(), + asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest, + com.google.analytics.admin.v1alpha.DataSharingSettings>( + this, METHODID_GET_DATA_SHARING_SETTINGS))) + .build(); + } + } + + /** + * + * + *
+   * Service Interface for the Analytics Admin API (App+Web).
+   * 
+ */ + 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.
+     * Throws "Target not found" if no such account found, or if caller does not
+     * have permissions to access it.
+     * 
+ */ + public void getAccount( + com.google.analytics.admin.v1alpha.GetAccountRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getGetAccountMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Returns all accounts accessible by the caller.
+     * Note that these accounts might not currently have App+Web 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) { + 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) { + 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) { + 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) { + asyncUnaryCall( + getChannel().newCall(getProvisionAccountTicketMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lookup for a single "App+Web" Property.
+     * Throws "Target not found" if no such property found, if property is not
+     * of the type "App+Web", or if caller does not have permissions to access it.
+     * 
+ */ + public void getProperty( + com.google.analytics.admin.v1alpha.GetPropertyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getGetPropertyMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns child Properties under the specified parent Account.
+     * Only "App+Web" 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) { + asyncUnaryCall( + getChannel().newCall(getListPropertiesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates an "App+Web" property with the specified location and attributes.
+     * 
+ */ + public void createProperty( + com.google.analytics.admin.v1alpha.CreatePropertyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + 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 App+Web Property.
+     * 
+ */ + public void deleteProperty( + com.google.analytics.admin.v1alpha.DeletePropertyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + 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) { + 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) { + 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) { + 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) { + 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) { + 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) { + 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) { + 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) { + 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) { + 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) { + 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) { + asyncUnaryCall( + getChannel().newCall(getBatchDeleteUserLinksMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lookup for a single WebDataStream
+     * Throws "Target not found" if no such web data stream found, or if the
+     * caller does not have permissions to access it.
+     * 
+ */ + public void getWebDataStream( + com.google.analytics.admin.v1alpha.GetWebDataStreamRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + asyncUnaryCall( + getChannel().newCall(getGetWebDataStreamMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a web stream on a property.
+     * 
+ */ + public void deleteWebDataStream( + com.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getDeleteWebDataStreamMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates a web stream on a property.
+     * 
+ */ + public void updateWebDataStream( + com.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + asyncUnaryCall( + getChannel().newCall(getUpdateWebDataStreamMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a web stream with the specified location and attributes.
+     * 
+ */ + public void createWebDataStream( + com.google.analytics.admin.v1alpha.CreateWebDataStreamRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + asyncUnaryCall( + getChannel().newCall(getCreateWebDataStreamMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns child web data streams under the specified parent property.
+     * Web data streams will be excluded if the caller does not have access.
+     * Returns an empty list if no relevant web data streams are found.
+     * 
+ */ + public void listWebDataStreams( + com.google.analytics.admin.v1alpha.ListWebDataStreamsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + asyncUnaryCall( + getChannel().newCall(getListWebDataStreamsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lookup for a single IosAppDataStream
+     * Throws "Target not found" if no such iOS app data stream found, or if the
+     * caller does not have permissions to access it.
+     * 
+ */ + public void getIosAppDataStream( + com.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + asyncUnaryCall( + getChannel().newCall(getGetIosAppDataStreamMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes an iOS app stream on a property.
+     * 
+ */ + public void deleteIosAppDataStream( + com.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getDeleteIosAppDataStreamMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates an iOS app stream on a property.
+     * 
+ */ + public void updateIosAppDataStream( + com.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + asyncUnaryCall( + getChannel().newCall(getUpdateIosAppDataStreamMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates an iOS app data stream with the specified location and attributes.
+     * 
+ */ + public void createIosAppDataStream( + com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + asyncUnaryCall( + getChannel().newCall(getCreateIosAppDataStreamMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns child iOS app data streams under the specified parent property.
+     * iOS app data streams will be excluded if the caller does not have access.
+     * Returns an empty list if no relevant iOS app data streams are found.
+     * 
+ */ + public void listIosAppDataStreams( + com.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest request, + io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse> + responseObserver) { + asyncUnaryCall( + getChannel().newCall(getListIosAppDataStreamsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lookup for a single AndroidAppDataStream
+     * Throws "Target not found" if no such android app data stream found, or if
+     * the caller does not have permissions to access it.
+     * 
+ */ + public void getAndroidAppDataStream( + com.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + asyncUnaryCall( + getChannel().newCall(getGetAndroidAppDataStreamMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes an android app stream on a property.
+     * 
+ */ + public void deleteAndroidAppDataStream( + com.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getDeleteAndroidAppDataStreamMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates an android app stream on a property.
+     * 
+ */ + public void updateAndroidAppDataStream( + com.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + asyncUnaryCall( + getChannel().newCall(getUpdateAndroidAppDataStreamMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates an android app stream with the specified location and attributes.
+     * 
+ */ + public void createAndroidAppDataStream( + com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + asyncUnaryCall( + getChannel().newCall(getCreateAndroidAppDataStreamMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns child android app streams under the specified parent property.
+     * Android app streams will be excluded if the caller does not have access.
+     * Returns an empty list if no relevant android app streams are found.
+     * 
+ */ + public void listAndroidAppDataStreams( + com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest request, + io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse> + responseObserver) { + asyncUnaryCall( + getChannel().newCall(getListAndroidAppDataStreamsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns the singleton enhanced measurement settings for this web stream.
+     * Note that the stream must enable enhanced measurement for these settings to
+     * take effect.
+     * 
+ */ + public void getEnhancedMeasurementSettings( + com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + asyncUnaryCall( + getChannel().newCall(getGetEnhancedMeasurementSettingsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates the singleton enhanced measurement settings for this web stream.
+     * Note that the stream must enable enhanced measurement for these settings to
+     * take effect.
+     * 
+ */ + public void updateEnhancedMeasurementSettings( + com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + asyncUnaryCall( + getChannel().newCall(getUpdateEnhancedMeasurementSettingsMethod(), 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) { + asyncUnaryCall( + getChannel().newCall(getCreateFirebaseLinkMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates a FirebaseLink on a property
+     * 
+ */ + public void updateFirebaseLink( + com.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + asyncUnaryCall( + getChannel().newCall(getUpdateFirebaseLinkMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a FirebaseLink on a property
+     * 
+ */ + public void deleteFirebaseLink( + com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest request, + io.grpc.stub.StreamObserver responseObserver) { + 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) { + 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) { + 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) { + 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) { + 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) { + 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) { + 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) { + asyncUnaryCall( + getChannel().newCall(getGetDataSharingSettingsMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * + * + *
+   * Service Interface for the Analytics Admin API (App+Web).
+   * 
+ */ + 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.
+     * Throws "Target not found" if no such account found, or if caller does not
+     * have permissions to access it.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.Account getAccount( + com.google.analytics.admin.v1alpha.GetAccountRequest request) { + return blockingUnaryCall(getChannel(), getGetAccountMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns all accounts accessible by the caller.
+     * Note that these accounts might not currently have App+Web 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 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 blockingUnaryCall(getChannel(), getDeleteAccountMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates an account.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.Account updateAccount( + com.google.analytics.admin.v1alpha.UpdateAccountRequest request) { + return 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 blockingUnaryCall( + getChannel(), getProvisionAccountTicketMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lookup for a single "App+Web" Property.
+     * Throws "Target not found" if no such property found, if property is not
+     * of the type "App+Web", or if caller does not have permissions to access it.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.Property getProperty( + com.google.analytics.admin.v1alpha.GetPropertyRequest request) { + return blockingUnaryCall(getChannel(), getGetPropertyMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns child Properties under the specified parent Account.
+     * Only "App+Web" 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 blockingUnaryCall(getChannel(), getListPropertiesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates an "App+Web" property with the specified location and attributes.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.Property createProperty( + com.google.analytics.admin.v1alpha.CreatePropertyRequest request) { + return 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 App+Web Property.
+     * 
+ */ + public com.google.protobuf.Empty deleteProperty( + com.google.analytics.admin.v1alpha.DeletePropertyRequest request) { + return blockingUnaryCall(getChannel(), getDeletePropertyMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates a property.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.Property updateProperty( + com.google.analytics.admin.v1alpha.UpdatePropertyRequest request) { + return 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 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 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 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 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 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 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 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 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 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 blockingUnaryCall( + getChannel(), getBatchDeleteUserLinksMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lookup for a single WebDataStream
+     * Throws "Target not found" if no such web data stream found, or if the
+     * caller does not have permissions to access it.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.WebDataStream getWebDataStream( + com.google.analytics.admin.v1alpha.GetWebDataStreamRequest request) { + return blockingUnaryCall( + getChannel(), getGetWebDataStreamMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a web stream on a property.
+     * 
+ */ + public com.google.protobuf.Empty deleteWebDataStream( + com.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest request) { + return blockingUnaryCall( + getChannel(), getDeleteWebDataStreamMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates a web stream on a property.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.WebDataStream updateWebDataStream( + com.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest request) { + return blockingUnaryCall( + getChannel(), getUpdateWebDataStreamMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a web stream with the specified location and attributes.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.WebDataStream createWebDataStream( + com.google.analytics.admin.v1alpha.CreateWebDataStreamRequest request) { + return blockingUnaryCall( + getChannel(), getCreateWebDataStreamMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns child web data streams under the specified parent property.
+     * Web data streams will be excluded if the caller does not have access.
+     * Returns an empty list if no relevant web data streams are found.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.ListWebDataStreamsResponse listWebDataStreams( + com.google.analytics.admin.v1alpha.ListWebDataStreamsRequest request) { + return blockingUnaryCall( + getChannel(), getListWebDataStreamsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lookup for a single IosAppDataStream
+     * Throws "Target not found" if no such iOS app data stream found, or if the
+     * caller does not have permissions to access it.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.IosAppDataStream getIosAppDataStream( + com.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest request) { + return blockingUnaryCall( + getChannel(), getGetIosAppDataStreamMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes an iOS app stream on a property.
+     * 
+ */ + public com.google.protobuf.Empty deleteIosAppDataStream( + com.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest request) { + return blockingUnaryCall( + getChannel(), getDeleteIosAppDataStreamMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates an iOS app stream on a property.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.IosAppDataStream updateIosAppDataStream( + com.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest request) { + return blockingUnaryCall( + getChannel(), getUpdateIosAppDataStreamMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates an iOS app data stream with the specified location and attributes.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.IosAppDataStream createIosAppDataStream( + com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest request) { + return blockingUnaryCall( + getChannel(), getCreateIosAppDataStreamMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns child iOS app data streams under the specified parent property.
+     * iOS app data streams will be excluded if the caller does not have access.
+     * Returns an empty list if no relevant iOS app data streams are found.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse listIosAppDataStreams( + com.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest request) { + return blockingUnaryCall( + getChannel(), getListIosAppDataStreamsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lookup for a single AndroidAppDataStream
+     * Throws "Target not found" if no such android app data stream found, or if
+     * the caller does not have permissions to access it.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.AndroidAppDataStream getAndroidAppDataStream( + com.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest request) { + return blockingUnaryCall( + getChannel(), getGetAndroidAppDataStreamMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes an android app stream on a property.
+     * 
+ */ + public com.google.protobuf.Empty deleteAndroidAppDataStream( + com.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest request) { + return blockingUnaryCall( + getChannel(), getDeleteAndroidAppDataStreamMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates an android app stream on a property.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.AndroidAppDataStream updateAndroidAppDataStream( + com.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest request) { + return blockingUnaryCall( + getChannel(), getUpdateAndroidAppDataStreamMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates an android app stream with the specified location and attributes.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.AndroidAppDataStream createAndroidAppDataStream( + com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest request) { + return blockingUnaryCall( + getChannel(), getCreateAndroidAppDataStreamMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns child android app streams under the specified parent property.
+     * Android app streams will be excluded if the caller does not have access.
+     * Returns an empty list if no relevant android app streams are found.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse + listAndroidAppDataStreams( + com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest request) { + return blockingUnaryCall( + getChannel(), getListAndroidAppDataStreamsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns the singleton enhanced measurement settings for this web stream.
+     * Note that the stream must enable enhanced measurement for these settings to
+     * take effect.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings + getEnhancedMeasurementSettings( + com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest request) { + return blockingUnaryCall( + getChannel(), getGetEnhancedMeasurementSettingsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates the singleton enhanced measurement settings for this web stream.
+     * Note that the stream must enable enhanced measurement for these settings to
+     * take effect.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings + updateEnhancedMeasurementSettings( + com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest request) { + return blockingUnaryCall( + getChannel(), getUpdateEnhancedMeasurementSettingsMethod(), 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 blockingUnaryCall( + getChannel(), getCreateFirebaseLinkMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates a FirebaseLink on a property
+     * 
+ */ + public com.google.analytics.admin.v1alpha.FirebaseLink updateFirebaseLink( + com.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest request) { + return blockingUnaryCall( + getChannel(), getUpdateFirebaseLinkMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a FirebaseLink on a property
+     * 
+ */ + public com.google.protobuf.Empty deleteFirebaseLink( + com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest request) { + return 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 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 blockingUnaryCall( + getChannel(), getGetGlobalSiteTagMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a GoogleAdsLink.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.GoogleAdsLink createGoogleAdsLink( + com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest request) { + return 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 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 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 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 blockingUnaryCall( + getChannel(), getGetDataSharingSettingsMethod(), getCallOptions(), request); + } + } + + /** + * + * + *
+   * Service Interface for the Analytics Admin API (App+Web).
+   * 
+ */ + 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.
+     * Throws "Target not found" if no such account found, or if caller does not
+     * have permissions to access it.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.Account> + getAccount(com.google.analytics.admin.v1alpha.GetAccountRequest request) { + return futureUnaryCall( + getChannel().newCall(getGetAccountMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Returns all accounts accessible by the caller.
+     * Note that these accounts might not currently have App+Web 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 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 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 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 futureUnaryCall( + getChannel().newCall(getProvisionAccountTicketMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lookup for a single "App+Web" Property.
+     * Throws "Target not found" if no such property found, if property is not
+     * of the type "App+Web", or if caller does not have permissions to access it.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.Property> + getProperty(com.google.analytics.admin.v1alpha.GetPropertyRequest request) { + return futureUnaryCall( + getChannel().newCall(getGetPropertyMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Returns child Properties under the specified parent Account.
+     * Only "App+Web" 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 futureUnaryCall( + getChannel().newCall(getListPropertiesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates an "App+Web" 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 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 App+Web Property.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteProperty(com.google.analytics.admin.v1alpha.DeletePropertyRequest request) { + return 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 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 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 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 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 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 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 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 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 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 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 futureUnaryCall( + getChannel().newCall(getBatchDeleteUserLinksMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lookup for a single WebDataStream
+     * Throws "Target not found" if no such web data stream found, or if the
+     * caller does not have permissions to access it.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.WebDataStream> + getWebDataStream(com.google.analytics.admin.v1alpha.GetWebDataStreamRequest request) { + return futureUnaryCall( + getChannel().newCall(getGetWebDataStreamMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a web stream on a property.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteWebDataStream(com.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest request) { + return futureUnaryCall( + getChannel().newCall(getDeleteWebDataStreamMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates a web stream on a property.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.WebDataStream> + updateWebDataStream(com.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest request) { + return futureUnaryCall( + getChannel().newCall(getUpdateWebDataStreamMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a web stream with the specified location and attributes.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.WebDataStream> + createWebDataStream(com.google.analytics.admin.v1alpha.CreateWebDataStreamRequest request) { + return futureUnaryCall( + getChannel().newCall(getCreateWebDataStreamMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Returns child web data streams under the specified parent property.
+     * Web data streams will be excluded if the caller does not have access.
+     * Returns an empty list if no relevant web data streams are found.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.ListWebDataStreamsResponse> + listWebDataStreams(com.google.analytics.admin.v1alpha.ListWebDataStreamsRequest request) { + return futureUnaryCall( + getChannel().newCall(getListWebDataStreamsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lookup for a single IosAppDataStream
+     * Throws "Target not found" if no such iOS app data stream found, or if the
+     * caller does not have permissions to access it.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.IosAppDataStream> + getIosAppDataStream(com.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest request) { + return futureUnaryCall( + getChannel().newCall(getGetIosAppDataStreamMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes an iOS app stream on a property.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteIosAppDataStream( + com.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest request) { + return futureUnaryCall( + getChannel().newCall(getDeleteIosAppDataStreamMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates an iOS app stream on a property.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.IosAppDataStream> + updateIosAppDataStream( + com.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest request) { + return futureUnaryCall( + getChannel().newCall(getUpdateIosAppDataStreamMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates an iOS app data stream with the specified location and attributes.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.IosAppDataStream> + createIosAppDataStream( + com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest request) { + return futureUnaryCall( + getChannel().newCall(getCreateIosAppDataStreamMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Returns child iOS app data streams under the specified parent property.
+     * iOS app data streams will be excluded if the caller does not have access.
+     * Returns an empty list if no relevant iOS app data streams are found.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse> + listIosAppDataStreams( + com.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest request) { + return futureUnaryCall( + getChannel().newCall(getListIosAppDataStreamsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lookup for a single AndroidAppDataStream
+     * Throws "Target not found" if no such android app data stream found, or if
+     * the caller does not have permissions to access it.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.AndroidAppDataStream> + getAndroidAppDataStream( + com.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest request) { + return futureUnaryCall( + getChannel().newCall(getGetAndroidAppDataStreamMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes an android app stream on a property.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteAndroidAppDataStream( + com.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest request) { + return futureUnaryCall( + getChannel().newCall(getDeleteAndroidAppDataStreamMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates an android app stream on a property.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.AndroidAppDataStream> + updateAndroidAppDataStream( + com.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest request) { + return futureUnaryCall( + getChannel().newCall(getUpdateAndroidAppDataStreamMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates an android app stream with the specified location and attributes.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.AndroidAppDataStream> + createAndroidAppDataStream( + com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest request) { + return futureUnaryCall( + getChannel().newCall(getCreateAndroidAppDataStreamMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Returns child android app streams under the specified parent property.
+     * Android app streams will be excluded if the caller does not have access.
+     * Returns an empty list if no relevant android app streams are found.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse> + listAndroidAppDataStreams( + com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest request) { + return futureUnaryCall( + getChannel().newCall(getListAndroidAppDataStreamsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Returns the singleton enhanced measurement settings for this web stream.
+     * Note that the stream must enable enhanced measurement for these settings to
+     * take effect.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings> + getEnhancedMeasurementSettings( + com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest request) { + return futureUnaryCall( + getChannel().newCall(getGetEnhancedMeasurementSettingsMethod(), getCallOptions()), + request); + } + + /** + * + * + *
+     * Updates the singleton enhanced measurement settings for this web stream.
+     * Note that the stream must enable enhanced measurement for these settings to
+     * take effect.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings> + updateEnhancedMeasurementSettings( + com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest request) { + return futureUnaryCall( + getChannel().newCall(getUpdateEnhancedMeasurementSettingsMethod(), 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 futureUnaryCall( + getChannel().newCall(getCreateFirebaseLinkMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates a FirebaseLink on a property
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.FirebaseLink> + updateFirebaseLink(com.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest request) { + return futureUnaryCall( + getChannel().newCall(getUpdateFirebaseLinkMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a FirebaseLink on a property
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteFirebaseLink(com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest request) { + return 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 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 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 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 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 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 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 futureUnaryCall( + getChannel().newCall(getGetDataSharingSettingsMethod(), 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_GET_PROPERTY = 5; + private static final int METHODID_LIST_PROPERTIES = 6; + private static final int METHODID_CREATE_PROPERTY = 7; + private static final int METHODID_DELETE_PROPERTY = 8; + private static final int METHODID_UPDATE_PROPERTY = 9; + private static final int METHODID_GET_USER_LINK = 10; + private static final int METHODID_BATCH_GET_USER_LINKS = 11; + private static final int METHODID_LIST_USER_LINKS = 12; + private static final int METHODID_AUDIT_USER_LINKS = 13; + private static final int METHODID_CREATE_USER_LINK = 14; + private static final int METHODID_BATCH_CREATE_USER_LINKS = 15; + private static final int METHODID_UPDATE_USER_LINK = 16; + private static final int METHODID_BATCH_UPDATE_USER_LINKS = 17; + private static final int METHODID_DELETE_USER_LINK = 18; + private static final int METHODID_BATCH_DELETE_USER_LINKS = 19; + private static final int METHODID_GET_WEB_DATA_STREAM = 20; + private static final int METHODID_DELETE_WEB_DATA_STREAM = 21; + private static final int METHODID_UPDATE_WEB_DATA_STREAM = 22; + private static final int METHODID_CREATE_WEB_DATA_STREAM = 23; + private static final int METHODID_LIST_WEB_DATA_STREAMS = 24; + private static final int METHODID_GET_IOS_APP_DATA_STREAM = 25; + private static final int METHODID_DELETE_IOS_APP_DATA_STREAM = 26; + private static final int METHODID_UPDATE_IOS_APP_DATA_STREAM = 27; + private static final int METHODID_CREATE_IOS_APP_DATA_STREAM = 28; + private static final int METHODID_LIST_IOS_APP_DATA_STREAMS = 29; + private static final int METHODID_GET_ANDROID_APP_DATA_STREAM = 30; + private static final int METHODID_DELETE_ANDROID_APP_DATA_STREAM = 31; + private static final int METHODID_UPDATE_ANDROID_APP_DATA_STREAM = 32; + private static final int METHODID_CREATE_ANDROID_APP_DATA_STREAM = 33; + private static final int METHODID_LIST_ANDROID_APP_DATA_STREAMS = 34; + private static final int METHODID_GET_ENHANCED_MEASUREMENT_SETTINGS = 35; + private static final int METHODID_UPDATE_ENHANCED_MEASUREMENT_SETTINGS = 36; + private static final int METHODID_CREATE_FIREBASE_LINK = 37; + private static final int METHODID_UPDATE_FIREBASE_LINK = 38; + private static final int METHODID_DELETE_FIREBASE_LINK = 39; + private static final int METHODID_LIST_FIREBASE_LINKS = 40; + private static final int METHODID_GET_GLOBAL_SITE_TAG = 41; + private static final int METHODID_CREATE_GOOGLE_ADS_LINK = 42; + private static final int METHODID_UPDATE_GOOGLE_ADS_LINK = 43; + private static final int METHODID_DELETE_GOOGLE_ADS_LINK = 44; + private static final int METHODID_LIST_GOOGLE_ADS_LINKS = 45; + private static final int METHODID_GET_DATA_SHARING_SETTINGS = 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.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_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_GET_WEB_DATA_STREAM: + serviceImpl.getWebDataStream( + (com.google.analytics.admin.v1alpha.GetWebDataStreamRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_WEB_DATA_STREAM: + serviceImpl.deleteWebDataStream( + (com.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_WEB_DATA_STREAM: + serviceImpl.updateWebDataStream( + (com.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_WEB_DATA_STREAM: + serviceImpl.createWebDataStream( + (com.google.analytics.admin.v1alpha.CreateWebDataStreamRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_WEB_DATA_STREAMS: + serviceImpl.listWebDataStreams( + (com.google.analytics.admin.v1alpha.ListWebDataStreamsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.ListWebDataStreamsResponse>) + responseObserver); + break; + case METHODID_GET_IOS_APP_DATA_STREAM: + serviceImpl.getIosAppDataStream( + (com.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_IOS_APP_DATA_STREAM: + serviceImpl.deleteIosAppDataStream( + (com.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_IOS_APP_DATA_STREAM: + serviceImpl.updateIosAppDataStream( + (com.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_IOS_APP_DATA_STREAM: + serviceImpl.createIosAppDataStream( + (com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_IOS_APP_DATA_STREAMS: + serviceImpl.listIosAppDataStreams( + (com.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse>) + responseObserver); + break; + case METHODID_GET_ANDROID_APP_DATA_STREAM: + serviceImpl.getAndroidAppDataStream( + (com.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_ANDROID_APP_DATA_STREAM: + serviceImpl.deleteAndroidAppDataStream( + (com.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_ANDROID_APP_DATA_STREAM: + serviceImpl.updateAndroidAppDataStream( + (com.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_ANDROID_APP_DATA_STREAM: + serviceImpl.createAndroidAppDataStream( + (com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_ANDROID_APP_DATA_STREAMS: + serviceImpl.listAndroidAppDataStreams( + (com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse>) + responseObserver); + break; + case METHODID_GET_ENHANCED_MEASUREMENT_SETTINGS: + serviceImpl.getEnhancedMeasurementSettings( + (com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings>) + responseObserver); + break; + case METHODID_UPDATE_ENHANCED_MEASUREMENT_SETTINGS: + serviceImpl.updateEnhancedMeasurementSettings( + (com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings>) + responseObserver); + break; + case METHODID_CREATE_FIREBASE_LINK: + serviceImpl.createFirebaseLink( + (com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_FIREBASE_LINK: + serviceImpl.updateFirebaseLink( + (com.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest) 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; + 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(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(getGetWebDataStreamMethod()) + .addMethod(getDeleteWebDataStreamMethod()) + .addMethod(getUpdateWebDataStreamMethod()) + .addMethod(getCreateWebDataStreamMethod()) + .addMethod(getListWebDataStreamsMethod()) + .addMethod(getGetIosAppDataStreamMethod()) + .addMethod(getDeleteIosAppDataStreamMethod()) + .addMethod(getUpdateIosAppDataStreamMethod()) + .addMethod(getCreateIosAppDataStreamMethod()) + .addMethod(getListIosAppDataStreamsMethod()) + .addMethod(getGetAndroidAppDataStreamMethod()) + .addMethod(getDeleteAndroidAppDataStreamMethod()) + .addMethod(getUpdateAndroidAppDataStreamMethod()) + .addMethod(getCreateAndroidAppDataStreamMethod()) + .addMethod(getListAndroidAppDataStreamsMethod()) + .addMethod(getGetEnhancedMeasurementSettingsMethod()) + .addMethod(getUpdateEnhancedMeasurementSettingsMethod()) + .addMethod(getCreateFirebaseLinkMethod()) + .addMethod(getUpdateFirebaseLinkMethod()) + .addMethod(getDeleteFirebaseLinkMethod()) + .addMethod(getListFirebaseLinksMethod()) + .addMethod(getGetGlobalSiteTagMethod()) + .addMethod(getCreateGoogleAdsLinkMethod()) + .addMethod(getUpdateGoogleAdsLinkMethod()) + .addMethod(getDeleteGoogleAdsLinkMethod()) + .addMethod(getListGoogleAdsLinksMethod()) + .addMethod(getGetDataSharingSettingsMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java.header b/java.header new file mode 100644 index 00000000..3a9b503a --- /dev/null +++ b/java.header @@ -0,0 +1,15 @@ +^/\*$ +^ \* Copyright \d\d\d\d,? Google (Inc\.|LLC)( All [rR]ights [rR]eserved\.)?$ +^ \*$ +^ \* Licensed under the Apache License, Version 2\.0 \(the "License"\);$ +^ \* you may not use this file except in compliance with the License\.$ +^ \* You may obtain a copy of the License at$ +^ \*$ +^ \*[ ]+https?://www.apache.org/licenses/LICENSE-2\.0$ +^ \*$ +^ \* Unless required by applicable law or agreed to in writing, software$ +^ \* distributed under the License is distributed on an "AS IS" BASIS,$ +^ \* WITHOUT 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 new file mode 100644 index 00000000..6597fced --- /dev/null +++ b/license-checks.xml @@ -0,0 +1,10 @@ + + + + + + + + diff --git a/pom.xml b/pom.xml new file mode 100644 index 00000000..af532fc4 --- /dev/null +++ b/pom.xml @@ -0,0 +1,186 @@ + + + 4.0.0 + com.google.cloud + google-cloud-analytics-admin-parent + pom + 0.0.1-SNAPSHOT + 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 + 0.5.0 + + + + + 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 + + + + sonatype-nexus-snapshots + https://oss.sonatype.org/content/repositories/snapshots + + + sonatype-nexus-staging + https://oss.sonatype.org/service/local/staging/deploy/maven2/ + + + + + Apache-2.0 + https://www.apache.org/licenses/LICENSE-2.0.txt + + + + + UTF-8 + UTF-8 + github + google-cloud-analytics-admin-parent + + + + + + com.google.analytics + google-analytics-admin + 0.0.1-SNAPSHOT + + + com.google.api.grpc + proto-google-analytics-admin-v1alpha + 0.0.1-SNAPSHOT + + + com.google.api.grpc + grpc-google-analytics-admin-v1alpha + 0.0.1-SNAPSHOT + + + + com.google.cloud + google-cloud-shared-dependencies + 0.1.1 + pom + import + + + + + + + + + org.apache.maven.plugins + maven-dependency-plugin + + org.objenesis:objenesis + + + + + + + + google-analytics-admin + proto-google-analytics-admin-v1alpha + grpc-google-analytics-admin-v1alpha + google-cloud-analytics-admin-bom + + + + + + org.apache.maven.plugins + maven-project-info-reports-plugin + 3.0.0 + + + + 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.1.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/ + + + + + + \ No newline at end of file diff --git a/proto-google-analytics-admin-v1alpha/pom.xml b/proto-google-analytics-admin-v1alpha/pom.xml new file mode 100644 index 00000000..18578822 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/pom.xml @@ -0,0 +1,42 @@ + + 4.0.0 + com.google.api.grpc + proto-google-analytics-admin-v1alpha + 0.0.1-SNAPSHOT + proto-google-analytics-admin-v1alpha + PROTO library for proto-google-analytics-admin-v1alpha + + com.google.cloud + google-cloud-analytics-admin-parent + 0.0.1-SNAPSHOT + + + + 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/Account.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/Account.java new file mode 100644 index 00000000..2c5d8013 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/Account.java @@ -0,0 +1,1693 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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_ = ""; + countryCode_ = ""; + } + + @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; + } + + private Account( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 18: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); + } + createTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); + } + + break; + } + case 26: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (updateTime_ != null) { + subBuilder = updateTime_.toBuilder(); + } + updateTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateTime_); + updateTime_ = subBuilder.buildPartial(); + } + + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + displayName_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + + countryCode_ = s; + break; + } + case 48: + { + deleted_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_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 COUNTRY_CODE_FIELD_NUMBER = 5; + private volatile java.lang.Object countryCode_; + /** + * + * + *
+   * Country of business. Must be a non-deprecated code for a UN M.49 region.
+   * https://unicode.org/cldr/charts/latest/supplemental/territory_containment_un_m_49.html
+   * 
+ * + * string country_code = 5; + * + * @return The countryCode. + */ + @java.lang.Override + public java.lang.String getCountryCode() { + java.lang.Object ref = countryCode_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + countryCode_ = s; + return s; + } + } + /** + * + * + *
+   * Country of business. Must be a non-deprecated code for a UN M.49 region.
+   * https://unicode.org/cldr/charts/latest/supplemental/territory_containment_un_m_49.html
+   * 
+ * + * string country_code = 5; + * + * @return The bytes for countryCode. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCountryCodeBytes() { + java.lang.Object ref = countryCode_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + countryCode_ = 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 (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (createTime_ != null) { + output.writeMessage(2, getCreateTime()); + } + if (updateTime_ != null) { + output.writeMessage(3, getUpdateTime()); + } + if (!getDisplayNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, displayName_); + } + if (!getCountryCodeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, countryCode_); + } + if (deleted_ != false) { + output.writeBool(6, deleted_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + 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 (!getDisplayNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, displayName_); + } + if (!getCountryCodeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, countryCode_); + } + if (deleted_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, deleted_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.admin.v1alpha.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 (!getCountryCode().equals(other.getCountryCode())) return false; + if (getDeleted() != other.getDeleted()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + 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) + COUNTRY_CODE_FIELD_NUMBER; + hash = (53 * hash) + getCountryCode().hashCode(); + hash = (37 * hash) + DELETED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDeleted()); + hash = (29 * hash) + unknownFields.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() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + if (createTimeBuilder_ == null) { + createTime_ = null; + } else { + createTime_ = null; + createTimeBuilder_ = null; + } + if (updateTimeBuilder_ == null) { + updateTime_ = null; + } else { + updateTime_ = null; + updateTimeBuilder_ = null; + } + displayName_ = ""; + + countryCode_ = ""; + + 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.countryCode_ = countryCode_; + 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.getCountryCode().isEmpty()) { + countryCode_ = other.countryCode_; + onChanged(); + } + if (other.getDeleted() != false) { + setDeleted(other.getDeleted()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.analytics.admin.v1alpha.Account parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.analytics.admin.v1alpha.Account) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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 countryCode_ = ""; + /** + * + * + *
+     * Country of business. Must be a non-deprecated code for a UN M.49 region.
+     * https://unicode.org/cldr/charts/latest/supplemental/territory_containment_un_m_49.html
+     * 
+ * + * string country_code = 5; + * + * @return The countryCode. + */ + public java.lang.String getCountryCode() { + java.lang.Object ref = countryCode_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + countryCode_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Country of business. Must be a non-deprecated code for a UN M.49 region.
+     * https://unicode.org/cldr/charts/latest/supplemental/territory_containment_un_m_49.html
+     * 
+ * + * string country_code = 5; + * + * @return The bytes for countryCode. + */ + public com.google.protobuf.ByteString getCountryCodeBytes() { + java.lang.Object ref = countryCode_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + countryCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Country of business. Must be a non-deprecated code for a UN M.49 region.
+     * https://unicode.org/cldr/charts/latest/supplemental/territory_containment_un_m_49.html
+     * 
+ * + * string country_code = 5; + * + * @param value The countryCode to set. + * @return This builder for chaining. + */ + public Builder setCountryCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + countryCode_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Country of business. Must be a non-deprecated code for a UN M.49 region.
+     * https://unicode.org/cldr/charts/latest/supplemental/territory_containment_un_m_49.html
+     * 
+ * + * string country_code = 5; + * + * @return This builder for chaining. + */ + public Builder clearCountryCode() { + + countryCode_ = getDefaultInstance().getCountryCode(); + onChanged(); + return this; + } + /** + * + * + *
+     * Country of business. Must be a non-deprecated code for a UN M.49 region.
+     * https://unicode.org/cldr/charts/latest/supplemental/territory_containment_un_m_49.html
+     * 
+ * + * string country_code = 5; + * + * @param value The bytes for countryCode to set. + * @return This builder for chaining. + */ + public Builder setCountryCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + countryCode_ = 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 { + return new Account(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.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 new file mode 100644 index 00000000..87238e8e --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccountName.java @@ -0,0 +1,162 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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; + +/** AUTO-GENERATED DOCUMENTATION AND CLASS */ +@javax.annotation.Generated("by GAPIC protoc plugin") +public class AccountName implements ResourceName { + + private static final PathTemplate PATH_TEMPLATE = + PathTemplate.createWithoutUrlEncoding("accounts/{account}"); + + private volatile Map fieldValuesMap; + + private final String account; + + public String getAccount() { + return account; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + private AccountName(Builder builder) { + account = Preconditions.checkNotNull(builder.getAccount()); + } + + 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 = + PATH_TEMPLATE.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 PATH_TEMPLATE.matches(formattedString); + } + + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + fieldMapBuilder.put("account", account); + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PATH_TEMPLATE.instantiate("account", account); + } + + /** Builder for AccountName. */ + public static class Builder { + + private String account; + + public String getAccount() { + return account; + } + + public Builder setAccount(String account) { + this.account = account; + return this; + } + + private Builder() {} + + private Builder(AccountName accountName) { + account = accountName.account; + } + + public AccountName build() { + return new AccountName(this); + } + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o instanceof AccountName) { + AccountName that = (AccountName) o; + return (this.account.equals(that.account)); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= account.hashCode(); + return h; + } +} 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 new file mode 100644 index 00000000..a6654db5 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccountOrBuilder.java @@ -0,0 +1,196 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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 non-deprecated code for a UN M.49 region.
+   * https://unicode.org/cldr/charts/latest/supplemental/territory_containment_un_m_49.html
+   * 
+ * + * string country_code = 5; + * + * @return The countryCode. + */ + java.lang.String getCountryCode(); + /** + * + * + *
+   * Country of business. Must be a non-deprecated code for a UN M.49 region.
+   * https://unicode.org/cldr/charts/latest/supplemental/territory_containment_un_m_49.html
+   * 
+ * + * string country_code = 5; + * + * @return The bytes for countryCode. + */ + com.google.protobuf.ByteString getCountryCodeBytes(); + + /** + * + * + *
+   * 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/AnalyticsAdminProto.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminProto.java new file mode 100644 index 00000000..75d62f1d --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminProto.java @@ -0,0 +1,1250 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// 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_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_GetWebDataStreamRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_GetWebDataStreamRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_DeleteWebDataStreamRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_DeleteWebDataStreamRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_UpdateWebDataStreamRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_UpdateWebDataStreamRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_CreateWebDataStreamRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_CreateWebDataStreamRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_ListWebDataStreamsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_ListWebDataStreamsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_ListWebDataStreamsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_ListWebDataStreamsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_GetIosAppDataStreamRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_GetIosAppDataStreamRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_DeleteIosAppDataStreamRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_DeleteIosAppDataStreamRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_UpdateIosAppDataStreamRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_UpdateIosAppDataStreamRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_CreateIosAppDataStreamRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_CreateIosAppDataStreamRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_ListIosAppDataStreamsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_ListIosAppDataStreamsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_ListIosAppDataStreamsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_ListIosAppDataStreamsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_GetAndroidAppDataStreamRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_GetAndroidAppDataStreamRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_DeleteAndroidAppDataStreamRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_DeleteAndroidAppDataStreamRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_UpdateAndroidAppDataStreamRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_UpdateAndroidAppDataStreamRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_CreateAndroidAppDataStreamRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_CreateAndroidAppDataStreamRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_ListAndroidAppDataStreamsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_ListAndroidAppDataStreamsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_ListAndroidAppDataStreamsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_ListAndroidAppDataStreamsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_GetEnhancedMeasurementSettingsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_GetEnhancedMeasurementSettingsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_UpdateEnhancedMeasurementSettingsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_UpdateEnhancedMeasurementSettingsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_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_UpdateFirebaseLinkRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_UpdateFirebaseLinkRequest_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; + + 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\032.google/analytics/admin/v1alpha/r" + + "esources.proto\032\034google/api/annotations.p" + + "roto\032\027google/api/client.proto\032\037google/ap" + + "i/field_behavior.proto\032\031google/api/resou" + + "rce.proto\032\033google/protobuf/empty.proto\032 " + + "google/protobuf/field_mask.proto\"P\n\021GetA" + + "ccountRequest\022;\n\004name\030\001 \001(\tB-\340A\002\372A\'\n%ana" + + "lyticsadmin.googleapis.com/Account\"R\n\023Li" + + "stAccountsRequest\022\021\n\tpage_size\030\001 \001(\005\022\022\n\n" + + "page_token\030\002 \001(\t\022\024\n\014show_deleted\030\003 \001(\010\"j" + + "\n\024ListAccountsResponse\0229\n\010accounts\030\001 \003(\013" + + "2\'.google.analytics.admin.v1alpha.Accoun" + + "t\022\027\n\017next_page_token\030\002 \001(\t\"S\n\024DeleteAcco" + + "untRequest\022;\n\004name\030\001 \001(\tB-\340A\002\372A\'\n%analyt" + + "icsadmin.googleapis.com/Account\"\206\001\n\024Upda" + + "teAccountRequest\022=\n\007account\030\001 \001(\0132\'.goog" + + "le.analytics.admin.v1alpha.AccountB\003\340A\002\022" + + "/\n\013update_mask\030\002 \001(\0132\032.google.protobuf.F" + + "ieldMask\"o\n\035ProvisionAccountTicketReques" + + "t\0228\n\007account\030\001 \001(\0132\'.google.analytics.ad" + + "min.v1alpha.Account\022\024\n\014redirect_uri\030\002 \001(" + + "\t\";\n\036ProvisionAccountTicketResponse\022\031\n\021a" + + "ccount_ticket_id\030\001 \001(\t\"R\n\022GetPropertyReq" + + "uest\022<\n\004name\030\001 \001(\tB.\340A\002\372A(\n&analyticsadm" + + "in.googleapis.com/Property\"i\n\025ListProper" + + "tiesRequest\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\"o\n\026ListPropertiesResponse\022" + + "<\n\nproperties\030\001 \003(\0132(.google.analytics.a" + + "dmin.v1alpha.Property\022\027\n\017next_page_token" + + "\030\002 \001(\t\"\211\001\n\025UpdatePropertyRequest\022?\n\010prop" + + "erty\030\001 \001(\0132(.google.analytics.admin.v1al" + + "pha.PropertyB\003\340A\002\022/\n\013update_mask\030\002 \001(\0132\032" + + ".google.protobuf.FieldMask\"X\n\025CreateProp" + + "ertyRequest\022?\n\010property\030\001 \001(\0132(.google.a" + + "nalytics.admin.v1alpha.PropertyB\003\340A\002\"U\n\025" + + "DeletePropertyRequest\022<\n\004name\030\001 \001(\tB.\340A\002" + + "\372A(\n&analyticsadmin.googleapis.com/Prope" + + "rty\"R\n\022GetUserLinkRequest\022<\n\004name\030\001 \001(\tB" + + ".\340A\002\372A(\n&analyticsadmin.googleapis.com/U" + + "serLink\"\231\001\n\030BatchGetUserLinksRequest\022>\n\006" + + "parent\030\001 \001(\tB.\340A\002\372A(\022&analyticsadmin.goo" + + "gleapis.com/UserLink\022=\n\005names\030\002 \003(\tB.\340A\002" + + "\372A(\n&analyticsadmin.googleapis.com/UserL" + + "ink\"Y\n\031BatchGetUserLinksResponse\022<\n\nuser" + + "_links\030\001 \003(\0132(.google.analytics.admin.v1" + + "alpha.UserLink\"}\n\024ListUserLinksRequest\022>" + + "\n\006parent\030\001 \001(\tB.\340A\002\372A(\022&analyticsadmin.g" + + "oogleapis.com/UserLink\022\021\n\tpage_size\030\002 \001(" + + "\005\022\022\n\npage_token\030\003 \001(\t\"n\n\025ListUserLinksRe" + + "sponse\022<\n\nuser_links\030\001 \003(\0132(.google.anal" + + "ytics.admin.v1alpha.UserLink\022\027\n\017next_pag" + + "e_token\030\002 \001(\t\"~\n\025AuditUserLinksRequest\022>" + + "\n\006parent\030\001 \001(\tB.\340A\002\372A(\022&analyticsadmin.g" + + "oogleapis.com/UserLink\022\021\n\tpage_size\030\002 \001(" + + "\005\022\022\n\npage_token\030\003 \001(\t\"t\n\026AuditUserLinksR" + + "esponse\022A\n\nuser_links\030\001 \003(\0132-.google.ana" + + "lytics.admin.v1alpha.AuditUserLink\022\027\n\017ne" + + "xt_page_token\030\002 \001(\t\"\267\001\n\025CreateUserLinkRe" + + "quest\022>\n\006parent\030\001 \001(\tB.\340A\002\372A(\022&analytics" + + "admin.googleapis.com/UserLink\022\034\n\017notify_" + + "new_user\030\002 \001(\010B\003\340A\001\022@\n\tuser_link\030\003 \001(\0132(" + + ".google.analytics.admin.v1alpha.UserLink" + + "B\003\340A\002\"\232\001\n\033BatchCreateUserLinksRequest\022\023\n" + + "\006parent\030\001 \001(\tB\003\340A\002\022\035\n\020notify_new_users\030\002" + + " \001(\010B\003\340A\001\022G\n\010requests\030\003 \003(\01325.google.ana" + + "lytics.admin.v1alpha.CreateUserLinkReque" + + "st\"\\\n\034BatchCreateUserLinksResponse\022<\n\nus" + + "er_links\030\001 \003(\0132(.google.analytics.admin." + + "v1alpha.UserLink\"Y\n\025UpdateUserLinkReques" + + "t\022@\n\tuser_link\030\001 \001(\0132(.google.analytics." + + "admin.v1alpha.UserLinkB\003\340A\002\"{\n\033BatchUpda" + + "teUserLinksRequest\022\023\n\006parent\030\001 \001(\tB\003\340A\002\022" + + "G\n\010requests\030\002 \003(\01325.google.analytics.adm" + + "in.v1alpha.UpdateUserLinkRequest\"\\\n\034Batc" + + "hUpdateUserLinksResponse\022<\n\nuser_links\030\001" + + " \003(\0132(.google.analytics.admin.v1alpha.Us" + + "erLink\"U\n\025DeleteUserLinkRequest\022<\n\004name\030" + + "\001 \001(\tB.\340A\002\372A(\n&analyticsadmin.googleapis" + + ".com/UserLink\"{\n\033BatchDeleteUserLinksReq" + + "uest\022\023\n\006parent\030\001 \001(\tB\003\340A\002\022G\n\010requests\030\002 " + + "\003(\01325.google.analytics.admin.v1alpha.Del" + + "eteUserLinkRequest\"\\\n\027GetWebDataStreamRe" + + "quest\022A\n\004name\030\001 \001(\tB3\340A\002\372A-\n+analyticsad" + + "min.googleapis.com/WebDataStream\"_\n\032Dele" + + "teWebDataStreamRequest\022A\n\004name\030\001 \001(\tB3\340A" + + "\002\372A-\n+analyticsadmin.googleapis.com/WebD" + + "ataStream\"\232\001\n\032UpdateWebDataStreamRequest" + + "\022K\n\017web_data_stream\030\001 \001(\0132-.google.analy" + + "tics.admin.v1alpha.WebDataStreamB\003\340A\002\022/\n" + + "\013update_mask\030\002 \001(\0132\032.google.protobuf.Fie" + + "ldMask\"\256\001\n\032CreateWebDataStreamRequest\022K\n" + + "\017web_data_stream\030\001 \001(\0132-.google.analytic" + + "s.admin.v1alpha.WebDataStreamB\003\340A\002\022C\n\006pa" + + "rent\030\002 \001(\tB3\340A\002\372A-\022+analyticsadmin.googl" + + "eapis.com/WebDataStream\"\207\001\n\031ListWebDataS" + + "treamsRequest\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\022+a" + + "nalyticsadmin.googleapis.com/WebDataStre" + + "am\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(" + + "\t\"~\n\032ListWebDataStreamsResponse\022G\n\020web_d" + + "ata_streams\030\001 \003(\0132-.google.analytics.adm" + + "in.v1alpha.WebDataStream\022\027\n\017next_page_to" + + "ken\030\002 \001(\t\"b\n\032GetIosAppDataStreamRequest\022" + + "D\n\004name\030\001 \001(\tB6\340A\002\372A0\n.analyticsadmin.go" + + "ogleapis.com/IosAppDataStream\"e\n\035DeleteI" + + "osAppDataStreamRequest\022D\n\004name\030\001 \001(\tB6\340A" + + "\002\372A0\n.analyticsadmin.googleapis.com/IosA" + + "ppDataStream\"\244\001\n\035UpdateIosAppDataStreamR" + + "equest\022R\n\023ios_app_data_stream\030\001 \001(\01320.go" + + "ogle.analytics.admin.v1alpha.IosAppDataS" + + "treamB\003\340A\002\022/\n\013update_mask\030\002 \001(\0132\032.google" + + ".protobuf.FieldMask\"\273\001\n\035CreateIosAppData" + + "StreamRequest\022R\n\023ios_app_data_stream\030\001 \001" + + "(\01320.google.analytics.admin.v1alpha.IosA" + + "ppDataStreamB\003\340A\002\022F\n\006parent\030\002 \001(\tB6\340A\002\372A" + + "0\022.analyticsadmin.googleapis.com/IosAppD" + + "ataStream\"\215\001\n\034ListIosAppDataStreamsReque" + + "st\022F\n\006parent\030\001 \001(\tB6\340A\002\372A0\022.analyticsadm" + + "in.googleapis.com/IosAppDataStream\022\021\n\tpa" + + "ge_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"\210\001\n\035Li" + + "stIosAppDataStreamsResponse\022N\n\024ios_app_d" + + "ata_streams\030\001 \003(\01320.google.analytics.adm" + + "in.v1alpha.IosAppDataStream\022\027\n\017next_page" + + "_token\030\002 \001(\t\"j\n\036GetAndroidAppDataStreamR" + + "equest\022H\n\004name\030\001 \001(\tB:\340A\002\372A4\n2analyticsa" + + "dmin.googleapis.com/AndroidAppDataStream" + + "\"m\n!DeleteAndroidAppDataStreamRequest\022H\n" + + "\004name\030\001 \001(\tB:\340A\002\372A4\n2analyticsadmin.goog" + + "leapis.com/AndroidAppDataStream\"\260\001\n!Upda" + + "teAndroidAppDataStreamRequest\022Z\n\027android" + + "_app_data_stream\030\001 \001(\01324.google.analytic" + + "s.admin.v1alpha.AndroidAppDataStreamB\003\340A" + + "\002\022/\n\013update_mask\030\002 \001(\0132\032.google.protobuf" + + ".FieldMask\"\313\001\n!CreateAndroidAppDataStrea" + + "mRequest\022Z\n\027android_app_data_stream\030\001 \001(" + + "\01324.google.analytics.admin.v1alpha.Andro" + + "idAppDataStreamB\003\340A\002\022J\n\006parent\030\002 \001(\tB:\340A" + + "\002\372A4\0222analyticsadmin.googleapis.com/Andr" + + "oidAppDataStream\"\225\001\n ListAndroidAppDataS" + + "treamsRequest\022J\n\006parent\030\001 \001(\tB:\340A\002\372A4\0222a" + + "nalyticsadmin.googleapis.com/AndroidAppD" + + "ataStream\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_tok" + + "en\030\003 \001(\t\"\224\001\n!ListAndroidAppDataStreamsRe" + + "sponse\022V\n\030android_app_data_streams\030\001 \003(\013" + + "24.google.analytics.admin.v1alpha.Androi" + + "dAppDataStream\022\027\n\017next_page_token\030\002 \001(\t\"" + + "x\n%GetEnhancedMeasurementSettingsRequest" + + "\022O\n\004name\030\001 \001(\tBA\340A\002\372A;\n9analyticsadmin.g" + + "oogleapis.com/EnhancedMeasurementSetting" + + "s\"\304\001\n(UpdateEnhancedMeasurementSettingsR" + + "equest\022g\n\035enhanced_measurement_settings\030" + + "\001 \001(\0132;.google.analytics.admin.v1alpha.E" + + "nhancedMeasurementSettingsB\003\340A\002\022/\n\013updat" + + "e_mask\030\002 \001(\0132\032.google.protobuf.FieldMask" + + "\"\251\001\n\031CreateFirebaseLinkRequest\022B\n\006parent" + + "\030\001 \001(\tB2\340A\002\372A,\022*analyticsadmin.googleapi" + + "s.com/FirebaseLink\022H\n\rfirebase_link\030\002 \001(" + + "\0132,.google.analytics.admin.v1alpha.Fireb" + + "aseLinkB\003\340A\002\"\226\001\n\031UpdateFirebaseLinkReque" + + "st\022H\n\rfirebase_link\030\001 \001(\0132,.google.analy" + + "tics.admin.v1alpha.FirebaseLinkB\003\340A\002\022/\n\013" + + "update_mask\030\002 \001(\0132\032.google.protobuf.Fiel" + + "dMask\"]\n\031DeleteFirebaseLinkRequest\022@\n\004na" + + "me\030\001 \001(\tB2\340A\002\372A,\n*analyticsadmin.googlea" + + "pis.com/FirebaseLink\"^\n\030ListFirebaseLink" + + "sRequest\022B\n\006parent\030\001 \001(\tB2\340A\002\372A,\022*analyt" + + "icsadmin.googleapis.com/FirebaseLink\"a\n\031" + + "ListFirebaseLinksResponse\022D\n\016firebase_li" + + "nks\030\001 \003(\0132,.google.analytics.admin.v1alp" + + "ha.FirebaseLink\"\\\n\027GetGlobalSiteTagReque" + + "st\022A\n\004name\030\001 \001(\tB3\340A\002\372A-\n+analyticsadmin" + + ".googleapis.com/GlobalSiteTag\"\256\001\n\032Create" + + "GoogleAdsLinkRequest\022C\n\006parent\030\001 \001(\tB3\340A" + + "\002\372A-\022+analyticsadmin.googleapis.com/Goog" + + "leAdsLink\022K\n\017google_ads_link\030\002 \001(\0132-.goo" + + "gle.analytics.admin.v1alpha.GoogleAdsLin" + + "kB\003\340A\002\"\225\001\n\032UpdateGoogleAdsLinkRequest\022F\n" + + "\017google_ads_link\030\001 \001(\0132-.google.analytic" + + "s.admin.v1alpha.GoogleAdsLink\022/\n\013update_" + + "mask\030\002 \001(\0132\032.google.protobuf.FieldMask\"_" + + "\n\032DeleteGoogleAdsLinkRequest\022A\n\004name\030\001 \001" + + "(\tB3\340A\002\372A-\n+analyticsadmin.googleapis.co" + + "m/GoogleAdsLink\"\207\001\n\031ListGoogleAdsLinksRe" + + "quest\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\022+analytics" + + "admin.googleapis.com/GoogleAdsLink\022\021\n\tpa" + + "ge_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"~\n\032Lis" + + "tGoogleAdsLinksResponse\022G\n\020google_ads_li" + + "nks\030\001 \003(\0132-.google.analytics.admin.v1alp" + + "ha.GoogleAdsLink\022\027\n\017next_page_token\030\002 \001(" + + "\t\"h\n\035GetDataSharingSettingsRequest\022G\n\004na" + + "me\030\001 \001(\tB9\340A\002\372A3\n1analyticsadmin.googlea" + + "pis.com/DataSharingSettings2\264Q\n\025Analytic" + + "sAdminService\022\223\001\n\nGetAccount\0221.google.an" + + "alytics.admin.v1alpha.GetAccountRequest\032" + + "\'.google.analytics.admin.v1alpha.Account" + + "\")\202\323\344\223\002\034\022\032/v1alpha/{name=accounts/*}\332A\004n" + + "ame\022\224\001\n\014ListAccounts\0223.google.analytics." + + "admin.v1alpha.ListAccountsRequest\0324.goog" + + "le.analytics.admin.v1alpha.ListAccountsR" + + "esponse\"\031\202\323\344\223\002\023\022\021/v1alpha/accounts\022\210\001\n\rD" + + "eleteAccount\0224.google.analytics.admin.v1" + + "alpha.DeleteAccountRequest\032\026.google.prot" + + "obuf.Empty\")\202\323\344\223\002\034*\032/v1alpha/{name=accou" + + "nts/*}\332A\004name\022\271\001\n\rUpdateAccount\0224.google" + + ".analytics.admin.v1alpha.UpdateAccountRe" + + "quest\032\'.google.analytics.admin.v1alpha.A" + + "ccount\"I\202\323\344\223\002-2\"/v1alpha/{account.name=a" + + "ccounts/*}:\007account\332A\023account,update_mas" + + "k\022\314\001\n\026ProvisionAccountTicket\022=.google.an" + + "alytics.admin.v1alpha.ProvisionAccountTi" + + "cketRequest\032>.google.analytics.admin.v1a" + + "lpha.ProvisionAccountTicketResponse\"3\202\323\344" + + "\223\002-\"(/v1alpha/accounts:provisionAccountT" + + "icket:\001*\022\230\001\n\013GetProperty\0222.google.analyt" + + "ics.admin.v1alpha.GetPropertyRequest\032(.g" + + "oogle.analytics.admin.v1alpha.Property\"+" + + "\202\323\344\223\002\036\022\034/v1alpha/{name=properties/*}\332A\004n" + + "ame\022\234\001\n\016ListProperties\0225.google.analytic" + + "s.admin.v1alpha.ListPropertiesRequest\0326." + + "google.analytics.admin.v1alpha.ListPrope" + + "rtiesResponse\"\033\202\323\344\223\002\025\022\023/v1alpha/properti" + + "es\022\243\001\n\016CreateProperty\0225.google.analytics" + + ".admin.v1alpha.CreatePropertyRequest\032(.g" + + "oogle.analytics.admin.v1alpha.Property\"0" + + "\202\323\344\223\002\037\"\023/v1alpha/properties:\010property\332A\010" + + "property\022\214\001\n\016DeleteProperty\0225.google.ana" + + "lytics.admin.v1alpha.DeletePropertyReque" + + "st\032\026.google.protobuf.Empty\"+\202\323\344\223\002\036*\034/v1a" + + "lpha/{name=properties/*}\332A\004name\022\301\001\n\016Upda" + + "teProperty\0225.google.analytics.admin.v1al" + + "pha.UpdatePropertyRequest\032(.google.analy" + + "tics.admin.v1alpha.Property\"N\202\323\344\223\00212%/v1" + + "alpha/{property.name=properties/*}:\010prop" + + "erty\332A\024property,update_mask\022\316\001\n\013GetUserL" + + "ink\0222.google.analytics.admin.v1alpha.Get" + + "UserLinkRequest\032(.google.analytics.admin" + + ".v1alpha.UserLink\"a\202\323\344\223\002T\022&/v1alpha/{nam" + + "e=accounts/*/userLinks/*}Z*\022(/v1alpha/{n" + + "ame=properties/*/userLinks/*}\332A\004name\022\366\001\n" + + "\021BatchGetUserLinks\0228.google.analytics.ad" + + "min.v1alpha.BatchGetUserLinksRequest\0329.g" + + "oogle.analytics.admin.v1alpha.BatchGetUs" + + "erLinksResponse\"l\202\323\344\223\002f\022//v1alpha/{paren" + + "t=accounts/*}/userLinks:batchGetZ3\0221/v1a" + + "lpha/{parent=properties/*}/userLinks:bat" + + "chGet\022\341\001\n\rListUserLinks\0224.google.analyti" + + "cs.admin.v1alpha.ListUserLinksRequest\0325." + + "google.analytics.admin.v1alpha.ListUserL" + + "inksResponse\"c\202\323\344\223\002T\022&/v1alpha/{parent=a" + + "ccounts/*}/userLinksZ*\022(/v1alpha/{parent" + + "=properties/*}/userLinks\332A\006parent\022\355\001\n\016Au" + + "ditUserLinks\0225.google.analytics.admin.v1" + + "alpha.AuditUserLinksRequest\0326.google.ana" + + "lytics.admin.v1alpha.AuditUserLinksRespo" + + "nse\"l\202\323\344\223\002f\",/v1alpha/{parent=accounts/*" + + "}/userLinks:audit:\001*Z3\"./v1alpha/{parent" + + "=properties/*}/userLinks:audit:\001*\022\367\001\n\016Cr" + + "eateUserLink\0225.google.analytics.admin.v1" + + "alpha.CreateUserLinkRequest\032(.google.ana" + + "lytics.admin.v1alpha.UserLink\"\203\001\202\323\344\223\002j\"&" + + "/v1alpha/{parent=accounts/*}/userLinks:\t" + + "user_linkZ5\"(/v1alpha/{parent=properties" + + "/*}/userLinks:\tuser_link\332A\020parent,user_l" + + "ink\022\213\002\n\024BatchCreateUserLinks\022;.google.an" + + "alytics.admin.v1alpha.BatchCreateUserLin" + + "ksRequest\032<.google.analytics.admin.v1alp" + + "ha.BatchCreateUserLinksResponse\"x\202\323\344\223\002r\"" + + "2/v1alpha/{parent=accounts/*}/userLinks:" + + "batchCreate:\001*Z9\"4/v1alpha/{parent=prope" + + "rties/*}/userLinks:batchCreate:\001*\022\204\002\n\016Up" + + "dateUserLink\0225.google.analytics.admin.v1" + + "alpha.UpdateUserLinkRequest\032(.google.ana" + + "lytics.admin.v1alpha.UserLink\"\220\001\202\323\344\223\002~20" + + "/v1alpha/{user_link.name=accounts/*/user" + + "Links/*}:\tuser_linkZ?22/v1alpha/{user_li" + + "nk.name=properties/*/userLinks/*}:\tuser_" + + "link\332A\tuser_link\022\213\002\n\024BatchUpdateUserLink" + + "s\022;.google.analytics.admin.v1alpha.Batch" + + "UpdateUserLinksRequest\032<.google.analytic" + + "s.admin.v1alpha.BatchUpdateUserLinksResp" + + "onse\"x\202\323\344\223\002r\"2/v1alpha/{parent=accounts/" + + "*}/userLinks:batchUpdate:\001*Z9\"4/v1alpha/" + + "{parent=properties/*}/userLinks:batchUpd" + + "ate:\001*\022\302\001\n\016DeleteUserLink\0225.google.analy" + + "tics.admin.v1alpha.DeleteUserLinkRequest" + + "\032\026.google.protobuf.Empty\"a\202\323\344\223\002T*&/v1alp" + + "ha/{name=accounts/*/userLinks/*}Z**(/v1a" + + "lpha/{name=properties/*/userLinks/*}\332A\004n" + + "ame\022\345\001\n\024BatchDeleteUserLinks\022;.google.an" + + "alytics.admin.v1alpha.BatchDeleteUserLin" + + "ksRequest\032\026.google.protobuf.Empty\"x\202\323\344\223\002" + + "r\"2/v1alpha/{parent=accounts/*}/userLink" + + "s:batchDelete:\001*Z9\"4/v1alpha/{parent=pro" + + "perties/*}/userLinks:batchDelete:\001*\022\270\001\n\020" + + "GetWebDataStream\0227.google.analytics.admi" + + "n.v1alpha.GetWebDataStreamRequest\032-.goog" + + "le.analytics.admin.v1alpha.WebDataStream" + + "\"<\202\323\344\223\002/\022-/v1alpha/{name=properties/*/we" + + "bDataStreams/*}\332A\004name\022\247\001\n\023DeleteWebData" + + "Stream\022:.google.analytics.admin.v1alpha." + + "DeleteWebDataStreamRequest\032\026.google.prot" + + "obuf.Empty\"<\202\323\344\223\002/*-/v1alpha/{name=prope" + + "rties/*/webDataStreams/*}\332A\004name\022\366\001\n\023Upd" + + "ateWebDataStream\022:.google.analytics.admi" + + "n.v1alpha.UpdateWebDataStreamRequest\032-.g" + + "oogle.analytics.admin.v1alpha.WebDataStr" + + "eam\"t\202\323\344\223\002P2=/v1alpha/{web_data_stream.n" + + "ame=properties/*/webDataStreams/*}:\017web_" + + "data_stream\332A\033web_data_stream,update_mas" + + "k\022\341\001\n\023CreateWebDataStream\022:.google.analy" + + "tics.admin.v1alpha.CreateWebDataStreamRe" + + "quest\032-.google.analytics.admin.v1alpha.W" + + "ebDataStream\"_\202\323\344\223\002@\"-/v1alpha/{parent=p" + + "roperties/*}/webDataStreams:\017web_data_st" + + "ream\332A\026parent,web_data_stream\022\313\001\n\022ListWe" + + "bDataStreams\0229.google.analytics.admin.v1" + + "alpha.ListWebDataStreamsRequest\032:.google" + + ".analytics.admin.v1alpha.ListWebDataStre" + + "amsResponse\">\202\323\344\223\002/\022-/v1alpha/{parent=pr" + + "operties/*}/webDataStreams\332A\006parent\022\304\001\n\023" + + "GetIosAppDataStream\022:.google.analytics.a" + + "dmin.v1alpha.GetIosAppDataStreamRequest\032" + + "0.google.analytics.admin.v1alpha.IosAppD" + + "ataStream\"?\202\323\344\223\0022\0220/v1alpha/{name=proper" + + "ties/*/iosAppDataStreams/*}\332A\004name\022\260\001\n\026D" + + "eleteIosAppDataStream\022=.google.analytics" + + ".admin.v1alpha.DeleteIosAppDataStreamReq" + + "uest\032\026.google.protobuf.Empty\"?\202\323\344\223\0022*0/v" + + "1alpha/{name=properties/*/iosAppDataStre" + + "ams/*}\332A\004name\022\217\002\n\026UpdateIosAppDataStream" + + "\022=.google.analytics.admin.v1alpha.Update" + + "IosAppDataStreamRequest\0320.google.analyti" + + "cs.admin.v1alpha.IosAppDataStream\"\203\001\202\323\344\223" + + "\002[2D/v1alpha/{ios_app_data_stream.name=p" + + "roperties/*/iosAppDataStreams/*}:\023ios_ap" + + "p_data_stream\332A\037ios_app_data_stream,upda" + + "te_mask\022\365\001\n\026CreateIosAppDataStream\022=.goo" + + "gle.analytics.admin.v1alpha.CreateIosApp" + + "DataStreamRequest\0320.google.analytics.adm" + + "in.v1alpha.IosAppDataStream\"j\202\323\344\223\002G\"0/v1" + + "alpha/{parent=properties/*}/iosAppDataSt" + + "reams:\023ios_app_data_stream\332A\032parent,ios_" + + "app_data_stream\022\327\001\n\025ListIosAppDataStream" + + "s\022<.google.analytics.admin.v1alpha.ListI" + + "osAppDataStreamsRequest\032=.google.analyti" + + "cs.admin.v1alpha.ListIosAppDataStreamsRe" + + "sponse\"A\202\323\344\223\0022\0220/v1alpha/{parent=propert" + + "ies/*}/iosAppDataStreams\332A\006parent\022\324\001\n\027Ge" + + "tAndroidAppDataStream\022>.google.analytics" + + ".admin.v1alpha.GetAndroidAppDataStreamRe" + + "quest\0324.google.analytics.admin.v1alpha.A" + + "ndroidAppDataStream\"C\202\323\344\223\0026\0224/v1alpha/{n" + + "ame=properties/*/androidAppDataStreams/*" + + "}\332A\004name\022\274\001\n\032DeleteAndroidAppDataStream\022" + + "A.google.analytics.admin.v1alpha.DeleteA" + + "ndroidAppDataStreamRequest\032\026.google.prot" + + "obuf.Empty\"C\202\323\344\223\0026*4/v1alpha/{name=prope" + + "rties/*/androidAppDataStreams/*}\332A\004name\022" + + "\253\002\n\032UpdateAndroidAppDataStream\022A.google." + + "analytics.admin.v1alpha.UpdateAndroidApp" + + "DataStreamRequest\0324.google.analytics.adm" + + "in.v1alpha.AndroidAppDataStream\"\223\001\202\323\344\223\002g" + + "2L/v1alpha/{android_app_data_stream.name" + + "=properties/*/androidAppDataStreams/*}:\027" + + "android_app_data_stream\332A#android_app_da" + + "ta_stream,update_mask\022\215\002\n\032CreateAndroidA" + + "ppDataStream\022A.google.analytics.admin.v1" + + "alpha.CreateAndroidAppDataStreamRequest\032" + + "4.google.analytics.admin.v1alpha.Android" + + "AppDataStream\"v\202\323\344\223\002O\"4/v1alpha/{parent=" + + "properties/*}/androidAppDataStreams:\027and" + + "roid_app_data_stream\332A\036parent,android_ap" + + "p_data_stream\022\347\001\n\031ListAndroidAppDataStre" + + "ams\022@.google.analytics.admin.v1alpha.Lis" + + "tAndroidAppDataStreamsRequest\032A.google.a" + + "nalytics.admin.v1alpha.ListAndroidAppDat" + + "aStreamsResponse\"E\202\323\344\223\0026\0224/v1alpha/{pare" + + "nt=properties/*}/androidAppDataStreams\332A" + + "\006parent\022\376\001\n\036GetEnhancedMeasurementSettin" + + "gs\022E.google.analytics.admin.v1alpha.GetE" + + "nhancedMeasurementSettingsRequest\032;.goog" + + "le.analytics.admin.v1alpha.EnhancedMeasu" + + "rementSettings\"X\202\323\344\223\002K\022I/v1alpha/{name=p" + + "roperties/*/webDataStreams/*/enhancedMea" + + "surementSettings}\332A\004name\022\350\002\n!UpdateEnhan" + + "cedMeasurementSettings\022H.google.analytic" + + "s.admin.v1alpha.UpdateEnhancedMeasuremen" + + "tSettingsRequest\032;.google.analytics.admi" + + "n.v1alpha.EnhancedMeasurementSettings\"\273\001" + + "\202\323\344\223\002\210\0012g/v1alpha/{enhanced_measurement_" + + "settings.name=properties/*/webDataStream" + + "s/*/enhancedMeasurementSettings}:\035enhanc" + + "ed_measurement_settings\332A)enhanced_measu" + + "rement_settings,update_mask\022\331\001\n\022CreateFi" + + "rebaseLink\0229.google.analytics.admin.v1al" + + "pha.CreateFirebaseLinkRequest\032,.google.a" + + "nalytics.admin.v1alpha.FirebaseLink\"Z\202\323\344" + + "\223\002=\",/v1alpha/{parent=properties/*}/fire", + "baseLinks:\rfirebase_link\332A\024parent,fireba" + + "se_link\022\354\001\n\022UpdateFirebaseLink\0229.google." + + "analytics.admin.v1alpha.UpdateFirebaseLi" + + "nkRequest\032,.google.analytics.admin.v1alp" + + "ha.FirebaseLink\"m\202\323\344\223\002K2:/v1alpha/{fireb" + + "ase_link.name=properties/*/firebaseLinks" + + "/*}:\rfirebase_link\332A\031firebase_link,updat" + + "e_mask\022\244\001\n\022DeleteFirebaseLink\0229.google.a" + + "nalytics.admin.v1alpha.DeleteFirebaseLin" + + "kRequest\032\026.google.protobuf.Empty\";\202\323\344\223\002." + + "*,/v1alpha/{name=properties/*/firebaseLi" + + "nks/*}\332A\004name\022\307\001\n\021ListFirebaseLinks\0228.go" + + "ogle.analytics.admin.v1alpha.ListFirebas" + + "eLinksRequest\0329.google.analytics.admin.v" + + "1alpha.ListFirebaseLinksResponse\"=\202\323\344\223\002." + + "\022,/v1alpha/{parent=properties/*}/firebas" + + "eLinks\332A\006parent\022\306\001\n\020GetGlobalSiteTag\0227.g" + + "oogle.analytics.admin.v1alpha.GetGlobalS" + + "iteTagRequest\032-.google.analytics.admin.v" + + "1alpha.GlobalSiteTag\"J\202\323\344\223\002=\022;/v1alpha/{" + + "name=properties/*/webDataStreams/*/globa" + + "lSiteTag}\332A\004name\022\341\001\n\023CreateGoogleAdsLink" + + "\022:.google.analytics.admin.v1alpha.Create" + + "GoogleAdsLinkRequest\032-.google.analytics." + + "admin.v1alpha.GoogleAdsLink\"_\202\323\344\223\002@\"-/v1" + + "alpha/{parent=properties/*}/googleAdsLin" + + "ks:\017google_ads_link\332A\026parent,google_ads_" + + "link\022\366\001\n\023UpdateGoogleAdsLink\022:.google.an" + + "alytics.admin.v1alpha.UpdateGoogleAdsLin" + + "kRequest\032-.google.analytics.admin.v1alph" + + "a.GoogleAdsLink\"t\202\323\344\223\002P2=/v1alpha/{googl" + + "e_ads_link.name=properties/*/googleAdsLi" + + "nks/*}:\017google_ads_link\332A\033google_ads_lin" + + "k,update_mask\022\247\001\n\023DeleteGoogleAdsLink\022:." + + "google.analytics.admin.v1alpha.DeleteGoo" + + "gleAdsLinkRequest\032\026.google.protobuf.Empt" + + "y\"<\202\323\344\223\002/*-/v1alpha/{name=properties/*/g" + + "oogleAdsLinks/*}\332A\004name\022\313\001\n\022ListGoogleAd" + + "sLinks\0229.google.analytics.admin.v1alpha." + + "ListGoogleAdsLinksRequest\032:.google.analy" + + "tics.admin.v1alpha.ListGoogleAdsLinksRes" + + "ponse\">\202\323\344\223\002/\022-/v1alpha/{parent=properti" + + "es/*}/googleAdsLinks\332A\006parent\022\313\001\n\026GetDat" + + "aSharingSettings\022=.google.analytics.admi" + + "n.v1alpha.GetDataSharingSettingsRequest\032" + + "3.google.analytics.admin.v1alpha.DataSha" + + "ringSettings\"=\202\323\344\223\0020\022./v1alpha/{name=acc" + + "ounts/*/dataSharingSettings}\332A\004name\032\374\001\312A" + + "\035analyticsadmin.googleapis.com\322A\330\001https:" + + "//www.googleapis.com/auth/analytics.edit" + + ",https://www.googleapis.com/auth/analyti" + + "cs.manage.users,https://www.googleapis.c" + + "om/auth/analytics.manage.users.readonly," + + "https://www.googleapis.com/auth/analytic" + + "s.readonlyB\200\001\n\"com.google.analytics.admi" + + "n.v1alphaB\023AnalyticsAdminProtoP\001ZCgoogle" + + ".golang.org/genproto/googleapis/analytic" + + "s/admin/v1alpha;adminb\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + 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(), + }); + internal_static_google_analytics_admin_v1alpha_GetAccountRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + 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(1); + 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(2); + 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(3); + 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(4); + 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(5); + 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(6); + 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(7); + 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(8); + 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(9); + 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(10); + 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(11); + 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(12); + 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(13); + 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(14); + 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(15); + 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(16); + 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(17); + 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(18); + 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(19); + 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(20); + 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(21); + 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(22); + 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(23); + 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(24); + 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(25); + 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(26); + 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(27); + 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_GetWebDataStreamRequest_descriptor = + getDescriptor().getMessageTypes().get(28); + internal_static_google_analytics_admin_v1alpha_GetWebDataStreamRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_GetWebDataStreamRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_analytics_admin_v1alpha_DeleteWebDataStreamRequest_descriptor = + getDescriptor().getMessageTypes().get(29); + internal_static_google_analytics_admin_v1alpha_DeleteWebDataStreamRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_DeleteWebDataStreamRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_analytics_admin_v1alpha_UpdateWebDataStreamRequest_descriptor = + getDescriptor().getMessageTypes().get(30); + internal_static_google_analytics_admin_v1alpha_UpdateWebDataStreamRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_UpdateWebDataStreamRequest_descriptor, + new java.lang.String[] { + "WebDataStream", "UpdateMask", + }); + internal_static_google_analytics_admin_v1alpha_CreateWebDataStreamRequest_descriptor = + getDescriptor().getMessageTypes().get(31); + internal_static_google_analytics_admin_v1alpha_CreateWebDataStreamRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_CreateWebDataStreamRequest_descriptor, + new java.lang.String[] { + "WebDataStream", "Parent", + }); + internal_static_google_analytics_admin_v1alpha_ListWebDataStreamsRequest_descriptor = + getDescriptor().getMessageTypes().get(32); + internal_static_google_analytics_admin_v1alpha_ListWebDataStreamsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_ListWebDataStreamsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_analytics_admin_v1alpha_ListWebDataStreamsResponse_descriptor = + getDescriptor().getMessageTypes().get(33); + internal_static_google_analytics_admin_v1alpha_ListWebDataStreamsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_ListWebDataStreamsResponse_descriptor, + new java.lang.String[] { + "WebDataStreams", "NextPageToken", + }); + internal_static_google_analytics_admin_v1alpha_GetIosAppDataStreamRequest_descriptor = + getDescriptor().getMessageTypes().get(34); + internal_static_google_analytics_admin_v1alpha_GetIosAppDataStreamRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_GetIosAppDataStreamRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_analytics_admin_v1alpha_DeleteIosAppDataStreamRequest_descriptor = + getDescriptor().getMessageTypes().get(35); + internal_static_google_analytics_admin_v1alpha_DeleteIosAppDataStreamRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_DeleteIosAppDataStreamRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_analytics_admin_v1alpha_UpdateIosAppDataStreamRequest_descriptor = + getDescriptor().getMessageTypes().get(36); + internal_static_google_analytics_admin_v1alpha_UpdateIosAppDataStreamRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_UpdateIosAppDataStreamRequest_descriptor, + new java.lang.String[] { + "IosAppDataStream", "UpdateMask", + }); + internal_static_google_analytics_admin_v1alpha_CreateIosAppDataStreamRequest_descriptor = + getDescriptor().getMessageTypes().get(37); + internal_static_google_analytics_admin_v1alpha_CreateIosAppDataStreamRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_CreateIosAppDataStreamRequest_descriptor, + new java.lang.String[] { + "IosAppDataStream", "Parent", + }); + internal_static_google_analytics_admin_v1alpha_ListIosAppDataStreamsRequest_descriptor = + getDescriptor().getMessageTypes().get(38); + internal_static_google_analytics_admin_v1alpha_ListIosAppDataStreamsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_ListIosAppDataStreamsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_analytics_admin_v1alpha_ListIosAppDataStreamsResponse_descriptor = + getDescriptor().getMessageTypes().get(39); + internal_static_google_analytics_admin_v1alpha_ListIosAppDataStreamsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_ListIosAppDataStreamsResponse_descriptor, + new java.lang.String[] { + "IosAppDataStreams", "NextPageToken", + }); + internal_static_google_analytics_admin_v1alpha_GetAndroidAppDataStreamRequest_descriptor = + getDescriptor().getMessageTypes().get(40); + internal_static_google_analytics_admin_v1alpha_GetAndroidAppDataStreamRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_GetAndroidAppDataStreamRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_analytics_admin_v1alpha_DeleteAndroidAppDataStreamRequest_descriptor = + getDescriptor().getMessageTypes().get(41); + internal_static_google_analytics_admin_v1alpha_DeleteAndroidAppDataStreamRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_DeleteAndroidAppDataStreamRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_analytics_admin_v1alpha_UpdateAndroidAppDataStreamRequest_descriptor = + getDescriptor().getMessageTypes().get(42); + internal_static_google_analytics_admin_v1alpha_UpdateAndroidAppDataStreamRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_UpdateAndroidAppDataStreamRequest_descriptor, + new java.lang.String[] { + "AndroidAppDataStream", "UpdateMask", + }); + internal_static_google_analytics_admin_v1alpha_CreateAndroidAppDataStreamRequest_descriptor = + getDescriptor().getMessageTypes().get(43); + internal_static_google_analytics_admin_v1alpha_CreateAndroidAppDataStreamRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_CreateAndroidAppDataStreamRequest_descriptor, + new java.lang.String[] { + "AndroidAppDataStream", "Parent", + }); + internal_static_google_analytics_admin_v1alpha_ListAndroidAppDataStreamsRequest_descriptor = + getDescriptor().getMessageTypes().get(44); + internal_static_google_analytics_admin_v1alpha_ListAndroidAppDataStreamsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_ListAndroidAppDataStreamsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_analytics_admin_v1alpha_ListAndroidAppDataStreamsResponse_descriptor = + getDescriptor().getMessageTypes().get(45); + internal_static_google_analytics_admin_v1alpha_ListAndroidAppDataStreamsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_ListAndroidAppDataStreamsResponse_descriptor, + new java.lang.String[] { + "AndroidAppDataStreams", "NextPageToken", + }); + internal_static_google_analytics_admin_v1alpha_GetEnhancedMeasurementSettingsRequest_descriptor = + getDescriptor().getMessageTypes().get(46); + internal_static_google_analytics_admin_v1alpha_GetEnhancedMeasurementSettingsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_GetEnhancedMeasurementSettingsRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_analytics_admin_v1alpha_UpdateEnhancedMeasurementSettingsRequest_descriptor = + getDescriptor().getMessageTypes().get(47); + internal_static_google_analytics_admin_v1alpha_UpdateEnhancedMeasurementSettingsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_UpdateEnhancedMeasurementSettingsRequest_descriptor, + new java.lang.String[] { + "EnhancedMeasurementSettings", "UpdateMask", + }); + internal_static_google_analytics_admin_v1alpha_CreateFirebaseLinkRequest_descriptor = + getDescriptor().getMessageTypes().get(48); + 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_UpdateFirebaseLinkRequest_descriptor = + getDescriptor().getMessageTypes().get(49); + internal_static_google_analytics_admin_v1alpha_UpdateFirebaseLinkRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_UpdateFirebaseLinkRequest_descriptor, + new java.lang.String[] { + "FirebaseLink", "UpdateMask", + }); + internal_static_google_analytics_admin_v1alpha_DeleteFirebaseLinkRequest_descriptor = + getDescriptor().getMessageTypes().get(50); + 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(51); + 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", + }); + internal_static_google_analytics_admin_v1alpha_ListFirebaseLinksResponse_descriptor = + getDescriptor().getMessageTypes().get(52); + 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", + }); + internal_static_google_analytics_admin_v1alpha_GetGlobalSiteTagRequest_descriptor = + getDescriptor().getMessageTypes().get(53); + 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(54); + 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(55); + 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(56); + 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(57); + 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(58); + 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(59); + 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", + }); + 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.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(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AndroidAppDataStream.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AndroidAppDataStream.java new file mode 100644 index 00000000..e6f5944f --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AndroidAppDataStream.java @@ -0,0 +1,1795 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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 Android app stream.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.AndroidAppDataStream} + */ +public final class AndroidAppDataStream extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AndroidAppDataStream) + AndroidAppDataStreamOrBuilder { + private static final long serialVersionUID = 0L; + // Use AndroidAppDataStream.newBuilder() to construct. + private AndroidAppDataStream(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AndroidAppDataStream() { + name_ = ""; + firebaseAppId_ = ""; + packageName_ = ""; + displayName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AndroidAppDataStream(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private AndroidAppDataStream( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + firebaseAppId_ = s; + break; + } + case 26: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); + } + createTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); + } + + break; + } + case 34: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (updateTime_ != null) { + subBuilder = updateTime_.toBuilder(); + } + updateTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateTime_); + updateTime_ = subBuilder.buildPartial(); + } + + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + + packageName_ = s; + break; + } + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + + displayName_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_AndroidAppDataStream_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_AndroidAppDataStream_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AndroidAppDataStream.class, + com.google.analytics.admin.v1alpha.AndroidAppDataStream.Builder.class); + } + + 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}/androidAppDataStreams/{stream_id}
+   * Example: "properties/1000/androidAppDataStreams/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}/androidAppDataStreams/{stream_id}
+   * Example: "properties/1000/androidAppDataStreams/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 FIREBASE_APP_ID_FIELD_NUMBER = 2; + 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 = 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 Android app in Firebase, if any.
+   * This ID can change if the Android 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 CREATE_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
+   * Output only. Time when this stream 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 stream 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 stream 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 stream 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 stream 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 stream 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 PACKAGE_NAME_FIELD_NUMBER = 5; + private volatile java.lang.Object packageName_; + /** + * + * + *
+   * Immutable. The package name for the app being measured.
+   * Example: "com.example.myandroidapp"
+   * 
+ * + * string package_name = 5 [(.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 = 5 [(.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; + } + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 6; + private volatile java.lang.Object displayName_; + /** + * + * + *
+   * Human-readable display name for the Data Stream.
+   * The max allowed display name length is 255 UTF-16 code units.
+   * 
+ * + * string display_name = 6; + * + * @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.
+   * The max allowed display name length is 255 UTF-16 code units.
+   * 
+ * + * string display_name = 6; + * + * @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; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!getFirebaseAppIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, firebaseAppId_); + } + if (createTime_ != null) { + output.writeMessage(3, getCreateTime()); + } + if (updateTime_ != null) { + output.writeMessage(4, getUpdateTime()); + } + if (!getPackageNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, packageName_); + } + if (!getDisplayNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, displayName_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!getFirebaseAppIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, firebaseAppId_); + } + if (createTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); + } + if (updateTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getUpdateTime()); + } + if (!getPackageNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, packageName_); + } + if (!getDisplayNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, displayName_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.admin.v1alpha.AndroidAppDataStream)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.AndroidAppDataStream other = + (com.google.analytics.admin.v1alpha.AndroidAppDataStream) obj; + + if (!getName().equals(other.getName())) return false; + if (!getFirebaseAppId().equals(other.getFirebaseAppId())) 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 (!getPackageName().equals(other.getPackageName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + FIREBASE_APP_ID_FIELD_NUMBER; + hash = (53 * hash) + getFirebaseAppId().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) + PACKAGE_NAME_FIELD_NUMBER; + hash = (53 * hash) + getPackageName().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.AndroidAppDataStream parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AndroidAppDataStream parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AndroidAppDataStream parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AndroidAppDataStream parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AndroidAppDataStream parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AndroidAppDataStream parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AndroidAppDataStream parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AndroidAppDataStream parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AndroidAppDataStream parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AndroidAppDataStream parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AndroidAppDataStream parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AndroidAppDataStream parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.AndroidAppDataStream prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 Android app stream.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.AndroidAppDataStream} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.AndroidAppDataStream) + com.google.analytics.admin.v1alpha.AndroidAppDataStreamOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_AndroidAppDataStream_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_AndroidAppDataStream_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AndroidAppDataStream.class, + com.google.analytics.admin.v1alpha.AndroidAppDataStream.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.AndroidAppDataStream.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + firebaseAppId_ = ""; + + if (createTimeBuilder_ == null) { + createTime_ = null; + } else { + createTime_ = null; + createTimeBuilder_ = null; + } + if (updateTimeBuilder_ == null) { + updateTime_ = null; + } else { + updateTime_ = null; + updateTimeBuilder_ = null; + } + packageName_ = ""; + + displayName_ = ""; + + 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_AndroidAppDataStream_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AndroidAppDataStream getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.AndroidAppDataStream.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AndroidAppDataStream build() { + com.google.analytics.admin.v1alpha.AndroidAppDataStream result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AndroidAppDataStream buildPartial() { + com.google.analytics.admin.v1alpha.AndroidAppDataStream result = + new com.google.analytics.admin.v1alpha.AndroidAppDataStream(this); + result.name_ = name_; + result.firebaseAppId_ = firebaseAppId_; + if (createTimeBuilder_ == null) { + result.createTime_ = createTime_; + } else { + result.createTime_ = createTimeBuilder_.build(); + } + if (updateTimeBuilder_ == null) { + result.updateTime_ = updateTime_; + } else { + result.updateTime_ = updateTimeBuilder_.build(); + } + result.packageName_ = packageName_; + result.displayName_ = displayName_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.AndroidAppDataStream) { + return mergeFrom((com.google.analytics.admin.v1alpha.AndroidAppDataStream) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.AndroidAppDataStream other) { + if (other == com.google.analytics.admin.v1alpha.AndroidAppDataStream.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getFirebaseAppId().isEmpty()) { + firebaseAppId_ = other.firebaseAppId_; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (!other.getPackageName().isEmpty()) { + packageName_ = other.packageName_; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.analytics.admin.v1alpha.AndroidAppDataStream parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.AndroidAppDataStream) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Output only. Resource name of this Data Stream.
+     * Format: properties/{property_id}/androidAppDataStreams/{stream_id}
+     * Example: "properties/1000/androidAppDataStreams/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}/androidAppDataStreams/{stream_id}
+     * Example: "properties/1000/androidAppDataStreams/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}/androidAppDataStreams/{stream_id}
+     * Example: "properties/1000/androidAppDataStreams/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}/androidAppDataStreams/{stream_id}
+     * Example: "properties/1000/androidAppDataStreams/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}/androidAppDataStreams/{stream_id}
+     * Example: "properties/1000/androidAppDataStreams/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 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 = 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 Android app in Firebase, if any.
+     * This ID can change if the Android 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 Android app in Firebase, if any.
+     * This ID can change if the Android 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 Android app in Firebase, if any.
+     * This ID can change if the Android 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 Android app in Firebase, if any.
+     * This ID can change if the Android 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 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 = 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 stream 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 stream 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 stream 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 stream 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 stream 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 stream 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 stream 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 stream 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 stream 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 stream 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 stream 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 stream 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 stream 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 stream 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 stream 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 stream 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 stream 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 packageName_ = ""; + /** + * + * + *
+     * Immutable. The package name for the app being measured.
+     * Example: "com.example.myandroidapp"
+     * 
+ * + * string package_name = 5 [(.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 = 5 [(.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 = 5 [(.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 = 5 [(.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 = 5 [(.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; + } + + private java.lang.Object displayName_ = ""; + /** + * + * + *
+     * Human-readable display name for the Data Stream.
+     * The max allowed display name length is 255 UTF-16 code units.
+     * 
+ * + * string display_name = 6; + * + * @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.
+     * The max allowed display name length is 255 UTF-16 code units.
+     * 
+ * + * string display_name = 6; + * + * @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.
+     * The max allowed display name length is 255 UTF-16 code units.
+     * 
+ * + * string display_name = 6; + * + * @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.
+     * The max allowed display name length is 255 UTF-16 code units.
+     * 
+ * + * string display_name = 6; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + + displayName_ = getDefaultInstance().getDisplayName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Human-readable display name for the Data Stream.
+     * The max allowed display name length is 255 UTF-16 code units.
+     * 
+ * + * string display_name = 6; + * + * @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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.AndroidAppDataStream) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AndroidAppDataStream) + private static final com.google.analytics.admin.v1alpha.AndroidAppDataStream DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.AndroidAppDataStream(); + } + + public static com.google.analytics.admin.v1alpha.AndroidAppDataStream getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AndroidAppDataStream parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AndroidAppDataStream(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AndroidAppDataStream getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AndroidAppDataStreamName.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AndroidAppDataStreamName.java new file mode 100644 index 00000000..3ed7510f --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AndroidAppDataStreamName.java @@ -0,0 +1,189 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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; + +/** AUTO-GENERATED DOCUMENTATION AND CLASS */ +@javax.annotation.Generated("by GAPIC protoc plugin") +public class AndroidAppDataStreamName implements ResourceName { + + private static final PathTemplate PATH_TEMPLATE = + PathTemplate.createWithoutUrlEncoding( + "properties/{property}/androidAppDataStreams/{android_app_data_stream}"); + + private volatile Map fieldValuesMap; + + private final String property; + private final String androidAppDataStream; + + public String getProperty() { + return property; + } + + public String getAndroidAppDataStream() { + return androidAppDataStream; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + private AndroidAppDataStreamName(Builder builder) { + property = Preconditions.checkNotNull(builder.getProperty()); + androidAppDataStream = Preconditions.checkNotNull(builder.getAndroidAppDataStream()); + } + + public static AndroidAppDataStreamName of(String property, String androidAppDataStream) { + return newBuilder().setProperty(property).setAndroidAppDataStream(androidAppDataStream).build(); + } + + public static String format(String property, String androidAppDataStream) { + return newBuilder() + .setProperty(property) + .setAndroidAppDataStream(androidAppDataStream) + .build() + .toString(); + } + + public static AndroidAppDataStreamName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PATH_TEMPLATE.validatedMatch( + formattedString, "AndroidAppDataStreamName.parse: formattedString not in valid format"); + return of(matchMap.get("property"), matchMap.get("android_app_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 (AndroidAppDataStreamName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PATH_TEMPLATE.matches(formattedString); + } + + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + fieldMapBuilder.put("property", property); + fieldMapBuilder.put("androidAppDataStream", androidAppDataStream); + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PATH_TEMPLATE.instantiate( + "property", property, "android_app_data_stream", androidAppDataStream); + } + + /** Builder for AndroidAppDataStreamName. */ + public static class Builder { + + private String property; + private String androidAppDataStream; + + public String getProperty() { + return property; + } + + public String getAndroidAppDataStream() { + return androidAppDataStream; + } + + public Builder setProperty(String property) { + this.property = property; + return this; + } + + public Builder setAndroidAppDataStream(String androidAppDataStream) { + this.androidAppDataStream = androidAppDataStream; + return this; + } + + private Builder() {} + + private Builder(AndroidAppDataStreamName androidAppDataStreamName) { + property = androidAppDataStreamName.property; + androidAppDataStream = androidAppDataStreamName.androidAppDataStream; + } + + public AndroidAppDataStreamName build() { + return new AndroidAppDataStreamName(this); + } + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o instanceof AndroidAppDataStreamName) { + AndroidAppDataStreamName that = (AndroidAppDataStreamName) o; + return (this.property.equals(that.property)) + && (this.androidAppDataStream.equals(that.androidAppDataStream)); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= property.hashCode(); + h *= 1000003; + h ^= androidAppDataStream.hashCode(); + return h; + } +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AndroidAppDataStreamOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AndroidAppDataStreamOrBuilder.java new file mode 100644 index 00000000..e1857fad --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AndroidAppDataStreamOrBuilder.java @@ -0,0 +1,211 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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 AndroidAppDataStreamOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.AndroidAppDataStream) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. Resource name of this Data Stream.
+   * Format: properties/{property_id}/androidAppDataStreams/{stream_id}
+   * Example: "properties/1000/androidAppDataStreams/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}/androidAppDataStreams/{stream_id}
+   * Example: "properties/1000/androidAppDataStreams/2000"
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * 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 = 2 [(.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 = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for firebaseAppId. + */ + com.google.protobuf.ByteString getFirebaseAppIdBytes(); + + /** + * + * + *
+   * Output only. Time when this stream 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 stream 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 stream was originally created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.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 = 4 [(.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 = 4 [(.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 = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
+   * Immutable. The package name for the app being measured.
+   * Example: "com.example.myandroidapp"
+   * 
+ * + * string package_name = 5 [(.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 = 5 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for packageName. + */ + com.google.protobuf.ByteString getPackageNameBytes(); + + /** + * + * + *
+   * Human-readable display name for the Data Stream.
+   * The max allowed display name length is 255 UTF-16 code units.
+   * 
+ * + * string display_name = 6; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + /** + * + * + *
+   * Human-readable display name for the Data Stream.
+   * The max allowed display name length is 255 UTF-16 code units.
+   * 
+ * + * string display_name = 6; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); +} 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 new file mode 100644 index 00000000..c321b030 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AuditUserLink.java @@ -0,0 +1,1435 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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; + } + + private AuditUserLink( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + emailAddress_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + directRoles_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + directRoles_.add(s); + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + effectiveRoles_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + effectiveRoles_.add(s); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + directRoles_ = directRoles_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000002) != 0)) { + effectiveRoles_ = effectiveRoles_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_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/read
+   * 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/read
+   * 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/read
+   * 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/read
+   * 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/read
+   * 
+ * + * 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/read
+   * 
+ * + * 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/read
+   * 
+ * + * 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/read
+   * 
+ * + * 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 (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!getEmailAddressBytes().isEmpty()) { + 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)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!getEmailAddressBytes().isEmpty()) { + 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 += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.admin.v1alpha.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 (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + 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) + unknownFields.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() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + 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.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.analytics.admin.v1alpha.AuditUserLink parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.analytics.admin.v1alpha.AuditUserLink) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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/read
+     * 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/read
+     * 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/read
+     * 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/read
+     * 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/read
+     * 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/read
+     * 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/read
+     * 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/read
+     * 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/read
+     * 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/read
+     * 
+ * + * 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/read
+     * 
+ * + * 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/read
+     * 
+ * + * 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/read
+     * 
+ * + * 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/read
+     * 
+ * + * 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/read
+     * 
+ * + * 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/read
+     * 
+ * + * 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/read
+     * 
+ * + * 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/read
+     * 
+ * + * 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 { + return new AuditUserLink(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.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 new file mode 100644 index 00000000..f2b9d26a --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AuditUserLinkOrBuilder.java @@ -0,0 +1,197 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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/read
+   * 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/read
+   * 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/read
+   * 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/read
+   * 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/read
+   * 
+ * + * 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/read
+   * 
+ * + * 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/read
+   * 
+ * + * 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/read
+   * 
+ * + * 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 new file mode 100644 index 00000000..300f1231 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AuditUserLinksRequest.java @@ -0,0 +1,953 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for 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; + } + + private AuditUserLinksRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + case 16: + { + pageSize_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_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 (!getParentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!getPageTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getParentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!getPageTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.admin.v1alpha.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 (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + 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) + unknownFields.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() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + 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.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.analytics.admin.v1alpha.AuditUserLinksRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.AuditUserLinksRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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 { + return new AuditUserLinksRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.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 new file mode 100644 index 00000000..f673fe5c --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AuditUserLinksRequestOrBuilder.java @@ -0,0 +1,101 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated 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 new file mode 100644 index 00000000..cda69e47 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AuditUserLinksResponse.java @@ -0,0 +1,1165 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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; + } + + private AuditUserLinksResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + userLinks_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + userLinks_.add( + input.readMessage( + com.google.analytics.admin.v1alpha.AuditUserLink.parser(), + extensionRegistry)); + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + userLinks_ = java.util.Collections.unmodifiableList(userLinks_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_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 (!getNextPageTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + unknownFields.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 (!getNextPageTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.admin.v1alpha.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 (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (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) + unknownFields.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() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getUserLinksFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (userLinksBuilder_ == null) { + userLinks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + userLinksBuilder_.clear(); + } + 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.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.analytics.admin.v1alpha.AuditUserLinksResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.AuditUserLinksResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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 { + return new AuditUserLinksResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.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 new file mode 100644 index 00000000..6f0caa45 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AuditUserLinksResponseOrBuilder.java @@ -0,0 +1,109 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated 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 new file mode 100644 index 00000000..e7676a5f --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchCreateUserLinksRequest.java @@ -0,0 +1,1293 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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; + } + + private BatchCreateUserLinksRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + case 16: + { + notifyNewUsers_ = input.readBool(); + break; + } + case 26: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + requests_ = + new java.util.ArrayList< + com.google.analytics.admin.v1alpha.CreateUserLinkRequest>(); + mutable_bitField0_ |= 0x00000001; + } + requests_.add( + input.readMessage( + com.google.analytics.admin.v1alpha.CreateUserLinkRequest.parser(), + extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + requests_ = java.util.Collections.unmodifiableList(requests_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_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]; + * + * @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]; + * + * @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 notify_new_users is set, then email new users that they've been given
+   * permissions on the resource.
+   * 
+ * + * 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_; + /** + * + * + *
+   * 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; + */ + @java.lang.Override + public java.util.List + getRequestsList() { + return requests_; + } + /** + * + * + *
+   * 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; + */ + @java.lang.Override + public java.util.List + getRequestsOrBuilderList() { + return requests_; + } + /** + * + * + *
+   * 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; + */ + @java.lang.Override + public int getRequestsCount() { + return requests_.size(); + } + /** + * + * + *
+   * 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; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateUserLinkRequest getRequests(int index) { + return requests_.get(index); + } + /** + * + * + *
+   * 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; + */ + @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 (!getParentBytes().isEmpty()) { + 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)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getParentBytes().isEmpty()) { + 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 += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.admin.v1alpha.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 (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + 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) + unknownFields.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() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getRequestsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + notifyNewUsers_ = false; + + if (requestsBuilder_ == null) { + requests_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + requestsBuilder_.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_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.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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]; + * + * @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]; + * + * @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]; + * + * @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]; + * + * @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]; + * + * @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 notify_new_users is set, then email new users that they've been given
+     * permissions on the resource.
+     * 
+ * + * bool notify_new_users = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The notifyNewUsers. + */ + @java.lang.Override + public boolean getNotifyNewUsers() { + return notifyNewUsers_; + } + /** + * + * + *
+     * Optional. If notify_new_users is set, then email new users that they've been given
+     * permissions on the resource.
+     * 
+ * + * 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 notify_new_users is set, then email new users that they've been given
+     * permissions on the resource.
+     * 
+ * + * 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_; + + /** + * + * + *
+     * 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; + */ + public java.util.List + getRequestsList() { + if (requestsBuilder_ == null) { + return java.util.Collections.unmodifiableList(requests_); + } else { + return requestsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * 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; + */ + public int getRequestsCount() { + if (requestsBuilder_ == null) { + return requests_.size(); + } else { + return requestsBuilder_.getCount(); + } + } + /** + * + * + *
+     * 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; + */ + public com.google.analytics.admin.v1alpha.CreateUserLinkRequest getRequests(int index) { + if (requestsBuilder_ == null) { + return requests_.get(index); + } else { + return requestsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * 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; + */ + 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; + } + /** + * + * + *
+     * 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; + */ + 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; + } + /** + * + * + *
+     * 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; + */ + 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; + } + /** + * + * + *
+     * 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; + */ + 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; + } + /** + * + * + *
+     * 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; + */ + 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; + } + /** + * + * + *
+     * 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; + */ + 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; + } + /** + * + * + *
+     * 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; + */ + 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; + } + /** + * + * + *
+     * 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; + */ + public Builder clearRequests() { + if (requestsBuilder_ == null) { + requests_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + requestsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * 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; + */ + public Builder removeRequests(int index) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.remove(index); + onChanged(); + } else { + requestsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * 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; + */ + public com.google.analytics.admin.v1alpha.CreateUserLinkRequest.Builder getRequestsBuilder( + int index) { + return getRequestsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * 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; + */ + public com.google.analytics.admin.v1alpha.CreateUserLinkRequestOrBuilder getRequestsOrBuilder( + int index) { + if (requestsBuilder_ == null) { + return requests_.get(index); + } else { + return requestsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * 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; + */ + 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_); + } + } + /** + * + * + *
+     * 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; + */ + public com.google.analytics.admin.v1alpha.CreateUserLinkRequest.Builder addRequestsBuilder() { + return getRequestsFieldBuilder() + .addBuilder( + com.google.analytics.admin.v1alpha.CreateUserLinkRequest.getDefaultInstance()); + } + /** + * + * + *
+     * 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; + */ + public com.google.analytics.admin.v1alpha.CreateUserLinkRequest.Builder addRequestsBuilder( + int index) { + return getRequestsFieldBuilder() + .addBuilder( + index, com.google.analytics.admin.v1alpha.CreateUserLinkRequest.getDefaultInstance()); + } + /** + * + * + *
+     * 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; + */ + 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 { + return new BatchCreateUserLinksRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.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 new file mode 100644 index 00000000..3e728c27 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchCreateUserLinksRequestOrBuilder.java @@ -0,0 +1,127 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated 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]; + * + * @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]; + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Optional. If notify_new_users is set, then email new users that they've been given
+   * permissions on the resource.
+   * 
+ * + * bool notify_new_users = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The notifyNewUsers. + */ + boolean getNotifyNewUsers(); + + /** + * + * + *
+   * 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; + */ + java.util.List getRequestsList(); + /** + * + * + *
+   * 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; + */ + com.google.analytics.admin.v1alpha.CreateUserLinkRequest getRequests(int index); + /** + * + * + *
+   * 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; + */ + int getRequestsCount(); + /** + * + * + *
+   * 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; + */ + java.util.List + getRequestsOrBuilderList(); + /** + * + * + *
+   * 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; + */ + 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 new file mode 100644 index 00000000..7e1670a2 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchCreateUserLinksResponse.java @@ -0,0 +1,959 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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; + } + + private BatchCreateUserLinksResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + userLinks_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + userLinks_.add( + input.readMessage( + com.google.analytics.admin.v1alpha.UserLink.parser(), extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + userLinks_ = java.util.Collections.unmodifiableList(userLinks_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_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)); + } + unknownFields.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 += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.admin.v1alpha.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 (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getUserLinksCount() > 0) { + hash = (37 * hash) + USER_LINKS_FIELD_NUMBER; + hash = (53 * hash) + getUserLinksList().hashCode(); + } + hash = (29 * hash) + unknownFields.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() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getUserLinksFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (userLinksBuilder_ == null) { + userLinks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + userLinksBuilder_.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_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.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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 { + return new BatchCreateUserLinksResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.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 new file mode 100644 index 00000000..ed0c92aa --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchCreateUserLinksResponseOrBuilder.java @@ -0,0 +1,77 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/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 new file mode 100644 index 00000000..19efaaf1 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchDeleteUserLinksRequest.java @@ -0,0 +1,1199 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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; + } + + private BatchDeleteUserLinksRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + case 18: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + requests_ = + new java.util.ArrayList< + com.google.analytics.admin.v1alpha.DeleteUserLinkRequest>(); + mutable_bitField0_ |= 0x00000001; + } + requests_.add( + input.readMessage( + com.google.analytics.admin.v1alpha.DeleteUserLinkRequest.parser(), + extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + requests_ = java.util.Collections.unmodifiableList(requests_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_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]; + * + * @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]; + * + * @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_; + /** + * + * + *
+   * 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; + */ + @java.lang.Override + public java.util.List + getRequestsList() { + return requests_; + } + /** + * + * + *
+   * 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; + */ + @java.lang.Override + public java.util.List + getRequestsOrBuilderList() { + return requests_; + } + /** + * + * + *
+   * 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; + */ + @java.lang.Override + public int getRequestsCount() { + return requests_.size(); + } + /** + * + * + *
+   * 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; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.DeleteUserLinkRequest getRequests(int index) { + return requests_.get(index); + } + /** + * + * + *
+   * 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; + */ + @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 (!getParentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + for (int i = 0; i < requests_.size(); i++) { + output.writeMessage(2, requests_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getParentBytes().isEmpty()) { + 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 += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.admin.v1alpha.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 (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (getRequestsCount() > 0) { + hash = (37 * hash) + REQUESTS_FIELD_NUMBER; + hash = (53 * hash) + getRequestsList().hashCode(); + } + hash = (29 * hash) + unknownFields.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() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getRequestsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + if (requestsBuilder_ == null) { + requests_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + requestsBuilder_.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_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.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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]; + * + * @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]; + * + * @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]; + * + * @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]; + * + * @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]; + * + * @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_; + + /** + * + * + *
+     * 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; + */ + public java.util.List + getRequestsList() { + if (requestsBuilder_ == null) { + return java.util.Collections.unmodifiableList(requests_); + } else { + return requestsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * 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; + */ + public int getRequestsCount() { + if (requestsBuilder_ == null) { + return requests_.size(); + } else { + return requestsBuilder_.getCount(); + } + } + /** + * + * + *
+     * 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; + */ + public com.google.analytics.admin.v1alpha.DeleteUserLinkRequest getRequests(int index) { + if (requestsBuilder_ == null) { + return requests_.get(index); + } else { + return requestsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * 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; + */ + 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; + } + /** + * + * + *
+     * 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; + */ + 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; + } + /** + * + * + *
+     * 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; + */ + 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; + } + /** + * + * + *
+     * 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; + */ + 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; + } + /** + * + * + *
+     * 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; + */ + 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; + } + /** + * + * + *
+     * 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; + */ + 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; + } + /** + * + * + *
+     * 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; + */ + 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; + } + /** + * + * + *
+     * 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; + */ + public Builder clearRequests() { + if (requestsBuilder_ == null) { + requests_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + requestsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * 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; + */ + public Builder removeRequests(int index) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.remove(index); + onChanged(); + } else { + requestsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * 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; + */ + public com.google.analytics.admin.v1alpha.DeleteUserLinkRequest.Builder getRequestsBuilder( + int index) { + return getRequestsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * 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; + */ + public com.google.analytics.admin.v1alpha.DeleteUserLinkRequestOrBuilder getRequestsOrBuilder( + int index) { + if (requestsBuilder_ == null) { + return requests_.get(index); + } else { + return requestsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * 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; + */ + 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_); + } + } + /** + * + * + *
+     * 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; + */ + public com.google.analytics.admin.v1alpha.DeleteUserLinkRequest.Builder addRequestsBuilder() { + return getRequestsFieldBuilder() + .addBuilder( + com.google.analytics.admin.v1alpha.DeleteUserLinkRequest.getDefaultInstance()); + } + /** + * + * + *
+     * 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; + */ + public com.google.analytics.admin.v1alpha.DeleteUserLinkRequest.Builder addRequestsBuilder( + int index) { + return getRequestsFieldBuilder() + .addBuilder( + index, com.google.analytics.admin.v1alpha.DeleteUserLinkRequest.getDefaultInstance()); + } + /** + * + * + *
+     * 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; + */ + 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 { + return new BatchDeleteUserLinksRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.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 new file mode 100644 index 00000000..03b540fe --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchDeleteUserLinksRequestOrBuilder.java @@ -0,0 +1,113 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated 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]; + * + * @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]; + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * 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; + */ + java.util.List getRequestsList(); + /** + * + * + *
+   * 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; + */ + com.google.analytics.admin.v1alpha.DeleteUserLinkRequest getRequests(int index); + /** + * + * + *
+   * 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; + */ + int getRequestsCount(); + /** + * + * + *
+   * 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; + */ + java.util.List + getRequestsOrBuilderList(); + /** + * + * + *
+   * 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; + */ + 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 new file mode 100644 index 00000000..230e22eb --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchGetUserLinksRequest.java @@ -0,0 +1,1004 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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; + } + + private BatchGetUserLinksRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + names_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + names_.add(s); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + names_ = names_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_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 (!getParentBytes().isEmpty()) { + 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)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getParentBytes().isEmpty()) { + 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 += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.admin.v1alpha.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 (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (getNamesCount() > 0) { + hash = (37 * hash) + NAMES_FIELD_NUMBER; + hash = (53 * hash) + getNamesList().hashCode(); + } + hash = (29 * hash) + unknownFields.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() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + 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.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.analytics.admin.v1alpha.BatchGetUserLinksRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.BatchGetUserLinksRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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 { + return new BatchGetUserLinksRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.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 new file mode 100644 index 00000000..7d5b1fc7 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchGetUserLinksRequestOrBuilder.java @@ -0,0 +1,127 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated 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 new file mode 100644 index 00000000..7dbce9e1 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchGetUserLinksResponse.java @@ -0,0 +1,955 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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; + } + + private BatchGetUserLinksResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + userLinks_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + userLinks_.add( + input.readMessage( + com.google.analytics.admin.v1alpha.UserLink.parser(), extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + userLinks_ = java.util.Collections.unmodifiableList(userLinks_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_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)); + } + unknownFields.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 += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.admin.v1alpha.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 (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getUserLinksCount() > 0) { + hash = (37 * hash) + USER_LINKS_FIELD_NUMBER; + hash = (53 * hash) + getUserLinksList().hashCode(); + } + hash = (29 * hash) + unknownFields.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() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getUserLinksFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (userLinksBuilder_ == null) { + userLinks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + userLinksBuilder_.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_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.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.analytics.admin.v1alpha.BatchGetUserLinksResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.BatchGetUserLinksResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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 { + return new BatchGetUserLinksResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.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 new file mode 100644 index 00000000..fafcc49b --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchGetUserLinksResponseOrBuilder.java @@ -0,0 +1,77 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/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 new file mode 100644 index 00000000..d7e9f5c2 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchUpdateUserLinksRequest.java @@ -0,0 +1,1199 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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; + } + + private BatchUpdateUserLinksRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + case 18: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + requests_ = + new java.util.ArrayList< + com.google.analytics.admin.v1alpha.UpdateUserLinkRequest>(); + mutable_bitField0_ |= 0x00000001; + } + requests_.add( + input.readMessage( + com.google.analytics.admin.v1alpha.UpdateUserLinkRequest.parser(), + extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + requests_ = java.util.Collections.unmodifiableList(requests_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_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]; + * + * @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]; + * + * @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_; + /** + * + * + *
+   * 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; + */ + @java.lang.Override + public java.util.List + getRequestsList() { + return requests_; + } + /** + * + * + *
+   * 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; + */ + @java.lang.Override + public java.util.List + getRequestsOrBuilderList() { + return requests_; + } + /** + * + * + *
+   * 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; + */ + @java.lang.Override + public int getRequestsCount() { + return requests_.size(); + } + /** + * + * + *
+   * 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; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateUserLinkRequest getRequests(int index) { + return requests_.get(index); + } + /** + * + * + *
+   * 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; + */ + @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 (!getParentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + for (int i = 0; i < requests_.size(); i++) { + output.writeMessage(2, requests_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getParentBytes().isEmpty()) { + 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 += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.admin.v1alpha.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 (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (getRequestsCount() > 0) { + hash = (37 * hash) + REQUESTS_FIELD_NUMBER; + hash = (53 * hash) + getRequestsList().hashCode(); + } + hash = (29 * hash) + unknownFields.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() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getRequestsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + if (requestsBuilder_ == null) { + requests_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + requestsBuilder_.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_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.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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]; + * + * @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]; + * + * @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]; + * + * @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]; + * + * @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]; + * + * @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_; + + /** + * + * + *
+     * 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; + */ + public java.util.List + getRequestsList() { + if (requestsBuilder_ == null) { + return java.util.Collections.unmodifiableList(requests_); + } else { + return requestsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * 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; + */ + public int getRequestsCount() { + if (requestsBuilder_ == null) { + return requests_.size(); + } else { + return requestsBuilder_.getCount(); + } + } + /** + * + * + *
+     * 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; + */ + public com.google.analytics.admin.v1alpha.UpdateUserLinkRequest getRequests(int index) { + if (requestsBuilder_ == null) { + return requests_.get(index); + } else { + return requestsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * 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; + */ + 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; + } + /** + * + * + *
+     * 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; + */ + 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; + } + /** + * + * + *
+     * 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; + */ + 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; + } + /** + * + * + *
+     * 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; + */ + 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; + } + /** + * + * + *
+     * 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; + */ + 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; + } + /** + * + * + *
+     * 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; + */ + 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; + } + /** + * + * + *
+     * 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; + */ + 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; + } + /** + * + * + *
+     * 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; + */ + public Builder clearRequests() { + if (requestsBuilder_ == null) { + requests_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + requestsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * 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; + */ + public Builder removeRequests(int index) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.remove(index); + onChanged(); + } else { + requestsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * 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; + */ + public com.google.analytics.admin.v1alpha.UpdateUserLinkRequest.Builder getRequestsBuilder( + int index) { + return getRequestsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * 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; + */ + public com.google.analytics.admin.v1alpha.UpdateUserLinkRequestOrBuilder getRequestsOrBuilder( + int index) { + if (requestsBuilder_ == null) { + return requests_.get(index); + } else { + return requestsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * 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; + */ + 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_); + } + } + /** + * + * + *
+     * 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; + */ + public com.google.analytics.admin.v1alpha.UpdateUserLinkRequest.Builder addRequestsBuilder() { + return getRequestsFieldBuilder() + .addBuilder( + com.google.analytics.admin.v1alpha.UpdateUserLinkRequest.getDefaultInstance()); + } + /** + * + * + *
+     * 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; + */ + public com.google.analytics.admin.v1alpha.UpdateUserLinkRequest.Builder addRequestsBuilder( + int index) { + return getRequestsFieldBuilder() + .addBuilder( + index, com.google.analytics.admin.v1alpha.UpdateUserLinkRequest.getDefaultInstance()); + } + /** + * + * + *
+     * 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; + */ + 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 { + return new BatchUpdateUserLinksRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.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 new file mode 100644 index 00000000..af30f1df --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchUpdateUserLinksRequestOrBuilder.java @@ -0,0 +1,113 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated 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]; + * + * @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]; + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * 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; + */ + java.util.List getRequestsList(); + /** + * + * + *
+   * 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; + */ + com.google.analytics.admin.v1alpha.UpdateUserLinkRequest getRequests(int index); + /** + * + * + *
+   * 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; + */ + int getRequestsCount(); + /** + * + * + *
+   * 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; + */ + java.util.List + getRequestsOrBuilderList(); + /** + * + * + *
+   * 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; + */ + 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 new file mode 100644 index 00000000..913d6d2b --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchUpdateUserLinksResponse.java @@ -0,0 +1,959 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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; + } + + private BatchUpdateUserLinksResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + userLinks_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + userLinks_.add( + input.readMessage( + com.google.analytics.admin.v1alpha.UserLink.parser(), extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + userLinks_ = java.util.Collections.unmodifiableList(userLinks_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_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)); + } + unknownFields.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 += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.admin.v1alpha.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 (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getUserLinksCount() > 0) { + hash = (37 * hash) + USER_LINKS_FIELD_NUMBER; + hash = (53 * hash) + getUserLinksList().hashCode(); + } + hash = (29 * hash) + unknownFields.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() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getUserLinksFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (userLinksBuilder_ == null) { + userLinks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + userLinksBuilder_.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_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.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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 { + return new BatchUpdateUserLinksResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.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 new file mode 100644 index 00000000..a00931b1 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchUpdateUserLinksResponseOrBuilder.java @@ -0,0 +1,77 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/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/CreateAndroidAppDataStreamRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateAndroidAppDataStreamRequest.java new file mode 100644 index 00000000..37153637 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateAndroidAppDataStreamRequest.java @@ -0,0 +1,980 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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 CreateAndroidAppDataStream RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest} + */ +public final class CreateAndroidAppDataStreamRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest) + CreateAndroidAppDataStreamRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateAndroidAppDataStreamRequest.newBuilder() to construct. + private CreateAndroidAppDataStreamRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateAndroidAppDataStreamRequest() { + parent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateAndroidAppDataStreamRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CreateAndroidAppDataStreamRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.analytics.admin.v1alpha.AndroidAppDataStream.Builder subBuilder = null; + if (androidAppDataStream_ != null) { + subBuilder = androidAppDataStream_.toBuilder(); + } + androidAppDataStream_ = + input.readMessage( + com.google.analytics.admin.v1alpha.AndroidAppDataStream.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(androidAppDataStream_); + androidAppDataStream_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateAndroidAppDataStreamRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateAndroidAppDataStreamRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest.class, + com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest.Builder.class); + } + + public static final int ANDROID_APP_DATA_STREAM_FIELD_NUMBER = 1; + private com.google.analytics.admin.v1alpha.AndroidAppDataStream androidAppDataStream_; + /** + * + * + *
+   * Required. The android app stream to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the androidAppDataStream field is set. + */ + @java.lang.Override + public boolean hasAndroidAppDataStream() { + return androidAppDataStream_ != null; + } + /** + * + * + *
+   * Required. The android app stream to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The androidAppDataStream. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AndroidAppDataStream getAndroidAppDataStream() { + return androidAppDataStream_ == null + ? com.google.analytics.admin.v1alpha.AndroidAppDataStream.getDefaultInstance() + : androidAppDataStream_; + } + /** + * + * + *
+   * Required. The android app stream to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AndroidAppDataStreamOrBuilder + getAndroidAppDataStreamOrBuilder() { + return getAndroidAppDataStream(); + } + + public static final int PARENT_FIELD_NUMBER = 2; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Required. The parent resource where this android app data stream 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 parent resource where this android app data stream 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 (androidAppDataStream_ != null) { + output.writeMessage(1, getAndroidAppDataStream()); + } + if (!getParentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, parent_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (androidAppDataStream_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, getAndroidAppDataStream()); + } + if (!getParentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, parent_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest other = + (com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest) obj; + + if (hasAndroidAppDataStream() != other.hasAndroidAppDataStream()) return false; + if (hasAndroidAppDataStream()) { + if (!getAndroidAppDataStream().equals(other.getAndroidAppDataStream())) return false; + } + if (!getParent().equals(other.getParent())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasAndroidAppDataStream()) { + hash = (37 * hash) + ANDROID_APP_DATA_STREAM_FIELD_NUMBER; + hash = (53 * hash) + getAndroidAppDataStream().hashCode(); + } + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for CreateAndroidAppDataStream RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest) + com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateAndroidAppDataStreamRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateAndroidAppDataStreamRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest.class, + com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest.Builder.class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (androidAppDataStreamBuilder_ == null) { + androidAppDataStream_ = null; + } else { + androidAppDataStream_ = null; + androidAppDataStreamBuilder_ = 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_CreateAndroidAppDataStreamRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest build() { + com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest buildPartial() { + com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest result = + new com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest(this); + if (androidAppDataStreamBuilder_ == null) { + result.androidAppDataStream_ = androidAppDataStream_; + } else { + result.androidAppDataStream_ = androidAppDataStreamBuilder_.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.CreateAndroidAppDataStreamRequest) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest other) { + if (other + == com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest + .getDefaultInstance()) return this; + if (other.hasAndroidAppDataStream()) { + mergeAndroidAppDataStream(other.getAndroidAppDataStream()); + } + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.analytics.admin.v1alpha.AndroidAppDataStream androidAppDataStream_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AndroidAppDataStream, + com.google.analytics.admin.v1alpha.AndroidAppDataStream.Builder, + com.google.analytics.admin.v1alpha.AndroidAppDataStreamOrBuilder> + androidAppDataStreamBuilder_; + /** + * + * + *
+     * Required. The android app stream to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the androidAppDataStream field is set. + */ + public boolean hasAndroidAppDataStream() { + return androidAppDataStreamBuilder_ != null || androidAppDataStream_ != null; + } + /** + * + * + *
+     * Required. The android app stream to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The androidAppDataStream. + */ + public com.google.analytics.admin.v1alpha.AndroidAppDataStream getAndroidAppDataStream() { + if (androidAppDataStreamBuilder_ == null) { + return androidAppDataStream_ == null + ? com.google.analytics.admin.v1alpha.AndroidAppDataStream.getDefaultInstance() + : androidAppDataStream_; + } else { + return androidAppDataStreamBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The android app stream to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAndroidAppDataStream( + com.google.analytics.admin.v1alpha.AndroidAppDataStream value) { + if (androidAppDataStreamBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + androidAppDataStream_ = value; + onChanged(); + } else { + androidAppDataStreamBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. The android app stream to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAndroidAppDataStream( + com.google.analytics.admin.v1alpha.AndroidAppDataStream.Builder builderForValue) { + if (androidAppDataStreamBuilder_ == null) { + androidAppDataStream_ = builderForValue.build(); + onChanged(); + } else { + androidAppDataStreamBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. The android app stream to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeAndroidAppDataStream( + com.google.analytics.admin.v1alpha.AndroidAppDataStream value) { + if (androidAppDataStreamBuilder_ == null) { + if (androidAppDataStream_ != null) { + androidAppDataStream_ = + com.google.analytics.admin.v1alpha.AndroidAppDataStream.newBuilder( + androidAppDataStream_) + .mergeFrom(value) + .buildPartial(); + } else { + androidAppDataStream_ = value; + } + onChanged(); + } else { + androidAppDataStreamBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. The android app stream to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearAndroidAppDataStream() { + if (androidAppDataStreamBuilder_ == null) { + androidAppDataStream_ = null; + onChanged(); + } else { + androidAppDataStream_ = null; + androidAppDataStreamBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. The android app stream to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.AndroidAppDataStream.Builder + getAndroidAppDataStreamBuilder() { + + onChanged(); + return getAndroidAppDataStreamFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The android app stream to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.AndroidAppDataStreamOrBuilder + getAndroidAppDataStreamOrBuilder() { + if (androidAppDataStreamBuilder_ != null) { + return androidAppDataStreamBuilder_.getMessageOrBuilder(); + } else { + return androidAppDataStream_ == null + ? com.google.analytics.admin.v1alpha.AndroidAppDataStream.getDefaultInstance() + : androidAppDataStream_; + } + } + /** + * + * + *
+     * Required. The android app stream to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AndroidAppDataStream, + com.google.analytics.admin.v1alpha.AndroidAppDataStream.Builder, + com.google.analytics.admin.v1alpha.AndroidAppDataStreamOrBuilder> + getAndroidAppDataStreamFieldBuilder() { + if (androidAppDataStreamBuilder_ == null) { + androidAppDataStreamBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AndroidAppDataStream, + com.google.analytics.admin.v1alpha.AndroidAppDataStream.Builder, + com.google.analytics.admin.v1alpha.AndroidAppDataStreamOrBuilder>( + getAndroidAppDataStream(), getParentForChildren(), isClean()); + androidAppDataStream_ = null; + } + return androidAppDataStreamBuilder_; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The parent resource where this android app data stream 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 parent resource where this android app data stream 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 parent resource where this android app data stream 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 parent resource where this android app data stream 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 parent resource where this android app data stream 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.CreateAndroidAppDataStreamRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest) + private static final com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest(); + } + + public static com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateAndroidAppDataStreamRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateAndroidAppDataStreamRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateAndroidAppDataStreamRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateAndroidAppDataStreamRequestOrBuilder.java new file mode 100644 index 00000000..c2f5b915 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateAndroidAppDataStreamRequestOrBuilder.java @@ -0,0 +1,98 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface CreateAndroidAppDataStreamRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The android app stream to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the androidAppDataStream field is set. + */ + boolean hasAndroidAppDataStream(); + /** + * + * + *
+   * Required. The android app stream to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The androidAppDataStream. + */ + com.google.analytics.admin.v1alpha.AndroidAppDataStream getAndroidAppDataStream(); + /** + * + * + *
+   * Required. The android app stream to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.analytics.admin.v1alpha.AndroidAppDataStreamOrBuilder + getAndroidAppDataStreamOrBuilder(); + + /** + * + * + *
+   * Required. The parent resource where this android app data stream 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 parent resource where this android app data stream 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/CreateFirebaseLinkRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateFirebaseLinkRequest.java new file mode 100644 index 00000000..c1c77508 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateFirebaseLinkRequest.java @@ -0,0 +1,963 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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; + } + + private CreateFirebaseLinkRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + case 18: + { + com.google.analytics.admin.v1alpha.FirebaseLink.Builder subBuilder = null; + if (firebaseLink_ != null) { + subBuilder = firebaseLink_.toBuilder(); + } + firebaseLink_ = + input.readMessage( + com.google.analytics.admin.v1alpha.FirebaseLink.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(firebaseLink_); + firebaseLink_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_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 (!getParentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (firebaseLink_ != null) { + output.writeMessage(2, getFirebaseLink()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getParentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (firebaseLink_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getFirebaseLink()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.admin.v1alpha.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 (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (hasFirebaseLink()) { + hash = (37 * hash) + FIREBASE_LINK_FIELD_NUMBER; + hash = (53 * hash) + getFirebaseLink().hashCode(); + } + hash = (29 * hash) + unknownFields.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() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + 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.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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 { + return new CreateFirebaseLinkRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.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 new file mode 100644 index 00000000..af6b2f56 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateFirebaseLinkRequestOrBuilder.java @@ -0,0 +1,97 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated 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 new file mode 100644 index 00000000..1e6f605b --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateGoogleAdsLinkRequest.java @@ -0,0 +1,957 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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; + } + + private CreateGoogleAdsLinkRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + case 18: + { + com.google.analytics.admin.v1alpha.GoogleAdsLink.Builder subBuilder = null; + if (googleAdsLink_ != null) { + subBuilder = googleAdsLink_.toBuilder(); + } + googleAdsLink_ = + input.readMessage( + com.google.analytics.admin.v1alpha.GoogleAdsLink.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(googleAdsLink_); + googleAdsLink_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_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 (!getParentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (googleAdsLink_ != null) { + output.writeMessage(2, getGoogleAdsLink()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getParentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (googleAdsLink_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getGoogleAdsLink()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.admin.v1alpha.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 (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (hasGoogleAdsLink()) { + hash = (37 * hash) + GOOGLE_ADS_LINK_FIELD_NUMBER; + hash = (53 * hash) + getGoogleAdsLink().hashCode(); + } + hash = (29 * hash) + unknownFields.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() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + 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.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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 { + return new CreateGoogleAdsLinkRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.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 new file mode 100644 index 00000000..bd09628d --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateGoogleAdsLinkRequestOrBuilder.java @@ -0,0 +1,95 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/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/CreateIosAppDataStreamRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateIosAppDataStreamRequest.java new file mode 100644 index 00000000..744017da --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateIosAppDataStreamRequest.java @@ -0,0 +1,972 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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 CreateIosAppDataStream RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest} + */ +public final class CreateIosAppDataStreamRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest) + CreateIosAppDataStreamRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateIosAppDataStreamRequest.newBuilder() to construct. + private CreateIosAppDataStreamRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateIosAppDataStreamRequest() { + parent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateIosAppDataStreamRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CreateIosAppDataStreamRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.analytics.admin.v1alpha.IosAppDataStream.Builder subBuilder = null; + if (iosAppDataStream_ != null) { + subBuilder = iosAppDataStream_.toBuilder(); + } + iosAppDataStream_ = + input.readMessage( + com.google.analytics.admin.v1alpha.IosAppDataStream.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(iosAppDataStream_); + iosAppDataStream_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateIosAppDataStreamRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateIosAppDataStreamRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest.class, + com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest.Builder.class); + } + + public static final int IOS_APP_DATA_STREAM_FIELD_NUMBER = 1; + private com.google.analytics.admin.v1alpha.IosAppDataStream iosAppDataStream_; + /** + * + * + *
+   * Required. The iOS app data stream to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the iosAppDataStream field is set. + */ + @java.lang.Override + public boolean hasIosAppDataStream() { + return iosAppDataStream_ != null; + } + /** + * + * + *
+   * Required. The iOS app data stream to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The iosAppDataStream. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.IosAppDataStream getIosAppDataStream() { + return iosAppDataStream_ == null + ? com.google.analytics.admin.v1alpha.IosAppDataStream.getDefaultInstance() + : iosAppDataStream_; + } + /** + * + * + *
+   * Required. The iOS app data stream to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.IosAppDataStreamOrBuilder + getIosAppDataStreamOrBuilder() { + return getIosAppDataStream(); + } + + public static final int PARENT_FIELD_NUMBER = 2; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Required. The parent resource where this ios app data stream 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 parent resource where this ios app data stream 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 (iosAppDataStream_ != null) { + output.writeMessage(1, getIosAppDataStream()); + } + if (!getParentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, parent_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (iosAppDataStream_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getIosAppDataStream()); + } + if (!getParentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, parent_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest other = + (com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest) obj; + + if (hasIosAppDataStream() != other.hasIosAppDataStream()) return false; + if (hasIosAppDataStream()) { + if (!getIosAppDataStream().equals(other.getIosAppDataStream())) return false; + } + if (!getParent().equals(other.getParent())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasIosAppDataStream()) { + hash = (37 * hash) + IOS_APP_DATA_STREAM_FIELD_NUMBER; + hash = (53 * hash) + getIosAppDataStream().hashCode(); + } + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for CreateIosAppDataStream RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest) + com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateIosAppDataStreamRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateIosAppDataStreamRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest.class, + com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (iosAppDataStreamBuilder_ == null) { + iosAppDataStream_ = null; + } else { + iosAppDataStream_ = null; + iosAppDataStreamBuilder_ = 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_CreateIosAppDataStreamRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest build() { + com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest buildPartial() { + com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest result = + new com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest(this); + if (iosAppDataStreamBuilder_ == null) { + result.iosAppDataStream_ = iosAppDataStream_; + } else { + result.iosAppDataStream_ = iosAppDataStreamBuilder_.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.CreateIosAppDataStreamRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest other) { + if (other + == com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest.getDefaultInstance()) + return this; + if (other.hasIosAppDataStream()) { + mergeIosAppDataStream(other.getIosAppDataStream()); + } + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.analytics.admin.v1alpha.IosAppDataStream iosAppDataStream_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.IosAppDataStream, + com.google.analytics.admin.v1alpha.IosAppDataStream.Builder, + com.google.analytics.admin.v1alpha.IosAppDataStreamOrBuilder> + iosAppDataStreamBuilder_; + /** + * + * + *
+     * Required. The iOS app data stream to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the iosAppDataStream field is set. + */ + public boolean hasIosAppDataStream() { + return iosAppDataStreamBuilder_ != null || iosAppDataStream_ != null; + } + /** + * + * + *
+     * Required. The iOS app data stream to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The iosAppDataStream. + */ + public com.google.analytics.admin.v1alpha.IosAppDataStream getIosAppDataStream() { + if (iosAppDataStreamBuilder_ == null) { + return iosAppDataStream_ == null + ? com.google.analytics.admin.v1alpha.IosAppDataStream.getDefaultInstance() + : iosAppDataStream_; + } else { + return iosAppDataStreamBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The iOS app data stream to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setIosAppDataStream(com.google.analytics.admin.v1alpha.IosAppDataStream value) { + if (iosAppDataStreamBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + iosAppDataStream_ = value; + onChanged(); + } else { + iosAppDataStreamBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. The iOS app data stream to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setIosAppDataStream( + com.google.analytics.admin.v1alpha.IosAppDataStream.Builder builderForValue) { + if (iosAppDataStreamBuilder_ == null) { + iosAppDataStream_ = builderForValue.build(); + onChanged(); + } else { + iosAppDataStreamBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. The iOS app data stream to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeIosAppDataStream( + com.google.analytics.admin.v1alpha.IosAppDataStream value) { + if (iosAppDataStreamBuilder_ == null) { + if (iosAppDataStream_ != null) { + iosAppDataStream_ = + com.google.analytics.admin.v1alpha.IosAppDataStream.newBuilder(iosAppDataStream_) + .mergeFrom(value) + .buildPartial(); + } else { + iosAppDataStream_ = value; + } + onChanged(); + } else { + iosAppDataStreamBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. The iOS app data stream to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearIosAppDataStream() { + if (iosAppDataStreamBuilder_ == null) { + iosAppDataStream_ = null; + onChanged(); + } else { + iosAppDataStream_ = null; + iosAppDataStreamBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. The iOS app data stream to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.IosAppDataStream.Builder + getIosAppDataStreamBuilder() { + + onChanged(); + return getIosAppDataStreamFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The iOS app data stream to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.IosAppDataStreamOrBuilder + getIosAppDataStreamOrBuilder() { + if (iosAppDataStreamBuilder_ != null) { + return iosAppDataStreamBuilder_.getMessageOrBuilder(); + } else { + return iosAppDataStream_ == null + ? com.google.analytics.admin.v1alpha.IosAppDataStream.getDefaultInstance() + : iosAppDataStream_; + } + } + /** + * + * + *
+     * Required. The iOS app data stream to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.IosAppDataStream, + com.google.analytics.admin.v1alpha.IosAppDataStream.Builder, + com.google.analytics.admin.v1alpha.IosAppDataStreamOrBuilder> + getIosAppDataStreamFieldBuilder() { + if (iosAppDataStreamBuilder_ == null) { + iosAppDataStreamBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.IosAppDataStream, + com.google.analytics.admin.v1alpha.IosAppDataStream.Builder, + com.google.analytics.admin.v1alpha.IosAppDataStreamOrBuilder>( + getIosAppDataStream(), getParentForChildren(), isClean()); + iosAppDataStream_ = null; + } + return iosAppDataStreamBuilder_; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The parent resource where this ios app data stream 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 parent resource where this ios app data stream 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 parent resource where this ios app data stream 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 parent resource where this ios app data stream 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 parent resource where this ios app data stream 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.CreateIosAppDataStreamRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest) + private static final com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest(); + } + + public static com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateIosAppDataStreamRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateIosAppDataStreamRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateIosAppDataStreamRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateIosAppDataStreamRequestOrBuilder.java new file mode 100644 index 00000000..7ac72dcd --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateIosAppDataStreamRequestOrBuilder.java @@ -0,0 +1,97 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface CreateIosAppDataStreamRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The iOS app data stream to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the iosAppDataStream field is set. + */ + boolean hasIosAppDataStream(); + /** + * + * + *
+   * Required. The iOS app data stream to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The iosAppDataStream. + */ + com.google.analytics.admin.v1alpha.IosAppDataStream getIosAppDataStream(); + /** + * + * + *
+   * Required. The iOS app data stream to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.analytics.admin.v1alpha.IosAppDataStreamOrBuilder getIosAppDataStreamOrBuilder(); + + /** + * + * + *
+   * Required. The parent resource where this ios app data stream 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 parent resource where this ios app data stream 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/CreatePropertyRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreatePropertyRequest.java new file mode 100644 index 00000000..6c78f120 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreatePropertyRequest.java @@ -0,0 +1,771 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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; + } + + private CreatePropertyRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.analytics.admin.v1alpha.Property.Builder subBuilder = null; + if (property_ != null) { + subBuilder = property_.toBuilder(); + } + property_ = + input.readMessage( + com.google.analytics.admin.v1alpha.Property.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(property_); + property_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_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()); + } + unknownFields.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 += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.admin.v1alpha.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 (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasProperty()) { + hash = (37 * hash) + PROPERTY_FIELD_NUMBER; + hash = (53 * hash) + getProperty().hashCode(); + } + hash = (29 * hash) + unknownFields.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() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (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.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.analytics.admin.v1alpha.CreatePropertyRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.CreatePropertyRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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 { + return new CreatePropertyRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.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 new file mode 100644 index 00000000..0cc75c3e --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreatePropertyRequestOrBuilder.java @@ -0,0 +1,69 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated 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 new file mode 100644 index 00000000..c1534ddf --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateUserLinkRequest.java @@ -0,0 +1,1059 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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; + } + + private CreateUserLinkRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + case 16: + { + notifyNewUser_ = input.readBool(); + break; + } + case 26: + { + com.google.analytics.admin.v1alpha.UserLink.Builder subBuilder = null; + if (userLink_ != null) { + subBuilder = userLink_.toBuilder(); + } + userLink_ = + input.readMessage( + com.google.analytics.admin.v1alpha.UserLink.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(userLink_); + userLink_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_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 notify_new_user is set, then email new user that they've been given
+   * permissions on 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 (!getParentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (notifyNewUser_ != false) { + output.writeBool(2, notifyNewUser_); + } + if (userLink_ != null) { + output.writeMessage(3, getUserLink()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getParentBytes().isEmpty()) { + 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 += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.admin.v1alpha.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 (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + 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) + unknownFields.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() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + 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.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.analytics.admin.v1alpha.CreateUserLinkRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.CreateUserLinkRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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 notify_new_user is set, then email new user that they've been given
+     * permissions on 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 notify_new_user is set, then email new user that they've been given
+     * permissions on 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 notify_new_user is set, then email new user that they've been given
+     * permissions on 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 { + return new CreateUserLinkRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.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 new file mode 100644 index 00000000..6a7a7eac --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateUserLinkRequestOrBuilder.java @@ -0,0 +1,109 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated 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 notify_new_user is set, then email new user that they've been given
+   * permissions on 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/CreateWebDataStreamRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateWebDataStreamRequest.java new file mode 100644 index 00000000..7f2d9429 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateWebDataStreamRequest.java @@ -0,0 +1,964 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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 CreateWebDataStream RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.CreateWebDataStreamRequest} + */ +public final class CreateWebDataStreamRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.CreateWebDataStreamRequest) + CreateWebDataStreamRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateWebDataStreamRequest.newBuilder() to construct. + private CreateWebDataStreamRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateWebDataStreamRequest() { + parent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateWebDataStreamRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CreateWebDataStreamRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.analytics.admin.v1alpha.WebDataStream.Builder subBuilder = null; + if (webDataStream_ != null) { + subBuilder = webDataStream_.toBuilder(); + } + webDataStream_ = + input.readMessage( + com.google.analytics.admin.v1alpha.WebDataStream.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(webDataStream_); + webDataStream_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateWebDataStreamRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateWebDataStreamRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.CreateWebDataStreamRequest.class, + com.google.analytics.admin.v1alpha.CreateWebDataStreamRequest.Builder.class); + } + + public static final int WEB_DATA_STREAM_FIELD_NUMBER = 1; + private com.google.analytics.admin.v1alpha.WebDataStream webDataStream_; + /** + * + * + *
+   * Required. The web stream to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.WebDataStream web_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the webDataStream field is set. + */ + @java.lang.Override + public boolean hasWebDataStream() { + return webDataStream_ != null; + } + /** + * + * + *
+   * Required. The web stream to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.WebDataStream web_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The webDataStream. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.WebDataStream getWebDataStream() { + return webDataStream_ == null + ? com.google.analytics.admin.v1alpha.WebDataStream.getDefaultInstance() + : webDataStream_; + } + /** + * + * + *
+   * Required. The web stream to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.WebDataStream web_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.WebDataStreamOrBuilder getWebDataStreamOrBuilder() { + return getWebDataStream(); + } + + public static final int PARENT_FIELD_NUMBER = 2; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Required. The parent resource where this web data stream 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 parent resource where this web data stream 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 (webDataStream_ != null) { + output.writeMessage(1, getWebDataStream()); + } + if (!getParentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, parent_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (webDataStream_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getWebDataStream()); + } + if (!getParentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, parent_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.admin.v1alpha.CreateWebDataStreamRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.CreateWebDataStreamRequest other = + (com.google.analytics.admin.v1alpha.CreateWebDataStreamRequest) obj; + + if (hasWebDataStream() != other.hasWebDataStream()) return false; + if (hasWebDataStream()) { + if (!getWebDataStream().equals(other.getWebDataStream())) return false; + } + if (!getParent().equals(other.getParent())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasWebDataStream()) { + hash = (37 * hash) + WEB_DATA_STREAM_FIELD_NUMBER; + hash = (53 * hash) + getWebDataStream().hashCode(); + } + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.CreateWebDataStreamRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CreateWebDataStreamRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateWebDataStreamRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CreateWebDataStreamRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateWebDataStreamRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CreateWebDataStreamRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateWebDataStreamRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.CreateWebDataStreamRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateWebDataStreamRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.CreateWebDataStreamRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateWebDataStreamRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.CreateWebDataStreamRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.CreateWebDataStreamRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for CreateWebDataStream RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.CreateWebDataStreamRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.CreateWebDataStreamRequest) + com.google.analytics.admin.v1alpha.CreateWebDataStreamRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateWebDataStreamRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateWebDataStreamRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.CreateWebDataStreamRequest.class, + com.google.analytics.admin.v1alpha.CreateWebDataStreamRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.CreateWebDataStreamRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (webDataStreamBuilder_ == null) { + webDataStream_ = null; + } else { + webDataStream_ = null; + webDataStreamBuilder_ = 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_CreateWebDataStreamRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateWebDataStreamRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.CreateWebDataStreamRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateWebDataStreamRequest build() { + com.google.analytics.admin.v1alpha.CreateWebDataStreamRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateWebDataStreamRequest buildPartial() { + com.google.analytics.admin.v1alpha.CreateWebDataStreamRequest result = + new com.google.analytics.admin.v1alpha.CreateWebDataStreamRequest(this); + if (webDataStreamBuilder_ == null) { + result.webDataStream_ = webDataStream_; + } else { + result.webDataStream_ = webDataStreamBuilder_.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.CreateWebDataStreamRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.CreateWebDataStreamRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.CreateWebDataStreamRequest other) { + if (other + == com.google.analytics.admin.v1alpha.CreateWebDataStreamRequest.getDefaultInstance()) + return this; + if (other.hasWebDataStream()) { + mergeWebDataStream(other.getWebDataStream()); + } + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.analytics.admin.v1alpha.CreateWebDataStreamRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.CreateWebDataStreamRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.analytics.admin.v1alpha.WebDataStream webDataStream_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.WebDataStream, + com.google.analytics.admin.v1alpha.WebDataStream.Builder, + com.google.analytics.admin.v1alpha.WebDataStreamOrBuilder> + webDataStreamBuilder_; + /** + * + * + *
+     * Required. The web stream to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.WebDataStream web_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the webDataStream field is set. + */ + public boolean hasWebDataStream() { + return webDataStreamBuilder_ != null || webDataStream_ != null; + } + /** + * + * + *
+     * Required. The web stream to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.WebDataStream web_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The webDataStream. + */ + public com.google.analytics.admin.v1alpha.WebDataStream getWebDataStream() { + if (webDataStreamBuilder_ == null) { + return webDataStream_ == null + ? com.google.analytics.admin.v1alpha.WebDataStream.getDefaultInstance() + : webDataStream_; + } else { + return webDataStreamBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The web stream to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.WebDataStream web_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setWebDataStream(com.google.analytics.admin.v1alpha.WebDataStream value) { + if (webDataStreamBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + webDataStream_ = value; + onChanged(); + } else { + webDataStreamBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. The web stream to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.WebDataStream web_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setWebDataStream( + com.google.analytics.admin.v1alpha.WebDataStream.Builder builderForValue) { + if (webDataStreamBuilder_ == null) { + webDataStream_ = builderForValue.build(); + onChanged(); + } else { + webDataStreamBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. The web stream to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.WebDataStream web_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeWebDataStream(com.google.analytics.admin.v1alpha.WebDataStream value) { + if (webDataStreamBuilder_ == null) { + if (webDataStream_ != null) { + webDataStream_ = + com.google.analytics.admin.v1alpha.WebDataStream.newBuilder(webDataStream_) + .mergeFrom(value) + .buildPartial(); + } else { + webDataStream_ = value; + } + onChanged(); + } else { + webDataStreamBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. The web stream to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.WebDataStream web_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearWebDataStream() { + if (webDataStreamBuilder_ == null) { + webDataStream_ = null; + onChanged(); + } else { + webDataStream_ = null; + webDataStreamBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. The web stream to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.WebDataStream web_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.WebDataStream.Builder getWebDataStreamBuilder() { + + onChanged(); + return getWebDataStreamFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The web stream to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.WebDataStream web_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.WebDataStreamOrBuilder getWebDataStreamOrBuilder() { + if (webDataStreamBuilder_ != null) { + return webDataStreamBuilder_.getMessageOrBuilder(); + } else { + return webDataStream_ == null + ? com.google.analytics.admin.v1alpha.WebDataStream.getDefaultInstance() + : webDataStream_; + } + } + /** + * + * + *
+     * Required. The web stream to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.WebDataStream web_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.WebDataStream, + com.google.analytics.admin.v1alpha.WebDataStream.Builder, + com.google.analytics.admin.v1alpha.WebDataStreamOrBuilder> + getWebDataStreamFieldBuilder() { + if (webDataStreamBuilder_ == null) { + webDataStreamBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.WebDataStream, + com.google.analytics.admin.v1alpha.WebDataStream.Builder, + com.google.analytics.admin.v1alpha.WebDataStreamOrBuilder>( + getWebDataStream(), getParentForChildren(), isClean()); + webDataStream_ = null; + } + return webDataStreamBuilder_; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The parent resource where this web data stream 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 parent resource where this web data stream 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 parent resource where this web data stream 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 parent resource where this web data stream 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 parent resource where this web data stream 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.CreateWebDataStreamRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.CreateWebDataStreamRequest) + private static final com.google.analytics.admin.v1alpha.CreateWebDataStreamRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.CreateWebDataStreamRequest(); + } + + public static com.google.analytics.admin.v1alpha.CreateWebDataStreamRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateWebDataStreamRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateWebDataStreamRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateWebDataStreamRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateWebDataStreamRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateWebDataStreamRequestOrBuilder.java new file mode 100644 index 00000000..c1f26635 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateWebDataStreamRequestOrBuilder.java @@ -0,0 +1,97 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface CreateWebDataStreamRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.CreateWebDataStreamRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The web stream to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.WebDataStream web_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the webDataStream field is set. + */ + boolean hasWebDataStream(); + /** + * + * + *
+   * Required. The web stream to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.WebDataStream web_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The webDataStream. + */ + com.google.analytics.admin.v1alpha.WebDataStream getWebDataStream(); + /** + * + * + *
+   * Required. The web stream to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.WebDataStream web_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.analytics.admin.v1alpha.WebDataStreamOrBuilder getWebDataStreamOrBuilder(); + + /** + * + * + *
+   * Required. The parent resource where this web data stream 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 parent resource where this web data stream 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/DataSharingSettings.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataSharingSettings.java new file mode 100644 index 00000000..601c2019 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataSharingSettings.java @@ -0,0 +1,1139 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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; + } + + private DataSharingSettings( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 16: + { + sharingWithGoogleSupportEnabled_ = input.readBool(); + break; + } + case 24: + { + sharingWithGoogleAssignedSalesEnabled_ = input.readBool(); + break; + } + case 32: + { + sharingWithGoogleAnySalesEnabled_ = input.readBool(); + break; + } + case 40: + { + sharingWithGoogleProductsEnabled_ = input.readBool(); + break; + } + case 48: + { + sharingWithOthersEnabled_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_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 (!getNameBytes().isEmpty()) { + 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_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + 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 += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.admin.v1alpha.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 (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + 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) + unknownFields.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() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + 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.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.analytics.admin.v1alpha.DataSharingSettings parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.DataSharingSettings) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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 { + return new DataSharingSettings(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.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 new file mode 100644 index 00000000..16ecbac3 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataSharingSettingsName.java @@ -0,0 +1,162 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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; + +/** AUTO-GENERATED DOCUMENTATION AND CLASS */ +@javax.annotation.Generated("by GAPIC protoc plugin") +public class DataSharingSettingsName implements ResourceName { + + private static final PathTemplate PATH_TEMPLATE = + PathTemplate.createWithoutUrlEncoding("accounts/{account}/dataSharingSettings"); + + private volatile Map fieldValuesMap; + + private final String account; + + public String getAccount() { + return account; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + private DataSharingSettingsName(Builder builder) { + account = Preconditions.checkNotNull(builder.getAccount()); + } + + 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 = + PATH_TEMPLATE.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 PATH_TEMPLATE.matches(formattedString); + } + + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + fieldMapBuilder.put("account", account); + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PATH_TEMPLATE.instantiate("account", account); + } + + /** Builder for DataSharingSettingsName. */ + public static class Builder { + + private String account; + + public String getAccount() { + return account; + } + + public Builder setAccount(String account) { + this.account = account; + return this; + } + + private Builder() {} + + private Builder(DataSharingSettingsName dataSharingSettingsName) { + account = dataSharingSettingsName.account; + } + + public DataSharingSettingsName build() { + return new DataSharingSettingsName(this); + } + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o instanceof DataSharingSettingsName) { + DataSharingSettingsName that = (DataSharingSettingsName) o; + return (this.account.equals(that.account)); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= account.hashCode(); + return h; + } +} 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 new file mode 100644 index 00000000..d7a115e8 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataSharingSettingsOrBuilder.java @@ -0,0 +1,123 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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/DeleteAccountRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteAccountRequest.java new file mode 100644 index 00000000..8a2f0c08 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteAccountRequest.java @@ -0,0 +1,665 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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; + } + + private DeleteAccountRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_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 (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.admin.v1alpha.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 (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.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() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + 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.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.analytics.admin.v1alpha.DeleteAccountRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.DeleteAccountRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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 { + return new DeleteAccountRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.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 new file mode 100644 index 00000000..80336640 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteAccountRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated 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/DeleteAndroidAppDataStreamRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteAndroidAppDataStreamRequest.java new file mode 100644 index 00000000..7b355725 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteAndroidAppDataStreamRequest.java @@ -0,0 +1,677 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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 DeleteAndroidAppDataStream RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest} + */ +public final class DeleteAndroidAppDataStreamRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest) + DeleteAndroidAppDataStreamRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteAndroidAppDataStreamRequest.newBuilder() to construct. + private DeleteAndroidAppDataStreamRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteAndroidAppDataStreamRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteAndroidAppDataStreamRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private DeleteAndroidAppDataStreamRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteAndroidAppDataStreamRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteAndroidAppDataStreamRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest.class, + com.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required. The name of the android app data stream to delete.
+   * Format: properties/{property_id}/androidAppDataStreams/{stream_id}
+   * Example: "properties/123/androidAppDataStreams/456"
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the android app data stream to delete.
+   * Format: properties/{property_id}/androidAppDataStreams/{stream_id}
+   * Example: "properties/123/androidAppDataStreams/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 (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest other = + (com.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for DeleteAndroidAppDataStream RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest) + com.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteAndroidAppDataStreamRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteAndroidAppDataStreamRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest.class, + com.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest.Builder.class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + 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_DeleteAndroidAppDataStreamRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest build() { + com.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest buildPartial() { + com.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest result = + new com.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest(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.DeleteAndroidAppDataStreamRequest) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest other) { + if (other + == com.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the android app data stream to delete.
+     * Format: properties/{property_id}/androidAppDataStreams/{stream_id}
+     * Example: "properties/123/androidAppDataStreams/456"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the android app data stream to delete.
+     * Format: properties/{property_id}/androidAppDataStreams/{stream_id}
+     * Example: "properties/123/androidAppDataStreams/456"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the android app data stream to delete.
+     * Format: properties/{property_id}/androidAppDataStreams/{stream_id}
+     * Example: "properties/123/androidAppDataStreams/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 name of the android app data stream to delete.
+     * Format: properties/{property_id}/androidAppDataStreams/{stream_id}
+     * Example: "properties/123/androidAppDataStreams/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 name of the android app data stream to delete.
+     * Format: properties/{property_id}/androidAppDataStreams/{stream_id}
+     * Example: "properties/123/androidAppDataStreams/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.DeleteAndroidAppDataStreamRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest) + private static final com.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest(); + } + + public static com.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteAndroidAppDataStreamRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteAndroidAppDataStreamRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteAndroidAppDataStreamRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteAndroidAppDataStreamRequestOrBuilder.java new file mode 100644 index 00000000..7d15f80c --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteAndroidAppDataStreamRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface DeleteAndroidAppDataStreamRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the android app data stream to delete.
+   * Format: properties/{property_id}/androidAppDataStreams/{stream_id}
+   * Example: "properties/123/androidAppDataStreams/456"
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the android app data stream to delete.
+   * Format: properties/{property_id}/androidAppDataStreams/{stream_id}
+   * Example: "properties/123/androidAppDataStreams/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/DeleteFirebaseLinkRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteFirebaseLinkRequest.java new file mode 100644 index 00000000..0f70697a --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteFirebaseLinkRequest.java @@ -0,0 +1,661 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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; + } + + private DeleteFirebaseLinkRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_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 (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.admin.v1alpha.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 (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.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() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + 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.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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 { + return new DeleteFirebaseLinkRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.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 new file mode 100644 index 00000000..19376846 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteFirebaseLinkRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/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 new file mode 100644 index 00000000..67dd164b --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteGoogleAdsLinkRequest.java @@ -0,0 +1,655 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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; + } + + private DeleteGoogleAdsLinkRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_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 (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.admin.v1alpha.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 (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.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() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + 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.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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 { + return new DeleteGoogleAdsLinkRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.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 new file mode 100644 index 00000000..7a0b6064 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteGoogleAdsLinkRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated 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/DeleteIosAppDataStreamRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteIosAppDataStreamRequest.java new file mode 100644 index 00000000..d18ed101 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteIosAppDataStreamRequest.java @@ -0,0 +1,672 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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 DeleteIosAppDataStream RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest} + */ +public final class DeleteIosAppDataStreamRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest) + DeleteIosAppDataStreamRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteIosAppDataStreamRequest.newBuilder() to construct. + private DeleteIosAppDataStreamRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteIosAppDataStreamRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteIosAppDataStreamRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private DeleteIosAppDataStreamRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteIosAppDataStreamRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteIosAppDataStreamRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest.class, + com.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required. The name of the iOS app data stream to delete.
+   * Format: properties/{property_id}/iosAppDataStreams/{stream_id}
+   * Example: "properties/123/iosAppDataStreams/456"
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the iOS app data stream to delete.
+   * Format: properties/{property_id}/iosAppDataStreams/{stream_id}
+   * Example: "properties/123/iosAppDataStreams/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 (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest other = + (com.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for DeleteIosAppDataStream RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest) + com.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteIosAppDataStreamRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteIosAppDataStreamRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest.class, + com.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + 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_DeleteIosAppDataStreamRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest build() { + com.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest buildPartial() { + com.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest result = + new com.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest(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.DeleteIosAppDataStreamRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest other) { + if (other + == com.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the iOS app data stream to delete.
+     * Format: properties/{property_id}/iosAppDataStreams/{stream_id}
+     * Example: "properties/123/iosAppDataStreams/456"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the iOS app data stream to delete.
+     * Format: properties/{property_id}/iosAppDataStreams/{stream_id}
+     * Example: "properties/123/iosAppDataStreams/456"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the iOS app data stream to delete.
+     * Format: properties/{property_id}/iosAppDataStreams/{stream_id}
+     * Example: "properties/123/iosAppDataStreams/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 name of the iOS app data stream to delete.
+     * Format: properties/{property_id}/iosAppDataStreams/{stream_id}
+     * Example: "properties/123/iosAppDataStreams/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 name of the iOS app data stream to delete.
+     * Format: properties/{property_id}/iosAppDataStreams/{stream_id}
+     * Example: "properties/123/iosAppDataStreams/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.DeleteIosAppDataStreamRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest) + private static final com.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest(); + } + + public static com.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteIosAppDataStreamRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteIosAppDataStreamRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteIosAppDataStreamRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteIosAppDataStreamRequestOrBuilder.java new file mode 100644 index 00000000..7a15026b --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteIosAppDataStreamRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface DeleteIosAppDataStreamRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the iOS app data stream to delete.
+   * Format: properties/{property_id}/iosAppDataStreams/{stream_id}
+   * Example: "properties/123/iosAppDataStreams/456"
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the iOS app data stream to delete.
+   * Format: properties/{property_id}/iosAppDataStreams/{stream_id}
+   * Example: "properties/123/iosAppDataStreams/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/DeletePropertyRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeletePropertyRequest.java new file mode 100644 index 00000000..689f8790 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeletePropertyRequest.java @@ -0,0 +1,665 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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; + } + + private DeletePropertyRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_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 (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.admin.v1alpha.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 (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.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() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + 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.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.analytics.admin.v1alpha.DeletePropertyRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.DeletePropertyRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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 { + return new DeletePropertyRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.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 new file mode 100644 index 00000000..a987d0fc --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeletePropertyRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated 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 new file mode 100644 index 00000000..3fc35a45 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteUserLinkRequest.java @@ -0,0 +1,651 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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; + } + + private DeleteUserLinkRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_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 (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.admin.v1alpha.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 (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.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() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + 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.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.analytics.admin.v1alpha.DeleteUserLinkRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.DeleteUserLinkRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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 { + return new DeleteUserLinkRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.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 new file mode 100644 index 00000000..d264010f --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteUserLinkRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated 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/DeleteWebDataStreamRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteWebDataStreamRequest.java new file mode 100644 index 00000000..adab8f59 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteWebDataStreamRequest.java @@ -0,0 +1,669 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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 DeleteWebDataStream RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.DeleteWebDataStreamRequest} + */ +public final class DeleteWebDataStreamRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.DeleteWebDataStreamRequest) + DeleteWebDataStreamRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteWebDataStreamRequest.newBuilder() to construct. + private DeleteWebDataStreamRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteWebDataStreamRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteWebDataStreamRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private DeleteWebDataStreamRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteWebDataStreamRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteWebDataStreamRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest.class, + com.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required. The name of the web data stream to delete.
+   * Format: properties/{property_id}/webDataStreams/{stream_id}
+   * Example: "properties/123/webDataStreams/456"
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the web data stream to delete.
+   * Format: properties/{property_id}/webDataStreams/{stream_id}
+   * Example: "properties/123/webDataStreams/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 (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest other = + (com.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for DeleteWebDataStream RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.DeleteWebDataStreamRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.DeleteWebDataStreamRequest) + com.google.analytics.admin.v1alpha.DeleteWebDataStreamRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteWebDataStreamRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteWebDataStreamRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest.class, + com.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + 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_DeleteWebDataStreamRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest build() { + com.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest buildPartial() { + com.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest result = + new com.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest(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.DeleteWebDataStreamRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest other) { + if (other + == com.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the web data stream to delete.
+     * Format: properties/{property_id}/webDataStreams/{stream_id}
+     * Example: "properties/123/webDataStreams/456"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the web data stream to delete.
+     * Format: properties/{property_id}/webDataStreams/{stream_id}
+     * Example: "properties/123/webDataStreams/456"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the web data stream to delete.
+     * Format: properties/{property_id}/webDataStreams/{stream_id}
+     * Example: "properties/123/webDataStreams/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 name of the web data stream to delete.
+     * Format: properties/{property_id}/webDataStreams/{stream_id}
+     * Example: "properties/123/webDataStreams/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 name of the web data stream to delete.
+     * Format: properties/{property_id}/webDataStreams/{stream_id}
+     * Example: "properties/123/webDataStreams/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.DeleteWebDataStreamRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.DeleteWebDataStreamRequest) + private static final com.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest(); + } + + public static com.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteWebDataStreamRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteWebDataStreamRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteWebDataStreamRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteWebDataStreamRequestOrBuilder.java new file mode 100644 index 00000000..ba9b0585 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteWebDataStreamRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface DeleteWebDataStreamRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.DeleteWebDataStreamRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the web data stream to delete.
+   * Format: properties/{property_id}/webDataStreams/{stream_id}
+   * Example: "properties/123/webDataStreams/456"
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the web data stream to delete.
+   * Format: properties/{property_id}/webDataStreams/{stream_id}
+   * Example: "properties/123/webDataStreams/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/EnhancedMeasurementSettings.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/EnhancedMeasurementSettings.java new file mode 100644 index 00000000..ce47773d --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/EnhancedMeasurementSettings.java @@ -0,0 +1,2542 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/resources.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Singleton resource under a WebDataStream, configuring measurement of
+ * additional site interactions and content.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.EnhancedMeasurementSettings} + */ +public final class EnhancedMeasurementSettings extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.EnhancedMeasurementSettings) + EnhancedMeasurementSettingsOrBuilder { + private static final long serialVersionUID = 0L; + // Use EnhancedMeasurementSettings.newBuilder() to construct. + private EnhancedMeasurementSettings(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private EnhancedMeasurementSettings() { + name_ = ""; + searchQueryParameter_ = ""; + urlQueryParameter_ = ""; + excludedDomains_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new EnhancedMeasurementSettings(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private EnhancedMeasurementSettings( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 16: + { + streamEnabled_ = input.readBool(); + break; + } + case 24: + { + pageViewsEnabled_ = input.readBool(); + break; + } + case 32: + { + scrollsEnabled_ = input.readBool(); + break; + } + case 40: + { + outboundClicksEnabled_ = input.readBool(); + break; + } + case 48: + { + contentViewsEnabled_ = input.readBool(); + break; + } + case 56: + { + siteSearchEnabled_ = input.readBool(); + break; + } + case 64: + { + formInteractionsEnabled_ = input.readBool(); + break; + } + case 72: + { + videoEngagementEnabled_ = input.readBool(); + break; + } + case 80: + { + fileDownloadsEnabled_ = input.readBool(); + break; + } + case 88: + { + dataTaggedElementClicksEnabled_ = input.readBool(); + break; + } + case 96: + { + pageLoadsEnabled_ = input.readBool(); + break; + } + case 104: + { + pageChangesEnabled_ = input.readBool(); + break; + } + case 112: + { + articlesAndBlogsEnabled_ = input.readBool(); + break; + } + case 120: + { + productsAndEcommerceEnabled_ = input.readBool(); + break; + } + case 130: + { + java.lang.String s = input.readStringRequireUtf8(); + + searchQueryParameter_ = s; + break; + } + case 138: + { + java.lang.String s = input.readStringRequireUtf8(); + + urlQueryParameter_ = s; + break; + } + case 146: + { + java.lang.String s = input.readStringRequireUtf8(); + + excludedDomains_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_EnhancedMeasurementSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_EnhancedMeasurementSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings.class, + com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings.Builder.class); + } + + 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}/webDataStreams/{stream_id}/enhancedMeasurementSettings
+   * Example: "properties/1000/webDataStreams/2000/enhancedMeasurementSettings"
+   * 
+ * + * 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}/webDataStreams/{stream_id}/enhancedMeasurementSettings
+   * Example: "properties/1000/webDataStreams/2000/enhancedMeasurementSettings"
+   * 
+ * + * 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 STREAM_ENABLED_FIELD_NUMBER = 2; + private boolean streamEnabled_; + /** + * + * + *
+   * Indicates whether Enhanced Measurement Settings will be used to
+   * automatically measure interactions and content on this web stream.
+   * Changing this value does not affect the settings themselves, but determines
+   * whether they are respected.
+   * 
+ * + * bool stream_enabled = 2; + * + * @return The streamEnabled. + */ + @java.lang.Override + public boolean getStreamEnabled() { + return streamEnabled_; + } + + public static final int PAGE_VIEWS_ENABLED_FIELD_NUMBER = 3; + private boolean pageViewsEnabled_; + /** + * + * + *
+   * Output only. If enabled, capture a page view event each time a page loads or the
+   * website changes the browser history state.
+   * 
+ * + * bool page_views_enabled = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The pageViewsEnabled. + */ + @java.lang.Override + public boolean getPageViewsEnabled() { + return pageViewsEnabled_; + } + + public static final int SCROLLS_ENABLED_FIELD_NUMBER = 4; + private boolean scrollsEnabled_; + /** + * + * + *
+   * If enabled, capture scroll events each time a visitor gets to the bottom of
+   * a page.
+   * 
+ * + * bool scrolls_enabled = 4; + * + * @return The scrollsEnabled. + */ + @java.lang.Override + public boolean getScrollsEnabled() { + return scrollsEnabled_; + } + + public static final int OUTBOUND_CLICKS_ENABLED_FIELD_NUMBER = 5; + private boolean outboundClicksEnabled_; + /** + * + * + *
+   * If enabled, capture an outbound click event each time a visitor clicks a
+   * link that leads them away from your domain.
+   * 
+ * + * bool outbound_clicks_enabled = 5; + * + * @return The outboundClicksEnabled. + */ + @java.lang.Override + public boolean getOutboundClicksEnabled() { + return outboundClicksEnabled_; + } + + public static final int CONTENT_VIEWS_ENABLED_FIELD_NUMBER = 6; + private boolean contentViewsEnabled_; + /** + * + * + *
+   * Capture events when your visitors view content on your site that has
+   * structured data (eg, articles, blog posts, product details screens, etc.).
+   * 
+ * + * bool content_views_enabled = 6; + * + * @return The contentViewsEnabled. + */ + @java.lang.Override + public boolean getContentViewsEnabled() { + return contentViewsEnabled_; + } + + public static final int SITE_SEARCH_ENABLED_FIELD_NUMBER = 7; + private boolean siteSearchEnabled_; + /** + * + * + *
+   * If enabled, capture a view search results event each time a visitor
+   * performs a search on your site (based on a query parameter).
+   * 
+ * + * bool site_search_enabled = 7; + * + * @return The siteSearchEnabled. + */ + @java.lang.Override + public boolean getSiteSearchEnabled() { + return siteSearchEnabled_; + } + + public static final int FORM_INTERACTIONS_ENABLED_FIELD_NUMBER = 8; + private boolean formInteractionsEnabled_; + /** + * + * + *
+   * If enabled, capture a view search results event each time a visitor
+   * interacts with a form on your site.
+   * 
+ * + * bool form_interactions_enabled = 8; + * + * @return The formInteractionsEnabled. + */ + @java.lang.Override + public boolean getFormInteractionsEnabled() { + return formInteractionsEnabled_; + } + + public static final int VIDEO_ENGAGEMENT_ENABLED_FIELD_NUMBER = 9; + private boolean videoEngagementEnabled_; + /** + * + * + *
+   * If enabled, capture video play, progress, and complete events as visitors
+   * view embedded videos on your site.
+   * 
+ * + * bool video_engagement_enabled = 9; + * + * @return The videoEngagementEnabled. + */ + @java.lang.Override + public boolean getVideoEngagementEnabled() { + return videoEngagementEnabled_; + } + + public static final int FILE_DOWNLOADS_ENABLED_FIELD_NUMBER = 10; + private boolean fileDownloadsEnabled_; + /** + * + * + *
+   * If enabled, capture a file download event each time a link is clicked with
+   * a common document, compressed file, application, video, or audio extension.
+   * 
+ * + * bool file_downloads_enabled = 10; + * + * @return The fileDownloadsEnabled. + */ + @java.lang.Override + public boolean getFileDownloadsEnabled() { + return fileDownloadsEnabled_; + } + + public static final int DATA_TAGGED_ELEMENT_CLICKS_ENABLED_FIELD_NUMBER = 11; + private boolean dataTaggedElementClicksEnabled_; + /** + * + * + *
+   * If enabled, capture a click event each time a visitor clicks a link or
+   * element that has data attributes beginning with "data-ga".
+   * 
+ * + * bool data_tagged_element_clicks_enabled = 11; + * + * @return The dataTaggedElementClicksEnabled. + */ + @java.lang.Override + public boolean getDataTaggedElementClicksEnabled() { + return dataTaggedElementClicksEnabled_; + } + + public static final int PAGE_LOADS_ENABLED_FIELD_NUMBER = 12; + private boolean pageLoadsEnabled_; + /** + * + * + *
+   * If enabled, capture a page view event each time a page loads.
+   * 
+ * + * bool page_loads_enabled = 12; + * + * @return The pageLoadsEnabled. + */ + @java.lang.Override + public boolean getPageLoadsEnabled() { + return pageLoadsEnabled_; + } + + public static final int PAGE_CHANGES_ENABLED_FIELD_NUMBER = 13; + private boolean pageChangesEnabled_; + /** + * + * + *
+   * If enabled, capture a page view event each time the website changes the
+   * browser history state.
+   * 
+ * + * bool page_changes_enabled = 13; + * + * @return The pageChangesEnabled. + */ + @java.lang.Override + public boolean getPageChangesEnabled() { + return pageChangesEnabled_; + } + + public static final int ARTICLES_AND_BLOGS_ENABLED_FIELD_NUMBER = 14; + private boolean articlesAndBlogsEnabled_; + /** + * + * + *
+   * Capture events when your visitors view content on your site that has
+   * articles or blog posts.
+   * 
+ * + * bool articles_and_blogs_enabled = 14; + * + * @return The articlesAndBlogsEnabled. + */ + @java.lang.Override + public boolean getArticlesAndBlogsEnabled() { + return articlesAndBlogsEnabled_; + } + + public static final int PRODUCTS_AND_ECOMMERCE_ENABLED_FIELD_NUMBER = 15; + private boolean productsAndEcommerceEnabled_; + /** + * + * + *
+   * Capture events when your visitors view content on your site that has
+   * product details screens, etc.
+   * 
+ * + * bool products_and_ecommerce_enabled = 15; + * + * @return The productsAndEcommerceEnabled. + */ + @java.lang.Override + public boolean getProductsAndEcommerceEnabled() { + return productsAndEcommerceEnabled_; + } + + public static final int SEARCH_QUERY_PARAMETER_FIELD_NUMBER = 16; + private volatile java.lang.Object searchQueryParameter_; + /** + * + * + *
+   * Required. URL query parameters to interpret as site search parameters.
+   * Max length is 1024 characters. Must not be empty.
+   * 
+ * + * string search_query_parameter = 16 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The searchQueryParameter. + */ + @java.lang.Override + public java.lang.String getSearchQueryParameter() { + java.lang.Object ref = searchQueryParameter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + searchQueryParameter_ = s; + return s; + } + } + /** + * + * + *
+   * Required. URL query parameters to interpret as site search parameters.
+   * Max length is 1024 characters. Must not be empty.
+   * 
+ * + * string search_query_parameter = 16 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for searchQueryParameter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSearchQueryParameterBytes() { + java.lang.Object ref = searchQueryParameter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + searchQueryParameter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int URL_QUERY_PARAMETER_FIELD_NUMBER = 17; + private volatile java.lang.Object urlQueryParameter_; + /** + * + * + *
+   * Additional URL query parameters.
+   * Max length is 1024 characters.
+   * 
+ * + * string url_query_parameter = 17; + * + * @return The urlQueryParameter. + */ + @java.lang.Override + public java.lang.String getUrlQueryParameter() { + java.lang.Object ref = urlQueryParameter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + urlQueryParameter_ = s; + return s; + } + } + /** + * + * + *
+   * Additional URL query parameters.
+   * Max length is 1024 characters.
+   * 
+ * + * string url_query_parameter = 17; + * + * @return The bytes for urlQueryParameter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUrlQueryParameterBytes() { + java.lang.Object ref = urlQueryParameter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + urlQueryParameter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EXCLUDED_DOMAINS_FIELD_NUMBER = 18; + private volatile java.lang.Object excludedDomains_; + /** + * + * + *
+   * Domains to exclude from measurement. Max length is 1024 characters.
+   * 
+ * + * string excluded_domains = 18; + * + * @return The excludedDomains. + */ + @java.lang.Override + public java.lang.String getExcludedDomains() { + java.lang.Object ref = excludedDomains_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + excludedDomains_ = s; + return s; + } + } + /** + * + * + *
+   * Domains to exclude from measurement. Max length is 1024 characters.
+   * 
+ * + * string excluded_domains = 18; + * + * @return The bytes for excludedDomains. + */ + @java.lang.Override + public com.google.protobuf.ByteString getExcludedDomainsBytes() { + java.lang.Object ref = excludedDomains_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + excludedDomains_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (streamEnabled_ != false) { + output.writeBool(2, streamEnabled_); + } + if (pageViewsEnabled_ != false) { + output.writeBool(3, pageViewsEnabled_); + } + if (scrollsEnabled_ != false) { + output.writeBool(4, scrollsEnabled_); + } + if (outboundClicksEnabled_ != false) { + output.writeBool(5, outboundClicksEnabled_); + } + if (contentViewsEnabled_ != false) { + output.writeBool(6, contentViewsEnabled_); + } + if (siteSearchEnabled_ != false) { + output.writeBool(7, siteSearchEnabled_); + } + if (formInteractionsEnabled_ != false) { + output.writeBool(8, formInteractionsEnabled_); + } + if (videoEngagementEnabled_ != false) { + output.writeBool(9, videoEngagementEnabled_); + } + if (fileDownloadsEnabled_ != false) { + output.writeBool(10, fileDownloadsEnabled_); + } + if (dataTaggedElementClicksEnabled_ != false) { + output.writeBool(11, dataTaggedElementClicksEnabled_); + } + if (pageLoadsEnabled_ != false) { + output.writeBool(12, pageLoadsEnabled_); + } + if (pageChangesEnabled_ != false) { + output.writeBool(13, pageChangesEnabled_); + } + if (articlesAndBlogsEnabled_ != false) { + output.writeBool(14, articlesAndBlogsEnabled_); + } + if (productsAndEcommerceEnabled_ != false) { + output.writeBool(15, productsAndEcommerceEnabled_); + } + if (!getSearchQueryParameterBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 16, searchQueryParameter_); + } + if (!getUrlQueryParameterBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 17, urlQueryParameter_); + } + if (!getExcludedDomainsBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 18, excludedDomains_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (streamEnabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, streamEnabled_); + } + if (pageViewsEnabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, pageViewsEnabled_); + } + if (scrollsEnabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, scrollsEnabled_); + } + if (outboundClicksEnabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, outboundClicksEnabled_); + } + if (contentViewsEnabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, contentViewsEnabled_); + } + if (siteSearchEnabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, siteSearchEnabled_); + } + if (formInteractionsEnabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(8, formInteractionsEnabled_); + } + if (videoEngagementEnabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(9, videoEngagementEnabled_); + } + if (fileDownloadsEnabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(10, fileDownloadsEnabled_); + } + if (dataTaggedElementClicksEnabled_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 11, dataTaggedElementClicksEnabled_); + } + if (pageLoadsEnabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(12, pageLoadsEnabled_); + } + if (pageChangesEnabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(13, pageChangesEnabled_); + } + if (articlesAndBlogsEnabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(14, articlesAndBlogsEnabled_); + } + if (productsAndEcommerceEnabled_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(15, productsAndEcommerceEnabled_); + } + if (!getSearchQueryParameterBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, searchQueryParameter_); + } + if (!getUrlQueryParameterBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(17, urlQueryParameter_); + } + if (!getExcludedDomainsBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(18, excludedDomains_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings other = + (com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings) obj; + + if (!getName().equals(other.getName())) return false; + if (getStreamEnabled() != other.getStreamEnabled()) return false; + if (getPageViewsEnabled() != other.getPageViewsEnabled()) return false; + if (getScrollsEnabled() != other.getScrollsEnabled()) return false; + if (getOutboundClicksEnabled() != other.getOutboundClicksEnabled()) return false; + if (getContentViewsEnabled() != other.getContentViewsEnabled()) return false; + if (getSiteSearchEnabled() != other.getSiteSearchEnabled()) return false; + if (getFormInteractionsEnabled() != other.getFormInteractionsEnabled()) return false; + if (getVideoEngagementEnabled() != other.getVideoEngagementEnabled()) return false; + if (getFileDownloadsEnabled() != other.getFileDownloadsEnabled()) return false; + if (getDataTaggedElementClicksEnabled() != other.getDataTaggedElementClicksEnabled()) + return false; + if (getPageLoadsEnabled() != other.getPageLoadsEnabled()) return false; + if (getPageChangesEnabled() != other.getPageChangesEnabled()) return false; + if (getArticlesAndBlogsEnabled() != other.getArticlesAndBlogsEnabled()) return false; + if (getProductsAndEcommerceEnabled() != other.getProductsAndEcommerceEnabled()) return false; + if (!getSearchQueryParameter().equals(other.getSearchQueryParameter())) return false; + if (!getUrlQueryParameter().equals(other.getUrlQueryParameter())) return false; + if (!getExcludedDomains().equals(other.getExcludedDomains())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + STREAM_ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getStreamEnabled()); + hash = (37 * hash) + PAGE_VIEWS_ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPageViewsEnabled()); + hash = (37 * hash) + SCROLLS_ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getScrollsEnabled()); + hash = (37 * hash) + OUTBOUND_CLICKS_ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getOutboundClicksEnabled()); + hash = (37 * hash) + CONTENT_VIEWS_ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getContentViewsEnabled()); + hash = (37 * hash) + SITE_SEARCH_ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSiteSearchEnabled()); + hash = (37 * hash) + FORM_INTERACTIONS_ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getFormInteractionsEnabled()); + hash = (37 * hash) + VIDEO_ENGAGEMENT_ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getVideoEngagementEnabled()); + hash = (37 * hash) + FILE_DOWNLOADS_ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getFileDownloadsEnabled()); + hash = (37 * hash) + DATA_TAGGED_ELEMENT_CLICKS_ENABLED_FIELD_NUMBER; + hash = + (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDataTaggedElementClicksEnabled()); + hash = (37 * hash) + PAGE_LOADS_ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPageLoadsEnabled()); + hash = (37 * hash) + PAGE_CHANGES_ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPageChangesEnabled()); + hash = (37 * hash) + ARTICLES_AND_BLOGS_ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getArticlesAndBlogsEnabled()); + hash = (37 * hash) + PRODUCTS_AND_ECOMMERCE_ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getProductsAndEcommerceEnabled()); + hash = (37 * hash) + SEARCH_QUERY_PARAMETER_FIELD_NUMBER; + hash = (53 * hash) + getSearchQueryParameter().hashCode(); + hash = (37 * hash) + URL_QUERY_PARAMETER_FIELD_NUMBER; + hash = (53 * hash) + getUrlQueryParameter().hashCode(); + hash = (37 * hash) + EXCLUDED_DOMAINS_FIELD_NUMBER; + hash = (53 * hash) + getExcludedDomains().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Singleton resource under a WebDataStream, configuring measurement of
+   * additional site interactions and content.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.EnhancedMeasurementSettings} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.EnhancedMeasurementSettings) + com.google.analytics.admin.v1alpha.EnhancedMeasurementSettingsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_EnhancedMeasurementSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_EnhancedMeasurementSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings.class, + com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + streamEnabled_ = false; + + pageViewsEnabled_ = false; + + scrollsEnabled_ = false; + + outboundClicksEnabled_ = false; + + contentViewsEnabled_ = false; + + siteSearchEnabled_ = false; + + formInteractionsEnabled_ = false; + + videoEngagementEnabled_ = false; + + fileDownloadsEnabled_ = false; + + dataTaggedElementClicksEnabled_ = false; + + pageLoadsEnabled_ = false; + + pageChangesEnabled_ = false; + + articlesAndBlogsEnabled_ = false; + + productsAndEcommerceEnabled_ = false; + + searchQueryParameter_ = ""; + + urlQueryParameter_ = ""; + + excludedDomains_ = ""; + + 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_EnhancedMeasurementSettings_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings build() { + com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings buildPartial() { + com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings result = + new com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings(this); + result.name_ = name_; + result.streamEnabled_ = streamEnabled_; + result.pageViewsEnabled_ = pageViewsEnabled_; + result.scrollsEnabled_ = scrollsEnabled_; + result.outboundClicksEnabled_ = outboundClicksEnabled_; + result.contentViewsEnabled_ = contentViewsEnabled_; + result.siteSearchEnabled_ = siteSearchEnabled_; + result.formInteractionsEnabled_ = formInteractionsEnabled_; + result.videoEngagementEnabled_ = videoEngagementEnabled_; + result.fileDownloadsEnabled_ = fileDownloadsEnabled_; + result.dataTaggedElementClicksEnabled_ = dataTaggedElementClicksEnabled_; + result.pageLoadsEnabled_ = pageLoadsEnabled_; + result.pageChangesEnabled_ = pageChangesEnabled_; + result.articlesAndBlogsEnabled_ = articlesAndBlogsEnabled_; + result.productsAndEcommerceEnabled_ = productsAndEcommerceEnabled_; + result.searchQueryParameter_ = searchQueryParameter_; + result.urlQueryParameter_ = urlQueryParameter_; + result.excludedDomains_ = excludedDomains_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings) { + return mergeFrom((com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings other) { + if (other + == com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.getStreamEnabled() != false) { + setStreamEnabled(other.getStreamEnabled()); + } + if (other.getPageViewsEnabled() != false) { + setPageViewsEnabled(other.getPageViewsEnabled()); + } + if (other.getScrollsEnabled() != false) { + setScrollsEnabled(other.getScrollsEnabled()); + } + if (other.getOutboundClicksEnabled() != false) { + setOutboundClicksEnabled(other.getOutboundClicksEnabled()); + } + if (other.getContentViewsEnabled() != false) { + setContentViewsEnabled(other.getContentViewsEnabled()); + } + if (other.getSiteSearchEnabled() != false) { + setSiteSearchEnabled(other.getSiteSearchEnabled()); + } + if (other.getFormInteractionsEnabled() != false) { + setFormInteractionsEnabled(other.getFormInteractionsEnabled()); + } + if (other.getVideoEngagementEnabled() != false) { + setVideoEngagementEnabled(other.getVideoEngagementEnabled()); + } + if (other.getFileDownloadsEnabled() != false) { + setFileDownloadsEnabled(other.getFileDownloadsEnabled()); + } + if (other.getDataTaggedElementClicksEnabled() != false) { + setDataTaggedElementClicksEnabled(other.getDataTaggedElementClicksEnabled()); + } + if (other.getPageLoadsEnabled() != false) { + setPageLoadsEnabled(other.getPageLoadsEnabled()); + } + if (other.getPageChangesEnabled() != false) { + setPageChangesEnabled(other.getPageChangesEnabled()); + } + if (other.getArticlesAndBlogsEnabled() != false) { + setArticlesAndBlogsEnabled(other.getArticlesAndBlogsEnabled()); + } + if (other.getProductsAndEcommerceEnabled() != false) { + setProductsAndEcommerceEnabled(other.getProductsAndEcommerceEnabled()); + } + if (!other.getSearchQueryParameter().isEmpty()) { + searchQueryParameter_ = other.searchQueryParameter_; + onChanged(); + } + if (!other.getUrlQueryParameter().isEmpty()) { + urlQueryParameter_ = other.urlQueryParameter_; + onChanged(); + } + if (!other.getExcludedDomains().isEmpty()) { + excludedDomains_ = other.excludedDomains_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Output only. Resource name of this Data Stream.
+     * Format:
+     * properties/{property_id}/webDataStreams/{stream_id}/enhancedMeasurementSettings
+     * Example: "properties/1000/webDataStreams/2000/enhancedMeasurementSettings"
+     * 
+ * + * 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}/webDataStreams/{stream_id}/enhancedMeasurementSettings
+     * Example: "properties/1000/webDataStreams/2000/enhancedMeasurementSettings"
+     * 
+ * + * 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}/webDataStreams/{stream_id}/enhancedMeasurementSettings
+     * Example: "properties/1000/webDataStreams/2000/enhancedMeasurementSettings"
+     * 
+ * + * 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}/webDataStreams/{stream_id}/enhancedMeasurementSettings
+     * Example: "properties/1000/webDataStreams/2000/enhancedMeasurementSettings"
+     * 
+ * + * 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}/webDataStreams/{stream_id}/enhancedMeasurementSettings
+     * Example: "properties/1000/webDataStreams/2000/enhancedMeasurementSettings"
+     * 
+ * + * 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 streamEnabled_; + /** + * + * + *
+     * Indicates whether Enhanced Measurement Settings will be used to
+     * automatically measure interactions and content on this web stream.
+     * Changing this value does not affect the settings themselves, but determines
+     * whether they are respected.
+     * 
+ * + * bool stream_enabled = 2; + * + * @return The streamEnabled. + */ + @java.lang.Override + public boolean getStreamEnabled() { + return streamEnabled_; + } + /** + * + * + *
+     * Indicates whether Enhanced Measurement Settings will be used to
+     * automatically measure interactions and content on this web stream.
+     * Changing this value does not affect the settings themselves, but determines
+     * whether they are respected.
+     * 
+ * + * bool stream_enabled = 2; + * + * @param value The streamEnabled to set. + * @return This builder for chaining. + */ + public Builder setStreamEnabled(boolean value) { + + streamEnabled_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Indicates whether Enhanced Measurement Settings will be used to
+     * automatically measure interactions and content on this web stream.
+     * Changing this value does not affect the settings themselves, but determines
+     * whether they are respected.
+     * 
+ * + * bool stream_enabled = 2; + * + * @return This builder for chaining. + */ + public Builder clearStreamEnabled() { + + streamEnabled_ = false; + onChanged(); + return this; + } + + private boolean pageViewsEnabled_; + /** + * + * + *
+     * Output only. If enabled, capture a page view event each time a page loads or the
+     * website changes the browser history state.
+     * 
+ * + * bool page_views_enabled = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The pageViewsEnabled. + */ + @java.lang.Override + public boolean getPageViewsEnabled() { + return pageViewsEnabled_; + } + /** + * + * + *
+     * Output only. If enabled, capture a page view event each time a page loads or the
+     * website changes the browser history state.
+     * 
+ * + * bool page_views_enabled = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The pageViewsEnabled to set. + * @return This builder for chaining. + */ + public Builder setPageViewsEnabled(boolean value) { + + pageViewsEnabled_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. If enabled, capture a page view event each time a page loads or the
+     * website changes the browser history state.
+     * 
+ * + * bool page_views_enabled = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearPageViewsEnabled() { + + pageViewsEnabled_ = false; + onChanged(); + return this; + } + + private boolean scrollsEnabled_; + /** + * + * + *
+     * If enabled, capture scroll events each time a visitor gets to the bottom of
+     * a page.
+     * 
+ * + * bool scrolls_enabled = 4; + * + * @return The scrollsEnabled. + */ + @java.lang.Override + public boolean getScrollsEnabled() { + return scrollsEnabled_; + } + /** + * + * + *
+     * If enabled, capture scroll events each time a visitor gets to the bottom of
+     * a page.
+     * 
+ * + * bool scrolls_enabled = 4; + * + * @param value The scrollsEnabled to set. + * @return This builder for chaining. + */ + public Builder setScrollsEnabled(boolean value) { + + scrollsEnabled_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * If enabled, capture scroll events each time a visitor gets to the bottom of
+     * a page.
+     * 
+ * + * bool scrolls_enabled = 4; + * + * @return This builder for chaining. + */ + public Builder clearScrollsEnabled() { + + scrollsEnabled_ = false; + onChanged(); + return this; + } + + private boolean outboundClicksEnabled_; + /** + * + * + *
+     * If enabled, capture an outbound click event each time a visitor clicks a
+     * link that leads them away from your domain.
+     * 
+ * + * bool outbound_clicks_enabled = 5; + * + * @return The outboundClicksEnabled. + */ + @java.lang.Override + public boolean getOutboundClicksEnabled() { + return outboundClicksEnabled_; + } + /** + * + * + *
+     * If enabled, capture an outbound click event each time a visitor clicks a
+     * link that leads them away from your domain.
+     * 
+ * + * bool outbound_clicks_enabled = 5; + * + * @param value The outboundClicksEnabled to set. + * @return This builder for chaining. + */ + public Builder setOutboundClicksEnabled(boolean value) { + + outboundClicksEnabled_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * If enabled, capture an outbound click event each time a visitor clicks a
+     * link that leads them away from your domain.
+     * 
+ * + * bool outbound_clicks_enabled = 5; + * + * @return This builder for chaining. + */ + public Builder clearOutboundClicksEnabled() { + + outboundClicksEnabled_ = false; + onChanged(); + return this; + } + + private boolean contentViewsEnabled_; + /** + * + * + *
+     * Capture events when your visitors view content on your site that has
+     * structured data (eg, articles, blog posts, product details screens, etc.).
+     * 
+ * + * bool content_views_enabled = 6; + * + * @return The contentViewsEnabled. + */ + @java.lang.Override + public boolean getContentViewsEnabled() { + return contentViewsEnabled_; + } + /** + * + * + *
+     * Capture events when your visitors view content on your site that has
+     * structured data (eg, articles, blog posts, product details screens, etc.).
+     * 
+ * + * bool content_views_enabled = 6; + * + * @param value The contentViewsEnabled to set. + * @return This builder for chaining. + */ + public Builder setContentViewsEnabled(boolean value) { + + contentViewsEnabled_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Capture events when your visitors view content on your site that has
+     * structured data (eg, articles, blog posts, product details screens, etc.).
+     * 
+ * + * bool content_views_enabled = 6; + * + * @return This builder for chaining. + */ + public Builder clearContentViewsEnabled() { + + contentViewsEnabled_ = false; + onChanged(); + return this; + } + + private boolean siteSearchEnabled_; + /** + * + * + *
+     * If enabled, capture a view search results event each time a visitor
+     * performs a search on your site (based on a query parameter).
+     * 
+ * + * bool site_search_enabled = 7; + * + * @return The siteSearchEnabled. + */ + @java.lang.Override + public boolean getSiteSearchEnabled() { + return siteSearchEnabled_; + } + /** + * + * + *
+     * If enabled, capture a view search results event each time a visitor
+     * performs a search on your site (based on a query parameter).
+     * 
+ * + * bool site_search_enabled = 7; + * + * @param value The siteSearchEnabled to set. + * @return This builder for chaining. + */ + public Builder setSiteSearchEnabled(boolean value) { + + siteSearchEnabled_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * If enabled, capture a view search results event each time a visitor
+     * performs a search on your site (based on a query parameter).
+     * 
+ * + * bool site_search_enabled = 7; + * + * @return This builder for chaining. + */ + public Builder clearSiteSearchEnabled() { + + siteSearchEnabled_ = false; + onChanged(); + return this; + } + + private boolean formInteractionsEnabled_; + /** + * + * + *
+     * If enabled, capture a view search results event each time a visitor
+     * interacts with a form on your site.
+     * 
+ * + * bool form_interactions_enabled = 8; + * + * @return The formInteractionsEnabled. + */ + @java.lang.Override + public boolean getFormInteractionsEnabled() { + return formInteractionsEnabled_; + } + /** + * + * + *
+     * If enabled, capture a view search results event each time a visitor
+     * interacts with a form on your site.
+     * 
+ * + * bool form_interactions_enabled = 8; + * + * @param value The formInteractionsEnabled to set. + * @return This builder for chaining. + */ + public Builder setFormInteractionsEnabled(boolean value) { + + formInteractionsEnabled_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * If enabled, capture a view search results event each time a visitor
+     * interacts with a form on your site.
+     * 
+ * + * bool form_interactions_enabled = 8; + * + * @return This builder for chaining. + */ + public Builder clearFormInteractionsEnabled() { + + formInteractionsEnabled_ = false; + onChanged(); + return this; + } + + private boolean videoEngagementEnabled_; + /** + * + * + *
+     * If enabled, capture video play, progress, and complete events as visitors
+     * view embedded videos on your site.
+     * 
+ * + * bool video_engagement_enabled = 9; + * + * @return The videoEngagementEnabled. + */ + @java.lang.Override + public boolean getVideoEngagementEnabled() { + return videoEngagementEnabled_; + } + /** + * + * + *
+     * If enabled, capture video play, progress, and complete events as visitors
+     * view embedded videos on your site.
+     * 
+ * + * bool video_engagement_enabled = 9; + * + * @param value The videoEngagementEnabled to set. + * @return This builder for chaining. + */ + public Builder setVideoEngagementEnabled(boolean value) { + + videoEngagementEnabled_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * If enabled, capture video play, progress, and complete events as visitors
+     * view embedded videos on your site.
+     * 
+ * + * bool video_engagement_enabled = 9; + * + * @return This builder for chaining. + */ + public Builder clearVideoEngagementEnabled() { + + videoEngagementEnabled_ = false; + onChanged(); + return this; + } + + private boolean fileDownloadsEnabled_; + /** + * + * + *
+     * If enabled, capture a file download event each time a link is clicked with
+     * a common document, compressed file, application, video, or audio extension.
+     * 
+ * + * bool file_downloads_enabled = 10; + * + * @return The fileDownloadsEnabled. + */ + @java.lang.Override + public boolean getFileDownloadsEnabled() { + return fileDownloadsEnabled_; + } + /** + * + * + *
+     * If enabled, capture a file download event each time a link is clicked with
+     * a common document, compressed file, application, video, or audio extension.
+     * 
+ * + * bool file_downloads_enabled = 10; + * + * @param value The fileDownloadsEnabled to set. + * @return This builder for chaining. + */ + public Builder setFileDownloadsEnabled(boolean value) { + + fileDownloadsEnabled_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * If enabled, capture a file download event each time a link is clicked with
+     * a common document, compressed file, application, video, or audio extension.
+     * 
+ * + * bool file_downloads_enabled = 10; + * + * @return This builder for chaining. + */ + public Builder clearFileDownloadsEnabled() { + + fileDownloadsEnabled_ = false; + onChanged(); + return this; + } + + private boolean dataTaggedElementClicksEnabled_; + /** + * + * + *
+     * If enabled, capture a click event each time a visitor clicks a link or
+     * element that has data attributes beginning with "data-ga".
+     * 
+ * + * bool data_tagged_element_clicks_enabled = 11; + * + * @return The dataTaggedElementClicksEnabled. + */ + @java.lang.Override + public boolean getDataTaggedElementClicksEnabled() { + return dataTaggedElementClicksEnabled_; + } + /** + * + * + *
+     * If enabled, capture a click event each time a visitor clicks a link or
+     * element that has data attributes beginning with "data-ga".
+     * 
+ * + * bool data_tagged_element_clicks_enabled = 11; + * + * @param value The dataTaggedElementClicksEnabled to set. + * @return This builder for chaining. + */ + public Builder setDataTaggedElementClicksEnabled(boolean value) { + + dataTaggedElementClicksEnabled_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * If enabled, capture a click event each time a visitor clicks a link or
+     * element that has data attributes beginning with "data-ga".
+     * 
+ * + * bool data_tagged_element_clicks_enabled = 11; + * + * @return This builder for chaining. + */ + public Builder clearDataTaggedElementClicksEnabled() { + + dataTaggedElementClicksEnabled_ = false; + onChanged(); + return this; + } + + private boolean pageLoadsEnabled_; + /** + * + * + *
+     * If enabled, capture a page view event each time a page loads.
+     * 
+ * + * bool page_loads_enabled = 12; + * + * @return The pageLoadsEnabled. + */ + @java.lang.Override + public boolean getPageLoadsEnabled() { + return pageLoadsEnabled_; + } + /** + * + * + *
+     * If enabled, capture a page view event each time a page loads.
+     * 
+ * + * bool page_loads_enabled = 12; + * + * @param value The pageLoadsEnabled to set. + * @return This builder for chaining. + */ + public Builder setPageLoadsEnabled(boolean value) { + + pageLoadsEnabled_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * If enabled, capture a page view event each time a page loads.
+     * 
+ * + * bool page_loads_enabled = 12; + * + * @return This builder for chaining. + */ + public Builder clearPageLoadsEnabled() { + + pageLoadsEnabled_ = false; + onChanged(); + return this; + } + + private boolean pageChangesEnabled_; + /** + * + * + *
+     * If enabled, capture a page view event each time the website changes the
+     * browser history state.
+     * 
+ * + * bool page_changes_enabled = 13; + * + * @return The pageChangesEnabled. + */ + @java.lang.Override + public boolean getPageChangesEnabled() { + return pageChangesEnabled_; + } + /** + * + * + *
+     * If enabled, capture a page view event each time the website changes the
+     * browser history state.
+     * 
+ * + * bool page_changes_enabled = 13; + * + * @param value The pageChangesEnabled to set. + * @return This builder for chaining. + */ + public Builder setPageChangesEnabled(boolean value) { + + pageChangesEnabled_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * If enabled, capture a page view event each time the website changes the
+     * browser history state.
+     * 
+ * + * bool page_changes_enabled = 13; + * + * @return This builder for chaining. + */ + public Builder clearPageChangesEnabled() { + + pageChangesEnabled_ = false; + onChanged(); + return this; + } + + private boolean articlesAndBlogsEnabled_; + /** + * + * + *
+     * Capture events when your visitors view content on your site that has
+     * articles or blog posts.
+     * 
+ * + * bool articles_and_blogs_enabled = 14; + * + * @return The articlesAndBlogsEnabled. + */ + @java.lang.Override + public boolean getArticlesAndBlogsEnabled() { + return articlesAndBlogsEnabled_; + } + /** + * + * + *
+     * Capture events when your visitors view content on your site that has
+     * articles or blog posts.
+     * 
+ * + * bool articles_and_blogs_enabled = 14; + * + * @param value The articlesAndBlogsEnabled to set. + * @return This builder for chaining. + */ + public Builder setArticlesAndBlogsEnabled(boolean value) { + + articlesAndBlogsEnabled_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Capture events when your visitors view content on your site that has
+     * articles or blog posts.
+     * 
+ * + * bool articles_and_blogs_enabled = 14; + * + * @return This builder for chaining. + */ + public Builder clearArticlesAndBlogsEnabled() { + + articlesAndBlogsEnabled_ = false; + onChanged(); + return this; + } + + private boolean productsAndEcommerceEnabled_; + /** + * + * + *
+     * Capture events when your visitors view content on your site that has
+     * product details screens, etc.
+     * 
+ * + * bool products_and_ecommerce_enabled = 15; + * + * @return The productsAndEcommerceEnabled. + */ + @java.lang.Override + public boolean getProductsAndEcommerceEnabled() { + return productsAndEcommerceEnabled_; + } + /** + * + * + *
+     * Capture events when your visitors view content on your site that has
+     * product details screens, etc.
+     * 
+ * + * bool products_and_ecommerce_enabled = 15; + * + * @param value The productsAndEcommerceEnabled to set. + * @return This builder for chaining. + */ + public Builder setProductsAndEcommerceEnabled(boolean value) { + + productsAndEcommerceEnabled_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Capture events when your visitors view content on your site that has
+     * product details screens, etc.
+     * 
+ * + * bool products_and_ecommerce_enabled = 15; + * + * @return This builder for chaining. + */ + public Builder clearProductsAndEcommerceEnabled() { + + productsAndEcommerceEnabled_ = false; + onChanged(); + return this; + } + + private java.lang.Object searchQueryParameter_ = ""; + /** + * + * + *
+     * Required. URL query parameters to interpret as site search parameters.
+     * Max length is 1024 characters. Must not be empty.
+     * 
+ * + * string search_query_parameter = 16 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The searchQueryParameter. + */ + public java.lang.String getSearchQueryParameter() { + java.lang.Object ref = searchQueryParameter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + searchQueryParameter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. URL query parameters to interpret as site search parameters.
+     * Max length is 1024 characters. Must not be empty.
+     * 
+ * + * string search_query_parameter = 16 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for searchQueryParameter. + */ + public com.google.protobuf.ByteString getSearchQueryParameterBytes() { + java.lang.Object ref = searchQueryParameter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + searchQueryParameter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. URL query parameters to interpret as site search parameters.
+     * Max length is 1024 characters. Must not be empty.
+     * 
+ * + * string search_query_parameter = 16 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The searchQueryParameter to set. + * @return This builder for chaining. + */ + public Builder setSearchQueryParameter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + searchQueryParameter_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. URL query parameters to interpret as site search parameters.
+     * Max length is 1024 characters. Must not be empty.
+     * 
+ * + * string search_query_parameter = 16 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearSearchQueryParameter() { + + searchQueryParameter_ = getDefaultInstance().getSearchQueryParameter(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. URL query parameters to interpret as site search parameters.
+     * Max length is 1024 characters. Must not be empty.
+     * 
+ * + * string search_query_parameter = 16 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for searchQueryParameter to set. + * @return This builder for chaining. + */ + public Builder setSearchQueryParameterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + searchQueryParameter_ = value; + onChanged(); + return this; + } + + private java.lang.Object urlQueryParameter_ = ""; + /** + * + * + *
+     * Additional URL query parameters.
+     * Max length is 1024 characters.
+     * 
+ * + * string url_query_parameter = 17; + * + * @return The urlQueryParameter. + */ + public java.lang.String getUrlQueryParameter() { + java.lang.Object ref = urlQueryParameter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + urlQueryParameter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Additional URL query parameters.
+     * Max length is 1024 characters.
+     * 
+ * + * string url_query_parameter = 17; + * + * @return The bytes for urlQueryParameter. + */ + public com.google.protobuf.ByteString getUrlQueryParameterBytes() { + java.lang.Object ref = urlQueryParameter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + urlQueryParameter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Additional URL query parameters.
+     * Max length is 1024 characters.
+     * 
+ * + * string url_query_parameter = 17; + * + * @param value The urlQueryParameter to set. + * @return This builder for chaining. + */ + public Builder setUrlQueryParameter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + urlQueryParameter_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Additional URL query parameters.
+     * Max length is 1024 characters.
+     * 
+ * + * string url_query_parameter = 17; + * + * @return This builder for chaining. + */ + public Builder clearUrlQueryParameter() { + + urlQueryParameter_ = getDefaultInstance().getUrlQueryParameter(); + onChanged(); + return this; + } + /** + * + * + *
+     * Additional URL query parameters.
+     * Max length is 1024 characters.
+     * 
+ * + * string url_query_parameter = 17; + * + * @param value The bytes for urlQueryParameter to set. + * @return This builder for chaining. + */ + public Builder setUrlQueryParameterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + urlQueryParameter_ = value; + onChanged(); + return this; + } + + private java.lang.Object excludedDomains_ = ""; + /** + * + * + *
+     * Domains to exclude from measurement. Max length is 1024 characters.
+     * 
+ * + * string excluded_domains = 18; + * + * @return The excludedDomains. + */ + public java.lang.String getExcludedDomains() { + java.lang.Object ref = excludedDomains_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + excludedDomains_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Domains to exclude from measurement. Max length is 1024 characters.
+     * 
+ * + * string excluded_domains = 18; + * + * @return The bytes for excludedDomains. + */ + public com.google.protobuf.ByteString getExcludedDomainsBytes() { + java.lang.Object ref = excludedDomains_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + excludedDomains_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Domains to exclude from measurement. Max length is 1024 characters.
+     * 
+ * + * string excluded_domains = 18; + * + * @param value The excludedDomains to set. + * @return This builder for chaining. + */ + public Builder setExcludedDomains(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + excludedDomains_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Domains to exclude from measurement. Max length is 1024 characters.
+     * 
+ * + * string excluded_domains = 18; + * + * @return This builder for chaining. + */ + public Builder clearExcludedDomains() { + + excludedDomains_ = getDefaultInstance().getExcludedDomains(); + onChanged(); + return this; + } + /** + * + * + *
+     * Domains to exclude from measurement. Max length is 1024 characters.
+     * 
+ * + * string excluded_domains = 18; + * + * @param value The bytes for excludedDomains to set. + * @return This builder for chaining. + */ + public Builder setExcludedDomainsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + excludedDomains_ = 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.EnhancedMeasurementSettings) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.EnhancedMeasurementSettings) + private static final com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings(); + } + + public static com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EnhancedMeasurementSettings parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EnhancedMeasurementSettings(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/EnhancedMeasurementSettingsName.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/EnhancedMeasurementSettingsName.java new file mode 100644 index 00000000..6e337a28 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/EnhancedMeasurementSettingsName.java @@ -0,0 +1,185 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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; + +/** AUTO-GENERATED DOCUMENTATION AND CLASS */ +@javax.annotation.Generated("by GAPIC protoc plugin") +public class EnhancedMeasurementSettingsName implements ResourceName { + + private static final PathTemplate PATH_TEMPLATE = + PathTemplate.createWithoutUrlEncoding( + "properties/{property}/webDataStreams/{web_data_stream}/enhancedMeasurementSettings"); + + private volatile Map fieldValuesMap; + + private final String property; + private final String webDataStream; + + public String getProperty() { + return property; + } + + public String getWebDataStream() { + return webDataStream; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + private EnhancedMeasurementSettingsName(Builder builder) { + property = Preconditions.checkNotNull(builder.getProperty()); + webDataStream = Preconditions.checkNotNull(builder.getWebDataStream()); + } + + public static EnhancedMeasurementSettingsName of(String property, String webDataStream) { + return newBuilder().setProperty(property).setWebDataStream(webDataStream).build(); + } + + public static String format(String property, String webDataStream) { + return newBuilder().setProperty(property).setWebDataStream(webDataStream).build().toString(); + } + + public static EnhancedMeasurementSettingsName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PATH_TEMPLATE.validatedMatch( + formattedString, + "EnhancedMeasurementSettingsName.parse: formattedString not in valid format"); + return of(matchMap.get("property"), matchMap.get("web_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 (EnhancedMeasurementSettingsName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PATH_TEMPLATE.matches(formattedString); + } + + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + fieldMapBuilder.put("property", property); + fieldMapBuilder.put("webDataStream", webDataStream); + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PATH_TEMPLATE.instantiate("property", property, "web_data_stream", webDataStream); + } + + /** Builder for EnhancedMeasurementSettingsName. */ + public static class Builder { + + private String property; + private String webDataStream; + + public String getProperty() { + return property; + } + + public String getWebDataStream() { + return webDataStream; + } + + public Builder setProperty(String property) { + this.property = property; + return this; + } + + public Builder setWebDataStream(String webDataStream) { + this.webDataStream = webDataStream; + return this; + } + + private Builder() {} + + private Builder(EnhancedMeasurementSettingsName enhancedMeasurementSettingsName) { + property = enhancedMeasurementSettingsName.property; + webDataStream = enhancedMeasurementSettingsName.webDataStream; + } + + public EnhancedMeasurementSettingsName build() { + return new EnhancedMeasurementSettingsName(this); + } + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o instanceof EnhancedMeasurementSettingsName) { + EnhancedMeasurementSettingsName that = (EnhancedMeasurementSettingsName) o; + return (this.property.equals(that.property)) + && (this.webDataStream.equals(that.webDataStream)); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= property.hashCode(); + h *= 1000003; + h ^= webDataStream.hashCode(); + return h; + } +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/EnhancedMeasurementSettingsOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/EnhancedMeasurementSettingsOrBuilder.java new file mode 100644 index 00000000..ba05112a --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/EnhancedMeasurementSettingsOrBuilder.java @@ -0,0 +1,332 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/resources.proto + +package com.google.analytics.admin.v1alpha; + +public interface EnhancedMeasurementSettingsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.EnhancedMeasurementSettings) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. Resource name of this Data Stream.
+   * Format:
+   * properties/{property_id}/webDataStreams/{stream_id}/enhancedMeasurementSettings
+   * Example: "properties/1000/webDataStreams/2000/enhancedMeasurementSettings"
+   * 
+ * + * 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}/webDataStreams/{stream_id}/enhancedMeasurementSettings
+   * Example: "properties/1000/webDataStreams/2000/enhancedMeasurementSettings"
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Indicates whether Enhanced Measurement Settings will be used to
+   * automatically measure interactions and content on this web stream.
+   * Changing this value does not affect the settings themselves, but determines
+   * whether they are respected.
+   * 
+ * + * bool stream_enabled = 2; + * + * @return The streamEnabled. + */ + boolean getStreamEnabled(); + + /** + * + * + *
+   * Output only. If enabled, capture a page view event each time a page loads or the
+   * website changes the browser history state.
+   * 
+ * + * bool page_views_enabled = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The pageViewsEnabled. + */ + boolean getPageViewsEnabled(); + + /** + * + * + *
+   * If enabled, capture scroll events each time a visitor gets to the bottom of
+   * a page.
+   * 
+ * + * bool scrolls_enabled = 4; + * + * @return The scrollsEnabled. + */ + boolean getScrollsEnabled(); + + /** + * + * + *
+   * If enabled, capture an outbound click event each time a visitor clicks a
+   * link that leads them away from your domain.
+   * 
+ * + * bool outbound_clicks_enabled = 5; + * + * @return The outboundClicksEnabled. + */ + boolean getOutboundClicksEnabled(); + + /** + * + * + *
+   * Capture events when your visitors view content on your site that has
+   * structured data (eg, articles, blog posts, product details screens, etc.).
+   * 
+ * + * bool content_views_enabled = 6; + * + * @return The contentViewsEnabled. + */ + boolean getContentViewsEnabled(); + + /** + * + * + *
+   * If enabled, capture a view search results event each time a visitor
+   * performs a search on your site (based on a query parameter).
+   * 
+ * + * bool site_search_enabled = 7; + * + * @return The siteSearchEnabled. + */ + boolean getSiteSearchEnabled(); + + /** + * + * + *
+   * If enabled, capture a view search results event each time a visitor
+   * interacts with a form on your site.
+   * 
+ * + * bool form_interactions_enabled = 8; + * + * @return The formInteractionsEnabled. + */ + boolean getFormInteractionsEnabled(); + + /** + * + * + *
+   * If enabled, capture video play, progress, and complete events as visitors
+   * view embedded videos on your site.
+   * 
+ * + * bool video_engagement_enabled = 9; + * + * @return The videoEngagementEnabled. + */ + boolean getVideoEngagementEnabled(); + + /** + * + * + *
+   * If enabled, capture a file download event each time a link is clicked with
+   * a common document, compressed file, application, video, or audio extension.
+   * 
+ * + * bool file_downloads_enabled = 10; + * + * @return The fileDownloadsEnabled. + */ + boolean getFileDownloadsEnabled(); + + /** + * + * + *
+   * If enabled, capture a click event each time a visitor clicks a link or
+   * element that has data attributes beginning with "data-ga".
+   * 
+ * + * bool data_tagged_element_clicks_enabled = 11; + * + * @return The dataTaggedElementClicksEnabled. + */ + boolean getDataTaggedElementClicksEnabled(); + + /** + * + * + *
+   * If enabled, capture a page view event each time a page loads.
+   * 
+ * + * bool page_loads_enabled = 12; + * + * @return The pageLoadsEnabled. + */ + boolean getPageLoadsEnabled(); + + /** + * + * + *
+   * If enabled, capture a page view event each time the website changes the
+   * browser history state.
+   * 
+ * + * bool page_changes_enabled = 13; + * + * @return The pageChangesEnabled. + */ + boolean getPageChangesEnabled(); + + /** + * + * + *
+   * Capture events when your visitors view content on your site that has
+   * articles or blog posts.
+   * 
+ * + * bool articles_and_blogs_enabled = 14; + * + * @return The articlesAndBlogsEnabled. + */ + boolean getArticlesAndBlogsEnabled(); + + /** + * + * + *
+   * Capture events when your visitors view content on your site that has
+   * product details screens, etc.
+   * 
+ * + * bool products_and_ecommerce_enabled = 15; + * + * @return The productsAndEcommerceEnabled. + */ + boolean getProductsAndEcommerceEnabled(); + + /** + * + * + *
+   * Required. URL query parameters to interpret as site search parameters.
+   * Max length is 1024 characters. Must not be empty.
+   * 
+ * + * string search_query_parameter = 16 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The searchQueryParameter. + */ + java.lang.String getSearchQueryParameter(); + /** + * + * + *
+   * Required. URL query parameters to interpret as site search parameters.
+   * Max length is 1024 characters. Must not be empty.
+   * 
+ * + * string search_query_parameter = 16 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for searchQueryParameter. + */ + com.google.protobuf.ByteString getSearchQueryParameterBytes(); + + /** + * + * + *
+   * Additional URL query parameters.
+   * Max length is 1024 characters.
+   * 
+ * + * string url_query_parameter = 17; + * + * @return The urlQueryParameter. + */ + java.lang.String getUrlQueryParameter(); + /** + * + * + *
+   * Additional URL query parameters.
+   * Max length is 1024 characters.
+   * 
+ * + * string url_query_parameter = 17; + * + * @return The bytes for urlQueryParameter. + */ + com.google.protobuf.ByteString getUrlQueryParameterBytes(); + + /** + * + * + *
+   * Domains to exclude from measurement. Max length is 1024 characters.
+   * 
+ * + * string excluded_domains = 18; + * + * @return The excludedDomains. + */ + java.lang.String getExcludedDomains(); + /** + * + * + *
+   * Domains to exclude from measurement. Max length is 1024 characters.
+   * 
+ * + * string excluded_domains = 18; + * + * @return The bytes for excludedDomains. + */ + com.google.protobuf.ByteString getExcludedDomainsBytes(); +} 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 new file mode 100644 index 00000000..bddbefa6 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/FirebaseLink.java @@ -0,0 +1,1308 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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 an App+Web 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_ = ""; + maximumUserAccess_ = 0; + } + + @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; + } + + private FirebaseLink( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + project_ = s; + break; + } + case 26: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); + } + createTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); + } + + break; + } + case 32: + { + int rawValue = input.readEnum(); + + maximumUserAccess_ = rawValue; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_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(); + } + + public static final int MAXIMUM_USER_ACCESS_FIELD_NUMBER = 4; + private int maximumUserAccess_; + /** + * + * + *
+   * Maximum user access to the App + Web property allowed to admins of
+   * the linked Firebase project.
+   * 
+ * + * .google.analytics.admin.v1alpha.MaximumUserAccess maximum_user_access = 4; + * + * @return The enum numeric value on the wire for maximumUserAccess. + */ + @java.lang.Override + public int getMaximumUserAccessValue() { + return maximumUserAccess_; + } + /** + * + * + *
+   * Maximum user access to the App + Web property allowed to admins of
+   * the linked Firebase project.
+   * 
+ * + * .google.analytics.admin.v1alpha.MaximumUserAccess maximum_user_access = 4; + * + * @return The maximumUserAccess. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.MaximumUserAccess getMaximumUserAccess() { + @SuppressWarnings("deprecation") + com.google.analytics.admin.v1alpha.MaximumUserAccess result = + com.google.analytics.admin.v1alpha.MaximumUserAccess.valueOf(maximumUserAccess_); + return result == null + ? com.google.analytics.admin.v1alpha.MaximumUserAccess.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 (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!getProjectBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, project_); + } + if (createTime_ != null) { + output.writeMessage(3, getCreateTime()); + } + if (maximumUserAccess_ + != com.google.analytics.admin.v1alpha.MaximumUserAccess.MAXIMUM_USER_ACCESS_UNSPECIFIED + .getNumber()) { + output.writeEnum(4, maximumUserAccess_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!getProjectBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, project_); + } + if (createTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); + } + if (maximumUserAccess_ + != com.google.analytics.admin.v1alpha.MaximumUserAccess.MAXIMUM_USER_ACCESS_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, maximumUserAccess_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.admin.v1alpha.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 (maximumUserAccess_ != other.maximumUserAccess_) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + hash = (37 * hash) + MAXIMUM_USER_ACCESS_FIELD_NUMBER; + hash = (53 * hash) + maximumUserAccess_; + hash = (29 * hash) + unknownFields.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 an App+Web 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() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + project_ = ""; + + if (createTimeBuilder_ == null) { + createTime_ = null; + } else { + createTime_ = null; + createTimeBuilder_ = null; + } + maximumUserAccess_ = 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_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(); + } + result.maximumUserAccess_ = maximumUserAccess_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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()); + } + if (other.maximumUserAccess_ != 0) { + setMaximumUserAccessValue(other.getMaximumUserAccessValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.analytics.admin.v1alpha.FirebaseLink parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.analytics.admin.v1alpha.FirebaseLink) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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_; + } + + private int maximumUserAccess_ = 0; + /** + * + * + *
+     * Maximum user access to the App + Web property allowed to admins of
+     * the linked Firebase project.
+     * 
+ * + * .google.analytics.admin.v1alpha.MaximumUserAccess maximum_user_access = 4; + * + * @return The enum numeric value on the wire for maximumUserAccess. + */ + @java.lang.Override + public int getMaximumUserAccessValue() { + return maximumUserAccess_; + } + /** + * + * + *
+     * Maximum user access to the App + Web property allowed to admins of
+     * the linked Firebase project.
+     * 
+ * + * .google.analytics.admin.v1alpha.MaximumUserAccess maximum_user_access = 4; + * + * @param value The enum numeric value on the wire for maximumUserAccess to set. + * @return This builder for chaining. + */ + public Builder setMaximumUserAccessValue(int value) { + + maximumUserAccess_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Maximum user access to the App + Web property allowed to admins of
+     * the linked Firebase project.
+     * 
+ * + * .google.analytics.admin.v1alpha.MaximumUserAccess maximum_user_access = 4; + * + * @return The maximumUserAccess. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.MaximumUserAccess getMaximumUserAccess() { + @SuppressWarnings("deprecation") + com.google.analytics.admin.v1alpha.MaximumUserAccess result = + com.google.analytics.admin.v1alpha.MaximumUserAccess.valueOf(maximumUserAccess_); + return result == null + ? com.google.analytics.admin.v1alpha.MaximumUserAccess.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Maximum user access to the App + Web property allowed to admins of
+     * the linked Firebase project.
+     * 
+ * + * .google.analytics.admin.v1alpha.MaximumUserAccess maximum_user_access = 4; + * + * @param value The maximumUserAccess to set. + * @return This builder for chaining. + */ + public Builder setMaximumUserAccess( + com.google.analytics.admin.v1alpha.MaximumUserAccess value) { + if (value == null) { + throw new NullPointerException(); + } + + maximumUserAccess_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Maximum user access to the App + Web property allowed to admins of
+     * the linked Firebase project.
+     * 
+ * + * .google.analytics.admin.v1alpha.MaximumUserAccess maximum_user_access = 4; + * + * @return This builder for chaining. + */ + public Builder clearMaximumUserAccess() { + + maximumUserAccess_ = 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.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 { + return new FirebaseLink(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.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 new file mode 100644 index 00000000..4b71c822 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/FirebaseLinkName.java @@ -0,0 +1,182 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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; + +/** AUTO-GENERATED DOCUMENTATION AND CLASS */ +@javax.annotation.Generated("by GAPIC protoc plugin") +public class FirebaseLinkName implements ResourceName { + + private static final PathTemplate PATH_TEMPLATE = + PathTemplate.createWithoutUrlEncoding("properties/{property}/firebaseLinks/{firebase_link}"); + + private volatile Map fieldValuesMap; + + private final String property; + private final String firebaseLink; + + public String getProperty() { + return property; + } + + public String getFirebaseLink() { + return firebaseLink; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + private FirebaseLinkName(Builder builder) { + property = Preconditions.checkNotNull(builder.getProperty()); + firebaseLink = Preconditions.checkNotNull(builder.getFirebaseLink()); + } + + 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 = + PATH_TEMPLATE.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 PATH_TEMPLATE.matches(formattedString); + } + + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + fieldMapBuilder.put("property", property); + fieldMapBuilder.put("firebaseLink", firebaseLink); + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PATH_TEMPLATE.instantiate("property", property, "firebase_link", firebaseLink); + } + + /** Builder for FirebaseLinkName. */ + public static class Builder { + + private String property; + private String firebaseLink; + + 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() {} + + private Builder(FirebaseLinkName firebaseLinkName) { + property = firebaseLinkName.property; + firebaseLink = firebaseLinkName.firebaseLink; + } + + public FirebaseLinkName build() { + return new FirebaseLinkName(this); + } + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o instanceof FirebaseLinkName) { + FirebaseLinkName that = (FirebaseLinkName) o; + return (this.property.equals(that.property)) && (this.firebaseLink.equals(that.firebaseLink)); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= property.hashCode(); + h *= 1000003; + h ^= firebaseLink.hashCode(); + return h; + } +} 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 new file mode 100644 index 00000000..888db5ba --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/FirebaseLinkOrBuilder.java @@ -0,0 +1,150 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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(); + + /** + * + * + *
+   * Maximum user access to the App + Web property allowed to admins of
+   * the linked Firebase project.
+   * 
+ * + * .google.analytics.admin.v1alpha.MaximumUserAccess maximum_user_access = 4; + * + * @return The enum numeric value on the wire for maximumUserAccess. + */ + int getMaximumUserAccessValue(); + /** + * + * + *
+   * Maximum user access to the App + Web property allowed to admins of
+   * the linked Firebase project.
+   * 
+ * + * .google.analytics.admin.v1alpha.MaximumUserAccess maximum_user_access = 4; + * + * @return The maximumUserAccess. + */ + com.google.analytics.admin.v1alpha.MaximumUserAccess getMaximumUserAccess(); +} 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 new file mode 100644 index 00000000..e4300cbf --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetAccountRequest.java @@ -0,0 +1,664 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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; + } + + private GetAccountRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_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 (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.admin.v1alpha.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 (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.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() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + 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.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.analytics.admin.v1alpha.GetAccountRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.GetAccountRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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 { + return new GetAccountRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.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 new file mode 100644 index 00000000..c9770c3a --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetAccountRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated 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/GetAndroidAppDataStreamRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetAndroidAppDataStreamRequest.java new file mode 100644 index 00000000..3390180e --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetAndroidAppDataStreamRequest.java @@ -0,0 +1,675 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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 GetAndroidAppDataStream RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest} + */ +public final class GetAndroidAppDataStreamRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest) + GetAndroidAppDataStreamRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetAndroidAppDataStreamRequest.newBuilder() to construct. + private GetAndroidAppDataStreamRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetAndroidAppDataStreamRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetAndroidAppDataStreamRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private GetAndroidAppDataStreamRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetAndroidAppDataStreamRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetAndroidAppDataStreamRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest.class, + com.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required. The name of the android app data stream to lookup.
+   * Format: properties/{property_id}/androidAppDataStreams/{stream_id}
+   * Example: "properties/123/androidAppDataStreams/456"
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the android app data stream to lookup.
+   * Format: properties/{property_id}/androidAppDataStreams/{stream_id}
+   * Example: "properties/123/androidAppDataStreams/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 (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest other = + (com.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for GetAndroidAppDataStream RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest) + com.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetAndroidAppDataStreamRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetAndroidAppDataStreamRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest.class, + com.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest.Builder.class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + 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_GetAndroidAppDataStreamRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest build() { + com.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest buildPartial() { + com.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest result = + new com.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest(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.GetAndroidAppDataStreamRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest other) { + if (other + == com.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the android app data stream to lookup.
+     * Format: properties/{property_id}/androidAppDataStreams/{stream_id}
+     * Example: "properties/123/androidAppDataStreams/456"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the android app data stream to lookup.
+     * Format: properties/{property_id}/androidAppDataStreams/{stream_id}
+     * Example: "properties/123/androidAppDataStreams/456"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the android app data stream to lookup.
+     * Format: properties/{property_id}/androidAppDataStreams/{stream_id}
+     * Example: "properties/123/androidAppDataStreams/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 name of the android app data stream to lookup.
+     * Format: properties/{property_id}/androidAppDataStreams/{stream_id}
+     * Example: "properties/123/androidAppDataStreams/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 name of the android app data stream to lookup.
+     * Format: properties/{property_id}/androidAppDataStreams/{stream_id}
+     * Example: "properties/123/androidAppDataStreams/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.GetAndroidAppDataStreamRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest) + private static final com.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest(); + } + + public static com.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetAndroidAppDataStreamRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetAndroidAppDataStreamRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetAndroidAppDataStreamRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetAndroidAppDataStreamRequestOrBuilder.java new file mode 100644 index 00000000..b9239067 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetAndroidAppDataStreamRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface GetAndroidAppDataStreamRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the android app data stream to lookup.
+   * Format: properties/{property_id}/androidAppDataStreams/{stream_id}
+   * Example: "properties/123/androidAppDataStreams/456"
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the android app data stream to lookup.
+   * Format: properties/{property_id}/androidAppDataStreams/{stream_id}
+   * Example: "properties/123/androidAppDataStreams/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/GetDataSharingSettingsRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDataSharingSettingsRequest.java new file mode 100644 index 00000000..e495c763 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDataSharingSettingsRequest.java @@ -0,0 +1,672 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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; + } + + private GetDataSharingSettingsRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_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 (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.admin.v1alpha.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 (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.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() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + 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.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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 { + return new GetDataSharingSettingsRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.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 new file mode 100644 index 00000000..332a29a4 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDataSharingSettingsRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated 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/GetEnhancedMeasurementSettingsRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetEnhancedMeasurementSettingsRequest.java new file mode 100644 index 00000000..a0076e71 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetEnhancedMeasurementSettingsRequest.java @@ -0,0 +1,690 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for GetEnhancedMeasurementSettings RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest} + */ +public final class GetEnhancedMeasurementSettingsRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest) + GetEnhancedMeasurementSettingsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetEnhancedMeasurementSettingsRequest.newBuilder() to construct. + private GetEnhancedMeasurementSettingsRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetEnhancedMeasurementSettingsRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetEnhancedMeasurementSettingsRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private GetEnhancedMeasurementSettingsRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetEnhancedMeasurementSettingsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetEnhancedMeasurementSettingsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest.class, + com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required. The name of the settings to lookup.
+   * Format:
+   * properties/{property_id}/webDataStreams/{stream_id}/enhancedMeasurementSettings
+   * Example: "properties/1000/webDataStreams/2000/enhancedMeasurementSettings"
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the settings to lookup.
+   * Format:
+   * properties/{property_id}/webDataStreams/{stream_id}/enhancedMeasurementSettings
+   * Example: "properties/1000/webDataStreams/2000/enhancedMeasurementSettings"
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest other = + (com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for GetEnhancedMeasurementSettings RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest) + com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetEnhancedMeasurementSettingsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetEnhancedMeasurementSettingsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest.class, + com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest.Builder + .class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetEnhancedMeasurementSettingsRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest build() { + com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest buildPartial() { + com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest result = + new com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest(this); + 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.GetEnhancedMeasurementSettingsRequest) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest other) { + if (other + == com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the settings to lookup.
+     * Format:
+     * properties/{property_id}/webDataStreams/{stream_id}/enhancedMeasurementSettings
+     * Example: "properties/1000/webDataStreams/2000/enhancedMeasurementSettings"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the settings to lookup.
+     * Format:
+     * properties/{property_id}/webDataStreams/{stream_id}/enhancedMeasurementSettings
+     * Example: "properties/1000/webDataStreams/2000/enhancedMeasurementSettings"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the settings to lookup.
+     * Format:
+     * properties/{property_id}/webDataStreams/{stream_id}/enhancedMeasurementSettings
+     * Example: "properties/1000/webDataStreams/2000/enhancedMeasurementSettings"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the settings to lookup.
+     * Format:
+     * properties/{property_id}/webDataStreams/{stream_id}/enhancedMeasurementSettings
+     * Example: "properties/1000/webDataStreams/2000/enhancedMeasurementSettings"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the settings to lookup.
+     * Format:
+     * properties/{property_id}/webDataStreams/{stream_id}/enhancedMeasurementSettings
+     * Example: "properties/1000/webDataStreams/2000/enhancedMeasurementSettings"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest) + private static final com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest(); + } + + public static com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetEnhancedMeasurementSettingsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetEnhancedMeasurementSettingsRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetEnhancedMeasurementSettingsRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetEnhancedMeasurementSettingsRequestOrBuilder.java new file mode 100644 index 00000000..6ebb6e69 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetEnhancedMeasurementSettingsRequestOrBuilder.java @@ -0,0 +1,60 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface GetEnhancedMeasurementSettingsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the settings to lookup.
+   * Format:
+   * properties/{property_id}/webDataStreams/{stream_id}/enhancedMeasurementSettings
+   * Example: "properties/1000/webDataStreams/2000/enhancedMeasurementSettings"
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the settings to lookup.
+   * Format:
+   * properties/{property_id}/webDataStreams/{stream_id}/enhancedMeasurementSettings
+   * Example: "properties/1000/webDataStreams/2000/enhancedMeasurementSettings"
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/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 new file mode 100644 index 00000000..ce8c9e08 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetGlobalSiteTagRequest.java @@ -0,0 +1,672 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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; + } + + private GetGlobalSiteTagRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_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}/webDataStreams/{stream_id}/globalSiteTag
+   * Example: "properties/123/webDataStreams/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}/webDataStreams/{stream_id}/globalSiteTag
+   * Example: "properties/123/webDataStreams/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 (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.admin.v1alpha.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 (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.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() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + 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.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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}/webDataStreams/{stream_id}/globalSiteTag
+     * Example: "properties/123/webDataStreams/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}/webDataStreams/{stream_id}/globalSiteTag
+     * Example: "properties/123/webDataStreams/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}/webDataStreams/{stream_id}/globalSiteTag
+     * Example: "properties/123/webDataStreams/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}/webDataStreams/{stream_id}/globalSiteTag
+     * Example: "properties/123/webDataStreams/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}/webDataStreams/{stream_id}/globalSiteTag
+     * Example: "properties/123/webDataStreams/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 { + return new GetGlobalSiteTagRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.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 new file mode 100644 index 00000000..1b6b0450 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetGlobalSiteTagRequestOrBuilder.java @@ -0,0 +1,60 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated 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}/webDataStreams/{stream_id}/globalSiteTag
+   * Example: "properties/123/webDataStreams/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}/webDataStreams/{stream_id}/globalSiteTag
+   * Example: "properties/123/webDataStreams/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/GetIosAppDataStreamRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetIosAppDataStreamRequest.java new file mode 100644 index 00000000..4319c20c --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetIosAppDataStreamRequest.java @@ -0,0 +1,669 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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 GetIosAppDataStream RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.GetIosAppDataStreamRequest} + */ +public final class GetIosAppDataStreamRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.GetIosAppDataStreamRequest) + GetIosAppDataStreamRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetIosAppDataStreamRequest.newBuilder() to construct. + private GetIosAppDataStreamRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetIosAppDataStreamRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetIosAppDataStreamRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private GetIosAppDataStreamRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetIosAppDataStreamRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetIosAppDataStreamRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest.class, + com.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required. The name of the iOS app data stream to lookup.
+   * Format: properties/{property_id}/iosAppDataStreams/{stream_id}
+   * Example: "properties/123/iosAppDataStreams/456"
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the iOS app data stream to lookup.
+   * Format: properties/{property_id}/iosAppDataStreams/{stream_id}
+   * Example: "properties/123/iosAppDataStreams/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 (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest other = + (com.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for GetIosAppDataStream RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.GetIosAppDataStreamRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.GetIosAppDataStreamRequest) + com.google.analytics.admin.v1alpha.GetIosAppDataStreamRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetIosAppDataStreamRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetIosAppDataStreamRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest.class, + com.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + 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_GetIosAppDataStreamRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest build() { + com.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest buildPartial() { + com.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest result = + new com.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest(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.GetIosAppDataStreamRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest other) { + if (other + == com.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the iOS app data stream to lookup.
+     * Format: properties/{property_id}/iosAppDataStreams/{stream_id}
+     * Example: "properties/123/iosAppDataStreams/456"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the iOS app data stream to lookup.
+     * Format: properties/{property_id}/iosAppDataStreams/{stream_id}
+     * Example: "properties/123/iosAppDataStreams/456"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the iOS app data stream to lookup.
+     * Format: properties/{property_id}/iosAppDataStreams/{stream_id}
+     * Example: "properties/123/iosAppDataStreams/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 name of the iOS app data stream to lookup.
+     * Format: properties/{property_id}/iosAppDataStreams/{stream_id}
+     * Example: "properties/123/iosAppDataStreams/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 name of the iOS app data stream to lookup.
+     * Format: properties/{property_id}/iosAppDataStreams/{stream_id}
+     * Example: "properties/123/iosAppDataStreams/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.GetIosAppDataStreamRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.GetIosAppDataStreamRequest) + private static final com.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest(); + } + + public static com.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetIosAppDataStreamRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetIosAppDataStreamRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetIosAppDataStreamRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetIosAppDataStreamRequestOrBuilder.java new file mode 100644 index 00000000..c46888b1 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetIosAppDataStreamRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface GetIosAppDataStreamRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.GetIosAppDataStreamRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the iOS app data stream to lookup.
+   * Format: properties/{property_id}/iosAppDataStreams/{stream_id}
+   * Example: "properties/123/iosAppDataStreams/456"
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the iOS app data stream to lookup.
+   * Format: properties/{property_id}/iosAppDataStreams/{stream_id}
+   * Example: "properties/123/iosAppDataStreams/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/GetPropertyRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetPropertyRequest.java new file mode 100644 index 00000000..a69a9ca1 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetPropertyRequest.java @@ -0,0 +1,665 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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; + } + + private GetPropertyRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_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 (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.admin.v1alpha.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 (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.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() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + 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.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.analytics.admin.v1alpha.GetPropertyRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.GetPropertyRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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 { + return new GetPropertyRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.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 new file mode 100644 index 00000000..20cd31c0 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetPropertyRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated 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 new file mode 100644 index 00000000..de0fd772 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetUserLinkRequest.java @@ -0,0 +1,651 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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; + } + + private GetUserLinkRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_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 (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.admin.v1alpha.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 (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.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() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + 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.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.analytics.admin.v1alpha.GetUserLinkRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.GetUserLinkRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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 { + return new GetUserLinkRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.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 new file mode 100644 index 00000000..b9a66481 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetUserLinkRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated 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/GetWebDataStreamRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetWebDataStreamRequest.java new file mode 100644 index 00000000..5399b325 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetWebDataStreamRequest.java @@ -0,0 +1,665 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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 GetWebDataStream RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.GetWebDataStreamRequest} + */ +public final class GetWebDataStreamRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.GetWebDataStreamRequest) + GetWebDataStreamRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetWebDataStreamRequest.newBuilder() to construct. + private GetWebDataStreamRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetWebDataStreamRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetWebDataStreamRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private GetWebDataStreamRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetWebDataStreamRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetWebDataStreamRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.GetWebDataStreamRequest.class, + com.google.analytics.admin.v1alpha.GetWebDataStreamRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required. The name of the web data stream to lookup.
+   * Format: properties/{property_id}/webDataStreams/{stream_id}
+   * Example: "properties/123/webDataStreams/456"
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the web data stream to lookup.
+   * Format: properties/{property_id}/webDataStreams/{stream_id}
+   * Example: "properties/123/webDataStreams/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 (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.admin.v1alpha.GetWebDataStreamRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.GetWebDataStreamRequest other = + (com.google.analytics.admin.v1alpha.GetWebDataStreamRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.GetWebDataStreamRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetWebDataStreamRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetWebDataStreamRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetWebDataStreamRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetWebDataStreamRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetWebDataStreamRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetWebDataStreamRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetWebDataStreamRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetWebDataStreamRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetWebDataStreamRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetWebDataStreamRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetWebDataStreamRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.GetWebDataStreamRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for GetWebDataStream RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.GetWebDataStreamRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.GetWebDataStreamRequest) + com.google.analytics.admin.v1alpha.GetWebDataStreamRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetWebDataStreamRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetWebDataStreamRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.GetWebDataStreamRequest.class, + com.google.analytics.admin.v1alpha.GetWebDataStreamRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.GetWebDataStreamRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + 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_GetWebDataStreamRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetWebDataStreamRequest getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.GetWebDataStreamRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetWebDataStreamRequest build() { + com.google.analytics.admin.v1alpha.GetWebDataStreamRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetWebDataStreamRequest buildPartial() { + com.google.analytics.admin.v1alpha.GetWebDataStreamRequest result = + new com.google.analytics.admin.v1alpha.GetWebDataStreamRequest(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.GetWebDataStreamRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.GetWebDataStreamRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.GetWebDataStreamRequest other) { + if (other == com.google.analytics.admin.v1alpha.GetWebDataStreamRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.analytics.admin.v1alpha.GetWebDataStreamRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.GetWebDataStreamRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the web data stream to lookup.
+     * Format: properties/{property_id}/webDataStreams/{stream_id}
+     * Example: "properties/123/webDataStreams/456"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the web data stream to lookup.
+     * Format: properties/{property_id}/webDataStreams/{stream_id}
+     * Example: "properties/123/webDataStreams/456"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the web data stream to lookup.
+     * Format: properties/{property_id}/webDataStreams/{stream_id}
+     * Example: "properties/123/webDataStreams/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 name of the web data stream to lookup.
+     * Format: properties/{property_id}/webDataStreams/{stream_id}
+     * Example: "properties/123/webDataStreams/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 name of the web data stream to lookup.
+     * Format: properties/{property_id}/webDataStreams/{stream_id}
+     * Example: "properties/123/webDataStreams/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.GetWebDataStreamRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.GetWebDataStreamRequest) + private static final com.google.analytics.admin.v1alpha.GetWebDataStreamRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.GetWebDataStreamRequest(); + } + + public static com.google.analytics.admin.v1alpha.GetWebDataStreamRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetWebDataStreamRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetWebDataStreamRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetWebDataStreamRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetWebDataStreamRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetWebDataStreamRequestOrBuilder.java new file mode 100644 index 00000000..8b9ab86d --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetWebDataStreamRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface GetWebDataStreamRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.GetWebDataStreamRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the web data stream to lookup.
+   * Format: properties/{property_id}/webDataStreams/{stream_id}
+   * Example: "properties/123/webDataStreams/456"
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the web data stream to lookup.
+   * Format: properties/{property_id}/webDataStreams/{stream_id}
+   * Example: "properties/123/webDataStreams/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/GlobalSiteTag.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GlobalSiteTag.java new file mode 100644 index 00000000..c2adafd5 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GlobalSiteTag.java @@ -0,0 +1,644 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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
+ * WebDataStream.
+ * 
+ * + * 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() { + 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; + } + + private GlobalSiteTag( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + snippet_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_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 SNIPPET_FIELD_NUMBER = 1; + 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 = 1 [(.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 = 1 [(.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 (!getSnippetBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, snippet_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getSnippetBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, snippet_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.admin.v1alpha.GlobalSiteTag)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.GlobalSiteTag other = + (com.google.analytics.admin.v1alpha.GlobalSiteTag) obj; + + if (!getSnippet().equals(other.getSnippet())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SNIPPET_FIELD_NUMBER; + hash = (53 * hash) + getSnippet().hashCode(); + hash = (29 * hash) + unknownFields.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
+   * WebDataStream.
+   * 
+ * + * 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() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + 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.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.getSnippet().isEmpty()) { + snippet_ = other.snippet_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.analytics.admin.v1alpha.GlobalSiteTag parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.analytics.admin.v1alpha.GlobalSiteTag) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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 = 1 [(.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 = 1 [(.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 = 1 [(.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 = 1 [(.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 = 1 [(.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 { + return new GlobalSiteTag(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.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 new file mode 100644 index 00000000..3665ae9a --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GlobalSiteTagName.java @@ -0,0 +1,162 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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; + +/** AUTO-GENERATED DOCUMENTATION AND CLASS */ +@javax.annotation.Generated("by GAPIC protoc plugin") +public class GlobalSiteTagName implements ResourceName { + + private static final PathTemplate PATH_TEMPLATE = + PathTemplate.createWithoutUrlEncoding("properties/{property}/globalSiteTag"); + + private volatile Map fieldValuesMap; + + private final String property; + + public String getProperty() { + return property; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + private GlobalSiteTagName(Builder builder) { + property = Preconditions.checkNotNull(builder.getProperty()); + } + + public static GlobalSiteTagName of(String property) { + return newBuilder().setProperty(property).build(); + } + + public static String format(String property) { + return newBuilder().setProperty(property).build().toString(); + } + + public static GlobalSiteTagName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PATH_TEMPLATE.validatedMatch( + formattedString, "GlobalSiteTagName.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 (GlobalSiteTagName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PATH_TEMPLATE.matches(formattedString); + } + + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + fieldMapBuilder.put("property", property); + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PATH_TEMPLATE.instantiate("property", property); + } + + /** Builder for GlobalSiteTagName. */ + public static class Builder { + + private String property; + + public String getProperty() { + return property; + } + + public Builder setProperty(String property) { + this.property = property; + return this; + } + + private Builder() {} + + private Builder(GlobalSiteTagName globalSiteTagName) { + property = globalSiteTagName.property; + } + + public GlobalSiteTagName build() { + return new GlobalSiteTagName(this); + } + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o instanceof GlobalSiteTagName) { + GlobalSiteTagName that = (GlobalSiteTagName) o; + return (this.property.equals(that.property)); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= property.hashCode(); + return h; + } +} 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 new file mode 100644 index 00000000..7df2dd22 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GlobalSiteTagOrBuilder.java @@ -0,0 +1,52 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/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 { + + /** + * + * + *
+   * Immutable. JavaScript code snippet to be pasted as the first item into the head tag of
+   * every webpage to measure.
+   * 
+ * + * string snippet = 1 [(.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 = 1 [(.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 new file mode 100644 index 00000000..1acb377b --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleAdsLink.java @@ -0,0 +1,2178 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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 an App+Web 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_ = ""; + parent_ = ""; + customerId_ = ""; + emailAddress_ = ""; + } + + @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; + } + + private GoogleAdsLink( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + customerId_ = s; + break; + } + case 32: + { + canManageClients_ = input.readBool(); + break; + } + case 42: + { + com.google.protobuf.BoolValue.Builder subBuilder = null; + if (adsPersonalizationEnabled_ != null) { + subBuilder = adsPersonalizationEnabled_.toBuilder(); + } + adsPersonalizationEnabled_ = + input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(adsPersonalizationEnabled_); + adsPersonalizationEnabled_ = subBuilder.buildPartial(); + } + + break; + } + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + + emailAddress_ = s; + break; + } + case 58: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); + } + createTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); + } + + break; + } + case 66: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (updateTime_ != null) { + subBuilder = updateTime_.toBuilder(); + } + updateTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateTime_); + updateTime_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_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 PARENT_FIELD_NUMBER = 2; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Immutable. Format: properties/{propertyId}
+   * 
+ * + * 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. Format: properties/{propertyId}
+   * 
+ * + * 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 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 EMAIL_ADDRESS_FIELD_NUMBER = 6; + private volatile java.lang.Object emailAddress_; + /** + * + * + *
+   * 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 email_address = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + /** + * + * + *
+   * 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 email_address = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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 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(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!getParentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, parent_); + } + if (!getCustomerIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, customerId_); + } + if (canManageClients_ != false) { + output.writeBool(4, canManageClients_); + } + if (adsPersonalizationEnabled_ != null) { + output.writeMessage(5, getAdsPersonalizationEnabled()); + } + if (!getEmailAddressBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, emailAddress_); + } + if (createTime_ != null) { + output.writeMessage(7, getCreateTime()); + } + if (updateTime_ != null) { + output.writeMessage(8, getUpdateTime()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!getParentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, parent_); + } + if (!getCustomerIdBytes().isEmpty()) { + 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 (!getEmailAddressBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, emailAddress_); + } + if (createTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getCreateTime()); + } + if (updateTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getUpdateTime()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.admin.v1alpha.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 (!getParent().equals(other.getParent())) 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 (!getEmailAddress().equals(other.getEmailAddress())) 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 (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().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(); + } + hash = (37 * hash) + EMAIL_ADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getEmailAddress().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 = (29 * hash) + unknownFields.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 an App+Web 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() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + parent_ = ""; + + customerId_ = ""; + + canManageClients_ = false; + + if (adsPersonalizationEnabledBuilder_ == null) { + adsPersonalizationEnabled_ = null; + } else { + adsPersonalizationEnabled_ = null; + adsPersonalizationEnabledBuilder_ = null; + } + emailAddress_ = ""; + + if (createTimeBuilder_ == null) { + createTime_ = null; + } else { + createTime_ = null; + createTimeBuilder_ = null; + } + if (updateTimeBuilder_ == null) { + updateTime_ = null; + } else { + updateTime_ = null; + updateTimeBuilder_ = 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_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.parent_ = parent_; + result.customerId_ = customerId_; + result.canManageClients_ = canManageClients_; + if (adsPersonalizationEnabledBuilder_ == null) { + result.adsPersonalizationEnabled_ = adsPersonalizationEnabled_; + } else { + result.adsPersonalizationEnabled_ = adsPersonalizationEnabledBuilder_.build(); + } + result.emailAddress_ = emailAddress_; + if (createTimeBuilder_ == null) { + result.createTime_ = createTime_; + } else { + result.createTime_ = createTimeBuilder_.build(); + } + if (updateTimeBuilder_ == null) { + result.updateTime_ = updateTime_; + } else { + result.updateTime_ = updateTimeBuilder_.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.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.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (!other.getCustomerId().isEmpty()) { + customerId_ = other.customerId_; + onChanged(); + } + if (other.getCanManageClients() != false) { + setCanManageClients(other.getCanManageClients()); + } + if (other.hasAdsPersonalizationEnabled()) { + mergeAdsPersonalizationEnabled(other.getAdsPersonalizationEnabled()); + } + if (!other.getEmailAddress().isEmpty()) { + emailAddress_ = other.emailAddress_; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.analytics.admin.v1alpha.GoogleAdsLink parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.analytics.admin.v1alpha.GoogleAdsLink) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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 parent_ = ""; + /** + * + * + *
+     * Immutable. Format: properties/{propertyId}
+     * 
+ * + * 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. Format: properties/{propertyId}
+     * 
+ * + * 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. Format: properties/{propertyId}
+     * 
+ * + * 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. Format: properties/{propertyId}
+     * 
+ * + * string parent = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return This builder for chaining. + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * + * + *
+     * Immutable. Format: properties/{propertyId}
+     * 
+ * + * 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 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 java.lang.Object emailAddress_ = ""; + /** + * + * + *
+     * 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 email_address = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + /** + * + * + *
+     * 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 email_address = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + /** + * + * + *
+     * 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 email_address = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + /** + * + * + *
+     * 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 email_address = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearEmailAddress() { + + emailAddress_ = getDefaultInstance().getEmailAddress(); + 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 email_address = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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.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_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.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 { + return new GoogleAdsLink(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.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 new file mode 100644 index 00000000..e0c3592f --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleAdsLinkName.java @@ -0,0 +1,184 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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; + +/** AUTO-GENERATED DOCUMENTATION AND CLASS */ +@javax.annotation.Generated("by GAPIC protoc plugin") +public class GoogleAdsLinkName implements ResourceName { + + private static final PathTemplate PATH_TEMPLATE = + PathTemplate.createWithoutUrlEncoding( + "properties/{property}/googleAdsLinks/{google_ads_link}"); + + private volatile Map fieldValuesMap; + + private final String property; + private final String googleAdsLink; + + public String getProperty() { + return property; + } + + public String getGoogleAdsLink() { + return googleAdsLink; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + private GoogleAdsLinkName(Builder builder) { + property = Preconditions.checkNotNull(builder.getProperty()); + googleAdsLink = Preconditions.checkNotNull(builder.getGoogleAdsLink()); + } + + 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 = + PATH_TEMPLATE.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 PATH_TEMPLATE.matches(formattedString); + } + + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + fieldMapBuilder.put("property", property); + fieldMapBuilder.put("googleAdsLink", googleAdsLink); + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PATH_TEMPLATE.instantiate("property", property, "google_ads_link", googleAdsLink); + } + + /** Builder for GoogleAdsLinkName. */ + public static class Builder { + + private String property; + private String googleAdsLink; + + 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() {} + + private Builder(GoogleAdsLinkName googleAdsLinkName) { + property = googleAdsLinkName.property; + googleAdsLink = googleAdsLinkName.googleAdsLink; + } + + public GoogleAdsLinkName build() { + return new GoogleAdsLinkName(this); + } + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o instanceof GoogleAdsLinkName) { + GoogleAdsLinkName that = (GoogleAdsLinkName) o; + return (this.property.equals(that.property)) + && (this.googleAdsLink.equals(that.googleAdsLink)); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= property.hashCode(); + h *= 1000003; + h ^= googleAdsLink.hashCode(); + return h; + } +} 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 new file mode 100644 index 00000000..24f39731 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleAdsLinkOrBuilder.java @@ -0,0 +1,262 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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. Format: properties/{propertyId}
+   * 
+ * + * string parent = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Immutable. Format: properties/{propertyId}
+   * 
+ * + * string parent = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * 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. Email address of the user that created the link.
+   * An empty string will be returned if the email address can't be retrieved.
+   * 
+ * + * string email_address = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The emailAddress. + */ + java.lang.String getEmailAddress(); + /** + * + * + *
+   * 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 email_address = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for emailAddress. + */ + com.google.protobuf.ByteString getEmailAddressBytes(); + + /** + * + * + *
+   * 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(); +} 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 new file mode 100644 index 00000000..461d68a4 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/IndustryCategory.java @@ -0,0 +1,704 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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/IosAppDataStream.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/IosAppDataStream.java new file mode 100644 index 00000000..db3235df --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/IosAppDataStream.java @@ -0,0 +1,1808 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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 IOS app stream.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.IosAppDataStream} + */ +public final class IosAppDataStream extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.IosAppDataStream) + IosAppDataStreamOrBuilder { + private static final long serialVersionUID = 0L; + // Use IosAppDataStream.newBuilder() to construct. + private IosAppDataStream(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private IosAppDataStream() { + name_ = ""; + firebaseAppId_ = ""; + bundleId_ = ""; + displayName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new IosAppDataStream(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private IosAppDataStream( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + firebaseAppId_ = s; + break; + } + case 26: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); + } + createTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); + } + + break; + } + case 34: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (updateTime_ != null) { + subBuilder = updateTime_.toBuilder(); + } + updateTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateTime_); + updateTime_ = subBuilder.buildPartial(); + } + + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + + bundleId_ = s; + break; + } + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + + displayName_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_IosAppDataStream_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_IosAppDataStream_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.IosAppDataStream.class, + com.google.analytics.admin.v1alpha.IosAppDataStream.Builder.class); + } + + 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}/iosAppDataStreams/{stream_id}
+   * Example: "properties/1000/iosAppDataStreams/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}/iosAppDataStreams/{stream_id}
+   * Example: "properties/1000/iosAppDataStreams/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 FIREBASE_APP_ID_FIELD_NUMBER = 2; + 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 = 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 iOS app in Firebase, if any.
+   * This ID can change if the iOS 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 CREATE_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
+   * Output only. Time when this stream 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 stream 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 stream 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 stream 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 stream 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 stream 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 BUNDLE_ID_FIELD_NUMBER = 5; + private volatile java.lang.Object bundleId_; + /** + * + * + *
+   * Required. Immutable. The Apple App Store Bundle ID for the app
+   * Example: "com.example.myiosapp"
+   * 
+ * + * + * string bundle_id = 5 [(.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 = 5 [(.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; + } + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 6; + private volatile java.lang.Object displayName_; + /** + * + * + *
+   * Human-readable display name for the Data Stream.
+   * The max allowed display name length is 255 UTF-16 code units.
+   * 
+ * + * string display_name = 6; + * + * @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.
+   * The max allowed display name length is 255 UTF-16 code units.
+   * 
+ * + * string display_name = 6; + * + * @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; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!getFirebaseAppIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, firebaseAppId_); + } + if (createTime_ != null) { + output.writeMessage(3, getCreateTime()); + } + if (updateTime_ != null) { + output.writeMessage(4, getUpdateTime()); + } + if (!getBundleIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, bundleId_); + } + if (!getDisplayNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, displayName_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!getFirebaseAppIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, firebaseAppId_); + } + if (createTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); + } + if (updateTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getUpdateTime()); + } + if (!getBundleIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, bundleId_); + } + if (!getDisplayNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, displayName_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.admin.v1alpha.IosAppDataStream)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.IosAppDataStream other = + (com.google.analytics.admin.v1alpha.IosAppDataStream) obj; + + if (!getName().equals(other.getName())) return false; + if (!getFirebaseAppId().equals(other.getFirebaseAppId())) 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 (!getBundleId().equals(other.getBundleId())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + FIREBASE_APP_ID_FIELD_NUMBER; + hash = (53 * hash) + getFirebaseAppId().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) + BUNDLE_ID_FIELD_NUMBER; + hash = (53 * hash) + getBundleId().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.IosAppDataStream parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.IosAppDataStream parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.IosAppDataStream parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.IosAppDataStream parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.IosAppDataStream parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.IosAppDataStream parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.IosAppDataStream parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.IosAppDataStream parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.IosAppDataStream parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.IosAppDataStream parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.IosAppDataStream parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.IosAppDataStream parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.analytics.admin.v1alpha.IosAppDataStream prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 IOS app stream.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.IosAppDataStream} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.IosAppDataStream) + com.google.analytics.admin.v1alpha.IosAppDataStreamOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_IosAppDataStream_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_IosAppDataStream_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.IosAppDataStream.class, + com.google.analytics.admin.v1alpha.IosAppDataStream.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.IosAppDataStream.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + firebaseAppId_ = ""; + + if (createTimeBuilder_ == null) { + createTime_ = null; + } else { + createTime_ = null; + createTimeBuilder_ = null; + } + if (updateTimeBuilder_ == null) { + updateTime_ = null; + } else { + updateTime_ = null; + updateTimeBuilder_ = null; + } + bundleId_ = ""; + + displayName_ = ""; + + 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_IosAppDataStream_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.IosAppDataStream getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.IosAppDataStream.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.IosAppDataStream build() { + com.google.analytics.admin.v1alpha.IosAppDataStream result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.IosAppDataStream buildPartial() { + com.google.analytics.admin.v1alpha.IosAppDataStream result = + new com.google.analytics.admin.v1alpha.IosAppDataStream(this); + result.name_ = name_; + result.firebaseAppId_ = firebaseAppId_; + if (createTimeBuilder_ == null) { + result.createTime_ = createTime_; + } else { + result.createTime_ = createTimeBuilder_.build(); + } + if (updateTimeBuilder_ == null) { + result.updateTime_ = updateTime_; + } else { + result.updateTime_ = updateTimeBuilder_.build(); + } + result.bundleId_ = bundleId_; + result.displayName_ = displayName_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.IosAppDataStream) { + return mergeFrom((com.google.analytics.admin.v1alpha.IosAppDataStream) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.IosAppDataStream other) { + if (other == com.google.analytics.admin.v1alpha.IosAppDataStream.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getFirebaseAppId().isEmpty()) { + firebaseAppId_ = other.firebaseAppId_; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (!other.getBundleId().isEmpty()) { + bundleId_ = other.bundleId_; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.analytics.admin.v1alpha.IosAppDataStream parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.IosAppDataStream) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Output only. Resource name of this Data Stream.
+     * Format: properties/{property_id}/iosAppDataStreams/{stream_id}
+     * Example: "properties/1000/iosAppDataStreams/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}/iosAppDataStreams/{stream_id}
+     * Example: "properties/1000/iosAppDataStreams/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}/iosAppDataStreams/{stream_id}
+     * Example: "properties/1000/iosAppDataStreams/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}/iosAppDataStreams/{stream_id}
+     * Example: "properties/1000/iosAppDataStreams/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}/iosAppDataStreams/{stream_id}
+     * Example: "properties/1000/iosAppDataStreams/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 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 = 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 iOS app in Firebase, if any.
+     * This ID can change if the iOS 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 iOS app in Firebase, if any.
+     * This ID can change if the iOS 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 iOS app in Firebase, if any.
+     * This ID can change if the iOS 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 iOS app in Firebase, if any.
+     * This ID can change if the iOS 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 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 = 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 stream 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 stream 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 stream 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 stream 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 stream 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 stream 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 stream 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 stream 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 stream 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 stream 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 stream 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 stream 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 stream 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 stream 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 stream 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 stream 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 stream 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 bundleId_ = ""; + /** + * + * + *
+     * Required. Immutable. The Apple App Store Bundle ID for the app
+     * Example: "com.example.myiosapp"
+     * 
+ * + * + * string bundle_id = 5 [(.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 = 5 [(.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 = 5 [(.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 = 5 [(.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 = 5 [(.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; + } + + private java.lang.Object displayName_ = ""; + /** + * + * + *
+     * Human-readable display name for the Data Stream.
+     * The max allowed display name length is 255 UTF-16 code units.
+     * 
+ * + * string display_name = 6; + * + * @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.
+     * The max allowed display name length is 255 UTF-16 code units.
+     * 
+ * + * string display_name = 6; + * + * @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.
+     * The max allowed display name length is 255 UTF-16 code units.
+     * 
+ * + * string display_name = 6; + * + * @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.
+     * The max allowed display name length is 255 UTF-16 code units.
+     * 
+ * + * string display_name = 6; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + + displayName_ = getDefaultInstance().getDisplayName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Human-readable display name for the Data Stream.
+     * The max allowed display name length is 255 UTF-16 code units.
+     * 
+ * + * string display_name = 6; + * + * @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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.IosAppDataStream) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.IosAppDataStream) + private static final com.google.analytics.admin.v1alpha.IosAppDataStream DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.IosAppDataStream(); + } + + public static com.google.analytics.admin.v1alpha.IosAppDataStream getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IosAppDataStream parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new IosAppDataStream(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.IosAppDataStream getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/IosAppDataStreamName.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/IosAppDataStreamName.java new file mode 100644 index 00000000..1ffceb9e --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/IosAppDataStreamName.java @@ -0,0 +1,188 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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; + +/** AUTO-GENERATED DOCUMENTATION AND CLASS */ +@javax.annotation.Generated("by GAPIC protoc plugin") +public class IosAppDataStreamName implements ResourceName { + + private static final PathTemplate PATH_TEMPLATE = + PathTemplate.createWithoutUrlEncoding( + "properties/{property}/iosAppDataStreams/{ios_app_data_stream}"); + + private volatile Map fieldValuesMap; + + private final String property; + private final String iosAppDataStream; + + public String getProperty() { + return property; + } + + public String getIosAppDataStream() { + return iosAppDataStream; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + private IosAppDataStreamName(Builder builder) { + property = Preconditions.checkNotNull(builder.getProperty()); + iosAppDataStream = Preconditions.checkNotNull(builder.getIosAppDataStream()); + } + + public static IosAppDataStreamName of(String property, String iosAppDataStream) { + return newBuilder().setProperty(property).setIosAppDataStream(iosAppDataStream).build(); + } + + public static String format(String property, String iosAppDataStream) { + return newBuilder() + .setProperty(property) + .setIosAppDataStream(iosAppDataStream) + .build() + .toString(); + } + + public static IosAppDataStreamName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PATH_TEMPLATE.validatedMatch( + formattedString, "IosAppDataStreamName.parse: formattedString not in valid format"); + return of(matchMap.get("property"), matchMap.get("ios_app_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 (IosAppDataStreamName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PATH_TEMPLATE.matches(formattedString); + } + + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + fieldMapBuilder.put("property", property); + fieldMapBuilder.put("iosAppDataStream", iosAppDataStream); + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PATH_TEMPLATE.instantiate("property", property, "ios_app_data_stream", iosAppDataStream); + } + + /** Builder for IosAppDataStreamName. */ + public static class Builder { + + private String property; + private String iosAppDataStream; + + public String getProperty() { + return property; + } + + public String getIosAppDataStream() { + return iosAppDataStream; + } + + public Builder setProperty(String property) { + this.property = property; + return this; + } + + public Builder setIosAppDataStream(String iosAppDataStream) { + this.iosAppDataStream = iosAppDataStream; + return this; + } + + private Builder() {} + + private Builder(IosAppDataStreamName iosAppDataStreamName) { + property = iosAppDataStreamName.property; + iosAppDataStream = iosAppDataStreamName.iosAppDataStream; + } + + public IosAppDataStreamName build() { + return new IosAppDataStreamName(this); + } + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o instanceof IosAppDataStreamName) { + IosAppDataStreamName that = (IosAppDataStreamName) o; + return (this.property.equals(that.property)) + && (this.iosAppDataStream.equals(that.iosAppDataStream)); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= property.hashCode(); + h *= 1000003; + h ^= iosAppDataStream.hashCode(); + return h; + } +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/IosAppDataStreamOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/IosAppDataStreamOrBuilder.java new file mode 100644 index 00000000..d30000c9 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/IosAppDataStreamOrBuilder.java @@ -0,0 +1,215 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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 IosAppDataStreamOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.IosAppDataStream) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. Resource name of this Data Stream.
+   * Format: properties/{property_id}/iosAppDataStreams/{stream_id}
+   * Example: "properties/1000/iosAppDataStreams/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}/iosAppDataStreams/{stream_id}
+   * Example: "properties/1000/iosAppDataStreams/2000"
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * 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 = 2 [(.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 = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for firebaseAppId. + */ + com.google.protobuf.ByteString getFirebaseAppIdBytes(); + + /** + * + * + *
+   * Output only. Time when this stream 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 stream 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 stream was originally created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.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 = 4 [(.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 = 4 [(.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 = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
+   * Required. Immutable. The Apple App Store Bundle ID for the app
+   * Example: "com.example.myiosapp"
+   * 
+ * + * + * string bundle_id = 5 [(.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 = 5 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for bundleId. + */ + com.google.protobuf.ByteString getBundleIdBytes(); + + /** + * + * + *
+   * Human-readable display name for the Data Stream.
+   * The max allowed display name length is 255 UTF-16 code units.
+   * 
+ * + * string display_name = 6; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + /** + * + * + *
+   * Human-readable display name for the Data Stream.
+   * The max allowed display name length is 255 UTF-16 code units.
+   * 
+ * + * string display_name = 6; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); +} 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 new file mode 100644 index 00000000..28442dad --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountsRequest.java @@ -0,0 +1,858 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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; + } + + private ListAccountsRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + pageSize_ = input.readInt32(); + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + case 24: + { + showDeleted_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_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 (!getPageTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, pageToken_); + } + if (showDeleted_ != false) { + output.writeBool(3, showDeleted_); + } + unknownFields.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 (!getPageTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, pageToken_); + } + if (showDeleted_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, showDeleted_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.admin.v1alpha.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 (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + 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) + unknownFields.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() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + 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.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.analytics.admin.v1alpha.ListAccountsRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.ListAccountsRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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 { + return new ListAccountsRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.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 new file mode 100644 index 00000000..eb0adfc8 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountsRequestOrBuilder.java @@ -0,0 +1,87 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/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 new file mode 100644 index 00000000..a71548d4 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountsResponse.java @@ -0,0 +1,1136 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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; + } + + private ListAccountsResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + accounts_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + accounts_.add( + input.readMessage( + com.google.analytics.admin.v1alpha.Account.parser(), extensionRegistry)); + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + accounts_ = java.util.Collections.unmodifiableList(accounts_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_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 (!getNextPageTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + unknownFields.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 (!getNextPageTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.admin.v1alpha.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 (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (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) + unknownFields.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() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getAccountsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (accountsBuilder_ == null) { + accounts_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + accountsBuilder_.clear(); + } + 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.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.analytics.admin.v1alpha.ListAccountsResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.ListAccountsResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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 { + return new ListAccountsResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.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 new file mode 100644 index 00000000..8a80e051 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountsResponseOrBuilder.java @@ -0,0 +1,104 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated 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/ListAndroidAppDataStreamsRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAndroidAppDataStreamsRequest.java new file mode 100644 index 00000000..36aae9a9 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAndroidAppDataStreamsRequest.java @@ -0,0 +1,982 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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 ListAndroidAppDataStreams RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest} + */ +public final class ListAndroidAppDataStreamsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest) + ListAndroidAppDataStreamsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListAndroidAppDataStreamsRequest.newBuilder() to construct. + private ListAndroidAppDataStreamsRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListAndroidAppDataStreamsRequest() { + parent_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListAndroidAppDataStreamsRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListAndroidAppDataStreamsRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + case 16: + { + pageSize_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListAndroidAppDataStreamsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListAndroidAppDataStreamsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest.class, + com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Required. The name of the parent property.
+   * For example, to limit results to app streams under the property with Id
+   * 123: "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 name of the parent property.
+   * For example, to limit results to app streams under the property with Id
+   * 123: "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 call. Provide this to
+   * retrieve the subsequent page.
+   * When paginating, all other parameters provided to
+   * `ListAndroidAppDataStreams` 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 call. Provide this to
+   * retrieve the subsequent page.
+   * When paginating, all other parameters provided to
+   * `ListAndroidAppDataStreams` 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 (!getParentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!getPageTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getParentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!getPageTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest other = + (com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + 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) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for ListAndroidAppDataStreams RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest) + com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListAndroidAppDataStreamsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListAndroidAppDataStreamsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest.class, + com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest.Builder.class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + 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_ListAndroidAppDataStreamsRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest build() { + com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest buildPartial() { + com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest result = + new com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest(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.ListAndroidAppDataStreamsRequest) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest other) { + if (other + == com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest + .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.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The name of the parent property.
+     * For example, to limit results to app streams under the property with Id
+     * 123: "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 name of the parent property.
+     * For example, to limit results to app streams under the property with Id
+     * 123: "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 name of the parent property.
+     * For example, to limit results to app streams under the property with Id
+     * 123: "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 name of the parent property.
+     * For example, to limit results to app streams under the property with Id
+     * 123: "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 name of the parent property.
+     * For example, to limit results to app streams under the property with Id
+     * 123: "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 call. Provide this to
+     * retrieve the subsequent page.
+     * When paginating, all other parameters provided to
+     * `ListAndroidAppDataStreams` 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 call. Provide this to
+     * retrieve the subsequent page.
+     * When paginating, all other parameters provided to
+     * `ListAndroidAppDataStreams` 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 call. Provide this to
+     * retrieve the subsequent page.
+     * When paginating, all other parameters provided to
+     * `ListAndroidAppDataStreams` 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 call. Provide this to
+     * retrieve the subsequent page.
+     * When paginating, all other parameters provided to
+     * `ListAndroidAppDataStreams` 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 call. Provide this to
+     * retrieve the subsequent page.
+     * When paginating, all other parameters provided to
+     * `ListAndroidAppDataStreams` 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.ListAndroidAppDataStreamsRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest) + private static final com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest(); + } + + public static com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAndroidAppDataStreamsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListAndroidAppDataStreamsRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAndroidAppDataStreamsRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAndroidAppDataStreamsRequestOrBuilder.java new file mode 100644 index 00000000..da279013 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAndroidAppDataStreamsRequestOrBuilder.java @@ -0,0 +1,106 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface ListAndroidAppDataStreamsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the parent property.
+   * For example, to limit results to app streams under the property with Id
+   * 123: "properties/123"
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The name of the parent property.
+   * For example, to limit results to app streams under the property with Id
+   * 123: "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 call. Provide this to
+   * retrieve the subsequent page.
+   * When paginating, all other parameters provided to
+   * `ListAndroidAppDataStreams` 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 call. Provide this to
+   * retrieve the subsequent page.
+   * When paginating, all other parameters provided to
+   * `ListAndroidAppDataStreams` 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/ListAndroidAppDataStreamsResponse.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAndroidAppDataStreamsResponse.java new file mode 100644 index 00000000..517384ef --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAndroidAppDataStreamsResponse.java @@ -0,0 +1,1223 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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 ListAndroidDataStreams RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse} + */ +public final class ListAndroidAppDataStreamsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse) + ListAndroidAppDataStreamsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListAndroidAppDataStreamsResponse.newBuilder() to construct. + private ListAndroidAppDataStreamsResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListAndroidAppDataStreamsResponse() { + androidAppDataStreams_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListAndroidAppDataStreamsResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListAndroidAppDataStreamsResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + androidAppDataStreams_ = + new java.util.ArrayList< + com.google.analytics.admin.v1alpha.AndroidAppDataStream>(); + mutable_bitField0_ |= 0x00000001; + } + androidAppDataStreams_.add( + input.readMessage( + com.google.analytics.admin.v1alpha.AndroidAppDataStream.parser(), + extensionRegistry)); + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + androidAppDataStreams_ = java.util.Collections.unmodifiableList(androidAppDataStreams_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListAndroidAppDataStreamsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListAndroidAppDataStreamsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse.class, + com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse.Builder.class); + } + + public static final int ANDROID_APP_DATA_STREAMS_FIELD_NUMBER = 1; + private java.util.List + androidAppDataStreams_; + /** + * + * + *
+   * Results that matched the filter criteria and were accessible to the caller.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_streams = 1; + * + */ + @java.lang.Override + public java.util.List + getAndroidAppDataStreamsList() { + return androidAppDataStreams_; + } + /** + * + * + *
+   * Results that matched the filter criteria and were accessible to the caller.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_streams = 1; + * + */ + @java.lang.Override + public java.util.List + getAndroidAppDataStreamsOrBuilderList() { + return androidAppDataStreams_; + } + /** + * + * + *
+   * Results that matched the filter criteria and were accessible to the caller.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_streams = 1; + * + */ + @java.lang.Override + public int getAndroidAppDataStreamsCount() { + return androidAppDataStreams_.size(); + } + /** + * + * + *
+   * Results that matched the filter criteria and were accessible to the caller.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_streams = 1; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AndroidAppDataStream getAndroidAppDataStreams( + int index) { + return androidAppDataStreams_.get(index); + } + /** + * + * + *
+   * Results that matched the filter criteria and were accessible to the caller.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_streams = 1; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AndroidAppDataStreamOrBuilder + getAndroidAppDataStreamsOrBuilder(int index) { + return androidAppDataStreams_.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 < androidAppDataStreams_.size(); i++) { + output.writeMessage(1, androidAppDataStreams_.get(i)); + } + if (!getNextPageTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < androidAppDataStreams_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, androidAppDataStreams_.get(i)); + } + if (!getNextPageTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse other = + (com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse) obj; + + if (!getAndroidAppDataStreamsList().equals(other.getAndroidAppDataStreamsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getAndroidAppDataStreamsCount() > 0) { + hash = (37 * hash) + ANDROID_APP_DATA_STREAMS_FIELD_NUMBER; + hash = (53 * hash) + getAndroidAppDataStreamsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for ListAndroidDataStreams RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse) + com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListAndroidAppDataStreamsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListAndroidAppDataStreamsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse.class, + com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse.Builder.class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getAndroidAppDataStreamsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (androidAppDataStreamsBuilder_ == null) { + androidAppDataStreams_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + androidAppDataStreamsBuilder_.clear(); + } + 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_ListAndroidAppDataStreamsResponse_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse build() { + com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse buildPartial() { + com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse result = + new com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse(this); + int from_bitField0_ = bitField0_; + if (androidAppDataStreamsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + androidAppDataStreams_ = java.util.Collections.unmodifiableList(androidAppDataStreams_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.androidAppDataStreams_ = androidAppDataStreams_; + } else { + result.androidAppDataStreams_ = androidAppDataStreamsBuilder_.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.ListAndroidAppDataStreamsResponse) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse other) { + if (other + == com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse + .getDefaultInstance()) return this; + if (androidAppDataStreamsBuilder_ == null) { + if (!other.androidAppDataStreams_.isEmpty()) { + if (androidAppDataStreams_.isEmpty()) { + androidAppDataStreams_ = other.androidAppDataStreams_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAndroidAppDataStreamsIsMutable(); + androidAppDataStreams_.addAll(other.androidAppDataStreams_); + } + onChanged(); + } + } else { + if (!other.androidAppDataStreams_.isEmpty()) { + if (androidAppDataStreamsBuilder_.isEmpty()) { + androidAppDataStreamsBuilder_.dispose(); + androidAppDataStreamsBuilder_ = null; + androidAppDataStreams_ = other.androidAppDataStreams_; + bitField0_ = (bitField0_ & ~0x00000001); + androidAppDataStreamsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getAndroidAppDataStreamsFieldBuilder() + : null; + } else { + androidAppDataStreamsBuilder_.addAllMessages(other.androidAppDataStreams_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List + androidAppDataStreams_ = java.util.Collections.emptyList(); + + private void ensureAndroidAppDataStreamsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + androidAppDataStreams_ = + new java.util.ArrayList( + androidAppDataStreams_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.AndroidAppDataStream, + com.google.analytics.admin.v1alpha.AndroidAppDataStream.Builder, + com.google.analytics.admin.v1alpha.AndroidAppDataStreamOrBuilder> + androidAppDataStreamsBuilder_; + + /** + * + * + *
+     * Results that matched the filter criteria and were accessible to the caller.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_streams = 1; + * + */ + public java.util.List + getAndroidAppDataStreamsList() { + if (androidAppDataStreamsBuilder_ == null) { + return java.util.Collections.unmodifiableList(androidAppDataStreams_); + } else { + return androidAppDataStreamsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Results that matched the filter criteria and were accessible to the caller.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_streams = 1; + * + */ + public int getAndroidAppDataStreamsCount() { + if (androidAppDataStreamsBuilder_ == null) { + return androidAppDataStreams_.size(); + } else { + return androidAppDataStreamsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Results that matched the filter criteria and were accessible to the caller.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_streams = 1; + * + */ + public com.google.analytics.admin.v1alpha.AndroidAppDataStream getAndroidAppDataStreams( + int index) { + if (androidAppDataStreamsBuilder_ == null) { + return androidAppDataStreams_.get(index); + } else { + return androidAppDataStreamsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Results that matched the filter criteria and were accessible to the caller.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_streams = 1; + * + */ + public Builder setAndroidAppDataStreams( + int index, com.google.analytics.admin.v1alpha.AndroidAppDataStream value) { + if (androidAppDataStreamsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAndroidAppDataStreamsIsMutable(); + androidAppDataStreams_.set(index, value); + onChanged(); + } else { + androidAppDataStreamsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Results that matched the filter criteria and were accessible to the caller.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_streams = 1; + * + */ + public Builder setAndroidAppDataStreams( + int index, + com.google.analytics.admin.v1alpha.AndroidAppDataStream.Builder builderForValue) { + if (androidAppDataStreamsBuilder_ == null) { + ensureAndroidAppDataStreamsIsMutable(); + androidAppDataStreams_.set(index, builderForValue.build()); + onChanged(); + } else { + androidAppDataStreamsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Results that matched the filter criteria and were accessible to the caller.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_streams = 1; + * + */ + public Builder addAndroidAppDataStreams( + com.google.analytics.admin.v1alpha.AndroidAppDataStream value) { + if (androidAppDataStreamsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAndroidAppDataStreamsIsMutable(); + androidAppDataStreams_.add(value); + onChanged(); + } else { + androidAppDataStreamsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Results that matched the filter criteria and were accessible to the caller.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_streams = 1; + * + */ + public Builder addAndroidAppDataStreams( + int index, com.google.analytics.admin.v1alpha.AndroidAppDataStream value) { + if (androidAppDataStreamsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAndroidAppDataStreamsIsMutable(); + androidAppDataStreams_.add(index, value); + onChanged(); + } else { + androidAppDataStreamsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Results that matched the filter criteria and were accessible to the caller.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_streams = 1; + * + */ + public Builder addAndroidAppDataStreams( + com.google.analytics.admin.v1alpha.AndroidAppDataStream.Builder builderForValue) { + if (androidAppDataStreamsBuilder_ == null) { + ensureAndroidAppDataStreamsIsMutable(); + androidAppDataStreams_.add(builderForValue.build()); + onChanged(); + } else { + androidAppDataStreamsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Results that matched the filter criteria and were accessible to the caller.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_streams = 1; + * + */ + public Builder addAndroidAppDataStreams( + int index, + com.google.analytics.admin.v1alpha.AndroidAppDataStream.Builder builderForValue) { + if (androidAppDataStreamsBuilder_ == null) { + ensureAndroidAppDataStreamsIsMutable(); + androidAppDataStreams_.add(index, builderForValue.build()); + onChanged(); + } else { + androidAppDataStreamsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Results that matched the filter criteria and were accessible to the caller.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_streams = 1; + * + */ + public Builder addAllAndroidAppDataStreams( + java.lang.Iterable + values) { + if (androidAppDataStreamsBuilder_ == null) { + ensureAndroidAppDataStreamsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, androidAppDataStreams_); + onChanged(); + } else { + androidAppDataStreamsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Results that matched the filter criteria and were accessible to the caller.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_streams = 1; + * + */ + public Builder clearAndroidAppDataStreams() { + if (androidAppDataStreamsBuilder_ == null) { + androidAppDataStreams_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + androidAppDataStreamsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Results that matched the filter criteria and were accessible to the caller.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_streams = 1; + * + */ + public Builder removeAndroidAppDataStreams(int index) { + if (androidAppDataStreamsBuilder_ == null) { + ensureAndroidAppDataStreamsIsMutable(); + androidAppDataStreams_.remove(index); + onChanged(); + } else { + androidAppDataStreamsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Results that matched the filter criteria and were accessible to the caller.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_streams = 1; + * + */ + public com.google.analytics.admin.v1alpha.AndroidAppDataStream.Builder + getAndroidAppDataStreamsBuilder(int index) { + return getAndroidAppDataStreamsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Results that matched the filter criteria and were accessible to the caller.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_streams = 1; + * + */ + public com.google.analytics.admin.v1alpha.AndroidAppDataStreamOrBuilder + getAndroidAppDataStreamsOrBuilder(int index) { + if (androidAppDataStreamsBuilder_ == null) { + return androidAppDataStreams_.get(index); + } else { + return androidAppDataStreamsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Results that matched the filter criteria and were accessible to the caller.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_streams = 1; + * + */ + public java.util.List< + ? extends com.google.analytics.admin.v1alpha.AndroidAppDataStreamOrBuilder> + getAndroidAppDataStreamsOrBuilderList() { + if (androidAppDataStreamsBuilder_ != null) { + return androidAppDataStreamsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(androidAppDataStreams_); + } + } + /** + * + * + *
+     * Results that matched the filter criteria and were accessible to the caller.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_streams = 1; + * + */ + public com.google.analytics.admin.v1alpha.AndroidAppDataStream.Builder + addAndroidAppDataStreamsBuilder() { + return getAndroidAppDataStreamsFieldBuilder() + .addBuilder(com.google.analytics.admin.v1alpha.AndroidAppDataStream.getDefaultInstance()); + } + /** + * + * + *
+     * Results that matched the filter criteria and were accessible to the caller.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_streams = 1; + * + */ + public com.google.analytics.admin.v1alpha.AndroidAppDataStream.Builder + addAndroidAppDataStreamsBuilder(int index) { + return getAndroidAppDataStreamsFieldBuilder() + .addBuilder( + index, com.google.analytics.admin.v1alpha.AndroidAppDataStream.getDefaultInstance()); + } + /** + * + * + *
+     * Results that matched the filter criteria and were accessible to the caller.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_streams = 1; + * + */ + public java.util.List + getAndroidAppDataStreamsBuilderList() { + return getAndroidAppDataStreamsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.AndroidAppDataStream, + com.google.analytics.admin.v1alpha.AndroidAppDataStream.Builder, + com.google.analytics.admin.v1alpha.AndroidAppDataStreamOrBuilder> + getAndroidAppDataStreamsFieldBuilder() { + if (androidAppDataStreamsBuilder_ == null) { + androidAppDataStreamsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.AndroidAppDataStream, + com.google.analytics.admin.v1alpha.AndroidAppDataStream.Builder, + com.google.analytics.admin.v1alpha.AndroidAppDataStreamOrBuilder>( + androidAppDataStreams_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + androidAppDataStreams_ = null; + } + return androidAppDataStreamsBuilder_; + } + + 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.ListAndroidAppDataStreamsResponse) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse) + private static final com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse(); + } + + public static com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAndroidAppDataStreamsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListAndroidAppDataStreamsResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAndroidAppDataStreamsResponseOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAndroidAppDataStreamsResponseOrBuilder.java new file mode 100644 index 00000000..1fbdc3b8 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAndroidAppDataStreamsResponseOrBuilder.java @@ -0,0 +1,116 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface ListAndroidAppDataStreamsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Results that matched the filter criteria and were accessible to the caller.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_streams = 1; + * + */ + java.util.List + getAndroidAppDataStreamsList(); + /** + * + * + *
+   * Results that matched the filter criteria and were accessible to the caller.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_streams = 1; + * + */ + com.google.analytics.admin.v1alpha.AndroidAppDataStream getAndroidAppDataStreams(int index); + /** + * + * + *
+   * Results that matched the filter criteria and were accessible to the caller.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_streams = 1; + * + */ + int getAndroidAppDataStreamsCount(); + /** + * + * + *
+   * Results that matched the filter criteria and were accessible to the caller.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_streams = 1; + * + */ + java.util.List + getAndroidAppDataStreamsOrBuilderList(); + /** + * + * + *
+   * Results that matched the filter criteria and were accessible to the caller.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_streams = 1; + * + */ + com.google.analytics.admin.v1alpha.AndroidAppDataStreamOrBuilder + getAndroidAppDataStreamsOrBuilder(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 new file mode 100644 index 00000000..64953b59 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListFirebaseLinksRequest.java @@ -0,0 +1,658 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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_ = ""; + } + + @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; + } + + private ListFirebaseLinksRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_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; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getParentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getParentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.admin.v1alpha.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 (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (29 * hash) + unknownFields.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() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + 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_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_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.analytics.admin.v1alpha.ListFirebaseLinksRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.ListFirebaseLinksRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.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 { + return new ListFirebaseLinksRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.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 new file mode 100644 index 00000000..fe257444 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListFirebaseLinksRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/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(); +} 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 new file mode 100644 index 00000000..f3197c1a --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListFirebaseLinksResponse.java @@ -0,0 +1,966 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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(); + } + + @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; + } + + private ListFirebaseLinksResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + firebaseLinks_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + firebaseLinks_.add( + input.readMessage( + com.google.analytics.admin.v1alpha.FirebaseLink.parser(), extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + firebaseLinks_ = java.util.Collections.unmodifiableList(firebaseLinks_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_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); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + 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)); + } + unknownFields.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)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.admin.v1alpha.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 (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getFirebaseLinksCount() > 0) { + hash = (37 * hash) + FIREBASE_LINKS_FIELD_NUMBER; + hash = (53 * hash) + getFirebaseLinksList().hashCode(); + } + hash = (29 * hash) + unknownFields.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() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getFirebaseLinksFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (firebaseLinksBuilder_ == null) { + firebaseLinks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + firebaseLinksBuilder_.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_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(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.analytics.admin.v1alpha.ListFirebaseLinksResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.ListFirebaseLinksResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.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 { + return new ListFirebaseLinksResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.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 new file mode 100644 index 00000000..7d3430c9 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListFirebaseLinksResponseOrBuilder.java @@ -0,0 +1,77 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/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); +} 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 new file mode 100644 index 00000000..2fc9e697 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListGoogleAdsLinksRequest.java @@ -0,0 +1,952 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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; + } + + private ListGoogleAdsLinksRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + case 16: + { + pageSize_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_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 (!getParentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!getPageTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getParentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!getPageTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.admin.v1alpha.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 (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + 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) + unknownFields.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() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + 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.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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 { + return new ListGoogleAdsLinksRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.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 new file mode 100644 index 00000000..ad692149 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListGoogleAdsLinksRequestOrBuilder.java @@ -0,0 +1,100 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated 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 new file mode 100644 index 00000000..7e07c3dc --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListGoogleAdsLinksResponse.java @@ -0,0 +1,1155 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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; + } + + private ListGoogleAdsLinksResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + googleAdsLinks_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + googleAdsLinks_.add( + input.readMessage( + com.google.analytics.admin.v1alpha.GoogleAdsLink.parser(), + extensionRegistry)); + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + googleAdsLinks_ = java.util.Collections.unmodifiableList(googleAdsLinks_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_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 (!getNextPageTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + unknownFields.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 (!getNextPageTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.admin.v1alpha.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 (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (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) + unknownFields.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() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getGoogleAdsLinksFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (googleAdsLinksBuilder_ == null) { + googleAdsLinks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + googleAdsLinksBuilder_.clear(); + } + 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.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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 { + return new ListGoogleAdsLinksResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.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 new file mode 100644 index 00000000..928e5d44 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListGoogleAdsLinksResponseOrBuilder.java @@ -0,0 +1,104 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated 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/ListIosAppDataStreamsRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListIosAppDataStreamsRequest.java new file mode 100644 index 00000000..5bf646d9 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListIosAppDataStreamsRequest.java @@ -0,0 +1,970 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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 ListIosAppDataStreams RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest} + */ +public final class ListIosAppDataStreamsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest) + ListIosAppDataStreamsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListIosAppDataStreamsRequest.newBuilder() to construct. + private ListIosAppDataStreamsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListIosAppDataStreamsRequest() { + parent_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListIosAppDataStreamsRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListIosAppDataStreamsRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + case 16: + { + pageSize_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListIosAppDataStreamsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListIosAppDataStreamsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest.class, + com.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Required. The name of the parent property.
+   * For example, to list results of app streams under the property with Id
+   * 123: "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 name of the parent property.
+   * For example, to list results of app streams under the property with Id
+   * 123: "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 `ListIosAppDataStreams`
+   * call. Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to `ListIosAppDataStreams`
+   * 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 `ListIosAppDataStreams`
+   * call. Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to `ListIosAppDataStreams`
+   * 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 (!getParentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!getPageTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getParentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!getPageTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest other = + (com.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + 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) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for ListIosAppDataStreams RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest) + com.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListIosAppDataStreamsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListIosAppDataStreamsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest.class, + com.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + 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_ListIosAppDataStreamsRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest build() { + com.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest buildPartial() { + com.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest result = + new com.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest(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.ListIosAppDataStreamsRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest other) { + if (other + == com.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest.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.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The name of the parent property.
+     * For example, to list results of app streams under the property with Id
+     * 123: "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 name of the parent property.
+     * For example, to list results of app streams under the property with Id
+     * 123: "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 name of the parent property.
+     * For example, to list results of app streams under the property with Id
+     * 123: "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 name of the parent property.
+     * For example, to list results of app streams under the property with Id
+     * 123: "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 name of the parent property.
+     * For example, to list results of app streams under the property with Id
+     * 123: "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 `ListIosAppDataStreams`
+     * call. Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListIosAppDataStreams`
+     * 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 `ListIosAppDataStreams`
+     * call. Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListIosAppDataStreams`
+     * 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 `ListIosAppDataStreams`
+     * call. Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListIosAppDataStreams`
+     * 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 `ListIosAppDataStreams`
+     * call. Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListIosAppDataStreams`
+     * 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 `ListIosAppDataStreams`
+     * call. Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListIosAppDataStreams`
+     * 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.ListIosAppDataStreamsRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest) + private static final com.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest(); + } + + public static com.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListIosAppDataStreamsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListIosAppDataStreamsRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListIosAppDataStreamsRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListIosAppDataStreamsRequestOrBuilder.java new file mode 100644 index 00000000..faf69882 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListIosAppDataStreamsRequestOrBuilder.java @@ -0,0 +1,104 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface ListIosAppDataStreamsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the parent property.
+   * For example, to list results of app streams under the property with Id
+   * 123: "properties/123"
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The name of the parent property.
+   * For example, to list results of app streams under the property with Id
+   * 123: "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 `ListIosAppDataStreams`
+   * call. Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to `ListIosAppDataStreams`
+   * 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 `ListIosAppDataStreams`
+   * call. Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to `ListIosAppDataStreams`
+   * 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/ListIosAppDataStreamsResponse.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListIosAppDataStreamsResponse.java new file mode 100644 index 00000000..f58da292 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListIosAppDataStreamsResponse.java @@ -0,0 +1,1185 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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 ListIosAppDataStreams RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse} + */ +public final class ListIosAppDataStreamsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse) + ListIosAppDataStreamsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListIosAppDataStreamsResponse.newBuilder() to construct. + private ListIosAppDataStreamsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListIosAppDataStreamsResponse() { + iosAppDataStreams_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListIosAppDataStreamsResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListIosAppDataStreamsResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + iosAppDataStreams_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + iosAppDataStreams_.add( + input.readMessage( + com.google.analytics.admin.v1alpha.IosAppDataStream.parser(), + extensionRegistry)); + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + iosAppDataStreams_ = java.util.Collections.unmodifiableList(iosAppDataStreams_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListIosAppDataStreamsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListIosAppDataStreamsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse.class, + com.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse.Builder.class); + } + + public static final int IOS_APP_DATA_STREAMS_FIELD_NUMBER = 1; + private java.util.List iosAppDataStreams_; + /** + * + * + *
+   * Results that matched the filter criteria and were accessible to the caller.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_streams = 1; + * + */ + @java.lang.Override + public java.util.List + getIosAppDataStreamsList() { + return iosAppDataStreams_; + } + /** + * + * + *
+   * Results that matched the filter criteria and were accessible to the caller.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_streams = 1; + * + */ + @java.lang.Override + public java.util.List + getIosAppDataStreamsOrBuilderList() { + return iosAppDataStreams_; + } + /** + * + * + *
+   * Results that matched the filter criteria and were accessible to the caller.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_streams = 1; + * + */ + @java.lang.Override + public int getIosAppDataStreamsCount() { + return iosAppDataStreams_.size(); + } + /** + * + * + *
+   * Results that matched the filter criteria and were accessible to the caller.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_streams = 1; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.IosAppDataStream getIosAppDataStreams(int index) { + return iosAppDataStreams_.get(index); + } + /** + * + * + *
+   * Results that matched the filter criteria and were accessible to the caller.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_streams = 1; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.IosAppDataStreamOrBuilder getIosAppDataStreamsOrBuilder( + int index) { + return iosAppDataStreams_.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 < iosAppDataStreams_.size(); i++) { + output.writeMessage(1, iosAppDataStreams_.get(i)); + } + if (!getNextPageTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < iosAppDataStreams_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, iosAppDataStreams_.get(i)); + } + if (!getNextPageTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse other = + (com.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse) obj; + + if (!getIosAppDataStreamsList().equals(other.getIosAppDataStreamsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getIosAppDataStreamsCount() > 0) { + hash = (37 * hash) + IOS_APP_DATA_STREAMS_FIELD_NUMBER; + hash = (53 * hash) + getIosAppDataStreamsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for ListIosAppDataStreams RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse) + com.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListIosAppDataStreamsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListIosAppDataStreamsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse.class, + com.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getIosAppDataStreamsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (iosAppDataStreamsBuilder_ == null) { + iosAppDataStreams_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + iosAppDataStreamsBuilder_.clear(); + } + 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_ListIosAppDataStreamsResponse_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse build() { + com.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse buildPartial() { + com.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse result = + new com.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse(this); + int from_bitField0_ = bitField0_; + if (iosAppDataStreamsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + iosAppDataStreams_ = java.util.Collections.unmodifiableList(iosAppDataStreams_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.iosAppDataStreams_ = iosAppDataStreams_; + } else { + result.iosAppDataStreams_ = iosAppDataStreamsBuilder_.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.ListIosAppDataStreamsResponse) { + return mergeFrom((com.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse other) { + if (other + == com.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse.getDefaultInstance()) + return this; + if (iosAppDataStreamsBuilder_ == null) { + if (!other.iosAppDataStreams_.isEmpty()) { + if (iosAppDataStreams_.isEmpty()) { + iosAppDataStreams_ = other.iosAppDataStreams_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureIosAppDataStreamsIsMutable(); + iosAppDataStreams_.addAll(other.iosAppDataStreams_); + } + onChanged(); + } + } else { + if (!other.iosAppDataStreams_.isEmpty()) { + if (iosAppDataStreamsBuilder_.isEmpty()) { + iosAppDataStreamsBuilder_.dispose(); + iosAppDataStreamsBuilder_ = null; + iosAppDataStreams_ = other.iosAppDataStreams_; + bitField0_ = (bitField0_ & ~0x00000001); + iosAppDataStreamsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getIosAppDataStreamsFieldBuilder() + : null; + } else { + iosAppDataStreamsBuilder_.addAllMessages(other.iosAppDataStreams_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List iosAppDataStreams_ = + java.util.Collections.emptyList(); + + private void ensureIosAppDataStreamsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + iosAppDataStreams_ = + new java.util.ArrayList( + iosAppDataStreams_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.IosAppDataStream, + com.google.analytics.admin.v1alpha.IosAppDataStream.Builder, + com.google.analytics.admin.v1alpha.IosAppDataStreamOrBuilder> + iosAppDataStreamsBuilder_; + + /** + * + * + *
+     * Results that matched the filter criteria and were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_streams = 1; + * + */ + public java.util.List + getIosAppDataStreamsList() { + if (iosAppDataStreamsBuilder_ == null) { + return java.util.Collections.unmodifiableList(iosAppDataStreams_); + } else { + return iosAppDataStreamsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Results that matched the filter criteria and were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_streams = 1; + * + */ + public int getIosAppDataStreamsCount() { + if (iosAppDataStreamsBuilder_ == null) { + return iosAppDataStreams_.size(); + } else { + return iosAppDataStreamsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Results that matched the filter criteria and were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_streams = 1; + * + */ + public com.google.analytics.admin.v1alpha.IosAppDataStream getIosAppDataStreams(int index) { + if (iosAppDataStreamsBuilder_ == null) { + return iosAppDataStreams_.get(index); + } else { + return iosAppDataStreamsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Results that matched the filter criteria and were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_streams = 1; + * + */ + public Builder setIosAppDataStreams( + int index, com.google.analytics.admin.v1alpha.IosAppDataStream value) { + if (iosAppDataStreamsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureIosAppDataStreamsIsMutable(); + iosAppDataStreams_.set(index, value); + onChanged(); + } else { + iosAppDataStreamsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Results that matched the filter criteria and were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_streams = 1; + * + */ + public Builder setIosAppDataStreams( + int index, com.google.analytics.admin.v1alpha.IosAppDataStream.Builder builderForValue) { + if (iosAppDataStreamsBuilder_ == null) { + ensureIosAppDataStreamsIsMutable(); + iosAppDataStreams_.set(index, builderForValue.build()); + onChanged(); + } else { + iosAppDataStreamsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Results that matched the filter criteria and were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_streams = 1; + * + */ + public Builder addIosAppDataStreams(com.google.analytics.admin.v1alpha.IosAppDataStream value) { + if (iosAppDataStreamsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureIosAppDataStreamsIsMutable(); + iosAppDataStreams_.add(value); + onChanged(); + } else { + iosAppDataStreamsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Results that matched the filter criteria and were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_streams = 1; + * + */ + public Builder addIosAppDataStreams( + int index, com.google.analytics.admin.v1alpha.IosAppDataStream value) { + if (iosAppDataStreamsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureIosAppDataStreamsIsMutable(); + iosAppDataStreams_.add(index, value); + onChanged(); + } else { + iosAppDataStreamsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Results that matched the filter criteria and were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_streams = 1; + * + */ + public Builder addIosAppDataStreams( + com.google.analytics.admin.v1alpha.IosAppDataStream.Builder builderForValue) { + if (iosAppDataStreamsBuilder_ == null) { + ensureIosAppDataStreamsIsMutable(); + iosAppDataStreams_.add(builderForValue.build()); + onChanged(); + } else { + iosAppDataStreamsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Results that matched the filter criteria and were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_streams = 1; + * + */ + public Builder addIosAppDataStreams( + int index, com.google.analytics.admin.v1alpha.IosAppDataStream.Builder builderForValue) { + if (iosAppDataStreamsBuilder_ == null) { + ensureIosAppDataStreamsIsMutable(); + iosAppDataStreams_.add(index, builderForValue.build()); + onChanged(); + } else { + iosAppDataStreamsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Results that matched the filter criteria and were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_streams = 1; + * + */ + public Builder addAllIosAppDataStreams( + java.lang.Iterable values) { + if (iosAppDataStreamsBuilder_ == null) { + ensureIosAppDataStreamsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, iosAppDataStreams_); + onChanged(); + } else { + iosAppDataStreamsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Results that matched the filter criteria and were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_streams = 1; + * + */ + public Builder clearIosAppDataStreams() { + if (iosAppDataStreamsBuilder_ == null) { + iosAppDataStreams_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + iosAppDataStreamsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Results that matched the filter criteria and were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_streams = 1; + * + */ + public Builder removeIosAppDataStreams(int index) { + if (iosAppDataStreamsBuilder_ == null) { + ensureIosAppDataStreamsIsMutable(); + iosAppDataStreams_.remove(index); + onChanged(); + } else { + iosAppDataStreamsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Results that matched the filter criteria and were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_streams = 1; + * + */ + public com.google.analytics.admin.v1alpha.IosAppDataStream.Builder getIosAppDataStreamsBuilder( + int index) { + return getIosAppDataStreamsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Results that matched the filter criteria and were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_streams = 1; + * + */ + public com.google.analytics.admin.v1alpha.IosAppDataStreamOrBuilder + getIosAppDataStreamsOrBuilder(int index) { + if (iosAppDataStreamsBuilder_ == null) { + return iosAppDataStreams_.get(index); + } else { + return iosAppDataStreamsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Results that matched the filter criteria and were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_streams = 1; + * + */ + public java.util.List + getIosAppDataStreamsOrBuilderList() { + if (iosAppDataStreamsBuilder_ != null) { + return iosAppDataStreamsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(iosAppDataStreams_); + } + } + /** + * + * + *
+     * Results that matched the filter criteria and were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_streams = 1; + * + */ + public com.google.analytics.admin.v1alpha.IosAppDataStream.Builder + addIosAppDataStreamsBuilder() { + return getIosAppDataStreamsFieldBuilder() + .addBuilder(com.google.analytics.admin.v1alpha.IosAppDataStream.getDefaultInstance()); + } + /** + * + * + *
+     * Results that matched the filter criteria and were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_streams = 1; + * + */ + public com.google.analytics.admin.v1alpha.IosAppDataStream.Builder addIosAppDataStreamsBuilder( + int index) { + return getIosAppDataStreamsFieldBuilder() + .addBuilder( + index, com.google.analytics.admin.v1alpha.IosAppDataStream.getDefaultInstance()); + } + /** + * + * + *
+     * Results that matched the filter criteria and were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_streams = 1; + * + */ + public java.util.List + getIosAppDataStreamsBuilderList() { + return getIosAppDataStreamsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.IosAppDataStream, + com.google.analytics.admin.v1alpha.IosAppDataStream.Builder, + com.google.analytics.admin.v1alpha.IosAppDataStreamOrBuilder> + getIosAppDataStreamsFieldBuilder() { + if (iosAppDataStreamsBuilder_ == null) { + iosAppDataStreamsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.IosAppDataStream, + com.google.analytics.admin.v1alpha.IosAppDataStream.Builder, + com.google.analytics.admin.v1alpha.IosAppDataStreamOrBuilder>( + iosAppDataStreams_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + iosAppDataStreams_ = null; + } + return iosAppDataStreamsBuilder_; + } + + 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.ListIosAppDataStreamsResponse) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse) + private static final com.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse(); + } + + public static com.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListIosAppDataStreamsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListIosAppDataStreamsResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListIosAppDataStreamsResponseOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListIosAppDataStreamsResponseOrBuilder.java new file mode 100644 index 00000000..a543349c --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListIosAppDataStreamsResponseOrBuilder.java @@ -0,0 +1,110 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface ListIosAppDataStreamsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Results that matched the filter criteria and were accessible to the caller.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_streams = 1; + * + */ + java.util.List getIosAppDataStreamsList(); + /** + * + * + *
+   * Results that matched the filter criteria and were accessible to the caller.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_streams = 1; + * + */ + com.google.analytics.admin.v1alpha.IosAppDataStream getIosAppDataStreams(int index); + /** + * + * + *
+   * Results that matched the filter criteria and were accessible to the caller.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_streams = 1; + * + */ + int getIosAppDataStreamsCount(); + /** + * + * + *
+   * Results that matched the filter criteria and were accessible to the caller.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_streams = 1; + * + */ + java.util.List + getIosAppDataStreamsOrBuilderList(); + /** + * + * + *
+   * Results that matched the filter criteria and were accessible to the caller.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_streams = 1; + * + */ + com.google.analytics.admin.v1alpha.IosAppDataStreamOrBuilder getIosAppDataStreamsOrBuilder( + 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 new file mode 100644 index 00000000..41747c65 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListPropertiesRequest.java @@ -0,0 +1,1100 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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; + } + + private ListPropertiesRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + filter_ = s; + break; + } + case 16: + { + pageSize_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + case 32: + { + showDeleted_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_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) 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.         |
+   * | 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) 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.         |
+   * | 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 (!getFilterBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, filter_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!getPageTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + if (showDeleted_ != false) { + output.writeBool(4, showDeleted_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getFilterBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, filter_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!getPageTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + if (showDeleted_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, showDeleted_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.admin.v1alpha.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 (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + 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) + unknownFields.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() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + 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.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.analytics.admin.v1alpha.ListPropertiesRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.ListPropertiesRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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) 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.         |
+     * | 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) 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.         |
+     * | 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) 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.         |
+     * | 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) 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.         |
+     * | 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) 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.         |
+     * | 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 { + return new ListPropertiesRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.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 new file mode 100644 index 00000000..24e12752 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListPropertiesRequestOrBuilder.java @@ -0,0 +1,130 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated 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) 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.         |
+   * | 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) 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.         |
+   * | 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 new file mode 100644 index 00000000..ba59ebbf --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListPropertiesResponse.java @@ -0,0 +1,1139 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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; + } + + private ListPropertiesResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + properties_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + properties_.add( + input.readMessage( + com.google.analytics.admin.v1alpha.Property.parser(), extensionRegistry)); + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + properties_ = java.util.Collections.unmodifiableList(properties_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_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 (!getNextPageTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + unknownFields.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 (!getNextPageTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.admin.v1alpha.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 (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (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) + unknownFields.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() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getPropertiesFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (propertiesBuilder_ == null) { + properties_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + propertiesBuilder_.clear(); + } + 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.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.analytics.admin.v1alpha.ListPropertiesResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.ListPropertiesResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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 { + return new ListPropertiesResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.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 new file mode 100644 index 00000000..6547dac4 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListPropertiesResponseOrBuilder.java @@ -0,0 +1,104 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated 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 new file mode 100644 index 00000000..a70b2156 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListUserLinksRequest.java @@ -0,0 +1,953 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for 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; + } + + private ListUserLinksRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + case 16: + { + pageSize_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_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 (!getParentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!getPageTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getParentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!getPageTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.admin.v1alpha.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 (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + 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) + unknownFields.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() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + 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.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.analytics.admin.v1alpha.ListUserLinksRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.ListUserLinksRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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 { + return new ListUserLinksRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.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 new file mode 100644 index 00000000..ab4ba325 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListUserLinksRequestOrBuilder.java @@ -0,0 +1,101 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated 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 new file mode 100644 index 00000000..c4f378e1 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListUserLinksResponse.java @@ -0,0 +1,1138 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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; + } + + private ListUserLinksResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + userLinks_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + userLinks_.add( + input.readMessage( + com.google.analytics.admin.v1alpha.UserLink.parser(), extensionRegistry)); + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + userLinks_ = java.util.Collections.unmodifiableList(userLinks_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_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 (!getNextPageTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + unknownFields.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 (!getNextPageTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.admin.v1alpha.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 (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (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) + unknownFields.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() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getUserLinksFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (userLinksBuilder_ == null) { + userLinks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + userLinksBuilder_.clear(); + } + 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.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.analytics.admin.v1alpha.ListUserLinksResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.ListUserLinksResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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 { + return new ListUserLinksResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.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 new file mode 100644 index 00000000..b7967bc7 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListUserLinksResponseOrBuilder.java @@ -0,0 +1,104 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated 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/ListWebDataStreamsRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListWebDataStreamsRequest.java new file mode 100644 index 00000000..64d862e2 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListWebDataStreamsRequest.java @@ -0,0 +1,966 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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 ListWebDataStreams RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListWebDataStreamsRequest} + */ +public final class ListWebDataStreamsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListWebDataStreamsRequest) + ListWebDataStreamsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListWebDataStreamsRequest.newBuilder() to construct. + private ListWebDataStreamsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListWebDataStreamsRequest() { + parent_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListWebDataStreamsRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListWebDataStreamsRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + case 16: + { + pageSize_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListWebDataStreamsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListWebDataStreamsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListWebDataStreamsRequest.class, + com.google.analytics.admin.v1alpha.ListWebDataStreamsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Required. The name of the parent property.
+   * For example, to list results of web streams under the property with Id
+   * 123: "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 name of the parent property.
+   * For example, to list results of web streams under the property with Id
+   * 123: "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 `ListWebDataStreams` call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to `ListWebDataStreams` 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 `ListWebDataStreams` call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to `ListWebDataStreams` 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 (!getParentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!getPageTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getParentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!getPageTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.admin.v1alpha.ListWebDataStreamsRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.ListWebDataStreamsRequest other = + (com.google.analytics.admin.v1alpha.ListWebDataStreamsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + 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) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.ListWebDataStreamsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListWebDataStreamsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListWebDataStreamsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListWebDataStreamsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListWebDataStreamsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListWebDataStreamsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListWebDataStreamsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListWebDataStreamsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListWebDataStreamsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListWebDataStreamsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListWebDataStreamsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListWebDataStreamsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.ListWebDataStreamsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for ListWebDataStreams RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListWebDataStreamsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListWebDataStreamsRequest) + com.google.analytics.admin.v1alpha.ListWebDataStreamsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListWebDataStreamsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListWebDataStreamsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListWebDataStreamsRequest.class, + com.google.analytics.admin.v1alpha.ListWebDataStreamsRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.ListWebDataStreamsRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + 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_ListWebDataStreamsRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListWebDataStreamsRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.ListWebDataStreamsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListWebDataStreamsRequest build() { + com.google.analytics.admin.v1alpha.ListWebDataStreamsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListWebDataStreamsRequest buildPartial() { + com.google.analytics.admin.v1alpha.ListWebDataStreamsRequest result = + new com.google.analytics.admin.v1alpha.ListWebDataStreamsRequest(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.ListWebDataStreamsRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.ListWebDataStreamsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.ListWebDataStreamsRequest other) { + if (other + == com.google.analytics.admin.v1alpha.ListWebDataStreamsRequest.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.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.analytics.admin.v1alpha.ListWebDataStreamsRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.ListWebDataStreamsRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The name of the parent property.
+     * For example, to list results of web streams under the property with Id
+     * 123: "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 name of the parent property.
+     * For example, to list results of web streams under the property with Id
+     * 123: "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 name of the parent property.
+     * For example, to list results of web streams under the property with Id
+     * 123: "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 name of the parent property.
+     * For example, to list results of web streams under the property with Id
+     * 123: "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 name of the parent property.
+     * For example, to list results of web streams under the property with Id
+     * 123: "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 `ListWebDataStreams` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListWebDataStreams` 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 `ListWebDataStreams` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListWebDataStreams` 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 `ListWebDataStreams` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListWebDataStreams` 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 `ListWebDataStreams` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListWebDataStreams` 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 `ListWebDataStreams` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListWebDataStreams` 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.ListWebDataStreamsRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListWebDataStreamsRequest) + private static final com.google.analytics.admin.v1alpha.ListWebDataStreamsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ListWebDataStreamsRequest(); + } + + public static com.google.analytics.admin.v1alpha.ListWebDataStreamsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListWebDataStreamsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListWebDataStreamsRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListWebDataStreamsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListWebDataStreamsRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListWebDataStreamsRequestOrBuilder.java new file mode 100644 index 00000000..57370f45 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListWebDataStreamsRequestOrBuilder.java @@ -0,0 +1,104 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface ListWebDataStreamsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListWebDataStreamsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the parent property.
+   * For example, to list results of web streams under the property with Id
+   * 123: "properties/123"
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The name of the parent property.
+   * For example, to list results of web streams under the property with Id
+   * 123: "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 `ListWebDataStreams` call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to `ListWebDataStreams` 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 `ListWebDataStreams` call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to `ListWebDataStreams` 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/ListWebDataStreamsResponse.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListWebDataStreamsResponse.java new file mode 100644 index 00000000..0f8db588 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListWebDataStreamsResponse.java @@ -0,0 +1,1155 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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 ListWebDataStreams RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListWebDataStreamsResponse} + */ +public final class ListWebDataStreamsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListWebDataStreamsResponse) + ListWebDataStreamsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListWebDataStreamsResponse.newBuilder() to construct. + private ListWebDataStreamsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListWebDataStreamsResponse() { + webDataStreams_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListWebDataStreamsResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListWebDataStreamsResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + webDataStreams_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + webDataStreams_.add( + input.readMessage( + com.google.analytics.admin.v1alpha.WebDataStream.parser(), + extensionRegistry)); + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + webDataStreams_ = java.util.Collections.unmodifiableList(webDataStreams_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListWebDataStreamsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListWebDataStreamsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListWebDataStreamsResponse.class, + com.google.analytics.admin.v1alpha.ListWebDataStreamsResponse.Builder.class); + } + + public static final int WEB_DATA_STREAMS_FIELD_NUMBER = 1; + private java.util.List webDataStreams_; + /** + * + * + *
+   * Results that matched the filter criteria and were accessible to the caller.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.WebDataStream web_data_streams = 1; + */ + @java.lang.Override + public java.util.List getWebDataStreamsList() { + return webDataStreams_; + } + /** + * + * + *
+   * Results that matched the filter criteria and were accessible to the caller.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.WebDataStream web_data_streams = 1; + */ + @java.lang.Override + public java.util.List + getWebDataStreamsOrBuilderList() { + return webDataStreams_; + } + /** + * + * + *
+   * Results that matched the filter criteria and were accessible to the caller.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.WebDataStream web_data_streams = 1; + */ + @java.lang.Override + public int getWebDataStreamsCount() { + return webDataStreams_.size(); + } + /** + * + * + *
+   * Results that matched the filter criteria and were accessible to the caller.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.WebDataStream web_data_streams = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.WebDataStream getWebDataStreams(int index) { + return webDataStreams_.get(index); + } + /** + * + * + *
+   * Results that matched the filter criteria and were accessible to the caller.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.WebDataStream web_data_streams = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.WebDataStreamOrBuilder getWebDataStreamsOrBuilder( + int index) { + return webDataStreams_.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 < webDataStreams_.size(); i++) { + output.writeMessage(1, webDataStreams_.get(i)); + } + if (!getNextPageTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < webDataStreams_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, webDataStreams_.get(i)); + } + if (!getNextPageTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.admin.v1alpha.ListWebDataStreamsResponse)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.ListWebDataStreamsResponse other = + (com.google.analytics.admin.v1alpha.ListWebDataStreamsResponse) obj; + + if (!getWebDataStreamsList().equals(other.getWebDataStreamsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getWebDataStreamsCount() > 0) { + hash = (37 * hash) + WEB_DATA_STREAMS_FIELD_NUMBER; + hash = (53 * hash) + getWebDataStreamsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.ListWebDataStreamsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListWebDataStreamsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListWebDataStreamsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListWebDataStreamsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListWebDataStreamsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListWebDataStreamsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListWebDataStreamsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListWebDataStreamsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListWebDataStreamsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListWebDataStreamsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListWebDataStreamsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListWebDataStreamsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.ListWebDataStreamsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for ListWebDataStreams RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListWebDataStreamsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListWebDataStreamsResponse) + com.google.analytics.admin.v1alpha.ListWebDataStreamsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListWebDataStreamsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListWebDataStreamsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListWebDataStreamsResponse.class, + com.google.analytics.admin.v1alpha.ListWebDataStreamsResponse.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.ListWebDataStreamsResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getWebDataStreamsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (webDataStreamsBuilder_ == null) { + webDataStreams_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + webDataStreamsBuilder_.clear(); + } + 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_ListWebDataStreamsResponse_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListWebDataStreamsResponse + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.ListWebDataStreamsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListWebDataStreamsResponse build() { + com.google.analytics.admin.v1alpha.ListWebDataStreamsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListWebDataStreamsResponse buildPartial() { + com.google.analytics.admin.v1alpha.ListWebDataStreamsResponse result = + new com.google.analytics.admin.v1alpha.ListWebDataStreamsResponse(this); + int from_bitField0_ = bitField0_; + if (webDataStreamsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + webDataStreams_ = java.util.Collections.unmodifiableList(webDataStreams_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.webDataStreams_ = webDataStreams_; + } else { + result.webDataStreams_ = webDataStreamsBuilder_.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.ListWebDataStreamsResponse) { + return mergeFrom((com.google.analytics.admin.v1alpha.ListWebDataStreamsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.ListWebDataStreamsResponse other) { + if (other + == com.google.analytics.admin.v1alpha.ListWebDataStreamsResponse.getDefaultInstance()) + return this; + if (webDataStreamsBuilder_ == null) { + if (!other.webDataStreams_.isEmpty()) { + if (webDataStreams_.isEmpty()) { + webDataStreams_ = other.webDataStreams_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureWebDataStreamsIsMutable(); + webDataStreams_.addAll(other.webDataStreams_); + } + onChanged(); + } + } else { + if (!other.webDataStreams_.isEmpty()) { + if (webDataStreamsBuilder_.isEmpty()) { + webDataStreamsBuilder_.dispose(); + webDataStreamsBuilder_ = null; + webDataStreams_ = other.webDataStreams_; + bitField0_ = (bitField0_ & ~0x00000001); + webDataStreamsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getWebDataStreamsFieldBuilder() + : null; + } else { + webDataStreamsBuilder_.addAllMessages(other.webDataStreams_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.analytics.admin.v1alpha.ListWebDataStreamsResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.ListWebDataStreamsResponse) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List webDataStreams_ = + java.util.Collections.emptyList(); + + private void ensureWebDataStreamsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + webDataStreams_ = + new java.util.ArrayList( + webDataStreams_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.WebDataStream, + com.google.analytics.admin.v1alpha.WebDataStream.Builder, + com.google.analytics.admin.v1alpha.WebDataStreamOrBuilder> + webDataStreamsBuilder_; + + /** + * + * + *
+     * Results that matched the filter criteria and were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.WebDataStream web_data_streams = 1; + */ + public java.util.List + getWebDataStreamsList() { + if (webDataStreamsBuilder_ == null) { + return java.util.Collections.unmodifiableList(webDataStreams_); + } else { + return webDataStreamsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Results that matched the filter criteria and were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.WebDataStream web_data_streams = 1; + */ + public int getWebDataStreamsCount() { + if (webDataStreamsBuilder_ == null) { + return webDataStreams_.size(); + } else { + return webDataStreamsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Results that matched the filter criteria and were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.WebDataStream web_data_streams = 1; + */ + public com.google.analytics.admin.v1alpha.WebDataStream getWebDataStreams(int index) { + if (webDataStreamsBuilder_ == null) { + return webDataStreams_.get(index); + } else { + return webDataStreamsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Results that matched the filter criteria and were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.WebDataStream web_data_streams = 1; + */ + public Builder setWebDataStreams( + int index, com.google.analytics.admin.v1alpha.WebDataStream value) { + if (webDataStreamsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureWebDataStreamsIsMutable(); + webDataStreams_.set(index, value); + onChanged(); + } else { + webDataStreamsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Results that matched the filter criteria and were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.WebDataStream web_data_streams = 1; + */ + public Builder setWebDataStreams( + int index, com.google.analytics.admin.v1alpha.WebDataStream.Builder builderForValue) { + if (webDataStreamsBuilder_ == null) { + ensureWebDataStreamsIsMutable(); + webDataStreams_.set(index, builderForValue.build()); + onChanged(); + } else { + webDataStreamsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Results that matched the filter criteria and were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.WebDataStream web_data_streams = 1; + */ + public Builder addWebDataStreams(com.google.analytics.admin.v1alpha.WebDataStream value) { + if (webDataStreamsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureWebDataStreamsIsMutable(); + webDataStreams_.add(value); + onChanged(); + } else { + webDataStreamsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Results that matched the filter criteria and were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.WebDataStream web_data_streams = 1; + */ + public Builder addWebDataStreams( + int index, com.google.analytics.admin.v1alpha.WebDataStream value) { + if (webDataStreamsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureWebDataStreamsIsMutable(); + webDataStreams_.add(index, value); + onChanged(); + } else { + webDataStreamsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Results that matched the filter criteria and were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.WebDataStream web_data_streams = 1; + */ + public Builder addWebDataStreams( + com.google.analytics.admin.v1alpha.WebDataStream.Builder builderForValue) { + if (webDataStreamsBuilder_ == null) { + ensureWebDataStreamsIsMutable(); + webDataStreams_.add(builderForValue.build()); + onChanged(); + } else { + webDataStreamsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Results that matched the filter criteria and were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.WebDataStream web_data_streams = 1; + */ + public Builder addWebDataStreams( + int index, com.google.analytics.admin.v1alpha.WebDataStream.Builder builderForValue) { + if (webDataStreamsBuilder_ == null) { + ensureWebDataStreamsIsMutable(); + webDataStreams_.add(index, builderForValue.build()); + onChanged(); + } else { + webDataStreamsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Results that matched the filter criteria and were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.WebDataStream web_data_streams = 1; + */ + public Builder addAllWebDataStreams( + java.lang.Iterable values) { + if (webDataStreamsBuilder_ == null) { + ensureWebDataStreamsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, webDataStreams_); + onChanged(); + } else { + webDataStreamsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Results that matched the filter criteria and were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.WebDataStream web_data_streams = 1; + */ + public Builder clearWebDataStreams() { + if (webDataStreamsBuilder_ == null) { + webDataStreams_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + webDataStreamsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Results that matched the filter criteria and were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.WebDataStream web_data_streams = 1; + */ + public Builder removeWebDataStreams(int index) { + if (webDataStreamsBuilder_ == null) { + ensureWebDataStreamsIsMutable(); + webDataStreams_.remove(index); + onChanged(); + } else { + webDataStreamsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Results that matched the filter criteria and were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.WebDataStream web_data_streams = 1; + */ + public com.google.analytics.admin.v1alpha.WebDataStream.Builder getWebDataStreamsBuilder( + int index) { + return getWebDataStreamsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Results that matched the filter criteria and were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.WebDataStream web_data_streams = 1; + */ + public com.google.analytics.admin.v1alpha.WebDataStreamOrBuilder getWebDataStreamsOrBuilder( + int index) { + if (webDataStreamsBuilder_ == null) { + return webDataStreams_.get(index); + } else { + return webDataStreamsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Results that matched the filter criteria and were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.WebDataStream web_data_streams = 1; + */ + public java.util.List + getWebDataStreamsOrBuilderList() { + if (webDataStreamsBuilder_ != null) { + return webDataStreamsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(webDataStreams_); + } + } + /** + * + * + *
+     * Results that matched the filter criteria and were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.WebDataStream web_data_streams = 1; + */ + public com.google.analytics.admin.v1alpha.WebDataStream.Builder addWebDataStreamsBuilder() { + return getWebDataStreamsFieldBuilder() + .addBuilder(com.google.analytics.admin.v1alpha.WebDataStream.getDefaultInstance()); + } + /** + * + * + *
+     * Results that matched the filter criteria and were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.WebDataStream web_data_streams = 1; + */ + public com.google.analytics.admin.v1alpha.WebDataStream.Builder addWebDataStreamsBuilder( + int index) { + return getWebDataStreamsFieldBuilder() + .addBuilder(index, com.google.analytics.admin.v1alpha.WebDataStream.getDefaultInstance()); + } + /** + * + * + *
+     * Results that matched the filter criteria and were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.WebDataStream web_data_streams = 1; + */ + public java.util.List + getWebDataStreamsBuilderList() { + return getWebDataStreamsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.WebDataStream, + com.google.analytics.admin.v1alpha.WebDataStream.Builder, + com.google.analytics.admin.v1alpha.WebDataStreamOrBuilder> + getWebDataStreamsFieldBuilder() { + if (webDataStreamsBuilder_ == null) { + webDataStreamsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.WebDataStream, + com.google.analytics.admin.v1alpha.WebDataStream.Builder, + com.google.analytics.admin.v1alpha.WebDataStreamOrBuilder>( + webDataStreams_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + webDataStreams_ = null; + } + return webDataStreamsBuilder_; + } + + 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.ListWebDataStreamsResponse) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListWebDataStreamsResponse) + private static final com.google.analytics.admin.v1alpha.ListWebDataStreamsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ListWebDataStreamsResponse(); + } + + public static com.google.analytics.admin.v1alpha.ListWebDataStreamsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListWebDataStreamsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListWebDataStreamsResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListWebDataStreamsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListWebDataStreamsResponseOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListWebDataStreamsResponseOrBuilder.java new file mode 100644 index 00000000..96ce2ee4 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListWebDataStreamsResponseOrBuilder.java @@ -0,0 +1,104 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface ListWebDataStreamsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListWebDataStreamsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Results that matched the filter criteria and were accessible to the caller.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.WebDataStream web_data_streams = 1; + */ + java.util.List getWebDataStreamsList(); + /** + * + * + *
+   * Results that matched the filter criteria and were accessible to the caller.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.WebDataStream web_data_streams = 1; + */ + com.google.analytics.admin.v1alpha.WebDataStream getWebDataStreams(int index); + /** + * + * + *
+   * Results that matched the filter criteria and were accessible to the caller.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.WebDataStream web_data_streams = 1; + */ + int getWebDataStreamsCount(); + /** + * + * + *
+   * Results that matched the filter criteria and were accessible to the caller.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.WebDataStream web_data_streams = 1; + */ + java.util.List + getWebDataStreamsOrBuilderList(); + /** + * + * + *
+   * Results that matched the filter criteria and were accessible to the caller.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.WebDataStream web_data_streams = 1; + */ + com.google.analytics.admin.v1alpha.WebDataStreamOrBuilder getWebDataStreamsOrBuilder(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/MaximumUserAccess.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/MaximumUserAccess.java new file mode 100644 index 00000000..9337fa62 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/MaximumUserAccess.java @@ -0,0 +1,227 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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; + +/** + * + * + *
+ * Maximum access settings that Firebase user receive on the linked Analytics
+ * property.
+ * 
+ * + * Protobuf enum {@code google.analytics.admin.v1alpha.MaximumUserAccess} + */ +public enum MaximumUserAccess implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Unspecified maximum user access.
+   * 
+ * + * MAXIMUM_USER_ACCESS_UNSPECIFIED = 0; + */ + MAXIMUM_USER_ACCESS_UNSPECIFIED(0), + /** + * + * + *
+   * Firebase users have no access to the Analytics property.
+   * 
+ * + * NO_ACCESS = 1; + */ + NO_ACCESS(1), + /** + * + * + *
+   * Firebase users have Read & Analyze access to the Analytics property.
+   * 
+ * + * READ_AND_ANALYZE = 2; + */ + READ_AND_ANALYZE(2), + /** + * + * + *
+   * Firebase users have edit access to the Analytics property, but may not
+   * manage the Firebase link.
+   * 
+ * + * EDITOR_WITHOUT_LINK_MANAGEMENT = 3; + */ + EDITOR_WITHOUT_LINK_MANAGEMENT(3), + /** + * + * + *
+   * Firebase users have edit access to the Analytics property and may manage
+   * the Firebase link.
+   * 
+ * + * EDITOR_INCLUDING_LINK_MANAGEMENT = 4; + */ + EDITOR_INCLUDING_LINK_MANAGEMENT(4), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+   * Unspecified maximum user access.
+   * 
+ * + * MAXIMUM_USER_ACCESS_UNSPECIFIED = 0; + */ + public static final int MAXIMUM_USER_ACCESS_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+   * Firebase users have no access to the Analytics property.
+   * 
+ * + * NO_ACCESS = 1; + */ + public static final int NO_ACCESS_VALUE = 1; + /** + * + * + *
+   * Firebase users have Read & Analyze access to the Analytics property.
+   * 
+ * + * READ_AND_ANALYZE = 2; + */ + public static final int READ_AND_ANALYZE_VALUE = 2; + /** + * + * + *
+   * Firebase users have edit access to the Analytics property, but may not
+   * manage the Firebase link.
+   * 
+ * + * EDITOR_WITHOUT_LINK_MANAGEMENT = 3; + */ + public static final int EDITOR_WITHOUT_LINK_MANAGEMENT_VALUE = 3; + /** + * + * + *
+   * Firebase users have edit access to the Analytics property and may manage
+   * the Firebase link.
+   * 
+ * + * EDITOR_INCLUDING_LINK_MANAGEMENT = 4; + */ + public static final int EDITOR_INCLUDING_LINK_MANAGEMENT_VALUE = 4; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static MaximumUserAccess 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 MaximumUserAccess forNumber(int value) { + switch (value) { + case 0: + return MAXIMUM_USER_ACCESS_UNSPECIFIED; + case 1: + return NO_ACCESS; + case 2: + return READ_AND_ANALYZE; + case 3: + return EDITOR_WITHOUT_LINK_MANAGEMENT; + case 4: + return EDITOR_INCLUDING_LINK_MANAGEMENT; + 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 MaximumUserAccess findValueByNumber(int number) { + return MaximumUserAccess.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 MaximumUserAccess[] VALUES = values(); + + public static MaximumUserAccess 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 MaximumUserAccess(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1alpha.MaximumUserAccess) +} 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 new file mode 100644 index 00000000..fcbef8d4 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/Property.java @@ -0,0 +1,2293 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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 App+Web 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_ = ""; + parent_ = ""; + displayName_ = ""; + industryCategory_ = 0; + timeZone_ = ""; + currencyCode_ = ""; + } + + @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; + } + + private Property( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + case 26: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); + } + createTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); + } + + break; + } + case 34: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (updateTime_ != null) { + subBuilder = updateTime_.toBuilder(); + } + updateTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateTime_); + updateTime_ = subBuilder.buildPartial(); + } + + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + + displayName_ = s; + break; + } + case 48: + { + int rawValue = input.readEnum(); + + industryCategory_ = rawValue; + break; + } + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); + + timeZone_ = s; + break; + } + case 66: + { + java.lang.String s = input.readStringRequireUtf8(); + + currencyCode_ = s; + break; + } + case 72: + { + deleted_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_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 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}
+   * Example: "accounts/100"
+   * 
+ * + * 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}
+   * Example: "accounts/100"
+   * 
+ * + * 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_; + /** + * + * + *
+   * 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; + * + * @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; + } + } + /** + * + * + *
+   * 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; + * + * @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 DELETED_FIELD_NUMBER = 9; + private boolean deleted_; + /** + * + * + *
+   * Output only. Indicates whether this Property is soft-deleted or not. Deleted properties
+   * are excluded from List results unless specifically requested.
+   * 
+ * + * bool deleted = 9 [(.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 (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!getParentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, parent_); + } + if (createTime_ != null) { + output.writeMessage(3, getCreateTime()); + } + if (updateTime_ != null) { + output.writeMessage(4, getUpdateTime()); + } + if (!getDisplayNameBytes().isEmpty()) { + 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 (!getTimeZoneBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, timeZone_); + } + if (!getCurrencyCodeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, currencyCode_); + } + if (deleted_ != false) { + output.writeBool(9, deleted_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!getParentBytes().isEmpty()) { + 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 (!getDisplayNameBytes().isEmpty()) { + 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 (!getTimeZoneBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, timeZone_); + } + if (!getCurrencyCodeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, currencyCode_); + } + if (deleted_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(9, deleted_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.admin.v1alpha.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 (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 (getDeleted() != other.getDeleted()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + 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) + 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) + DELETED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDeleted()); + hash = (29 * hash) + unknownFields.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 App+Web 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() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + 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_ = ""; + + 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_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_; + 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.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.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.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.getDeleted() != false) { + setDeleted(other.getDeleted()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.analytics.admin.v1alpha.Property parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.analytics.admin.v1alpha.Property) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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 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}
+     * Example: "accounts/100"
+     * 
+ * + * 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}
+     * Example: "accounts/100"
+     * 
+ * + * 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}
+     * Example: "accounts/100"
+     * 
+ * + * 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}
+     * Example: "accounts/100"
+     * 
+ * + * 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}
+     * Example: "accounts/100"
+     * 
+ * + * 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_ = ""; + /** + * + * + *
+     * 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; + * + * @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; + } + } + /** + * + * + *
+     * 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; + * + * @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; + } + } + /** + * + * + *
+     * 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; + * + * @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; + } + /** + * + * + *
+     * 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; + * + * @return This builder for chaining. + */ + public Builder clearTimeZone() { + + timeZone_ = getDefaultInstance().getTimeZone(); + onChanged(); + return this; + } + /** + * + * + *
+     * 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; + * + * @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 boolean deleted_; + /** + * + * + *
+     * Output only. Indicates whether this Property is soft-deleted or not. Deleted properties
+     * are excluded from List results unless specifically requested.
+     * 
+ * + * bool deleted = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The deleted. + */ + @java.lang.Override + public boolean getDeleted() { + return deleted_; + } + /** + * + * + *
+     * Output only. Indicates whether this Property is soft-deleted or not. Deleted properties
+     * are excluded from List results unless specifically requested.
+     * 
+ * + * bool deleted = 9 [(.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 Property is soft-deleted or not. Deleted properties
+     * are excluded from List results unless specifically requested.
+     * 
+ * + * bool deleted = 9 [(.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.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 { + return new Property(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.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 new file mode 100644 index 00000000..b3cbedf4 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PropertyName.java @@ -0,0 +1,162 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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; + +/** AUTO-GENERATED DOCUMENTATION AND CLASS */ +@javax.annotation.Generated("by GAPIC protoc plugin") +public class PropertyName implements ResourceName { + + private static final PathTemplate PATH_TEMPLATE = + PathTemplate.createWithoutUrlEncoding("properties/{property}"); + + private volatile Map fieldValuesMap; + + private final String property; + + public String getProperty() { + return property; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + private PropertyName(Builder builder) { + property = Preconditions.checkNotNull(builder.getProperty()); + } + + 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 = + PATH_TEMPLATE.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 PATH_TEMPLATE.matches(formattedString); + } + + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + fieldMapBuilder.put("property", property); + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PATH_TEMPLATE.instantiate("property", property); + } + + /** Builder for PropertyName. */ + public static class Builder { + + private String property; + + public String getProperty() { + return property; + } + + public Builder setProperty(String property) { + this.property = property; + return this; + } + + private Builder() {} + + private Builder(PropertyName propertyName) { + property = propertyName.property; + } + + public PropertyName build() { + return new PropertyName(this); + } + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o instanceof PropertyName) { + PropertyName that = (PropertyName) o; + return (this.property.equals(that.property)); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= property.hashCode(); + return h; + } +} 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 new file mode 100644 index 00000000..edd43768 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PropertyOrBuilder.java @@ -0,0 +1,295 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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(); + + /** + * + * + *
+   * 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}
+   * Example: "accounts/100"
+   * 
+ * + * 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}
+   * Example: "accounts/100"
+   * 
+ * + * 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(); + + /** + * + * + *
+   * 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; + * + * @return The timeZone. + */ + java.lang.String getTimeZone(); + /** + * + * + *
+   * 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; + * + * @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. Indicates whether this Property is soft-deleted or not. Deleted properties
+   * are excluded from List results unless specifically requested.
+   * 
+ * + * bool deleted = 9 [(.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/ProvisionAccountTicketRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ProvisionAccountTicketRequest.java new file mode 100644 index 00000000..ec5a0f9c --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ProvisionAccountTicketRequest.java @@ -0,0 +1,928 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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; + } + + private ProvisionAccountTicketRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.analytics.admin.v1alpha.Account.Builder subBuilder = null; + if (account_ != null) { + subBuilder = account_.toBuilder(); + } + account_ = + input.readMessage( + com.google.analytics.admin.v1alpha.Account.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(account_); + account_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + redirectUri_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_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 (!getRedirectUriBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, redirectUri_); + } + unknownFields.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 (!getRedirectUriBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, redirectUri_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.admin.v1alpha.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 (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (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) + unknownFields.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() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (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.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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 { + return new ProvisionAccountTicketRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.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 new file mode 100644 index 00000000..126707fa --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ProvisionAccountTicketRequestOrBuilder.java @@ -0,0 +1,87 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/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 new file mode 100644 index 00000000..dd9c083c --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ProvisionAccountTicketResponse.java @@ -0,0 +1,647 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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; + } + + private ProvisionAccountTicketResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + accountTicketId_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_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 (!getAccountTicketIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, accountTicketId_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getAccountTicketIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, accountTicketId_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.admin.v1alpha.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 (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ACCOUNT_TICKET_ID_FIELD_NUMBER; + hash = (53 * hash) + getAccountTicketId().hashCode(); + hash = (29 * hash) + unknownFields.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() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + 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.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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 { + return new ProvisionAccountTicketResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.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 new file mode 100644 index 00000000..cb7fb24b --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ProvisionAccountTicketResponseOrBuilder.java @@ -0,0 +1,50 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/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 new file mode 100644 index 00000000..41100dca --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ResourcesProto.java @@ -0,0 +1,376 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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_AndroidAppDataStream_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_AndroidAppDataStream_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_IosAppDataStream_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_IosAppDataStream_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_WebDataStream_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_WebDataStream_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_EnhancedMeasurementSettings_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_EnhancedMeasurementSettings_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_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; + + 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\"\217\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\024\n\014country_code\030\005 \001(\t\022\024\n\007del" + + "eted\030\006 \001(\010B\003\340A\003:>\352A;\n%analyticsadmin.goo" + + "gleapis.com/Account\022\022accounts/{account}\"" + + "\212\003\n\010Property\022\021\n\004name\030\001 \001(\tB\003\340A\003\0224\n\013creat" + + "e_time\030\003 \001(\0132\032.google.protobuf.Timestamp" + + "B\003\340A\003\0224\n\013update_time\030\004 \001(\0132\032.google.prot" + + "obuf.TimestampB\003\340A\003\022\023\n\006parent\030\002 \001(\tB\003\340A\005" + + "\022\031\n\014display_name\030\005 \001(\tB\003\340A\002\022K\n\021industry_" + + "category\030\006 \001(\01620.google.analytics.admin." + + "v1alpha.IndustryCategory\022\021\n\ttime_zone\030\007 " + + "\001(\t\022\025\n\rcurrency_code\030\010 \001(\t\022\024\n\007deleted\030\t " + + "\001(\010B\003\340A\003:B\352A?\n&analyticsadmin.googleapis" + + ".com/Property\022\025properties/{property}\"\344\002\n" + + "\024AndroidAppDataStream\022\021\n\004name\030\001 \001(\tB\003\340A\003" + + "\022\034\n\017firebase_app_id\030\002 \001(\tB\003\340A\003\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.proto" + + "buf.TimestampB\003\340A\003\022\031\n\014package_name\030\005 \001(\t" + + "B\003\340A\005\022\024\n\014display_name\030\006 \001(\t:~\352A{\n2analyt" + + "icsadmin.googleapis.com/AndroidAppDataSt" + + "ream\022Eproperties/{property}/androidAppDa" + + "taStreams/{android_app_data_stream}\"\324\002\n\020" + + "IosAppDataStream\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\034\n\017f" + + "irebase_app_id\030\002 \001(\tB\003\340A\003\0224\n\013create_time" + + "\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022" + + "4\n\013update_time\030\004 \001(\0132\032.google.protobuf.T" + + "imestampB\003\340A\003\022\031\n\tbundle_id\030\005 \001(\tB\006\340A\005\340A\002" + + "\022\024\n\014display_name\030\006 \001(\t:r\352Ao\n.analyticsad" + + "min.googleapis.com/IosAppDataStream\022=pro" + + "perties/{property}/iosAppDataStreams/{io" + + "s_app_data_stream}\"\350\002\n\rWebDataStream\022\021\n\004" + + "name\030\001 \001(\tB\003\340A\003\022\033\n\016measurement_id\030\002 \001(\tB" + + "\003\340A\003\022\034\n\017firebase_app_id\030\003 \001(\tB\003\340A\003\0224\n\013cr" + + "eate_time\030\004 \001(\0132\032.google.protobuf.Timest" + + "ampB\003\340A\003\0224\n\013update_time\030\005 \001(\0132\032.google.p" + + "rotobuf.TimestampB\003\340A\003\022\030\n\013default_uri\030\006 " + + "\001(\tB\003\340A\005\022\031\n\014display_name\030\007 \001(\tB\003\340A\002:h\352Ae" + + "\n+analyticsadmin.googleapis.com/WebDataS" + + "tream\0226properties/{property}/webDataStre" + + "ams/{web_data_stream}\"\312\001\n\010UserLink\022\014\n\004na" + + "me\030\001 \001(\t\022\025\n\remail_address\030\002 \001(\t\022\024\n\014direc" + + "t_roles\030\003 \003(\t:\202\001\352A\177\n&analyticsadmin.goog" + + "leapis.com/UserLink\022(accounts/{account}/" + + "userLinks/{user_link}\022+properties/{prope" + + "rty}/userLinks/{user_link}\"c\n\rAuditUserL" + + "ink\022\014\n\004name\030\001 \001(\t\022\025\n\remail_address\030\002 \001(\t" + + "\022\024\n\014direct_roles\030\003 \003(\t\022\027\n\017effective_role" + + "s\030\004 \003(\t\"\350\005\n\033EnhancedMeasurementSettings\022" + + "\021\n\004name\030\001 \001(\tB\003\340A\003\022\026\n\016stream_enabled\030\002 \001" + + "(\010\022\037\n\022page_views_enabled\030\003 \001(\010B\003\340A\003\022\027\n\017s" + + "crolls_enabled\030\004 \001(\010\022\037\n\027outbound_clicks_" + + "enabled\030\005 \001(\010\022\035\n\025content_views_enabled\030\006" + + " \001(\010\022\033\n\023site_search_enabled\030\007 \001(\010\022!\n\031for" + + "m_interactions_enabled\030\010 \001(\010\022 \n\030video_en" + + "gagement_enabled\030\t \001(\010\022\036\n\026file_downloads" + + "_enabled\030\n \001(\010\022*\n\"data_tagged_element_cl" + + "icks_enabled\030\013 \001(\010\022\032\n\022page_loads_enabled" + + "\030\014 \001(\010\022\034\n\024page_changes_enabled\030\r \001(\010\022\"\n\032" + + "articles_and_blogs_enabled\030\016 \001(\010\022&\n\036prod" + + "ucts_and_ecommerce_enabled\030\017 \001(\010\022#\n\026sear" + + "ch_query_parameter\030\020 \001(\tB\003\340A\002\022\033\n\023url_que" + + "ry_parameter\030\021 \001(\t\022\030\n\020excluded_domains\030\022" + + " \001(\t:\223\001\352A\217\001\n9analyticsadmin.googleapis.c" + + "om/EnhancedMeasurementSettings\022Rproperti" + + "es/{property}/webDataStreams/{web_data_s" + + "tream}/enhancedMeasurementSettings\"\243\002\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\022N\n\023maximum_us" + + "er_access\030\004 \001(\01621.google.analytics.admin" + + ".v1alpha.MaximumUserAccess:d\352Aa\n*analyti" + + "csadmin.googleapis.com/FirebaseLink\0223pro" + + "perties/{property}/firebaseLinks/{fireba" + + "se_link}\"|\n\rGlobalSiteTag\022\024\n\007snippet\030\001 \001" + + "(\tB\003\340A\005:U\352AR\n+analyticsadmin.googleapis." + + "com/GlobalSiteTag\022#properties/{property}" + + "/globalSiteTag\"\245\003\n\rGoogleAdsLink\022\021\n\004name" + + "\030\001 \001(\tB\003\340A\003\022\023\n\006parent\030\002 \001(\tB\003\340A\005\022\030\n\013cust" + + "omer_id\030\003 \001(\tB\003\340A\005\022\037\n\022can_manage_clients" + + "\030\004 \001(\010B\003\340A\003\022?\n\033ads_personalization_enabl" + + "ed\030\005 \001(\0132\032.google.protobuf.BoolValue\022\032\n\r" + + "email_address\030\006 \001(\tB\003\340A\003\0224\n\013create_time\030" + + "\007 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224" + + "\n\013update_time\030\010 \001(\0132\032.google.protobuf.Ti" + + "mestampB\003\340A\003:h\352Ae\n+analyticsadmin.google" + + "apis.com/GoogleAdsLink\0226properties/{prop" + + "erty}/googleAdsLinks/{google_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_google_assigned_s" + + "ales_enabled\030\003 \001(\010\022-\n%sharing_with_googl" + + "e_any_sales_enabled\030\004 \001(\010\022,\n$sharing_wit" + + "h_google_products_enabled\030\005 \001(\010\022#\n\033shari" + + "ng_with_others_enabled\030\006 \001(\010:^\352A[\n1analy" + + "ticsadmin.googleapis.com/DataSharingSett" + + "ings\022&accounts/{account}/dataSharingSett" + + "ings*\252\004\n\020IndustryCategory\022!\n\035INDUSTRY_CA" + + "TEGORY_UNSPECIFIED\020\000\022\016\n\nAUTOMOTIVE\020\001\022#\n\037" + + "BUSINESS_AND_INDUSTRIAL_MARKETS\020\002\022\013\n\007FIN" + + "ANCE\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_ENTERT" + + "AINMENT\020\010\022\026\n\022BEAUTY_AND_FITNESS\020\t\022\030\n\024BOO" + + "KS_AND_LITERATURE\020\n\022\022\n\016FOOD_AND_DRINK\020\013\022" + + "\t\n\005GAMES\020\014\022\027\n\023HOBBIES_AND_LEISURE\020\r\022\023\n\017H" + + "OME_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\022" + + "ONLINE_COMMUNITIES\020\022\022\026\n\022PEOPLE_AND_SOCIE" + + "TY\020\023\022\024\n\020PETS_AND_ANIMALS\020\024\022\017\n\013REAL_ESTAT" + + "E\020\025\022\r\n\tREFERENCE\020\026\022\013\n\007SCIENCE\020\027\022\n\n\006SPORT" + + "S\020\030\022\026\n\022JOBS_AND_EDUCATION\020\031\022\014\n\010SHOPPING\020" + + "\032*\247\001\n\021MaximumUserAccess\022#\n\037MAXIMUM_USER_" + + "ACCESS_UNSPECIFIED\020\000\022\r\n\tNO_ACCESS\020\001\022\024\n\020R" + + "EAD_AND_ANALYZE\020\002\022\"\n\036EDITOR_WITHOUT_LINK" + + "_MANAGEMENT\020\003\022$\n EDITOR_INCLUDING_LINK_M" + + "ANAGEMENT\020\004B{\n\"com.google.analytics.admi" + + "n.v1alphaB\016ResourcesProtoP\001ZCgoogle.gola" + + "ng.org/genproto/googleapis/analytics/adm" + + "in/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.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", "CountryCode", "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", + "CreateTime", + "UpdateTime", + "Parent", + "DisplayName", + "IndustryCategory", + "TimeZone", + "CurrencyCode", + "Deleted", + }); + internal_static_google_analytics_admin_v1alpha_AndroidAppDataStream_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_analytics_admin_v1alpha_AndroidAppDataStream_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_AndroidAppDataStream_descriptor, + new java.lang.String[] { + "Name", "FirebaseAppId", "CreateTime", "UpdateTime", "PackageName", "DisplayName", + }); + internal_static_google_analytics_admin_v1alpha_IosAppDataStream_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_analytics_admin_v1alpha_IosAppDataStream_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_IosAppDataStream_descriptor, + new java.lang.String[] { + "Name", "FirebaseAppId", "CreateTime", "UpdateTime", "BundleId", "DisplayName", + }); + internal_static_google_analytics_admin_v1alpha_WebDataStream_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_analytics_admin_v1alpha_WebDataStream_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_WebDataStream_descriptor, + new java.lang.String[] { + "Name", + "MeasurementId", + "FirebaseAppId", + "CreateTime", + "UpdateTime", + "DefaultUri", + "DisplayName", + }); + internal_static_google_analytics_admin_v1alpha_UserLink_descriptor = + getDescriptor().getMessageTypes().get(5); + 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(6); + 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_EnhancedMeasurementSettings_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_analytics_admin_v1alpha_EnhancedMeasurementSettings_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_EnhancedMeasurementSettings_descriptor, + new java.lang.String[] { + "Name", + "StreamEnabled", + "PageViewsEnabled", + "ScrollsEnabled", + "OutboundClicksEnabled", + "ContentViewsEnabled", + "SiteSearchEnabled", + "FormInteractionsEnabled", + "VideoEngagementEnabled", + "FileDownloadsEnabled", + "DataTaggedElementClicksEnabled", + "PageLoadsEnabled", + "PageChangesEnabled", + "ArticlesAndBlogsEnabled", + "ProductsAndEcommerceEnabled", + "SearchQueryParameter", + "UrlQueryParameter", + "ExcludedDomains", + }); + internal_static_google_analytics_admin_v1alpha_FirebaseLink_descriptor = + getDescriptor().getMessageTypes().get(8); + 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", "MaximumUserAccess", + }); + internal_static_google_analytics_admin_v1alpha_GlobalSiteTag_descriptor = + getDescriptor().getMessageTypes().get(9); + 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[] { + "Snippet", + }); + internal_static_google_analytics_admin_v1alpha_GoogleAdsLink_descriptor = + getDescriptor().getMessageTypes().get(10); + 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", + "Parent", + "CustomerId", + "CanManageClients", + "AdsPersonalizationEnabled", + "EmailAddress", + "CreateTime", + "UpdateTime", + }); + internal_static_google_analytics_admin_v1alpha_DataSharingSettings_descriptor = + getDescriptor().getMessageTypes().get(11); + 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", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + 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/UpdateAccountRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateAccountRequest.java new file mode 100644 index 00000000..3348ec48 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateAccountRequest.java @@ -0,0 +1,1042 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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; + } + + private UpdateAccountRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.analytics.admin.v1alpha.Account.Builder subBuilder = null; + if (account_ != null) { + subBuilder = account_.toBuilder(); + } + account_ = + input.readMessage( + com.google.analytics.admin.v1alpha.Account.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(account_); + account_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_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_; + /** + * + * + *
+   * 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 (account_ != null) { + output.writeMessage(1, getAccount()); + } + if (updateMask_ != null) { + output.writeMessage(2, getUpdateMask()); + } + unknownFields.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 += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.admin.v1alpha.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 (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (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) + unknownFields.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() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (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.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.analytics.admin.v1alpha.UpdateAccountRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.UpdateAccountRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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_; + /** + * + * + *
+     * 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.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 { + return new UpdateAccountRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.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 new file mode 100644 index 00000000..368815cf --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateAccountRequestOrBuilder.java @@ -0,0 +1,104 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated 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(); + + /** + * + * + *
+   * 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/UpdateAndroidAppDataStreamRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateAndroidAppDataStreamRequest.java new file mode 100644 index 00000000..d8b6145c --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateAndroidAppDataStreamRequest.java @@ -0,0 +1,1063 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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 UpdateAndroidAppDataStream RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest} + */ +public final class UpdateAndroidAppDataStreamRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest) + UpdateAndroidAppDataStreamRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateAndroidAppDataStreamRequest.newBuilder() to construct. + private UpdateAndroidAppDataStreamRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateAndroidAppDataStreamRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateAndroidAppDataStreamRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private UpdateAndroidAppDataStreamRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.analytics.admin.v1alpha.AndroidAppDataStream.Builder subBuilder = null; + if (androidAppDataStream_ != null) { + subBuilder = androidAppDataStream_.toBuilder(); + } + androidAppDataStream_ = + input.readMessage( + com.google.analytics.admin.v1alpha.AndroidAppDataStream.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(androidAppDataStream_); + androidAppDataStream_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateAndroidAppDataStreamRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateAndroidAppDataStreamRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest.class, + com.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest.Builder.class); + } + + public static final int ANDROID_APP_DATA_STREAM_FIELD_NUMBER = 1; + private com.google.analytics.admin.v1alpha.AndroidAppDataStream androidAppDataStream_; + /** + * + * + *
+   * Required. The android app stream to update.
+   * The `name` field is used to identify the android app stream to be updated.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the androidAppDataStream field is set. + */ + @java.lang.Override + public boolean hasAndroidAppDataStream() { + return androidAppDataStream_ != null; + } + /** + * + * + *
+   * Required. The android app stream to update.
+   * The `name` field is used to identify the android app stream to be updated.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The androidAppDataStream. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AndroidAppDataStream getAndroidAppDataStream() { + return androidAppDataStream_ == null + ? com.google.analytics.admin.v1alpha.AndroidAppDataStream.getDefaultInstance() + : androidAppDataStream_; + } + /** + * + * + *
+   * Required. The android app stream to update.
+   * The `name` field is used to identify the android app stream to be updated.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AndroidAppDataStreamOrBuilder + getAndroidAppDataStreamOrBuilder() { + return getAndroidAppDataStream(); + } + + 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 (androidAppDataStream_ != null) { + output.writeMessage(1, getAndroidAppDataStream()); + } + if (updateMask_ != null) { + output.writeMessage(2, getUpdateMask()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (androidAppDataStream_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, getAndroidAppDataStream()); + } + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest other = + (com.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest) obj; + + if (hasAndroidAppDataStream() != other.hasAndroidAppDataStream()) return false; + if (hasAndroidAppDataStream()) { + if (!getAndroidAppDataStream().equals(other.getAndroidAppDataStream())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasAndroidAppDataStream()) { + hash = (37 * hash) + ANDROID_APP_DATA_STREAM_FIELD_NUMBER; + hash = (53 * hash) + getAndroidAppDataStream().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for UpdateAndroidAppDataStream RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest) + com.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateAndroidAppDataStreamRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateAndroidAppDataStreamRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest.class, + com.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest.Builder.class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (androidAppDataStreamBuilder_ == null) { + androidAppDataStream_ = null; + } else { + androidAppDataStream_ = null; + androidAppDataStreamBuilder_ = 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_UpdateAndroidAppDataStreamRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest build() { + com.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest buildPartial() { + com.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest result = + new com.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest(this); + if (androidAppDataStreamBuilder_ == null) { + result.androidAppDataStream_ = androidAppDataStream_; + } else { + result.androidAppDataStream_ = androidAppDataStreamBuilder_.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.UpdateAndroidAppDataStreamRequest) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest other) { + if (other + == com.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest + .getDefaultInstance()) return this; + if (other.hasAndroidAppDataStream()) { + mergeAndroidAppDataStream(other.getAndroidAppDataStream()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.analytics.admin.v1alpha.AndroidAppDataStream androidAppDataStream_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AndroidAppDataStream, + com.google.analytics.admin.v1alpha.AndroidAppDataStream.Builder, + com.google.analytics.admin.v1alpha.AndroidAppDataStreamOrBuilder> + androidAppDataStreamBuilder_; + /** + * + * + *
+     * Required. The android app stream to update.
+     * The `name` field is used to identify the android app stream to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the androidAppDataStream field is set. + */ + public boolean hasAndroidAppDataStream() { + return androidAppDataStreamBuilder_ != null || androidAppDataStream_ != null; + } + /** + * + * + *
+     * Required. The android app stream to update.
+     * The `name` field is used to identify the android app stream to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The androidAppDataStream. + */ + public com.google.analytics.admin.v1alpha.AndroidAppDataStream getAndroidAppDataStream() { + if (androidAppDataStreamBuilder_ == null) { + return androidAppDataStream_ == null + ? com.google.analytics.admin.v1alpha.AndroidAppDataStream.getDefaultInstance() + : androidAppDataStream_; + } else { + return androidAppDataStreamBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The android app stream to update.
+     * The `name` field is used to identify the android app stream to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAndroidAppDataStream( + com.google.analytics.admin.v1alpha.AndroidAppDataStream value) { + if (androidAppDataStreamBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + androidAppDataStream_ = value; + onChanged(); + } else { + androidAppDataStreamBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. The android app stream to update.
+     * The `name` field is used to identify the android app stream to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAndroidAppDataStream( + com.google.analytics.admin.v1alpha.AndroidAppDataStream.Builder builderForValue) { + if (androidAppDataStreamBuilder_ == null) { + androidAppDataStream_ = builderForValue.build(); + onChanged(); + } else { + androidAppDataStreamBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. The android app stream to update.
+     * The `name` field is used to identify the android app stream to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeAndroidAppDataStream( + com.google.analytics.admin.v1alpha.AndroidAppDataStream value) { + if (androidAppDataStreamBuilder_ == null) { + if (androidAppDataStream_ != null) { + androidAppDataStream_ = + com.google.analytics.admin.v1alpha.AndroidAppDataStream.newBuilder( + androidAppDataStream_) + .mergeFrom(value) + .buildPartial(); + } else { + androidAppDataStream_ = value; + } + onChanged(); + } else { + androidAppDataStreamBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. The android app stream to update.
+     * The `name` field is used to identify the android app stream to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearAndroidAppDataStream() { + if (androidAppDataStreamBuilder_ == null) { + androidAppDataStream_ = null; + onChanged(); + } else { + androidAppDataStream_ = null; + androidAppDataStreamBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. The android app stream to update.
+     * The `name` field is used to identify the android app stream to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.AndroidAppDataStream.Builder + getAndroidAppDataStreamBuilder() { + + onChanged(); + return getAndroidAppDataStreamFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The android app stream to update.
+     * The `name` field is used to identify the android app stream to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.AndroidAppDataStreamOrBuilder + getAndroidAppDataStreamOrBuilder() { + if (androidAppDataStreamBuilder_ != null) { + return androidAppDataStreamBuilder_.getMessageOrBuilder(); + } else { + return androidAppDataStream_ == null + ? com.google.analytics.admin.v1alpha.AndroidAppDataStream.getDefaultInstance() + : androidAppDataStream_; + } + } + /** + * + * + *
+     * Required. The android app stream to update.
+     * The `name` field is used to identify the android app stream to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AndroidAppDataStream, + com.google.analytics.admin.v1alpha.AndroidAppDataStream.Builder, + com.google.analytics.admin.v1alpha.AndroidAppDataStreamOrBuilder> + getAndroidAppDataStreamFieldBuilder() { + if (androidAppDataStreamBuilder_ == null) { + androidAppDataStreamBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AndroidAppDataStream, + com.google.analytics.admin.v1alpha.AndroidAppDataStream.Builder, + com.google.analytics.admin.v1alpha.AndroidAppDataStreamOrBuilder>( + getAndroidAppDataStream(), getParentForChildren(), isClean()); + androidAppDataStream_ = null; + } + return androidAppDataStreamBuilder_; + } + + 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.UpdateAndroidAppDataStreamRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest) + private static final com.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest(); + } + + public static com.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateAndroidAppDataStreamRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateAndroidAppDataStreamRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateAndroidAppDataStreamRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateAndroidAppDataStreamRequestOrBuilder.java new file mode 100644 index 00000000..6a2b3788 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateAndroidAppDataStreamRequestOrBuilder.java @@ -0,0 +1,105 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface UpdateAndroidAppDataStreamRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The android app stream to update.
+   * The `name` field is used to identify the android app stream to be updated.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the androidAppDataStream field is set. + */ + boolean hasAndroidAppDataStream(); + /** + * + * + *
+   * Required. The android app stream to update.
+   * The `name` field is used to identify the android app stream to be updated.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The androidAppDataStream. + */ + com.google.analytics.admin.v1alpha.AndroidAppDataStream getAndroidAppDataStream(); + /** + * + * + *
+   * Required. The android app stream to update.
+   * The `name` field is used to identify the android app stream to be updated.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.analytics.admin.v1alpha.AndroidAppDataStreamOrBuilder + getAndroidAppDataStreamOrBuilder(); + + /** + * + * + *
+   * 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/UpdateEnhancedMeasurementSettingsRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateEnhancedMeasurementSettingsRequest.java new file mode 100644 index 00000000..228a10f6 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateEnhancedMeasurementSettingsRequest.java @@ -0,0 +1,1084 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for UpdateEnhancedMeasurementSettings RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest} + */ +public final class UpdateEnhancedMeasurementSettingsRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest) + UpdateEnhancedMeasurementSettingsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateEnhancedMeasurementSettingsRequest.newBuilder() to construct. + private UpdateEnhancedMeasurementSettingsRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateEnhancedMeasurementSettingsRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateEnhancedMeasurementSettingsRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private UpdateEnhancedMeasurementSettingsRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings.Builder subBuilder = + null; + if (enhancedMeasurementSettings_ != null) { + subBuilder = enhancedMeasurementSettings_.toBuilder(); + } + enhancedMeasurementSettings_ = + input.readMessage( + com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(enhancedMeasurementSettings_); + enhancedMeasurementSettings_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateEnhancedMeasurementSettingsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateEnhancedMeasurementSettingsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest.class, + com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest.Builder + .class); + } + + public static final int ENHANCED_MEASUREMENT_SETTINGS_FIELD_NUMBER = 1; + private com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings + enhancedMeasurementSettings_; + /** + * + * + *
+   * Required. The settings to update.
+   * The `name` field is used to identify the settings to be updated.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.EnhancedMeasurementSettings enhanced_measurement_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the enhancedMeasurementSettings field is set. + */ + @java.lang.Override + public boolean hasEnhancedMeasurementSettings() { + return enhancedMeasurementSettings_ != null; + } + /** + * + * + *
+   * Required. The settings to update.
+   * The `name` field is used to identify the settings to be updated.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.EnhancedMeasurementSettings enhanced_measurement_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enhancedMeasurementSettings. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings + getEnhancedMeasurementSettings() { + return enhancedMeasurementSettings_ == null + ? com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings.getDefaultInstance() + : enhancedMeasurementSettings_; + } + /** + * + * + *
+   * Required. The settings to update.
+   * The `name` field is used to identify the settings to be updated.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.EnhancedMeasurementSettings enhanced_measurement_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.EnhancedMeasurementSettingsOrBuilder + getEnhancedMeasurementSettingsOrBuilder() { + return getEnhancedMeasurementSettings(); + } + + 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 (enhancedMeasurementSettings_ != null) { + output.writeMessage(1, getEnhancedMeasurementSettings()); + } + if (updateMask_ != null) { + output.writeMessage(2, getUpdateMask()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (enhancedMeasurementSettings_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, getEnhancedMeasurementSettings()); + } + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest other = + (com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest) obj; + + if (hasEnhancedMeasurementSettings() != other.hasEnhancedMeasurementSettings()) return false; + if (hasEnhancedMeasurementSettings()) { + if (!getEnhancedMeasurementSettings().equals(other.getEnhancedMeasurementSettings())) + return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasEnhancedMeasurementSettings()) { + hash = (37 * hash) + ENHANCED_MEASUREMENT_SETTINGS_FIELD_NUMBER; + hash = (53 * hash) + getEnhancedMeasurementSettings().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for UpdateEnhancedMeasurementSettings RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest) + com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateEnhancedMeasurementSettingsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateEnhancedMeasurementSettingsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest.class, + com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest.Builder + .class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (enhancedMeasurementSettingsBuilder_ == null) { + enhancedMeasurementSettings_ = null; + } else { + enhancedMeasurementSettings_ = null; + enhancedMeasurementSettingsBuilder_ = 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_UpdateEnhancedMeasurementSettingsRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest build() { + com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest + buildPartial() { + com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest result = + new com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest(this); + if (enhancedMeasurementSettingsBuilder_ == null) { + result.enhancedMeasurementSettings_ = enhancedMeasurementSettings_; + } else { + result.enhancedMeasurementSettings_ = enhancedMeasurementSettingsBuilder_.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.UpdateEnhancedMeasurementSettingsRequest) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest other) { + if (other + == com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest + .getDefaultInstance()) return this; + if (other.hasEnhancedMeasurementSettings()) { + mergeEnhancedMeasurementSettings(other.getEnhancedMeasurementSettings()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest parsedMessage = + null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings + enhancedMeasurementSettings_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings, + com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings.Builder, + com.google.analytics.admin.v1alpha.EnhancedMeasurementSettingsOrBuilder> + enhancedMeasurementSettingsBuilder_; + /** + * + * + *
+     * Required. The settings to update.
+     * The `name` field is used to identify the settings to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.EnhancedMeasurementSettings enhanced_measurement_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the enhancedMeasurementSettings field is set. + */ + public boolean hasEnhancedMeasurementSettings() { + return enhancedMeasurementSettingsBuilder_ != null || enhancedMeasurementSettings_ != null; + } + /** + * + * + *
+     * Required. The settings to update.
+     * The `name` field is used to identify the settings to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.EnhancedMeasurementSettings enhanced_measurement_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enhancedMeasurementSettings. + */ + public com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings + getEnhancedMeasurementSettings() { + if (enhancedMeasurementSettingsBuilder_ == null) { + return enhancedMeasurementSettings_ == null + ? com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings.getDefaultInstance() + : enhancedMeasurementSettings_; + } else { + return enhancedMeasurementSettingsBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The settings to update.
+     * The `name` field is used to identify the settings to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.EnhancedMeasurementSettings enhanced_measurement_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setEnhancedMeasurementSettings( + com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings value) { + if (enhancedMeasurementSettingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + enhancedMeasurementSettings_ = value; + onChanged(); + } else { + enhancedMeasurementSettingsBuilder_.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.EnhancedMeasurementSettings enhanced_measurement_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setEnhancedMeasurementSettings( + com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings.Builder builderForValue) { + if (enhancedMeasurementSettingsBuilder_ == null) { + enhancedMeasurementSettings_ = builderForValue.build(); + onChanged(); + } else { + enhancedMeasurementSettingsBuilder_.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.EnhancedMeasurementSettings enhanced_measurement_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeEnhancedMeasurementSettings( + com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings value) { + if (enhancedMeasurementSettingsBuilder_ == null) { + if (enhancedMeasurementSettings_ != null) { + enhancedMeasurementSettings_ = + com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings.newBuilder( + enhancedMeasurementSettings_) + .mergeFrom(value) + .buildPartial(); + } else { + enhancedMeasurementSettings_ = value; + } + onChanged(); + } else { + enhancedMeasurementSettingsBuilder_.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.EnhancedMeasurementSettings enhanced_measurement_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearEnhancedMeasurementSettings() { + if (enhancedMeasurementSettingsBuilder_ == null) { + enhancedMeasurementSettings_ = null; + onChanged(); + } else { + enhancedMeasurementSettings_ = null; + enhancedMeasurementSettingsBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. The settings to update.
+     * The `name` field is used to identify the settings to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.EnhancedMeasurementSettings enhanced_measurement_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings.Builder + getEnhancedMeasurementSettingsBuilder() { + + onChanged(); + return getEnhancedMeasurementSettingsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The settings to update.
+     * The `name` field is used to identify the settings to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.EnhancedMeasurementSettings enhanced_measurement_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.EnhancedMeasurementSettingsOrBuilder + getEnhancedMeasurementSettingsOrBuilder() { + if (enhancedMeasurementSettingsBuilder_ != null) { + return enhancedMeasurementSettingsBuilder_.getMessageOrBuilder(); + } else { + return enhancedMeasurementSettings_ == null + ? com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings.getDefaultInstance() + : enhancedMeasurementSettings_; + } + } + /** + * + * + *
+     * Required. The settings to update.
+     * The `name` field is used to identify the settings to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.EnhancedMeasurementSettings enhanced_measurement_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings, + com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings.Builder, + com.google.analytics.admin.v1alpha.EnhancedMeasurementSettingsOrBuilder> + getEnhancedMeasurementSettingsFieldBuilder() { + if (enhancedMeasurementSettingsBuilder_ == null) { + enhancedMeasurementSettingsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings, + com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings.Builder, + com.google.analytics.admin.v1alpha.EnhancedMeasurementSettingsOrBuilder>( + getEnhancedMeasurementSettings(), getParentForChildren(), isClean()); + enhancedMeasurementSettings_ = null; + } + return enhancedMeasurementSettingsBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + /** + * + * + *
+     * 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.UpdateEnhancedMeasurementSettingsRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest) + private static final com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest(); + } + + public static com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateEnhancedMeasurementSettingsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateEnhancedMeasurementSettingsRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateEnhancedMeasurementSettingsRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateEnhancedMeasurementSettingsRequestOrBuilder.java new file mode 100644 index 00000000..057ad02f --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateEnhancedMeasurementSettingsRequestOrBuilder.java @@ -0,0 +1,105 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface UpdateEnhancedMeasurementSettingsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The settings to update.
+   * The `name` field is used to identify the settings to be updated.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.EnhancedMeasurementSettings enhanced_measurement_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the enhancedMeasurementSettings field is set. + */ + boolean hasEnhancedMeasurementSettings(); + /** + * + * + *
+   * Required. The settings to update.
+   * The `name` field is used to identify the settings to be updated.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.EnhancedMeasurementSettings enhanced_measurement_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enhancedMeasurementSettings. + */ + com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings getEnhancedMeasurementSettings(); + /** + * + * + *
+   * Required. The settings to update.
+   * The `name` field is used to identify the settings to be updated.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.EnhancedMeasurementSettings enhanced_measurement_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.analytics.admin.v1alpha.EnhancedMeasurementSettingsOrBuilder + getEnhancedMeasurementSettingsOrBuilder(); + + /** + * + * + *
+   * 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/UpdateFirebaseLinkRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateFirebaseLinkRequest.java new file mode 100644 index 00000000..016f3e85 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateFirebaseLinkRequest.java @@ -0,0 +1,1034 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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 UpdateFirebaseLink RPC
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest} + */ +public final class UpdateFirebaseLinkRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest) + UpdateFirebaseLinkRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateFirebaseLinkRequest.newBuilder() to construct. + private UpdateFirebaseLinkRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateFirebaseLinkRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateFirebaseLinkRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private UpdateFirebaseLinkRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.analytics.admin.v1alpha.FirebaseLink.Builder subBuilder = null; + if (firebaseLink_ != null) { + subBuilder = firebaseLink_.toBuilder(); + } + firebaseLink_ = + input.readMessage( + com.google.analytics.admin.v1alpha.FirebaseLink.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(firebaseLink_); + firebaseLink_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateFirebaseLinkRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateFirebaseLinkRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest.class, + com.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest.Builder.class); + } + + public static final int FIREBASE_LINK_FIELD_NUMBER = 1; + private com.google.analytics.admin.v1alpha.FirebaseLink firebaseLink_; + /** + * + * + *
+   * Required. The Firebase link to update.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.FirebaseLink firebase_link = 1 [(.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 update.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.FirebaseLink firebase_link = 1 [(.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 update.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.FirebaseLink firebase_link = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.FirebaseLinkOrBuilder getFirebaseLinkOrBuilder() { + return getFirebaseLink(); + } + + 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 (firebaseLink_ != null) { + output.writeMessage(1, getFirebaseLink()); + } + if (updateMask_ != null) { + output.writeMessage(2, getUpdateMask()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (firebaseLink_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getFirebaseLink()); + } + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest other = + (com.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest) obj; + + if (hasFirebaseLink() != other.hasFirebaseLink()) return false; + if (hasFirebaseLink()) { + if (!getFirebaseLink().equals(other.getFirebaseLink())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasFirebaseLink()) { + hash = (37 * hash) + FIREBASE_LINK_FIELD_NUMBER; + hash = (53 * hash) + getFirebaseLink().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for UpdateFirebaseLink RPC
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest) + com.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateFirebaseLinkRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateFirebaseLinkRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest.class, + com.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (firebaseLinkBuilder_ == null) { + firebaseLink_ = null; + } else { + firebaseLink_ = null; + firebaseLinkBuilder_ = 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_UpdateFirebaseLinkRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest build() { + com.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest buildPartial() { + com.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest result = + new com.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest(this); + if (firebaseLinkBuilder_ == null) { + result.firebaseLink_ = firebaseLink_; + } else { + result.firebaseLink_ = firebaseLinkBuilder_.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.UpdateFirebaseLinkRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest other) { + if (other + == com.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest.getDefaultInstance()) + return this; + if (other.hasFirebaseLink()) { + mergeFirebaseLink(other.getFirebaseLink()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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 update.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.FirebaseLink firebase_link = 1 [(.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 update.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.FirebaseLink firebase_link = 1 [(.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 update.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.FirebaseLink firebase_link = 1 [(.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 update.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.FirebaseLink firebase_link = 1 [(.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 update.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.FirebaseLink firebase_link = 1 [(.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 update.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.FirebaseLink firebase_link = 1 [(.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 update.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.FirebaseLink firebase_link = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.FirebaseLink.Builder getFirebaseLinkBuilder() { + + onChanged(); + return getFirebaseLinkFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The Firebase link to update.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.FirebaseLink firebase_link = 1 [(.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 update.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.FirebaseLink firebase_link = 1 [(.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_; + } + + 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.UpdateFirebaseLinkRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest) + private static final com.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest(); + } + + public static com.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateFirebaseLinkRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateFirebaseLinkRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateFirebaseLinkRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateFirebaseLinkRequestOrBuilder.java new file mode 100644 index 00000000..cecaa345 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateFirebaseLinkRequestOrBuilder.java @@ -0,0 +1,101 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface UpdateFirebaseLinkRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The Firebase link to update.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.FirebaseLink firebase_link = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the firebaseLink field is set. + */ + boolean hasFirebaseLink(); + /** + * + * + *
+   * Required. The Firebase link to update.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.FirebaseLink firebase_link = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The firebaseLink. + */ + com.google.analytics.admin.v1alpha.FirebaseLink getFirebaseLink(); + /** + * + * + *
+   * Required. The Firebase link to update.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.FirebaseLink firebase_link = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.analytics.admin.v1alpha.FirebaseLinkOrBuilder getFirebaseLinkOrBuilder(); + + /** + * + * + *
+   * 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/UpdateGoogleAdsLinkRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateGoogleAdsLinkRequest.java new file mode 100644 index 00000000..27fc3225 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateGoogleAdsLinkRequest.java @@ -0,0 +1,1011 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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; + } + + private UpdateGoogleAdsLinkRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.analytics.admin.v1alpha.GoogleAdsLink.Builder subBuilder = null; + if (googleAdsLink_ != null) { + subBuilder = googleAdsLink_.toBuilder(); + } + googleAdsLink_ = + input.readMessage( + com.google.analytics.admin.v1alpha.GoogleAdsLink.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(googleAdsLink_); + googleAdsLink_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_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_; + /** + * + * + *
+   * 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 (googleAdsLink_ != null) { + output.writeMessage(1, getGoogleAdsLink()); + } + if (updateMask_ != null) { + output.writeMessage(2, getUpdateMask()); + } + unknownFields.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 += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.admin.v1alpha.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 (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (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) + unknownFields.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() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (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.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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_; + /** + * + * + *
+     * 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.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 { + return new UpdateGoogleAdsLinkRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.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 new file mode 100644 index 00000000..2986af9f --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateGoogleAdsLinkRequestOrBuilder.java @@ -0,0 +1,95 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/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(); + + /** + * + * + *
+   * 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/UpdateIosAppDataStreamRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateIosAppDataStreamRequest.java new file mode 100644 index 00000000..5f912ee2 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateIosAppDataStreamRequest.java @@ -0,0 +1,1055 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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 UpdateIosAppDataStream RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest} + */ +public final class UpdateIosAppDataStreamRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest) + UpdateIosAppDataStreamRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateIosAppDataStreamRequest.newBuilder() to construct. + private UpdateIosAppDataStreamRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateIosAppDataStreamRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateIosAppDataStreamRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private UpdateIosAppDataStreamRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.analytics.admin.v1alpha.IosAppDataStream.Builder subBuilder = null; + if (iosAppDataStream_ != null) { + subBuilder = iosAppDataStream_.toBuilder(); + } + iosAppDataStream_ = + input.readMessage( + com.google.analytics.admin.v1alpha.IosAppDataStream.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(iosAppDataStream_); + iosAppDataStream_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateIosAppDataStreamRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateIosAppDataStreamRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest.class, + com.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest.Builder.class); + } + + public static final int IOS_APP_DATA_STREAM_FIELD_NUMBER = 1; + private com.google.analytics.admin.v1alpha.IosAppDataStream iosAppDataStream_; + /** + * + * + *
+   * Required. The iOS app stream to update.
+   * The `name` field is used to identify the iOS app stream to be updated.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the iosAppDataStream field is set. + */ + @java.lang.Override + public boolean hasIosAppDataStream() { + return iosAppDataStream_ != null; + } + /** + * + * + *
+   * Required. The iOS app stream to update.
+   * The `name` field is used to identify the iOS app stream to be updated.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The iosAppDataStream. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.IosAppDataStream getIosAppDataStream() { + return iosAppDataStream_ == null + ? com.google.analytics.admin.v1alpha.IosAppDataStream.getDefaultInstance() + : iosAppDataStream_; + } + /** + * + * + *
+   * Required. The iOS app stream to update.
+   * The `name` field is used to identify the iOS app stream to be updated.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.IosAppDataStreamOrBuilder + getIosAppDataStreamOrBuilder() { + return getIosAppDataStream(); + } + + 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 (iosAppDataStream_ != null) { + output.writeMessage(1, getIosAppDataStream()); + } + if (updateMask_ != null) { + output.writeMessage(2, getUpdateMask()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (iosAppDataStream_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getIosAppDataStream()); + } + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest other = + (com.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest) obj; + + if (hasIosAppDataStream() != other.hasIosAppDataStream()) return false; + if (hasIosAppDataStream()) { + if (!getIosAppDataStream().equals(other.getIosAppDataStream())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasIosAppDataStream()) { + hash = (37 * hash) + IOS_APP_DATA_STREAM_FIELD_NUMBER; + hash = (53 * hash) + getIosAppDataStream().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for UpdateIosAppDataStream RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest) + com.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateIosAppDataStreamRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateIosAppDataStreamRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest.class, + com.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (iosAppDataStreamBuilder_ == null) { + iosAppDataStream_ = null; + } else { + iosAppDataStream_ = null; + iosAppDataStreamBuilder_ = 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_UpdateIosAppDataStreamRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest build() { + com.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest buildPartial() { + com.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest result = + new com.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest(this); + if (iosAppDataStreamBuilder_ == null) { + result.iosAppDataStream_ = iosAppDataStream_; + } else { + result.iosAppDataStream_ = iosAppDataStreamBuilder_.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.UpdateIosAppDataStreamRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest other) { + if (other + == com.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest.getDefaultInstance()) + return this; + if (other.hasIosAppDataStream()) { + mergeIosAppDataStream(other.getIosAppDataStream()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.analytics.admin.v1alpha.IosAppDataStream iosAppDataStream_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.IosAppDataStream, + com.google.analytics.admin.v1alpha.IosAppDataStream.Builder, + com.google.analytics.admin.v1alpha.IosAppDataStreamOrBuilder> + iosAppDataStreamBuilder_; + /** + * + * + *
+     * Required. The iOS app stream to update.
+     * The `name` field is used to identify the iOS app stream to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the iosAppDataStream field is set. + */ + public boolean hasIosAppDataStream() { + return iosAppDataStreamBuilder_ != null || iosAppDataStream_ != null; + } + /** + * + * + *
+     * Required. The iOS app stream to update.
+     * The `name` field is used to identify the iOS app stream to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The iosAppDataStream. + */ + public com.google.analytics.admin.v1alpha.IosAppDataStream getIosAppDataStream() { + if (iosAppDataStreamBuilder_ == null) { + return iosAppDataStream_ == null + ? com.google.analytics.admin.v1alpha.IosAppDataStream.getDefaultInstance() + : iosAppDataStream_; + } else { + return iosAppDataStreamBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The iOS app stream to update.
+     * The `name` field is used to identify the iOS app stream to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setIosAppDataStream(com.google.analytics.admin.v1alpha.IosAppDataStream value) { + if (iosAppDataStreamBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + iosAppDataStream_ = value; + onChanged(); + } else { + iosAppDataStreamBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. The iOS app stream to update.
+     * The `name` field is used to identify the iOS app stream to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setIosAppDataStream( + com.google.analytics.admin.v1alpha.IosAppDataStream.Builder builderForValue) { + if (iosAppDataStreamBuilder_ == null) { + iosAppDataStream_ = builderForValue.build(); + onChanged(); + } else { + iosAppDataStreamBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. The iOS app stream to update.
+     * The `name` field is used to identify the iOS app stream to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeIosAppDataStream( + com.google.analytics.admin.v1alpha.IosAppDataStream value) { + if (iosAppDataStreamBuilder_ == null) { + if (iosAppDataStream_ != null) { + iosAppDataStream_ = + com.google.analytics.admin.v1alpha.IosAppDataStream.newBuilder(iosAppDataStream_) + .mergeFrom(value) + .buildPartial(); + } else { + iosAppDataStream_ = value; + } + onChanged(); + } else { + iosAppDataStreamBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. The iOS app stream to update.
+     * The `name` field is used to identify the iOS app stream to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearIosAppDataStream() { + if (iosAppDataStreamBuilder_ == null) { + iosAppDataStream_ = null; + onChanged(); + } else { + iosAppDataStream_ = null; + iosAppDataStreamBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. The iOS app stream to update.
+     * The `name` field is used to identify the iOS app stream to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.IosAppDataStream.Builder + getIosAppDataStreamBuilder() { + + onChanged(); + return getIosAppDataStreamFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The iOS app stream to update.
+     * The `name` field is used to identify the iOS app stream to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.IosAppDataStreamOrBuilder + getIosAppDataStreamOrBuilder() { + if (iosAppDataStreamBuilder_ != null) { + return iosAppDataStreamBuilder_.getMessageOrBuilder(); + } else { + return iosAppDataStream_ == null + ? com.google.analytics.admin.v1alpha.IosAppDataStream.getDefaultInstance() + : iosAppDataStream_; + } + } + /** + * + * + *
+     * Required. The iOS app stream to update.
+     * The `name` field is used to identify the iOS app stream to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.IosAppDataStream, + com.google.analytics.admin.v1alpha.IosAppDataStream.Builder, + com.google.analytics.admin.v1alpha.IosAppDataStreamOrBuilder> + getIosAppDataStreamFieldBuilder() { + if (iosAppDataStreamBuilder_ == null) { + iosAppDataStreamBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.IosAppDataStream, + com.google.analytics.admin.v1alpha.IosAppDataStream.Builder, + com.google.analytics.admin.v1alpha.IosAppDataStreamOrBuilder>( + getIosAppDataStream(), getParentForChildren(), isClean()); + iosAppDataStream_ = null; + } + return iosAppDataStreamBuilder_; + } + + 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.UpdateIosAppDataStreamRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest) + private static final com.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest(); + } + + public static com.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateIosAppDataStreamRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateIosAppDataStreamRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateIosAppDataStreamRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateIosAppDataStreamRequestOrBuilder.java new file mode 100644 index 00000000..76bd19d7 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateIosAppDataStreamRequestOrBuilder.java @@ -0,0 +1,104 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface UpdateIosAppDataStreamRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The iOS app stream to update.
+   * The `name` field is used to identify the iOS app stream to be updated.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the iosAppDataStream field is set. + */ + boolean hasIosAppDataStream(); + /** + * + * + *
+   * Required. The iOS app stream to update.
+   * The `name` field is used to identify the iOS app stream to be updated.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The iosAppDataStream. + */ + com.google.analytics.admin.v1alpha.IosAppDataStream getIosAppDataStream(); + /** + * + * + *
+   * Required. The iOS app stream to update.
+   * The `name` field is used to identify the iOS app stream to be updated.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.analytics.admin.v1alpha.IosAppDataStreamOrBuilder getIosAppDataStreamOrBuilder(); + + /** + * + * + *
+   * 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 new file mode 100644 index 00000000..ccaa9174 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdatePropertyRequest.java @@ -0,0 +1,1055 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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; + } + + private UpdatePropertyRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.analytics.admin.v1alpha.Property.Builder subBuilder = null; + if (property_ != null) { + subBuilder = property_.toBuilder(); + } + property_ = + input.readMessage( + com.google.analytics.admin.v1alpha.Property.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(property_); + property_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_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_; + /** + * + * + *
+   * 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 (property_ != null) { + output.writeMessage(1, getProperty()); + } + if (updateMask_ != null) { + output.writeMessage(2, getUpdateMask()); + } + unknownFields.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 += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.admin.v1alpha.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 (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (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) + unknownFields.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() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (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.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.analytics.admin.v1alpha.UpdatePropertyRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.UpdatePropertyRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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_; + /** + * + * + *
+     * 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.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 { + return new UpdatePropertyRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.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 new file mode 100644 index 00000000..dfeecc2d --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdatePropertyRequestOrBuilder.java @@ -0,0 +1,107 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated 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(); + + /** + * + * + *
+   * 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/UpdateUserLinkRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateUserLinkRequest.java new file mode 100644 index 00000000..a871f44e --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateUserLinkRequest.java @@ -0,0 +1,759 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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; + } + + private UpdateUserLinkRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.analytics.admin.v1alpha.UserLink.Builder subBuilder = null; + if (userLink_ != null) { + subBuilder = userLink_.toBuilder(); + } + userLink_ = + input.readMessage( + com.google.analytics.admin.v1alpha.UserLink.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(userLink_); + userLink_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_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()); + } + unknownFields.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 += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.admin.v1alpha.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 (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasUserLink()) { + hash = (37 * hash) + USER_LINK_FIELD_NUMBER; + hash = (53 * hash) + getUserLink().hashCode(); + } + hash = (29 * hash) + unknownFields.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() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (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.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.analytics.admin.v1alpha.UpdateUserLinkRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.UpdateUserLinkRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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 { + return new UpdateUserLinkRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.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 new file mode 100644 index 00000000..4378c44f --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateUserLinkRequestOrBuilder.java @@ -0,0 +1,66 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated 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/UpdateWebDataStreamRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateWebDataStreamRequest.java new file mode 100644 index 00000000..ce77af02 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateWebDataStreamRequest.java @@ -0,0 +1,1047 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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 UpdateWebDataStream RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.UpdateWebDataStreamRequest} + */ +public final class UpdateWebDataStreamRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.UpdateWebDataStreamRequest) + UpdateWebDataStreamRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateWebDataStreamRequest.newBuilder() to construct. + private UpdateWebDataStreamRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateWebDataStreamRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateWebDataStreamRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private UpdateWebDataStreamRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.analytics.admin.v1alpha.WebDataStream.Builder subBuilder = null; + if (webDataStream_ != null) { + subBuilder = webDataStream_.toBuilder(); + } + webDataStream_ = + input.readMessage( + com.google.analytics.admin.v1alpha.WebDataStream.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(webDataStream_); + webDataStream_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateWebDataStreamRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateWebDataStreamRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest.class, + com.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest.Builder.class); + } + + public static final int WEB_DATA_STREAM_FIELD_NUMBER = 1; + private com.google.analytics.admin.v1alpha.WebDataStream webDataStream_; + /** + * + * + *
+   * Required. The web stream to update.
+   * The `name` field is used to identify the web stream to be updated.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.WebDataStream web_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the webDataStream field is set. + */ + @java.lang.Override + public boolean hasWebDataStream() { + return webDataStream_ != null; + } + /** + * + * + *
+   * Required. The web stream to update.
+   * The `name` field is used to identify the web stream to be updated.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.WebDataStream web_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The webDataStream. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.WebDataStream getWebDataStream() { + return webDataStream_ == null + ? com.google.analytics.admin.v1alpha.WebDataStream.getDefaultInstance() + : webDataStream_; + } + /** + * + * + *
+   * Required. The web stream to update.
+   * The `name` field is used to identify the web stream to be updated.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.WebDataStream web_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.WebDataStreamOrBuilder getWebDataStreamOrBuilder() { + return getWebDataStream(); + } + + 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 (webDataStream_ != null) { + output.writeMessage(1, getWebDataStream()); + } + if (updateMask_ != null) { + output.writeMessage(2, getUpdateMask()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (webDataStream_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getWebDataStream()); + } + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest other = + (com.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest) obj; + + if (hasWebDataStream() != other.hasWebDataStream()) return false; + if (hasWebDataStream()) { + if (!getWebDataStream().equals(other.getWebDataStream())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasWebDataStream()) { + hash = (37 * hash) + WEB_DATA_STREAM_FIELD_NUMBER; + hash = (53 * hash) + getWebDataStream().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for UpdateWebDataStream RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.UpdateWebDataStreamRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.UpdateWebDataStreamRequest) + com.google.analytics.admin.v1alpha.UpdateWebDataStreamRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateWebDataStreamRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateWebDataStreamRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest.class, + com.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (webDataStreamBuilder_ == null) { + webDataStream_ = null; + } else { + webDataStream_ = null; + webDataStreamBuilder_ = 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_UpdateWebDataStreamRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest build() { + com.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest buildPartial() { + com.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest result = + new com.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest(this); + if (webDataStreamBuilder_ == null) { + result.webDataStream_ = webDataStream_; + } else { + result.webDataStream_ = webDataStreamBuilder_.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.UpdateWebDataStreamRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest other) { + if (other + == com.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest.getDefaultInstance()) + return this; + if (other.hasWebDataStream()) { + mergeWebDataStream(other.getWebDataStream()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.analytics.admin.v1alpha.WebDataStream webDataStream_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.WebDataStream, + com.google.analytics.admin.v1alpha.WebDataStream.Builder, + com.google.analytics.admin.v1alpha.WebDataStreamOrBuilder> + webDataStreamBuilder_; + /** + * + * + *
+     * Required. The web stream to update.
+     * The `name` field is used to identify the web stream to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.WebDataStream web_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the webDataStream field is set. + */ + public boolean hasWebDataStream() { + return webDataStreamBuilder_ != null || webDataStream_ != null; + } + /** + * + * + *
+     * Required. The web stream to update.
+     * The `name` field is used to identify the web stream to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.WebDataStream web_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The webDataStream. + */ + public com.google.analytics.admin.v1alpha.WebDataStream getWebDataStream() { + if (webDataStreamBuilder_ == null) { + return webDataStream_ == null + ? com.google.analytics.admin.v1alpha.WebDataStream.getDefaultInstance() + : webDataStream_; + } else { + return webDataStreamBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The web stream to update.
+     * The `name` field is used to identify the web stream to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.WebDataStream web_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setWebDataStream(com.google.analytics.admin.v1alpha.WebDataStream value) { + if (webDataStreamBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + webDataStream_ = value; + onChanged(); + } else { + webDataStreamBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. The web stream to update.
+     * The `name` field is used to identify the web stream to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.WebDataStream web_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setWebDataStream( + com.google.analytics.admin.v1alpha.WebDataStream.Builder builderForValue) { + if (webDataStreamBuilder_ == null) { + webDataStream_ = builderForValue.build(); + onChanged(); + } else { + webDataStreamBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. The web stream to update.
+     * The `name` field is used to identify the web stream to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.WebDataStream web_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeWebDataStream(com.google.analytics.admin.v1alpha.WebDataStream value) { + if (webDataStreamBuilder_ == null) { + if (webDataStream_ != null) { + webDataStream_ = + com.google.analytics.admin.v1alpha.WebDataStream.newBuilder(webDataStream_) + .mergeFrom(value) + .buildPartial(); + } else { + webDataStream_ = value; + } + onChanged(); + } else { + webDataStreamBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. The web stream to update.
+     * The `name` field is used to identify the web stream to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.WebDataStream web_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearWebDataStream() { + if (webDataStreamBuilder_ == null) { + webDataStream_ = null; + onChanged(); + } else { + webDataStream_ = null; + webDataStreamBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. The web stream to update.
+     * The `name` field is used to identify the web stream to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.WebDataStream web_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.WebDataStream.Builder getWebDataStreamBuilder() { + + onChanged(); + return getWebDataStreamFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The web stream to update.
+     * The `name` field is used to identify the web stream to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.WebDataStream web_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.WebDataStreamOrBuilder getWebDataStreamOrBuilder() { + if (webDataStreamBuilder_ != null) { + return webDataStreamBuilder_.getMessageOrBuilder(); + } else { + return webDataStream_ == null + ? com.google.analytics.admin.v1alpha.WebDataStream.getDefaultInstance() + : webDataStream_; + } + } + /** + * + * + *
+     * Required. The web stream to update.
+     * The `name` field is used to identify the web stream to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.WebDataStream web_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.WebDataStream, + com.google.analytics.admin.v1alpha.WebDataStream.Builder, + com.google.analytics.admin.v1alpha.WebDataStreamOrBuilder> + getWebDataStreamFieldBuilder() { + if (webDataStreamBuilder_ == null) { + webDataStreamBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.WebDataStream, + com.google.analytics.admin.v1alpha.WebDataStream.Builder, + com.google.analytics.admin.v1alpha.WebDataStreamOrBuilder>( + getWebDataStream(), getParentForChildren(), isClean()); + webDataStream_ = null; + } + return webDataStreamBuilder_; + } + + 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.UpdateWebDataStreamRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.UpdateWebDataStreamRequest) + private static final com.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest(); + } + + public static com.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateWebDataStreamRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateWebDataStreamRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateWebDataStreamRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateWebDataStreamRequestOrBuilder.java new file mode 100644 index 00000000..75ba8661 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateWebDataStreamRequestOrBuilder.java @@ -0,0 +1,104 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface UpdateWebDataStreamRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.UpdateWebDataStreamRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The web stream to update.
+   * The `name` field is used to identify the web stream to be updated.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.WebDataStream web_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the webDataStream field is set. + */ + boolean hasWebDataStream(); + /** + * + * + *
+   * Required. The web stream to update.
+   * The `name` field is used to identify the web stream to be updated.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.WebDataStream web_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The webDataStream. + */ + com.google.analytics.admin.v1alpha.WebDataStream getWebDataStream(); + /** + * + * + *
+   * Required. The web stream to update.
+   * The `name` field is used to identify the web stream to be updated.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.WebDataStream web_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.analytics.admin.v1alpha.WebDataStreamOrBuilder getWebDataStreamOrBuilder(); + + /** + * + * + *
+   * 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/UserLink.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UserLink.java new file mode 100644 index 00000000..3fada25c --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UserLink.java @@ -0,0 +1,1212 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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; + } + + private UserLink( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + emailAddress_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + directRoles_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + directRoles_.add(s); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + directRoles_ = directRoles_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_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_; + /** + * + * + *
+   * 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 user to link
+   * 
+ * + * 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 user to link
+   * 
+ * + * 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 account or property.
+   * Valid values:
+   * predefinedRoles/read
+   * predefinedRoles/collaborate
+   * predefinedRoles/edit
+   * predefinedRoles/manage-users
+   * 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/read
+   * predefinedRoles/collaborate
+   * predefinedRoles/edit
+   * predefinedRoles/manage-users
+   * 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/read
+   * predefinedRoles/collaborate
+   * predefinedRoles/edit
+   * predefinedRoles/manage-users
+   * 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/read
+   * predefinedRoles/collaborate
+   * predefinedRoles/edit
+   * predefinedRoles/manage-users
+   * 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 (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!getEmailAddressBytes().isEmpty()) { + 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)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!getEmailAddressBytes().isEmpty()) { + 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 += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.admin.v1alpha.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 (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + 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) + unknownFields.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() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + 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.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.analytics.admin.v1alpha.UserLink parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.analytics.admin.v1alpha.UserLink) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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 user to link
+     * 
+ * + * 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 user to link
+     * 
+ * + * 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 user to link
+     * 
+ * + * 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 user to link
+     * 
+ * + * string email_address = 2; + * + * @return This builder for chaining. + */ + public Builder clearEmailAddress() { + + emailAddress_ = getDefaultInstance().getEmailAddress(); + onChanged(); + return this; + } + /** + * + * + *
+     * Email address of the user to link
+     * 
+ * + * 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 account or property.
+     * Valid values:
+     * predefinedRoles/read
+     * predefinedRoles/collaborate
+     * predefinedRoles/edit
+     * predefinedRoles/manage-users
+     * 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/read
+     * predefinedRoles/collaborate
+     * predefinedRoles/edit
+     * predefinedRoles/manage-users
+     * 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/read
+     * predefinedRoles/collaborate
+     * predefinedRoles/edit
+     * predefinedRoles/manage-users
+     * 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/read
+     * predefinedRoles/collaborate
+     * predefinedRoles/edit
+     * predefinedRoles/manage-users
+     * 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/read
+     * predefinedRoles/collaborate
+     * predefinedRoles/edit
+     * predefinedRoles/manage-users
+     * 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/read
+     * predefinedRoles/collaborate
+     * predefinedRoles/edit
+     * predefinedRoles/manage-users
+     * 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/read
+     * predefinedRoles/collaborate
+     * predefinedRoles/edit
+     * predefinedRoles/manage-users
+     * 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/read
+     * predefinedRoles/collaborate
+     * predefinedRoles/edit
+     * predefinedRoles/manage-users
+     * 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/read
+     * predefinedRoles/collaborate
+     * predefinedRoles/edit
+     * predefinedRoles/manage-users
+     * 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 { + return new UserLink(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.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 new file mode 100644 index 00000000..276cc11f --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UserLinkName.java @@ -0,0 +1,293 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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; + +/** AUTO-GENERATED DOCUMENTATION AND CLASS */ +@javax.annotation.Generated("by GAPIC protoc plugin") +public class UserLinkName implements ResourceName { + + @Deprecated + protected UserLinkName() {} + + private static final PathTemplate ACCOUNT_USER_LINK_PATH_TEMPLATE = + PathTemplate.createWithoutUrlEncoding("accounts/{account}/userLinks/{user_link}"); + private static final PathTemplate PROPERTY_USER_LINK_PATH_TEMPLATE = + PathTemplate.createWithoutUrlEncoding("properties/{property}/userLinks/{user_link}"); + + private volatile Map fieldValuesMap; + private PathTemplate pathTemplate; + private String fixedValue; + + private String account; + private String userLink; + private String property; + + public String getAccount() { + return account; + } + + public String getUserLink() { + return userLink; + } + + public String getProperty() { + return property; + } + + private UserLinkName(Builder builder) { + account = Preconditions.checkNotNull(builder.getAccount()); + userLink = Preconditions.checkNotNull(builder.getUserLink()); + pathTemplate = ACCOUNT_USER_LINK_PATH_TEMPLATE; + } + + private UserLinkName(PropertyUserLinkBuilder builder) { + property = Preconditions.checkNotNull(builder.getProperty()); + userLink = Preconditions.checkNotNull(builder.getUserLink()); + pathTemplate = PROPERTY_USER_LINK_PATH_TEMPLATE; + } + + 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 newAccountUserLinkBuilder().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 newAccountUserLinkBuilder().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_PATH_TEMPLATE.matches(formattedString)) { + Map matchMap = ACCOUNT_USER_LINK_PATH_TEMPLATE.match(formattedString); + return ofAccountUserLinkName(matchMap.get("account"), matchMap.get("user_link")); + } else if (PROPERTY_USER_LINK_PATH_TEMPLATE.matches(formattedString)) { + Map matchMap = PROPERTY_USER_LINK_PATH_TEMPLATE.match(formattedString); + return ofPropertyUserLinkName(matchMap.get("property"), matchMap.get("user_link")); + } + throw new ValidationException("JobName.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_PATH_TEMPLATE.matches(formattedString) + || PROPERTY_USER_LINK_PATH_TEMPLATE.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()); + } + + /** 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( + userLinkName.pathTemplate == ACCOUNT_USER_LINK_PATH_TEMPLATE, + "toBuilder is only supported when UserLinkName has the pattern of " + + "accounts/{account}/userLinks/{user_link}."); + account = userLinkName.account; + 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; + + private 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); + } + } + + @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; + } +} 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 new file mode 100644 index 00000000..f096ae2b --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UserLinkOrBuilder.java @@ -0,0 +1,162 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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 { + + /** + * + * + *
+   * 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 user to link
+   * 
+ * + * string email_address = 2; + * + * @return The emailAddress. + */ + java.lang.String getEmailAddress(); + /** + * + * + *
+   * Email address of the user to link
+   * 
+ * + * string email_address = 2; + * + * @return The bytes for emailAddress. + */ + com.google.protobuf.ByteString getEmailAddressBytes(); + + /** + * + * + *
+   * Roles directly assigned to this user for this account or property.
+   * Valid values:
+   * predefinedRoles/read
+   * predefinedRoles/collaborate
+   * predefinedRoles/edit
+   * predefinedRoles/manage-users
+   * 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/read
+   * predefinedRoles/collaborate
+   * predefinedRoles/edit
+   * predefinedRoles/manage-users
+   * 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/read
+   * predefinedRoles/collaborate
+   * predefinedRoles/edit
+   * predefinedRoles/manage-users
+   * 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/read
+   * predefinedRoles/collaborate
+   * predefinedRoles/edit
+   * predefinedRoles/manage-users
+   * 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/java/com/google/analytics/admin/v1alpha/WebDataStream.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/WebDataStream.java new file mode 100644 index 00000000..50abcfea --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/WebDataStream.java @@ -0,0 +1,1979 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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 web stream.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.WebDataStream} + */ +public final class WebDataStream extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.WebDataStream) + WebDataStreamOrBuilder { + private static final long serialVersionUID = 0L; + // Use WebDataStream.newBuilder() to construct. + private WebDataStream(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private WebDataStream() { + name_ = ""; + measurementId_ = ""; + firebaseAppId_ = ""; + defaultUri_ = ""; + displayName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new WebDataStream(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private WebDataStream( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + measurementId_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + firebaseAppId_ = s; + break; + } + case 34: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); + } + createTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); + } + + break; + } + case 42: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (updateTime_ != null) { + subBuilder = updateTime_.toBuilder(); + } + updateTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateTime_); + updateTime_ = subBuilder.buildPartial(); + } + + break; + } + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + + defaultUri_ = s; + break; + } + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); + + displayName_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_WebDataStream_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_WebDataStream_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.WebDataStream.class, + com.google.analytics.admin.v1alpha.WebDataStream.Builder.class); + } + + 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}/webDataStreams/{stream_id}
+   * Example: "properties/1000/webDataStreams/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}/webDataStreams/{stream_id}
+   * Example: "properties/1000/webDataStreams/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 MEASUREMENT_ID_FIELD_NUMBER = 2; + 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 = 2 [(.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 = 2 [(.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 = 3; + 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 = 3 [(.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 = 3 [(.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 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(); + } + + public static final int DEFAULT_URI_FIELD_NUMBER = 6; + 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 = 6 [(.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 = 6 [(.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; + } + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 7; + private volatile java.lang.Object displayName_; + /** + * + * + *
+   * Required. Human-readable display name for the Data Stream.
+   * The max allowed display name length is 100 UTF-16 code units.
+   * 
+ * + * string display_name = 7 [(.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 the Data Stream.
+   * The max allowed display name length is 100 UTF-16 code units.
+   * 
+ * + * string display_name = 7 [(.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; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!getMeasurementIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, measurementId_); + } + if (!getFirebaseAppIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, firebaseAppId_); + } + if (createTime_ != null) { + output.writeMessage(4, getCreateTime()); + } + if (updateTime_ != null) { + output.writeMessage(5, getUpdateTime()); + } + if (!getDefaultUriBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, defaultUri_); + } + if (!getDisplayNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, displayName_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!getMeasurementIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, measurementId_); + } + if (!getFirebaseAppIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, firebaseAppId_); + } + if (createTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCreateTime()); + } + if (updateTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getUpdateTime()); + } + if (!getDefaultUriBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, defaultUri_); + } + if (!getDisplayNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, displayName_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.admin.v1alpha.WebDataStream)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.WebDataStream other = + (com.google.analytics.admin.v1alpha.WebDataStream) obj; + + if (!getName().equals(other.getName())) return false; + if (!getMeasurementId().equals(other.getMeasurementId())) return false; + if (!getFirebaseAppId().equals(other.getFirebaseAppId())) 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 (!getDefaultUri().equals(other.getDefaultUri())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().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(); + 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) + DEFAULT_URI_FIELD_NUMBER; + hash = (53 * hash) + getDefaultUri().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.WebDataStream parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.WebDataStream parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.WebDataStream parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.WebDataStream parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.WebDataStream parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.WebDataStream parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.WebDataStream parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.WebDataStream parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.WebDataStream parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.WebDataStream parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.WebDataStream parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.WebDataStream parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.analytics.admin.v1alpha.WebDataStream prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 web stream.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.WebDataStream} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.WebDataStream) + com.google.analytics.admin.v1alpha.WebDataStreamOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_WebDataStream_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_WebDataStream_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.WebDataStream.class, + com.google.analytics.admin.v1alpha.WebDataStream.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.WebDataStream.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + measurementId_ = ""; + + firebaseAppId_ = ""; + + if (createTimeBuilder_ == null) { + createTime_ = null; + } else { + createTime_ = null; + createTimeBuilder_ = null; + } + if (updateTimeBuilder_ == null) { + updateTime_ = null; + } else { + updateTime_ = null; + updateTimeBuilder_ = null; + } + defaultUri_ = ""; + + displayName_ = ""; + + 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_WebDataStream_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.WebDataStream getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.WebDataStream.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.WebDataStream build() { + com.google.analytics.admin.v1alpha.WebDataStream result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.WebDataStream buildPartial() { + com.google.analytics.admin.v1alpha.WebDataStream result = + new com.google.analytics.admin.v1alpha.WebDataStream(this); + result.name_ = name_; + result.measurementId_ = measurementId_; + result.firebaseAppId_ = firebaseAppId_; + if (createTimeBuilder_ == null) { + result.createTime_ = createTime_; + } else { + result.createTime_ = createTimeBuilder_.build(); + } + if (updateTimeBuilder_ == null) { + result.updateTime_ = updateTime_; + } else { + result.updateTime_ = updateTimeBuilder_.build(); + } + result.defaultUri_ = defaultUri_; + result.displayName_ = displayName_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.WebDataStream) { + return mergeFrom((com.google.analytics.admin.v1alpha.WebDataStream) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.WebDataStream other) { + if (other == com.google.analytics.admin.v1alpha.WebDataStream.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getMeasurementId().isEmpty()) { + measurementId_ = other.measurementId_; + onChanged(); + } + if (!other.getFirebaseAppId().isEmpty()) { + firebaseAppId_ = other.firebaseAppId_; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (!other.getDefaultUri().isEmpty()) { + defaultUri_ = other.defaultUri_; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.analytics.admin.v1alpha.WebDataStream parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.analytics.admin.v1alpha.WebDataStream) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Output only. Resource name of this Data Stream.
+     * Format: properties/{property_id}/webDataStreams/{stream_id}
+     * Example: "properties/1000/webDataStreams/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}/webDataStreams/{stream_id}
+     * Example: "properties/1000/webDataStreams/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}/webDataStreams/{stream_id}
+     * Example: "properties/1000/webDataStreams/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}/webDataStreams/{stream_id}
+     * Example: "properties/1000/webDataStreams/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}/webDataStreams/{stream_id}
+     * Example: "properties/1000/webDataStreams/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 java.lang.Object measurementId_ = ""; + /** + * + * + *
+     * Output only. Analytics "Measurement ID", without the "G-" prefix.
+     * Example: "G-1A2BCD345E" would just be "1A2BCD345E"
+     * 
+ * + * string measurement_id = 2 [(.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 = 2 [(.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 = 2 [(.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 = 2 [(.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 = 2 [(.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 = 3 [(.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 = 3 [(.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 = 3 [(.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 = 3 [(.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 = 3 [(.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 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_; + } + + 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 = 6 [(.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 = 6 [(.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 = 6 [(.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 = 6 [(.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 = 6 [(.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; + } + + private java.lang.Object displayName_ = ""; + /** + * + * + *
+     * Required. Human-readable display name for the Data Stream.
+     * The max allowed display name length is 100 UTF-16 code units.
+     * 
+ * + * string display_name = 7 [(.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 the Data Stream.
+     * The max allowed display name length is 100 UTF-16 code units.
+     * 
+ * + * string display_name = 7 [(.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 the Data Stream.
+     * The max allowed display name length is 100 UTF-16 code units.
+     * 
+ * + * string display_name = 7 [(.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 the Data Stream.
+     * The max allowed display name length is 100 UTF-16 code units.
+     * 
+ * + * string display_name = 7 [(.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 the Data Stream.
+     * The max allowed display name length is 100 UTF-16 code units.
+     * 
+ * + * string display_name = 7 [(.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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.WebDataStream) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.WebDataStream) + private static final com.google.analytics.admin.v1alpha.WebDataStream DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.WebDataStream(); + } + + public static com.google.analytics.admin.v1alpha.WebDataStream getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WebDataStream parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WebDataStream(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.WebDataStream getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/WebDataStreamName.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/WebDataStreamName.java new file mode 100644 index 00000000..b774e15d --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/WebDataStreamName.java @@ -0,0 +1,184 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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; + +/** AUTO-GENERATED DOCUMENTATION AND CLASS */ +@javax.annotation.Generated("by GAPIC protoc plugin") +public class WebDataStreamName implements ResourceName { + + private static final PathTemplate PATH_TEMPLATE = + PathTemplate.createWithoutUrlEncoding( + "properties/{property}/webDataStreams/{web_data_stream}"); + + private volatile Map fieldValuesMap; + + private final String property; + private final String webDataStream; + + public String getProperty() { + return property; + } + + public String getWebDataStream() { + return webDataStream; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + private WebDataStreamName(Builder builder) { + property = Preconditions.checkNotNull(builder.getProperty()); + webDataStream = Preconditions.checkNotNull(builder.getWebDataStream()); + } + + public static WebDataStreamName of(String property, String webDataStream) { + return newBuilder().setProperty(property).setWebDataStream(webDataStream).build(); + } + + public static String format(String property, String webDataStream) { + return newBuilder().setProperty(property).setWebDataStream(webDataStream).build().toString(); + } + + public static WebDataStreamName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PATH_TEMPLATE.validatedMatch( + formattedString, "WebDataStreamName.parse: formattedString not in valid format"); + return of(matchMap.get("property"), matchMap.get("web_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 (WebDataStreamName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PATH_TEMPLATE.matches(formattedString); + } + + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + fieldMapBuilder.put("property", property); + fieldMapBuilder.put("webDataStream", webDataStream); + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PATH_TEMPLATE.instantiate("property", property, "web_data_stream", webDataStream); + } + + /** Builder for WebDataStreamName. */ + public static class Builder { + + private String property; + private String webDataStream; + + public String getProperty() { + return property; + } + + public String getWebDataStream() { + return webDataStream; + } + + public Builder setProperty(String property) { + this.property = property; + return this; + } + + public Builder setWebDataStream(String webDataStream) { + this.webDataStream = webDataStream; + return this; + } + + private Builder() {} + + private Builder(WebDataStreamName webDataStreamName) { + property = webDataStreamName.property; + webDataStream = webDataStreamName.webDataStream; + } + + public WebDataStreamName build() { + return new WebDataStreamName(this); + } + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o instanceof WebDataStreamName) { + WebDataStreamName that = (WebDataStreamName) o; + return (this.property.equals(that.property)) + && (this.webDataStream.equals(that.webDataStream)); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= property.hashCode(); + h *= 1000003; + h ^= webDataStream.hashCode(); + return h; + } +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/WebDataStreamOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/WebDataStreamOrBuilder.java new file mode 100644 index 00000000..51007ff4 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/WebDataStreamOrBuilder.java @@ -0,0 +1,238 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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 WebDataStreamOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.WebDataStream) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. Resource name of this Data Stream.
+   * Format: properties/{property_id}/webDataStreams/{stream_id}
+   * Example: "properties/1000/webDataStreams/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}/webDataStreams/{stream_id}
+   * Example: "properties/1000/webDataStreams/2000"
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Output only. Analytics "Measurement ID", without the "G-" prefix.
+   * Example: "G-1A2BCD345E" would just be "1A2BCD345E"
+   * 
+ * + * string measurement_id = 2 [(.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 = 2 [(.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 = 3 [(.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 = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for firebaseAppId. + */ + com.google.protobuf.ByteString getFirebaseAppIdBytes(); + + /** + * + * + *
+   * 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(); + + /** + * + * + *
+   * Immutable. Domain name of the web app being measured, or empty.
+   * Example: "http://www.google.com", "https://www.google.com"
+   * 
+ * + * string default_uri = 6 [(.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 = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for defaultUri. + */ + com.google.protobuf.ByteString getDefaultUriBytes(); + + /** + * + * + *
+   * Required. Human-readable display name for the Data Stream.
+   * The max allowed display name length is 100 UTF-16 code units.
+   * 
+ * + * string display_name = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + /** + * + * + *
+   * Required. Human-readable display name for the Data Stream.
+   * The max allowed display name length is 100 UTF-16 code units.
+   * 
+ * + * string display_name = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); +} 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 new file mode 100644 index 00000000..60d503a9 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/analytics_admin.proto @@ -0,0 +1,1344 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.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/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"; + +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 (App+Web). +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. + // Throws "Target not found" if no such account found, or if caller does not + // have permissions to access it. + 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 App+Web 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: "*" + }; + } + + // Lookup for a single "App+Web" Property. + // + // Throws "Target not found" if no such property found, if property is not + // of the type "App+Web", or if caller does not have permissions to access it. + 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 "App+Web" 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 "App+Web" 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 App+Web Property. + rpc DeleteProperty(DeletePropertyRequest) returns (google.protobuf.Empty) { + 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: "*" + } + }; + } + + // Lookup for a single WebDataStream + // + // Throws "Target not found" if no such web data stream found, or if the + // caller does not have permissions to access it. + rpc GetWebDataStream(GetWebDataStreamRequest) returns (WebDataStream) { + option (google.api.http) = { + get: "/v1alpha/{name=properties/*/webDataStreams/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Deletes a web stream on a property. + rpc DeleteWebDataStream(DeleteWebDataStreamRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v1alpha/{name=properties/*/webDataStreams/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Updates a web stream on a property. + rpc UpdateWebDataStream(UpdateWebDataStreamRequest) returns (WebDataStream) { + option (google.api.http) = { + patch: "/v1alpha/{web_data_stream.name=properties/*/webDataStreams/*}" + body: "web_data_stream" + }; + option (google.api.method_signature) = "web_data_stream,update_mask"; + } + + // Creates a web stream with the specified location and attributes. + rpc CreateWebDataStream(CreateWebDataStreamRequest) returns (WebDataStream) { + option (google.api.http) = { + post: "/v1alpha/{parent=properties/*}/webDataStreams" + body: "web_data_stream" + }; + option (google.api.method_signature) = "parent,web_data_stream"; + } + + // Returns child web data streams under the specified parent property. + // + // Web data streams will be excluded if the caller does not have access. + // Returns an empty list if no relevant web data streams are found. + rpc ListWebDataStreams(ListWebDataStreamsRequest) returns (ListWebDataStreamsResponse) { + option (google.api.http) = { + get: "/v1alpha/{parent=properties/*}/webDataStreams" + }; + option (google.api.method_signature) = "parent"; + } + + // Lookup for a single IosAppDataStream + // + // Throws "Target not found" if no such iOS app data stream found, or if the + // caller does not have permissions to access it. + rpc GetIosAppDataStream(GetIosAppDataStreamRequest) returns (IosAppDataStream) { + option (google.api.http) = { + get: "/v1alpha/{name=properties/*/iosAppDataStreams/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Deletes an iOS app stream on a property. + rpc DeleteIosAppDataStream(DeleteIosAppDataStreamRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v1alpha/{name=properties/*/iosAppDataStreams/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Updates an iOS app stream on a property. + rpc UpdateIosAppDataStream(UpdateIosAppDataStreamRequest) returns (IosAppDataStream) { + option (google.api.http) = { + patch: "/v1alpha/{ios_app_data_stream.name=properties/*/iosAppDataStreams/*}" + body: "ios_app_data_stream" + }; + option (google.api.method_signature) = "ios_app_data_stream,update_mask"; + } + + // Creates an iOS app data stream with the specified location and attributes. + rpc CreateIosAppDataStream(CreateIosAppDataStreamRequest) returns (IosAppDataStream) { + option (google.api.http) = { + post: "/v1alpha/{parent=properties/*}/iosAppDataStreams" + body: "ios_app_data_stream" + }; + option (google.api.method_signature) = "parent,ios_app_data_stream"; + } + + // Returns child iOS app data streams under the specified parent property. + // + // iOS app data streams will be excluded if the caller does not have access. + // Returns an empty list if no relevant iOS app data streams are found. + rpc ListIosAppDataStreams(ListIosAppDataStreamsRequest) returns (ListIosAppDataStreamsResponse) { + option (google.api.http) = { + get: "/v1alpha/{parent=properties/*}/iosAppDataStreams" + }; + option (google.api.method_signature) = "parent"; + } + + // Lookup for a single AndroidAppDataStream + // + // Throws "Target not found" if no such android app data stream found, or if + // the caller does not have permissions to access it. + rpc GetAndroidAppDataStream(GetAndroidAppDataStreamRequest) returns (AndroidAppDataStream) { + option (google.api.http) = { + get: "/v1alpha/{name=properties/*/androidAppDataStreams/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Deletes an android app stream on a property. + rpc DeleteAndroidAppDataStream(DeleteAndroidAppDataStreamRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v1alpha/{name=properties/*/androidAppDataStreams/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Updates an android app stream on a property. + rpc UpdateAndroidAppDataStream(UpdateAndroidAppDataStreamRequest) returns (AndroidAppDataStream) { + option (google.api.http) = { + patch: "/v1alpha/{android_app_data_stream.name=properties/*/androidAppDataStreams/*}" + body: "android_app_data_stream" + }; + option (google.api.method_signature) = "android_app_data_stream,update_mask"; + } + + // Creates an android app stream with the specified location and attributes. + rpc CreateAndroidAppDataStream(CreateAndroidAppDataStreamRequest) returns (AndroidAppDataStream) { + option (google.api.http) = { + post: "/v1alpha/{parent=properties/*}/androidAppDataStreams" + body: "android_app_data_stream" + }; + option (google.api.method_signature) = "parent,android_app_data_stream"; + } + + // Returns child android app streams under the specified parent property. + // + // Android app streams will be excluded if the caller does not have access. + // Returns an empty list if no relevant android app streams are found. + rpc ListAndroidAppDataStreams(ListAndroidAppDataStreamsRequest) returns (ListAndroidAppDataStreamsResponse) { + option (google.api.http) = { + get: "/v1alpha/{parent=properties/*}/androidAppDataStreams" + }; + option (google.api.method_signature) = "parent"; + } + + // Returns the singleton enhanced measurement settings for this web stream. + // Note that the stream must enable enhanced measurement for these settings to + // take effect. + rpc GetEnhancedMeasurementSettings(GetEnhancedMeasurementSettingsRequest) returns (EnhancedMeasurementSettings) { + option (google.api.http) = { + get: "/v1alpha/{name=properties/*/webDataStreams/*/enhancedMeasurementSettings}" + }; + option (google.api.method_signature) = "name"; + } + + // Updates the singleton enhanced measurement settings for this web stream. + // Note that the stream must enable enhanced measurement for these settings to + // take effect. + rpc UpdateEnhancedMeasurementSettings(UpdateEnhancedMeasurementSettingsRequest) returns (EnhancedMeasurementSettings) { + option (google.api.http) = { + patch: "/v1alpha/{enhanced_measurement_settings.name=properties/*/webDataStreams/*/enhancedMeasurementSettings}" + body: "enhanced_measurement_settings" + }; + option (google.api.method_signature) = "enhanced_measurement_settings,update_mask"; + } + + // 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"; + } + + // Updates a FirebaseLink on a property + rpc UpdateFirebaseLink(UpdateFirebaseLinkRequest) returns (FirebaseLink) { + option (google.api.http) = { + patch: "/v1alpha/{firebase_link.name=properties/*/firebaseLinks/*}" + body: "firebase_link" + }; + option (google.api.method_signature) = "firebase_link,update_mask"; + } + + // 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/*/webDataStreams/*/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"; + } +} + +// 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]; + + // The list of fields to be updated. Omitted fields will not be updated. + google.protobuf.FieldMask update_mask = 2; +} + +// 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) 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. | + // | 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]; + + // The list of fields to be updated. Omitted fields will not be updated. + google.protobuf.FieldMask update_mask = 2; +} + +// 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 notify_new_user is set, then email new user that they've been given + // permissions on 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]; + + // Optional. If notify_new_users is set, then email new users that they've been given + // permissions on the resource. + bool notify_new_users = 2 [(google.api.field_behavior) = OPTIONAL]; + + // The requests specifying the user links to create. + // A maximum of 1000 user links can be created in a batch. + repeated CreateUserLinkRequest requests = 3; +} + +// 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]; + + // The requests specifying the user links to update. + // A maximum of 1000 user links can be updated in a batch. + repeated UpdateUserLinkRequest requests = 2; +} + +// 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]; + + // The requests specifying the user links to update. + // A maximum of 1000 user links can be updated in a batch. + repeated DeleteUserLinkRequest requests = 2; +} + +// Request message for GetWebDataStream RPC. +message GetWebDataStreamRequest { + // Required. The name of the web data stream to lookup. + // Format: properties/{property_id}/webDataStreams/{stream_id} + // Example: "properties/123/webDataStreams/456" + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "analyticsadmin.googleapis.com/WebDataStream" + } + ]; +} + +// Request message for DeleteWebDataStream RPC. +message DeleteWebDataStreamRequest { + // Required. The name of the web data stream to delete. + // Format: properties/{property_id}/webDataStreams/{stream_id} + // Example: "properties/123/webDataStreams/456" + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "analyticsadmin.googleapis.com/WebDataStream" + } + ]; +} + +// Request message for UpdateWebDataStream RPC. +message UpdateWebDataStreamRequest { + // Required. The web stream to update. + // The `name` field is used to identify the web stream to be updated. + WebDataStream web_data_stream = 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 CreateWebDataStream RPC. +message CreateWebDataStreamRequest { + // Required. The web stream to create. + WebDataStream web_data_stream = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The parent resource where this web data stream will be created. + // Format: properties/123 + string parent = 2 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "analyticsadmin.googleapis.com/WebDataStream" + } + ]; +} + +// Request message for ListWebDataStreams RPC. +message ListWebDataStreamsRequest { + // Required. The name of the parent property. + // For example, to list results of web streams under the property with Id + // 123: "properties/123" + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "analyticsadmin.googleapis.com/WebDataStream" + } + ]; + + // The maximum number of resources to return. + // If unspecified, 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 `ListWebDataStreams` call. + // Provide this to retrieve the subsequent page. + // When paginating, all other parameters provided to `ListWebDataStreams` must + // match the call that provided the page token. + string page_token = 3; +} + +// Request message for ListWebDataStreams RPC. +message ListWebDataStreamsResponse { + // Results that matched the filter criteria and were accessible to the caller. + repeated WebDataStream web_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 GetIosAppDataStream RPC. +message GetIosAppDataStreamRequest { + // Required. The name of the iOS app data stream to lookup. + // Format: properties/{property_id}/iosAppDataStreams/{stream_id} + // Example: "properties/123/iosAppDataStreams/456" + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "analyticsadmin.googleapis.com/IosAppDataStream" + } + ]; +} + +// Request message for DeleteIosAppDataStream RPC. +message DeleteIosAppDataStreamRequest { + // Required. The name of the iOS app data stream to delete. + // Format: properties/{property_id}/iosAppDataStreams/{stream_id} + // Example: "properties/123/iosAppDataStreams/456" + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "analyticsadmin.googleapis.com/IosAppDataStream" + } + ]; +} + +// Request message for UpdateIosAppDataStream RPC. +message UpdateIosAppDataStreamRequest { + // Required. The iOS app stream to update. + // The `name` field is used to identify the iOS app stream to be updated. + IosAppDataStream ios_app_data_stream = 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 CreateIosAppDataStream RPC. +message CreateIosAppDataStreamRequest { + // Required. The iOS app data stream to create. + IosAppDataStream ios_app_data_stream = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The parent resource where this ios app data stream will be created. + // Format: properties/123 + string parent = 2 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "analyticsadmin.googleapis.com/IosAppDataStream" + } + ]; +} + +// Request message for ListIosAppDataStreams RPC. +message ListIosAppDataStreamsRequest { + // Required. The name of the parent property. + // For example, to list results of app streams under the property with Id + // 123: "properties/123" + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "analyticsadmin.googleapis.com/IosAppDataStream" + } + ]; + + // The maximum number of resources to return. + // If unspecified, 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 `ListIosAppDataStreams` + // call. Provide this to retrieve the subsequent page. + // When paginating, all other parameters provided to `ListIosAppDataStreams` + // must match the call that provided the page token. + string page_token = 3; +} + +// Request message for ListIosAppDataStreams RPC. +message ListIosAppDataStreamsResponse { + // Results that matched the filter criteria and were accessible to the caller. + repeated IosAppDataStream ios_app_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 GetAndroidAppDataStream RPC. +message GetAndroidAppDataStreamRequest { + // Required. The name of the android app data stream to lookup. + // Format: properties/{property_id}/androidAppDataStreams/{stream_id} + // Example: "properties/123/androidAppDataStreams/456" + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "analyticsadmin.googleapis.com/AndroidAppDataStream" + } + ]; +} + +// Request message for DeleteAndroidAppDataStream RPC. +message DeleteAndroidAppDataStreamRequest { + // Required. The name of the android app data stream to delete. + // Format: properties/{property_id}/androidAppDataStreams/{stream_id} + // Example: "properties/123/androidAppDataStreams/456" + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "analyticsadmin.googleapis.com/AndroidAppDataStream" + } + ]; +} + +// Request message for UpdateAndroidAppDataStream RPC. +message UpdateAndroidAppDataStreamRequest { + // Required. The android app stream to update. + // The `name` field is used to identify the android app stream to be updated. + AndroidAppDataStream android_app_data_stream = 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 CreateAndroidAppDataStream RPC. +message CreateAndroidAppDataStreamRequest { + // Required. The android app stream to create. + AndroidAppDataStream android_app_data_stream = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The parent resource where this android app data stream will be created. + // Format: properties/123 + string parent = 2 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "analyticsadmin.googleapis.com/AndroidAppDataStream" + } + ]; +} + +// Request message for ListAndroidAppDataStreams RPC. +message ListAndroidAppDataStreamsRequest { + // Required. The name of the parent property. + // For example, to limit results to app streams under the property with Id + // 123: "properties/123" + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "analyticsadmin.googleapis.com/AndroidAppDataStream" + } + ]; + + // The maximum number of resources to return. + // + // If unspecified, 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 call. Provide this to + // retrieve the subsequent page. + // When paginating, all other parameters provided to + // `ListAndroidAppDataStreams` must match the call that provided the page + // token. + string page_token = 3; +} + +// Request message for ListAndroidDataStreams RPC. +message ListAndroidAppDataStreamsResponse { + // Results that matched the filter criteria and were accessible to the caller. + repeated AndroidAppDataStream android_app_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 GetEnhancedMeasurementSettings RPC. +message GetEnhancedMeasurementSettingsRequest { + // Required. The name of the settings to lookup. + // Format: + // properties/{property_id}/webDataStreams/{stream_id}/enhancedMeasurementSettings + // Example: "properties/1000/webDataStreams/2000/enhancedMeasurementSettings" + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "analyticsadmin.googleapis.com/EnhancedMeasurementSettings" + } + ]; +} + +// Request message for UpdateEnhancedMeasurementSettings RPC. +message UpdateEnhancedMeasurementSettingsRequest { + // Required. The settings to update. + // The `name` field is used to identify the settings to be updated. + EnhancedMeasurementSettings enhanced_measurement_settings = 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 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 UpdateFirebaseLink RPC +message UpdateFirebaseLinkRequest { + // Required. The Firebase link to update. + FirebaseLink firebase_link = 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 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" + } + ]; +} + +// Response message for ListFirebaseLinks RPC +message ListFirebaseLinksResponse { + // List of FirebaseLinks. This will have at most one value. + repeated FirebaseLink firebase_links = 1; +} + +// 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}/webDataStreams/{stream_id}/globalSiteTag + // Example: "properties/123/webDataStreams/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; + + // The list of fields to be updated. Omitted fields will not be updated. + google.protobuf.FieldMask update_mask = 2; +} + +// 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" + } + ]; +} 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 new file mode 100644 index 00000000..79bc304c --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/resources.proto @@ -0,0 +1,571 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.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"; + +// 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 non-deprecated code for a UN M.49 region. + // https://unicode.org/cldr/charts/latest/supplemental/territory_containment_un_m_49.html + string country_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 App+Web 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]; + + // 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} + // Example: "accounts/100" + 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; + + // 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; + + // 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. Indicates whether this Property is soft-deleted or not. Deleted properties + // are excluded from List results unless specifically requested. + bool deleted = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// A resource message representing a Google Analytics Android app stream. +message AndroidAppDataStream { + option (google.api.resource) = { + type: "analyticsadmin.googleapis.com/AndroidAppDataStream" + pattern: "properties/{property}/androidAppDataStreams/{android_app_data_stream}" + }; + + // Output only. Resource name of this Data Stream. + // Format: properties/{property_id}/androidAppDataStreams/{stream_id} + // Example: "properties/1000/androidAppDataStreams/2000" + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // 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 = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Time when this stream was originally created. + google.protobuf.Timestamp create_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Time when stream payload fields were last updated. + google.protobuf.Timestamp update_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Immutable. The package name for the app being measured. + // Example: "com.example.myandroidapp" + string package_name = 5 [(google.api.field_behavior) = IMMUTABLE]; + + // Human-readable display name for the Data Stream. + // + // The max allowed display name length is 255 UTF-16 code units. + string display_name = 6; +} + +// A resource message representing a Google Analytics IOS app stream. +message IosAppDataStream { + option (google.api.resource) = { + type: "analyticsadmin.googleapis.com/IosAppDataStream" + pattern: "properties/{property}/iosAppDataStreams/{ios_app_data_stream}" + }; + + // Output only. Resource name of this Data Stream. + // Format: properties/{property_id}/iosAppDataStreams/{stream_id} + // Example: "properties/1000/iosAppDataStreams/2000" + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // 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 = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Time when this stream was originally created. + google.protobuf.Timestamp create_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Time when stream payload fields were last updated. + google.protobuf.Timestamp update_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. Immutable. The Apple App Store Bundle ID for the app + // Example: "com.example.myiosapp" + string bundle_id = 5 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.field_behavior) = REQUIRED + ]; + + // Human-readable display name for the Data Stream. + // + // The max allowed display name length is 255 UTF-16 code units. + string display_name = 6; +} + +// A resource message representing a Google Analytics web stream. +message WebDataStream { + option (google.api.resource) = { + type: "analyticsadmin.googleapis.com/WebDataStream" + pattern: "properties/{property}/webDataStreams/{web_data_stream}" + }; + + // Output only. Resource name of this Data Stream. + // Format: properties/{property_id}/webDataStreams/{stream_id} + // Example: "properties/1000/webDataStreams/2000" + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Analytics "Measurement ID", without the "G-" prefix. + // Example: "G-1A2BCD345E" would just be "1A2BCD345E" + string measurement_id = 2 [(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 = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // 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]; + + // Immutable. Domain name of the web app being measured, or empty. + // Example: "http://www.google.com", "https://www.google.com" + string default_uri = 6 [(google.api.field_behavior) = IMMUTABLE]; + + // Required. Human-readable display name for the Data Stream. + // + // The max allowed display name length is 100 UTF-16 code units. + string display_name = 7 [(google.api.field_behavior) = REQUIRED]; +} + +// 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}" + }; + + // Example format: properties/1234/userLinks/5678 + string name = 1; + + // Email address of the user to link + string email_address = 2; + + // Roles directly assigned to this user for this account or property. + // + // Valid values: + // predefinedRoles/read + // predefinedRoles/collaborate + // predefinedRoles/edit + // predefinedRoles/manage-users + // + // 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/read + // + // 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/read + repeated string effective_roles = 4; +} + +// Singleton resource under a WebDataStream, configuring measurement of +// additional site interactions and content. +message EnhancedMeasurementSettings { + option (google.api.resource) = { + type: "analyticsadmin.googleapis.com/EnhancedMeasurementSettings" + pattern: "properties/{property}/webDataStreams/{web_data_stream}/enhancedMeasurementSettings" + }; + + // Output only. Resource name of this Data Stream. + // Format: + // properties/{property_id}/webDataStreams/{stream_id}/enhancedMeasurementSettings + // Example: "properties/1000/webDataStreams/2000/enhancedMeasurementSettings" + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Indicates whether Enhanced Measurement Settings will be used to + // automatically measure interactions and content on this web stream. + // + // Changing this value does not affect the settings themselves, but determines + // whether they are respected. + bool stream_enabled = 2; + + // Output only. If enabled, capture a page view event each time a page loads or the + // website changes the browser history state. + bool page_views_enabled = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // If enabled, capture scroll events each time a visitor gets to the bottom of + // a page. + bool scrolls_enabled = 4; + + // If enabled, capture an outbound click event each time a visitor clicks a + // link that leads them away from your domain. + bool outbound_clicks_enabled = 5; + + // Capture events when your visitors view content on your site that has + // structured data (eg, articles, blog posts, product details screens, etc.). + bool content_views_enabled = 6; + + // If enabled, capture a view search results event each time a visitor + // performs a search on your site (based on a query parameter). + bool site_search_enabled = 7; + + // If enabled, capture a view search results event each time a visitor + // interacts with a form on your site. + bool form_interactions_enabled = 8; + + // If enabled, capture video play, progress, and complete events as visitors + // view embedded videos on your site. + bool video_engagement_enabled = 9; + + // If enabled, capture a file download event each time a link is clicked with + // a common document, compressed file, application, video, or audio extension. + bool file_downloads_enabled = 10; + + // If enabled, capture a click event each time a visitor clicks a link or + // element that has data attributes beginning with "data-ga". + bool data_tagged_element_clicks_enabled = 11; + + // If enabled, capture a page view event each time a page loads. + bool page_loads_enabled = 12; + + // If enabled, capture a page view event each time the website changes the + // browser history state. + bool page_changes_enabled = 13; + + // Capture events when your visitors view content on your site that has + // articles or blog posts. + bool articles_and_blogs_enabled = 14; + + // Capture events when your visitors view content on your site that has + // product details screens, etc. + bool products_and_ecommerce_enabled = 15; + + // Required. URL query parameters to interpret as site search parameters. + // Max length is 1024 characters. Must not be empty. + string search_query_parameter = 16 [(google.api.field_behavior) = REQUIRED]; + + // Additional URL query parameters. + // Max length is 1024 characters. + string url_query_parameter = 17; + + // Domains to exclude from measurement. Max length is 1024 characters. + string excluded_domains = 18; +} + +// A link between an App+Web 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]; + + // Maximum user access to the App + Web property allowed to admins of + // the linked Firebase project. + MaximumUserAccess maximum_user_access = 4; +} + +// Read-only resource with the tag for sending data from a website to a +// WebDataStream. +message GlobalSiteTag { + option (google.api.resource) = { + type: "analyticsadmin.googleapis.com/GlobalSiteTag" + pattern: "properties/{property}/globalSiteTag" + }; + + // Immutable. JavaScript code snippet to be pasted as the first item into the head tag of + // every webpage to measure. + string snippet = 1 [(google.api.field_behavior) = IMMUTABLE]; +} + +// A link between an App+Web 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. Format: properties/{propertyId} + string parent = 2 [(google.api.field_behavior) = IMMUTABLE]; + + // 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. Email address of the user that created the link. + // An empty string will be returned if the email address can't be retrieved. + string email_address = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // 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]; +} + +// 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; +} + +// 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; +} + +// Maximum access settings that Firebase user receive on the linked Analytics +// property. +enum MaximumUserAccess { + // Unspecified maximum user access. + MAXIMUM_USER_ACCESS_UNSPECIFIED = 0; + + // Firebase users have no access to the Analytics property. + NO_ACCESS = 1; + + // Firebase users have Read & Analyze access to the Analytics property. + READ_AND_ANALYZE = 2; + + // Firebase users have edit access to the Analytics property, but may not + // manage the Firebase link. + EDITOR_WITHOUT_LINK_MANAGEMENT = 3; + + // Firebase users have edit access to the Analytics property and may manage + // the Firebase link. + EDITOR_INCLUDING_LINK_MANAGEMENT = 4; +} diff --git a/renovate.json b/renovate.json new file mode 100644 index 00000000..d21577af --- /dev/null +++ b/renovate.json @@ -0,0 +1,81 @@ +{ + "extends": [ + ":separateMajorReleases", + ":combinePatchMinorReleases", + ":ignoreUnstable", + ":prImmediately", + ":updateNotScheduled", + ":automergeDisabled", + ":ignoreModulesAndTests", + ":maintainLockFilesDisabled", + ":autodetectPinVersions" + ], + "packageRules": [ + { + "packagePatterns": [ + "^com.google.guava:" + ], + "versionScheme": "docker" + }, + { + "packagePatterns": [ + "^com.google.api:gax", + "^com.google.auth:", + "^com.google.cloud:google-cloud-core", + "^io.grpc:", + "^com.google.guava:" + ], + "groupName": "core dependencies" + }, + { + "packagePatterns": [ + "^com.google.http-client:", + "^com.google.oauth-client:", + "^com.google.api-client:" + ], + "groupName": "core transport dependencies" + }, + { + "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": [ + "^com.google.cloud:google-cloud-" + ], + "ignoreUnstable": false + }, + { + "packagePatterns": [ + "^com.fasterxml.jackson.core" + ], + "groupName": "jackson dependencies" + } + ], + "semanticCommits": true, + "masterIssue": true +} \ No newline at end of file diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml new file mode 100644 index 00000000..210f1bc3 --- /dev/null +++ b/samples/install-without-bom/pom.xml @@ -0,0 +1,84 @@ + + + 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.0.12 + + + + 1.8 + 1.8 + UTF-8 + + + + + + + com.google.analytics + google-analytics-admin + 0.0.0 + + + + + junit + junit + 4.13 + test + + + com.google.truth + truth + 1.0.1 + test + + + + + + + + org.codehaus.mojo + build-helper-maven-plugin + 3.1.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 new file mode 100644 index 00000000..3819f422 --- /dev/null +++ b/samples/pom.xml @@ -0,0 +1,56 @@ + + + 4.0.0 + com.google.cloud + google-cloud-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.0.18 + + + + 1.8 + 1.8 + UTF-8 + + + + install-without-bom + snapshot + snippets + + + + + + org.apache.maven.plugins + maven-deploy-plugin + 2.8.2 + + true + + + + org.sonatype.plugins + nexus-staging-maven-plugin + 1.6.8 + + true + + + + + diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml new file mode 100644 index 00000000..ad24fff0 --- /dev/null +++ b/samples/snapshot/pom.xml @@ -0,0 +1,83 @@ + + + 4.0.0 + com.google.cloud + analytics-admin-snapshot + jar + Google Analytics Admin Snapshot Samples + https://github.com/googleapis/java-analytics-admin + + + + com.google.cloud.samples + shared-configuration + 1.0.12 + + + + 1.8 + 1.8 + UTF-8 + + + + + + com.google.analytics + google-analytics-admin + 0.0.0 + + + + + junit + junit + 4.13 + test + + + com.google.truth + truth + 1.0.1 + test + + + + + + + + org.codehaus.mojo + build-helper-maven-plugin + 3.1.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 new file mode 100644 index 00000000..1b33c59e --- /dev/null +++ b/samples/snippets/pom.xml @@ -0,0 +1,60 @@ + + + 4.0.0 + com.google.cloud + analytics-admin-snippets + jar + Google Analytics Admin Snippets + https://github.com/googleapis/java-analytics-admin + + + + com.google.cloud.samples + shared-configuration + 1.0.12 + + + + 1.8 + 1.8 + UTF-8 + + + + + + + + com.google.cloud + libraries-bom + 8.1.0 + pom + import + + + + + + + com.google.analytics + google-analytics-admin + + + + + junit + junit + 4.13 + test + + + com.google.truth + truth + 1.0.1 + test + + + diff --git a/synth.metadata b/synth.metadata new file mode 100644 index 00000000..5d72c841 --- /dev/null +++ b/synth.metadata @@ -0,0 +1,37 @@ +{ + "sources": [ + { + "git": { + "name": ".", + "remote": "sso://devrel/cloud/libraries/java/repo-splitter", + "sha": "675497fd5cb08180b14228cbcdf5a5716083f540" + } + }, + { + "git": { + "name": "googleapis", + "remote": "https://github.com/googleapis/googleapis.git", + "sha": "84ebe7c62f4c0875e001752fa84e87e629a1d418", + "internalRef": "321243814" + } + }, + { + "git": { + "name": "synthtool", + "remote": "https://github.com/googleapis/synthtool.git", + "sha": "3a89215abd0e66dfc4f21d07d552d0b543abf082" + } + } + ], + "destinations": [ + { + "client": { + "source": "googleapis", + "apiName": "analytics-admin", + "apiVersion": "v1alpha", + "language": "java", + "generator": "bazel" + } + } + ] +} \ No newline at end of file diff --git a/synth.py b/synth.py new file mode 100644 index 00000000..a96b027c --- /dev/null +++ b/synth.py @@ -0,0 +1,33 @@ +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.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 is used to synthesize generated parts of this library.""" + +import synthtool as s +import synthtool.gcp as gcp +import synthtool.languages.java as java + +service = 'analytics-admin' +versions = ['v1alpha'] + +for version in versions: + java.bazel_library( + service=service, + version=version, + proto_path=f'google/analytics/admin/{version}', + bazel_target=f'//google/analytics/admin/{version}:google-{service}-{version}-java', + cloud_api=False, + ) + +java.common_templates() \ No newline at end of file diff --git a/versions.txt b/versions.txt new file mode 100644 index 00000000..dc332a95 --- /dev/null +++ b/versions.txt @@ -0,0 +1,6 @@ +# Format: +# module:released-version:current-version + +google-analytics-admin:0.0.0:0.0.1-SNAPSHOT +proto-google-analytics-admin-v1alpha:0.0.0:0.0.1-SNAPSHOT +grpc-google-analytics-admin-v1alpha:0.0.0:0.0.1-SNAPSHOT \ No newline at end of file